|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Windows Forms QuestionIs there a way I can capture the event on the form and react to it. I have
some textboxes that I want to capture which textbox is firing the textchanged event. I can tie all the textboxes to the one event using the handles keyword and listing all the text boxes, but all I want is the control that is firing, check if it is a textbox, get the key value and do some processing. Basically I want a control array. How can I do this? John Wright "John Wright" <riley_wri***@notmail.com> schrieb: Inside the event handler:> Is there a way I can capture the event on the form and react to it. I > have some textboxes that I want to capture which textbox is firing the > textchanged event. I can tie all the textboxes to the one event using the > handles keyword and listing all the text boxes, but all I want is the > control that is firing, check if it is a textbox, get the key value and do > some processing. \\\ Dim SourceControl As TextBox = DirectCast(sender, TextBox) MsgBox(SourceControl.Name) /// -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
.empty
Replacement code for Threading.Thread.Sleep VB2005 Control Arrays Best Practices Enumerating MDIList Menu Item at Run-Time Regex.Replace difference between cstr vs .ToString vs Ctype Visual Studio 2005 Outlook 2000 SQL Server reporting services... Wait while processing dialog boxes (threading?) |
|||||||||||||||||||||||