Heute zeige ich euch, wie ihr einen Multilogin mit MDI macht.
Als erstes das Layout.
Form1:
This image has been resized. Click this bar to view the full image. The original image is sized 548x443.
(Menustrip)
Form2:
(Webbrowser(Dock=Fill))
Nun die Codes:
Form1_Load:
Code:
Me.IsMdiContainer = True
Form1_Hinzufügen
Code:
Dim Form As New Form2 Dim Fenster As Integer Form.MdiParent = Me Fenster += 1 Form.Text = "Knuddels.de [" & Fenster & "]" Form.WebBrowser1.Navigate(Application.StartupPath & "/Knuddelsde.html") Form.Show()
Form1_Entfernen
Code:
For Each Form As Windows.Forms.Form In MdiChildren Form.Close() Next
Das wars eigl. schon
Nun legt ihr nur noch eine HTML-Datei in dem Ordner eures Multilogins an: Knuddelsde.html.
In die kommt folgendes: