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

Re: Startup form, and themes. by Bryan

Bryan
Thu Oct 26 21:27:04 CDT 2006

I was not able to reproduce the problem. Can you post a code sample
that does?

Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com




"Eric" <Eric@discussions.microsoft.com> wrote in message
news:9A6877A6-FACF-4A46-B7A5-49B6FC55438D@microsoft.com:

> 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