G
Guest
Hi,
In VB.NET when used forms. I usually started them within an object, like so:
Public Class Program
Private Shared _mainForm As MainForm
Public Shared ReadOnly Property MainForm() As MainForm
Get
Return _mainForm
End Get
End Property
Public Shared Sub Main()
_mainForm = New MainForm
Application.Run(MainForm)
End Sub
End Class
I did this in order to have easy access to my mainform's components from
within child forms.
However it is no longer possible to do this in VS2005, It gives you a
choice: Either you lose your WinXP theme support and use startup object. Or
you use startup forms and have XP themes. Not a cool choice.
Is there any workarounds?
Thx
In VB.NET when used forms. I usually started them within an object, like so:
Public Class Program
Private Shared _mainForm As MainForm
Public Shared ReadOnly Property MainForm() As MainForm
Get
Return _mainForm
End Get
End Property
Public Shared Sub Main()
_mainForm = New MainForm
Application.Run(MainForm)
End Sub
End Class
I did this in order to have easy access to my mainform's components from
within child forms.
However it is no longer possible to do this in VS2005, It gives you a
choice: Either you lose your WinXP theme support and use startup object. Or
you use startup forms and have XP themes. Not a cool choice.
Is there any workarounds?
Thx