Hi All,

I'm trying to create a GUI which looks like an installer, whereby you click next and rather than opening a new form, it keeps the same form but displays different information (kind of like different panels).

I'm making a college project where I'm using a MySQL database to hold information, and Engineers will use an ID to sign in and out Parts (with IDs). The part of the project I want to make operate similar to an Installer gui is where they enter their Employee ID, it then displays details and asks if they are correct *and also brings up a new form with a place they can edit their details), then asks for Part ID, then displays all information at the end and asks them to click confirm, at which point that button click updates the database.

Anyone got any ideas on how I can do this?

Thanks for all your help.

Alex

You could use a TabControl and remove the TabPages Headers.
http://dotnet.mvps.org/dotnet/faqs/?id=tabcontrolremoveheaders&lang=en

Then use your btnNext/btnPrevious to scroll through the TabPages.

'// Next Tab.
        With TabControl1 '// if not last TabPage, go to next.
            If Not .SelectedIndex = .TabPages.Count - 1 Then .SelectedIndex += 1
        End With
'// Previous Tab.
        With TabControl1 '// if not first TabPage, go to previous.
            If Not .SelectedIndex = .TabPages.Count - 1 Then .SelectedIndex += 1
        End With

Removing the TabControl TabPages Headers is probably the best solution since it gives you full access for editing each TabPage while in Designer.

In other words, your form load code can will look like this:

Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.TabControl1.Region = New Region(New RectangleF(Me.TabPage1.Left, Me.TabPage1.Top, Me.TabPage1.Width, Me.TabPage1.Height))
    End Sub
End Class

Look that when you're in the editor, you'll still be able to see the complete tabpages (like codeorder said):
http://i1001.photobucket.com/albums/af134/RenanLazarotto/screenshot1.png

But, when you run it, it will look like this:
http://i1001.photobucket.com/albums/af134/RenanLazarotto/screenshot3.png

Hope this helps a bit more (:

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.