Click here to Skip to main content
15,903,012 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Issues shown by Microsoft FxCop Pin
Christian Graus15-Feb-08 22:45
protectorChristian Graus15-Feb-08 22:45 
Questionhow to get the values from other table? Pin
zaimah15-Feb-08 13:58
zaimah15-Feb-08 13:58 
GeneralRe: how to get the values from other table? Pin
Christian Graus15-Feb-08 22:46
protectorChristian Graus15-Feb-08 22:46 
QuestionRe: how to get the values from other table? Pin
zaimah17-Feb-08 13:21
zaimah17-Feb-08 13:21 
General[HELP] Adding generic DVB-T tuning capabilities Pin
Neverbirth15-Feb-08 13:58
Neverbirth15-Feb-08 13:58 
QuestionRepeating WinForm User Control - Similar to template column in ASP.Net DataGridView Pin
pa2814015-Feb-08 11:24
pa2814015-Feb-08 11:24 
GeneralGlobal Try..Catch block again Pin
cstrader23215-Feb-08 10:29
cstrader23215-Feb-08 10:29 
GeneralRe: Global Try..Catch block again Pin
Luc Pattyn15-Feb-08 11:12
sitebuilderLuc Pattyn15-Feb-08 11:12 
Hi again,

this is how it is done in C#:

static class Program {
	/// The main entry point for the application.
	[STAThread]
	static void Main() {
		Application.EnableVisualStyles();
		Application.SetCompatibleTextRenderingDefault(false);
		try {
			Application.Run(new myMainForm());
		} catch(Exception exc) {
			log(exc.ToString());
		}
	}
}


The above code instantiates and executes the main form class.

For a regular Windows app, VB.NET seems not to rely on a Main() method, but directly
launches the startup object.
However I trust in a VB.NET module you could do exactly what the C# code does.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


GeneralDisable Try/Catch Pin
cstrader23215-Feb-08 6:57
cstrader23215-Feb-08 6:57 
GeneralRe: Disable Try/Catch Pin
Dave Kreskowiak15-Feb-08 7:14
mveDave Kreskowiak15-Feb-08 7:14 
GeneralRe: Disable Try/Catch Pin
cstrader23215-Feb-08 7:17
cstrader23215-Feb-08 7:17 
GeneralRe: Disable Try/Catch [modified] Pin
Dave Kreskowiak15-Feb-08 7:20
mveDave Kreskowiak15-Feb-08 7:20 
GeneralRe: Disable Try/Catch Pin
Luc Pattyn15-Feb-08 7:48
sitebuilderLuc Pattyn15-Feb-08 7:48 
GeneralRe: Disable Try/Catch Pin
cstrader23215-Feb-08 7:59
cstrader23215-Feb-08 7:59 
GeneralRe: Disable Try/Catch Pin
Luc Pattyn15-Feb-08 8:03
sitebuilderLuc Pattyn15-Feb-08 8:03 
GeneralRe: Disable Try/Catch Pin
Dave Kreskowiak15-Feb-08 8:24
mveDave Kreskowiak15-Feb-08 8:24 
GeneralRe: Disable Try/Catch Pin
Luc Pattyn15-Feb-08 10:18
sitebuilderLuc Pattyn15-Feb-08 10:18 
GeneralRe: Disable Try/Catch Pin
Dave Kreskowiak15-Feb-08 10:42
mveDave Kreskowiak15-Feb-08 10:42 
GeneralRe: Disable Try/Catch Pin
Luc Pattyn15-Feb-08 11:01
sitebuilderLuc Pattyn15-Feb-08 11:01 
GeneralRe: Disable Try/Catch Pin
Paul Conrad15-Feb-08 12:43
professionalPaul Conrad15-Feb-08 12:43 
GeneralException information detail Pin
cstrader23215-Feb-08 5:27
cstrader23215-Feb-08 5:27 
GeneralRe: Exception information detail Pin
Luc Pattyn15-Feb-08 6:05
sitebuilderLuc Pattyn15-Feb-08 6:05 
GeneralRe: Exception information detail Pin
cstrader23215-Feb-08 6:22
cstrader23215-Feb-08 6:22 
GeneralRe: Exception information detail Pin
cstrader23215-Feb-08 6:32
cstrader23215-Feb-08 6:32 
GeneralRe: Exception information detail Pin
Luc Pattyn15-Feb-08 7:30
sitebuilderLuc Pattyn15-Feb-08 7:30 

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.