Skip to content

Designer to Code Window .NET Studio 2003

Bevan Shervey

Asked Jun 1, 2007, 7:22 AM EDT2 answers
Share
LinkedInX
Is there a way to choose automatic code events for tools?  For example, I want to code a KeyPress event for a text box.  In the Designer, I place a textbox.  If I double click it, the code window opens but the automatic code is a "TextChanged" event.

Is there any way to tell the designer what event I want?

Thanks in advance.  I have not had time to read through the forums here but I look forward to it.  Also, if there is a forum more suited to the .NET Studio environment, let me know please.

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Mike Gold
    0
    It's a good question.  Not sure if you can change the default event handler in Visual Studio.  You can always go to the property window, hit the lightening bolt and double click on the event you are interested in.  It's an extra step, but essentially does the same thing.

    Best,
    0
  • 0

    ah the lightning bolt. nice tip - thank you!

    0