Click here to Skip to main content
15,921,793 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: how to set date mask Pin
numbrel16-Mar-05 12:57
numbrel16-Mar-05 12:57 
QuestionHow to show data in datagrid Pin
eshban28415-Mar-05 8:24
eshban28415-Mar-05 8:24 
AnswerRe: How to show data in datagrid Pin
Suman Singh15-Mar-05 9:08
professionalSuman Singh15-Mar-05 9:08 
AnswerRe: How to show data in datagrid Pin
Dave Kreskowiak15-Mar-05 9:13
mveDave Kreskowiak15-Mar-05 9:13 
GeneralCalling a button click Pin
Suman Singh15-Mar-05 7:55
professionalSuman Singh15-Mar-05 7:55 
GeneralRe: Calling a button click Pin
Jim Matthews15-Mar-05 8:32
Jim Matthews15-Mar-05 8:32 
GeneralRe: Calling a button click Pin
Suman Singh15-Mar-05 8:54
professionalSuman Singh15-Mar-05 8:54 
GeneralRe: Calling a button click Pin
Jim Matthews15-Mar-05 9:25
Jim Matthews15-Mar-05 9:25 
is it a situation where you want to perform a click on a particular button based on which text box has the focus?

if this is the case, just evaluate what you want to determine and perform a click on the appropriate button. for instance
Private Sub myKeyPressHandler(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles myTextBox.KeyPress, 
someOtherTextBox.KeyPress, 
yetAnotherTextBox.KeyPress
      
If (Object.ReferenceEquals(sender, Me.myTextBox)) Then
   me.myButton.PerformClick()
elsif (object.ReferenceEquals(sender, me.someOtherTextBox))
   me.someOtherButton.PerformClick()
elseif (object.ReferenceEquals(sender, me.yetAnotherButton))
   me.yetAnotherButton.PerformClick()
else
   messagebox.show("It was yet even another textbox that received the text!")
End If

End Sub
hope this helps you out.


-jim
GeneralRe: Calling a button click Pin
Suman Singh15-Mar-05 10:17
professionalSuman Singh15-Mar-05 10:17 
GeneralRe: Calling a button click Pin
Jim Matthews15-Mar-05 10:32
Jim Matthews15-Mar-05 10:32 
GeneralLoop Question Pin
Makniteasy15-Mar-05 7:27
Makniteasy15-Mar-05 7:27 
GeneralRe: Loop Question Pin
Jim Matthews15-Mar-05 8:30
Jim Matthews15-Mar-05 8:30 
GeneralRe: Loop Question Pin
Makniteasy15-Mar-05 8:42
Makniteasy15-Mar-05 8:42 
GeneralRe: Loop Question Pin
Jim Matthews15-Mar-05 9:09
Jim Matthews15-Mar-05 9:09 
GeneralRe: Loop Question Pin
Dave Kreskowiak15-Mar-05 9:11
mveDave Kreskowiak15-Mar-05 9:11 
GeneralRe: Loop Question Pin
Makniteasy17-Mar-05 7:15
Makniteasy17-Mar-05 7:15 
GeneralHTA and IsConnectible Ping Pin
pn199515-Mar-05 3:32
pn199515-Mar-05 3:32 
GeneralRe: HTA and IsConnectible Ping Pin
Dave Kreskowiak15-Mar-05 6:22
mveDave Kreskowiak15-Mar-05 6:22 
Generalneed help: deserialise Pin
Dahoolio15-Mar-05 3:14
Dahoolio15-Mar-05 3:14 
GeneralRe: need help: deserialise Pin
Dave Kreskowiak15-Mar-05 6:17
mveDave Kreskowiak15-Mar-05 6:17 
GeneralRe: need help: deserialise Pin
Dahoolio16-Mar-05 20:17
Dahoolio16-Mar-05 20:17 
GeneralRe: need help: deserialise Pin
Dahoolio15-Mar-05 20:40
Dahoolio15-Mar-05 20:40 
QuestionHOW TO: populate Menus at runtime Pin
azam31614-Mar-05 19:39
azam31614-Mar-05 19:39 
AnswerRe: HOW TO: populate Menus at runtime Pin
rwestgraham14-Mar-05 21:38
rwestgraham14-Mar-05 21:38 
GeneralHide Tabpage Pin
Mohamed Ishak14-Mar-05 19:27
professionalMohamed Ishak14-Mar-05 19:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.