Click here to Skip to main content
15,888,984 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: VB.NET 2008 The type initializer for ... threw an exception Pin
Eddy Vluggen20-Sep-11 6:20
professionalEddy Vluggen20-Sep-11 6:20 
GeneralRe: VB.NET 2008 The type initializer for ... threw an exception Pin
QuickBooksDev20-Sep-11 7:12
QuickBooksDev20-Sep-11 7:12 
GeneralRe: VB.NET 2008 The type initializer for ... threw an exception Pin
QuickBooksDev20-Sep-11 7:38
QuickBooksDev20-Sep-11 7:38 
GeneralRe: VB.NET 2008 The type initializer for ... threw an exception Pin
Eddy Vluggen20-Sep-11 7:58
professionalEddy Vluggen20-Sep-11 7:58 
GeneralRe: VB.NET 2008 The type initializer for ... threw an exception Pin
QuickBooksDev20-Sep-11 9:42
QuickBooksDev20-Sep-11 9:42 
GeneralRe: VB.NET 2008 The type initializer for ... threw an exception Pin
Eddy Vluggen20-Sep-11 10:40
professionalEddy Vluggen20-Sep-11 10:40 
GeneralRe: VB.NET 2008 The type initializer for ... threw an exception Pin
QuickBooksDev21-Sep-11 3:32
QuickBooksDev21-Sep-11 3:32 
AnswerRe: VB.NET 2008 The type initializer for ... threw an exception Pin
Eddy Vluggen21-Sep-11 7:14
professionalEddy Vluggen21-Sep-11 7:14 
QBTeKcom wrote:
I still would like to know why this one failed and all the others worked.

Simple; it does something different from the others, or they would fail equally.

QBTeKcom wrote:
What would cause the module to be invoked before the frmMain constuctors?

Modules can't be "invoked", methods within the module can. I'm doubting that the module has it's own constructor (similar to a static class) - so what method is getting called?

Your app begins on it's entry-point, and might have a StartUp[^]-event defined. Next, it'd load the main-form, and all controls on it.

If any of those touch a module, it'd cause initialization of that static class. In other words; calling a method from a module for the first time would cause it to be loaded, no sooner. Finding out is done by stepping through your code. Press F10 to start your project and execute it step by step and line by line.

I can give better advice if you posted your code, especially the method where the form is created Smile | :)
Bastard Programmer from Hell Suspicious | :suss:

GeneralRe: VB.NET 2008 The type initializer for ... threw an exception Pin
QuickBooksDev23-Sep-11 1:45
QuickBooksDev23-Sep-11 1:45 
GeneralRe: VB.NET 2008 The type initializer for ... threw an exception Pin
Eddy Vluggen23-Sep-11 8:48
professionalEddy Vluggen23-Sep-11 8:48 
QuestionDatabase Design Fields Pin
Eyo118-Sep-11 23:24
Eyo118-Sep-11 23:24 
AnswerRe: Database Design Fields Pin
Eddy Vluggen19-Sep-11 12:09
professionalEddy Vluggen19-Sep-11 12:09 
QuestionHow do I open a url in a custom VB.net tab control brower Pin
kamakazy_kid17-Sep-11 23:17
kamakazy_kid17-Sep-11 23:17 
AnswerRe: How do I open a url in a custom VB.net tab control brower Pin
DaveAuld17-Sep-11 23:41
professionalDaveAuld17-Sep-11 23:41 
GeneralRe: How do I open a url in a custom VB.net tab control brower Pin
kamakazy_kid18-Sep-11 1:28
kamakazy_kid18-Sep-11 1:28 
GeneralRe: How do I open a url in a custom VB.net tab control brower Pin
DaveAuld18-Sep-11 1:35
professionalDaveAuld18-Sep-11 1:35 
GeneralRe: How do I open a url in a custom VB.net tab control brower Pin
kamakazy_kid18-Sep-11 2:18
kamakazy_kid18-Sep-11 2:18 
GeneralRe: How do I open a url in a custom VB.net tab control brower Pin
DaveAuld18-Sep-11 2:24
professionalDaveAuld18-Sep-11 2:24 
GeneralRe: How do I open a url in a custom VB.net tab control brower Pin
kamakazy_kid18-Sep-11 4:59
kamakazy_kid18-Sep-11 4:59 
GeneralRe: How do I open a url in a custom VB.net tab control brower [modified] Pin
DaveAuld18-Sep-11 5:17
professionalDaveAuld18-Sep-11 5:17 
GeneralRe: How do I open a url in a custom VB.net tab control brower Pin
kamakazy_kid18-Sep-11 16:14
kamakazy_kid18-Sep-11 16:14 
GeneralRe: How do I open a url in a custom VB.net tab control brower Pin
DaveAuld18-Sep-11 19:28
professionalDaveAuld18-Sep-11 19:28 
GeneralRe: How do I open a url in a custom VB.net tab control brower Pin
kamakazy_kid20-Sep-11 3:57
kamakazy_kid20-Sep-11 3:57 
GeneralRe: How do I open a url in a custom VB.net tab control brower Pin
kamakazy_kid20-Sep-11 5:55
kamakazy_kid20-Sep-11 5:55 
GeneralRe: How do I open a url in a custom VB.net tab control brower Pin
kamakazy_kid22-Sep-11 3:11
kamakazy_kid22-Sep-11 3:11 

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.