OK, the subject is a little strange, but anyway.
I have a custom control that takes user data. But I'm not sure how to wait until user fills his textbox and presses button.
MyControl is placed on Form1.
Ok, here is example code
OK. I think that my question is quite understandable. I have to stop in the middle of code and wait until the button is pressed. Is it possible?
tx
Matej
I have a custom control that takes user data. But I'm not sure how to wait until user fills his textbox and presses button.
MyControl is placed on Form1.
Ok, here is example code
Visual Basic:
'i'm calling MyControl's GetUser method. It returns True or false.
'the code is located in Form1
If MyControl.GetUser = true
'.....
Else
'......
End if
'............
'***
'........
----------------------------------------------
'ok, and here is code for MyControl's GetUser method
'located in MyControl
Public Functin GetUser() as Boolean
'here I have to wait until user fills textbox (located on MyControl) and presses button (allso located on MyControl).
'so, when button is pressed the function shluld continue and return desired value
If textbox.text <> "Matej" then
Return True
Else
Return False
End If
End Function
OK. I think that my question is quite understandable. I have to stop in the middle of code and wait until the button is pressed. Is it possible?
tx
Matej
Last edited: