Click here to Skip to main content
15,918,404 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionreading msg file Pin
pnpfriend13-Apr-06 5:41
pnpfriend13-Apr-06 5:41 
AnswerRe: reading msg file Pin
Dave Kreskowiak13-Apr-06 7:12
mveDave Kreskowiak13-Apr-06 7:12 
GeneralRe: reading msg file Pin
pnpfriend14-Apr-06 8:02
pnpfriend14-Apr-06 8:02 
GeneralRe: reading msg file Pin
Dave Kreskowiak14-Apr-06 9:05
mveDave Kreskowiak14-Apr-06 9:05 
QuestionGlobal variable and Sub Main() Pin
percyvimal13-Apr-06 4:25
percyvimal13-Apr-06 4:25 
AnswerRe: Global variable and Sub Main() Pin
Dave Kreskowiak13-Apr-06 7:06
mveDave Kreskowiak13-Apr-06 7:06 
GeneralRe: Global variable and Sub Main() Pin
percyvimal13-Apr-06 11:25
percyvimal13-Apr-06 11:25 
GeneralRe: Global variable and Sub Main() Pin
Dave Kreskowiak13-Apr-06 12:14
mveDave Kreskowiak13-Apr-06 12:14 
percyvimal wrote:
According to your example Form1 --should be the start up form?


A Shared sub can be called without an instance of the class that contains it. Once the Sub Main is created inside ANY public class in your app, you can set it to the be Startup object in the MyProject properties.


Me.Close will close the form that it shows in. If this is the only form in your app, then it will send the WM_CLOSE message to itself. Or, you could replace it with Application.Exit and it will close your entire application, no matter what form it's called in.

And, yes, all the (managed) memory your app uses will be freed.


Dave Kreskowiak
Microsoft MVP - Visual Basic

AnswerRe: Global variable and Sub Main() Pin
cosma21715-Apr-06 6:05
cosma21715-Apr-06 6:05 
GeneralRe: Global variable and Sub Main() Pin
percyvimal15-Apr-06 23:11
percyvimal15-Apr-06 23:11 
QuestionDamage variable Pin
Mr kilany13-Apr-06 3:27
Mr kilany13-Apr-06 3:27 
AnswerRe: Damage variable Pin
Dave Kreskowiak13-Apr-06 7:07
mveDave Kreskowiak13-Apr-06 7:07 
GeneralRe: Damage variable Pin
Mr kilany15-Apr-06 3:16
Mr kilany15-Apr-06 3:16 
GeneralRe: Damage variable Pin
Dave Kreskowiak15-Apr-06 4:43
mveDave Kreskowiak15-Apr-06 4:43 
GeneralRe: Damage variable Pin
Mr kilany17-Apr-06 3:17
Mr kilany17-Apr-06 3:17 
GeneralRe: Damage variable Pin
Dave Kreskowiak17-Apr-06 12:11
mveDave Kreskowiak17-Apr-06 12:11 
GeneralRe: Damage variable Pin
Mr kilany18-Apr-06 3:26
Mr kilany18-Apr-06 3:26 
GeneralRe: Damage variable Pin
Dave Kreskowiak18-Apr-06 12:16
mveDave Kreskowiak18-Apr-06 12:16 
GeneralRe: Damage variable Pin
Mr kilany19-Apr-06 7:56
Mr kilany19-Apr-06 7:56 
GeneralRe: Damage variable Pin
Dave Kreskowiak19-Apr-06 11:41
mveDave Kreskowiak19-Apr-06 11:41 
Questionvery simple question but no answer Pin
Amit Agarrwal13-Apr-06 3:15
Amit Agarrwal13-Apr-06 3:15 
AnswerRe: very simple question but no answer Pin
Dave Kreskowiak13-Apr-06 7:33
mveDave Kreskowiak13-Apr-06 7:33 
Questionhandling application instances Pin
crosshair13-Apr-06 2:05
crosshair13-Apr-06 2:05 
AnswerRe: handling application instances Pin
Dave Kreskowiak13-Apr-06 7:29
mveDave Kreskowiak13-Apr-06 7:29 
QuestionChange audio device Pin
Castello0712-Apr-06 23:35
Castello0712-Apr-06 23:35 

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.