XP Visual Styles in 2005

G

Guest

I'm trying to set the application to use XP visual styles, but in the
properties page I tried to set it and I get the following:

Startup object must be a form when 'Enable application framework' is
checked. I have a sub main starting up the application and in there it
determines which portal the user is eligible to use. So how do I get around
this issue with having a form being my startup?

Thanks
 
H

HongQuan Wu[MSFT]

Hi

Thank you for contacting Microsoft.

Could you please tell me the detail steps to reproduce this issue? Thanks a
lot!


Thanks & Regards,

Frederick Wu
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

=====================================================
Business-Critical Phone Support (BCPS) provides you with technical phone
support at no charge during critical LAN outages or "business down"
situations. This benefit is available 24 hours a day, 7 days a week to all
Microsoft technology partners in the United States and Canada.

This and other support options are available here:

BCPS:
https://partner.microsoft.com/US/technicalsupport/supportoverview/40010469

Others: https://partner.microsoft.com/US/technicalsupport/supportoverview/

If you are outside the United States, please visit our International
Support page:
http://support.microsoft.com/default.aspx?scid=/international.aspx.
=====================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
H

Herfried K. Wagner [MVP]

MasterBlaster said:
I'm trying to set the application to use XP visual styles, but in the
properties page I tried to set it and I get the following:

Startup object must be a form when 'Enable application framework' is
checked. I have a sub main starting up the application and in there it
determines which portal the user is eligible to use. So how do I get
around
this issue with having a form being my startup?

Call 'Application.EnableVisualStyles' in your custom 'Sub Main'.
 

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