Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Sun, 6 Jul 2008 15:48:37 +0100,    group: microsoft.public.dotnet.framework.windowsforms        back       


Using Sub Main with application framework   
Hi

How can I use Sub Main (instead of start-up form) while still be able to use 
application framework? At present it seems I can have one or the other. I 
need it for an app that does not have a UI.

Thanks

Regards
date: Sun, 6 Jul 2008 15:48:37 +0100   author:   John

Re: Using Sub Main with application framework   
"John"  schrieb
> Hi
>
> How can I use Sub Main (instead of start-up form) while still be
> able to use application framework?

Not possible.

> At present it seems I can have
> one or the other. I need it for an app that does not have a UI.

The only thing I usually add is application.enablevisualstyles when I have 
my own sub Main.


Armin
date: Sun, 6 Jul 2008 17:14:23 +0200   author:   Armin Zingler

Re: Using Sub Main with application framework   
On Sun, 6 Jul 2008 17:14:23 +0200, "Armin Zingler"
 wrote:

>"John"  schrieb
>> Hi
>>
>> How can I use Sub Main (instead of start-up form) while still be
>> able to use application framework?
>
>Not possible.
>
>> At present it seems I can have
>> one or the other. I need it for an app that does not have a UI.
>
>The only thing I usually add is application.enablevisualstyles when I have 
>my own sub Main.
>
>
>Armin 

I also call:
            Application.SetCompatibleTextRenderingDefault(False)
otherwise text renders differently at runtime than in the IDE.
date: Sun, 06 Jul 2008 10:36:53 -0700   author:   Jack Jackson

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us