If I do this frmMain.Show from a tcpsocket class I get this
The Undo operation encountered a context that is different from what was applied in the corresponding Set operation. The possible cause is that a context was Set on the thread and not reverted(undone)'
If I do this.
Public Sub ShowForm()
Dim wh As New MethodInvoker(AddressOf test)
Private Sub test()
If Me.InvokeRequired Then
Me.Invoke(New ShowServerConsoleDelegate(AddressOf test))
Me.Opacity = 100
Me.ShowInTaskbar = True
Invoke or BeginInvoke cannot be called on a control until the window handle has been created.
So when having the frmMain as the "Startup form" does not the "framework" create the "handle" so I can use it without creating the form manually?