Click here to Skip to main content
15,907,875 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: how do I Convert Filetime to datetim Pin
David M J14-Apr-06 6:22
David M J14-Apr-06 6:22 
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 
Thank you very much Mr Dave
That is great explanation.I am still in the world of VB6 and so need to crawl to get into the world of .NET and people like you i hope will take me in the right direction.

Sorry for the Numbering Error.
"You actually have to turn off the "Enable Application Framework" option in My Project "
This helped me a great deal for i was scratching my head why submain was not listing in the dropdown.

Regarding No3:
Now, you don't have to have a Module to supply a Sub Main. You can do it with a Shared member Sub of a class:<br />
<br />
Public Class Form1    <STAThread()> _    Public Shared Sub Main()        ' Same as above examples...    End Sub     ' the rest of your form code goes here...End Class<br />
<br />


According to your example Form1 --should be the start up form?Could you able to explain how it works.I assume my Sub Main will be triggered first where whatever i wrote as code will be executed and then formLoad event?

Me.Close()= ME.END in VB6 ie does it free up the application from memory?

You have suggested that using global variable is not such a good practice and i have read in some article also that it is not a OOPS concept to have global variables.
So what is the best and alternative way. Do i need to create a class with get and set parameter in a class to store that values? I would like you hear from you what is the best method to be followed to keep global variables?

Thanks and Regards



Help in need is the help indeed
GeneralRe: Global variable and Sub Main() Pin
Dave Kreskowiak13-Apr-06 12:14
mveDave Kreskowiak13-Apr-06 12:14 
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 

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.