Click here to Skip to main content
16,006,013 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Data Grids Pin
Robert Gronenthal25-Mar-04 2:14
Robert Gronenthal25-Mar-04 2:14 
GeneralConverting to / from HTML colour codes Pin
NightCreature24-Mar-04 2:06
NightCreature24-Mar-04 2:06 
GeneralRe: Converting to / from HTML colour codes Pin
Hesham Amin25-Mar-04 1:26
Hesham Amin25-Mar-04 1:26 
GeneralRe: Converting to / from HTML colour codes Pin
NightCreature25-Mar-04 2:42
NightCreature25-Mar-04 2:42 
GeneralStarting a project with 'Sub Main' Pin
Fade (Amit BS)23-Mar-04 23:57
Fade (Amit BS)23-Mar-04 23:57 
GeneralRe: Starting a project with 'Sub Main' Pin
Dave Kreskowiak24-Mar-04 1:30
mveDave Kreskowiak24-Mar-04 1:30 
GeneralRe: Starting a project with 'Sub Main' Pin
Fade (Amit BS)24-Mar-04 1:51
Fade (Amit BS)24-Mar-04 1:51 
GeneralRe: Starting a project with 'Sub Main' Pin
Dave Kreskowiak24-Mar-04 2:10
mveDave Kreskowiak24-Mar-04 2:10 
Fade (Amit BS) wrote:
a. commandline attributes

You don't need a Sub Main for command line arguments.
In you Form_Load event, or something else close to your app starting up, just use Environment.GetCommandLineArgs() to get a String array of the arguments.


Fade (Amit BS) wrote:
b. neet code

But a pain in the butt to keep an app running. It's MUCH easier to just have a main form and have that form launch the others than it is to keep a Sub Main in a relatively infinite loop watching for and waiting for all the open forms, most of which it has no clue even exist, to be closed and unloaded.

Think about it. Pick any app in Windows, like Word, VS.NET... They all have a main form and a bunch of helper forms that the main form launches and manages.


RageInTheMachine9532
GeneralRe: Starting a project with 'Sub Main' Pin
Fade (Amit BS)24-Mar-04 3:09
Fade (Amit BS)24-Mar-04 3:09 
Generallistview - iif statement Pin
Chrissy Callen23-Mar-04 23:31
Chrissy Callen23-Mar-04 23:31 
GeneralRe: listview - iif statement Pin
Dave Kreskowiak24-Mar-04 1:25
mveDave Kreskowiak24-Mar-04 1:25 
GeneralRe: listview - iif statement Pin
Petros200424-Mar-04 11:07
Petros200424-Mar-04 11:07 
GeneralAdo with dataGrid Pin
roshanak23-Mar-04 22:02
roshanak23-Mar-04 22:02 
GeneralSource/Version Control systems Pin
cnurse23-Mar-04 13:07
cnurse23-Mar-04 13:07 
GeneralRe: Source/Version Control systems Pin
screaver23-Mar-04 13:44
screaver23-Mar-04 13:44 
GeneralRe: Source/Version Control systems Pin
cnurse23-Mar-04 14:15
cnurse23-Mar-04 14:15 
GeneralRe: Source/Version Control systems Pin
Michael Flanakin23-Mar-04 14:32
Michael Flanakin23-Mar-04 14:32 
Generalauto. loading files with my application Pin
Nadroj23-Mar-04 11:23
Nadroj23-Mar-04 11:23 
GeneralRe: auto. loading files with my application Pin
Dave Kreskowiak23-Mar-04 14:20
mveDave Kreskowiak23-Mar-04 14:20 
GeneralRe: auto. loading files with my application Pin
Nadroj23-Mar-04 14:24
Nadroj23-Mar-04 14:24 
GeneralRe: auto. loading files with my application Pin
Nadroj26-Mar-04 18:44
Nadroj26-Mar-04 18:44 
GeneralRe: auto. loading files with my application Pin
Dave Kreskowiak27-Mar-04 3:52
mveDave Kreskowiak27-Mar-04 3:52 
GeneralRe: auto. loading files with my application Pin
Nadroj27-Mar-04 20:29
Nadroj27-Mar-04 20:29 
GeneralRe: auto. loading files with my application Pin
Dave Kreskowiak28-Mar-04 4:54
mveDave Kreskowiak28-Mar-04 4:54 
GeneralRe: auto. loading files with my application Pin
Nadroj28-Mar-04 12:43
Nadroj28-Mar-04 12:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.