Thursday 15 May 2014

vb.net - How to "prompt" a subform for user input in VB? -


That is what I want to achieve in my project:

When a user presses a button , The form text box pops out with the radio button and selects the menu on it, which can be notified to the user,

right click, form data in the main program form, some text boxes Will be sent, click Cancel

Is this possible in VB?

I tried and input box soon, but are limited

I'm new to VB, so sorry if I did not clear the question

An easy way, then using the showdialog call, you can now access all the control properties on the form. Because you are using an object of Form 2, the form of the object is not being closed, so everything is available. DialogResult = NewForm2.ShowDialog as the result of Dim NewForm2 New Form 2 Dim result if the results = Windows.Forms.DialogResult.OK then MsgBox (Newform2.TextBox1.Text) end if

Add this to:

  Private sub button 1_kill (as the sender. System object, as a system. Antigres) handles button 1. Click Me.DialogResult = Windows.Forms.DialogResult.OK Me.Close () End Sub    

No comments:

Post a Comment