Startup form, and themes.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top