If I have a form that is to resemble a standard dialog box that prompts for a name and I need to display the name on the main form when the main form is first run, how do I do that?

Recommended Answers

All 4 Replies

On the main form code, you have to indicate a code that would link the main form code and the other form on displaying the name of which is by the use of ODBC.
The code to be used is as follows;

Private sub frmmainform Click(-)
frmmainform.caption.Show
lblName="Name"
End if

in from1

Private Sub Command1_Click()
Form2.Label1.Caption = "Name"
Form2.Show
End Sub

^Thank you. That worked with a few modifications to fit the application.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.