hello friends,
i need a help in vb6, i just start using vb6 for my project. my problem like this, i have two button, button Ok and Next. if i want to prevent user from move to next form before clicking on button ok..how should i put my coding??

You can do it like this:

 Private Sub Form_Load()
 ' Disable the next button so that it won't be clicked.
 CmdNext.Enabled = False
 End Sub

On button ok you can enable the next button.

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.