TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ken
NA
110
0
Designer code problem
Jun 25 2010 4:45 PM
Hi. I'm new to VS2008, and I am finding something rather annoying. If I have a form, say Form1.cs, I wanted to make a textbox control on the form do something when double clicked. I double clicked the textbox in the design mode and it created a "textchanged" event... not what I wanted. So I figured I'd just add the eventhandler manually. I expanded Form1.cs in the solution explorer and right clicked Form1.Designer.cs and hit View Code. What I got though didn't have the control creation code. I thought OK, that's weird.
I went and deleted the textbox1_TextChanged function it created then did a build to cause it to trip a fault. When I double clicked the fault, it opened Form1.Designer.cs code and there was all the code I was looking for. I made the change, saved it, closed it. Right clicked it again, View Code, there it all is. Cool.
Now several minutes later I right clicked it, View Code, and I'm back to the basic short code list w/o the controls. WTF??? Augh this is annoying.
Reply
Answers (
2
)
Visual C# Testing...
Proper debugging in one form, vshost crash in another