Populating data in a pop up window

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Im trying to write an app that takes credentials I enter and automatically
enters them in a popup (login box).

If any one can point me in the right direction for capturing the login box.
That would be great.

Thanks
Jason P
 
Use the showdialog method to show the form, and make use of the dialogResult
to test if the user pressed OK, Cancel

//Calling Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click

Dim dr As DialogResult

Dim login As New Login

dr = login.ShowDialog()

If dr = DialogResult.OK Then

'You text extracted here

Debug.WriteLine(login.TextBox1.Text)


End If

login.Close()

End Sub


//Login Form ( Assumes a textbox and a button )
Me.DialogResult = DialogResult.OK

Me.Close()


--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top