473,394 Members | 2,052 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to use Sub Main as startup but Enable Application Framework?

Hi All,
I am a VB.Net 2003 user and now upgraded to 2005. I have a Win application with a module as a startup object. The module enables me to close and open simultaneous forms while the application is still running "like a login form". In 2005 I feel like losing this advantage if I selected "Enable Application Framework", while not selecting it will prevent me from using the XP visual styles at least.
Any ideas how to Enable Application Framework while having the listed hereunder module as a startup object?
Thanks in advance for your replies.

Expand|Select|Wrap|Line Numbers
  1. Module Module1
  2.  
  3.     Public Sub Main()
  4.         Dim frmMain As New Login
  5.  
  6.         frmMain.Show()
  7.         Application.Run()
  8.     End Sub
  9.  
  10. End Module
Aug 23 '07 #1
1 2367
debasisdas
8,127 Expert 4TB
Question moved to .NET Forum.
Nov 3 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

20
by: andre | last post by:
HI, I’m learning C# and already know VB .Net. I noticed that C# you have a Static Void Main () (entry point of the app). Well that got me thinking, I was told that VB.net removed “The...
4
by: wongjoekmeu | last post by:
Hello All, >From a book where I have learned C++ it says that each application must have at least one function which is the main() function. Now I have the source code of a C++ program from...
12
by: thomasp | last post by:
Ok, I have a VB2005 Beta 2 project with several forms. I have Form1 set as my startup form. I want to change this to have Sub Main of modMain (listed below) to be the startup file. How do I do...
1
by: Jon | last post by:
I have been reading the digital manual to find out how I can see the "main" procedure and I find this line under "Main Procedure" in the documentation: "Windows Forms applications run on their own....
12
by: Brian Shafer | last post by:
Hi, In VB Classic I used a sub main() in all my programs. How do I do that in VB.net without setting the application type to Console application? Looks like when I set it to console it disable...
16
by: Adam Honek | last post by:
This is probably the most silly question asked here but I just can't figure it out. In VB6 letting Sub Main() be the app's startup directory was real easy under project properties. In VB.Net...
1
by: Robert Dufour | last post by:
I know in Vs2005 you can define a splash form in the projection's configuration, but if you use the application framework to define a splash form, you must have the startup object be a form in the...
1
by: John | last post by:
Hi I have created below class with a Sub Main to use for start-up. Problem is when I go into project->properties->Application and drop down the 'Startup form', my class isn't listed so I can't...
4
by: Jeff Ciaccio | last post by:
I'm new to vb.net and was wondering what the syntax is for application events such as starting up or shutting down. For example, if you would just like to get a user's name with an input box when...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.