To open a new window in vb by clicking a button replacing the previus windw
killer88 0 Light Poster
Recommended Answers
Jump to Post— Ancient Dragon 5,243You can't (easily) replace it, but you can hide the current window and call tne new window's ShowDialog().
Jump to Post— abelingaw 69First, you have to unload or hide the current window (where you will click the button) then show the window that you want to show using it's name.
On the button which will show the next form.
VB 6:
…Private Sub Command1_Click() Me.Hide Form2.Show() End Sub
All 5 Replies
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
abelingaw 69 Posting Whiz in Training
killer88 0 Light Poster
killer88 0 Light Poster
AndreRet 526 Senior Poster
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.