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

Visual Basic

 
GeneralOpen applicaiton Pin
Kumaran21cen12-Feb-08 19:57
Kumaran21cen12-Feb-08 19:57 
GeneralRe: Open applicaiton Pin
Christian Graus12-Feb-08 20:15
protectorChristian Graus12-Feb-08 20:15 
GeneralRe: Open applicaiton Pin
Kumaran21cen12-Feb-08 20:30
Kumaran21cen12-Feb-08 20:30 
Generallistbox in vb.net Pin
Anusubha.V.G12-Feb-08 18:28
Anusubha.V.G12-Feb-08 18:28 
GeneralRe: listbox in vb.net Pin
Nanda160512-Feb-08 18:44
Nanda160512-Feb-08 18:44 
GeneralRe: listbox in vb.net Pin
Anusubha.V.G12-Feb-08 22:34
Anusubha.V.G12-Feb-08 22:34 
GeneralRe: listbox in vb.net Pin
Christian Graus12-Feb-08 18:50
protectorChristian Graus12-Feb-08 18:50 
GeneralThe type initializer threw an exception. Pin
Nanda160512-Feb-08 18:08
Nanda160512-Feb-08 18:08 
Hi,

I am getting the 'Type initializer error' in module1 (for eg see the below code). The thing is i want to get the value from the dll which is added as a reference to this exe, where the value is declared in the module. Please Review the below code and suggest/help me.

Project1.dll
Module Module1<br />
	Public MyPath As String = "C:\Nanda"<br />
End Module


Public Class Class1<br />
<br />
	Public Sub Query()<br />
		MsgBox(MyPath, MsgBoxStyle.Information, "Project1")<br />
	End Sub<br />
<br />
End Class


Project2.exe

Public Class Form1<br />
<br />
Public MyReport As New Project1.Class1<br />
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
	MyReport.Query()<br />
End Sub<br />
End Class


Thanks,
Nanda

GeneralRe: The type initializer threw an exception. Pin
User 27100913-Feb-08 7:26
User 27100913-Feb-08 7:26 
GeneralGenerating Of Excel Reports - Problem Pin
HatakeKaKaShi12-Feb-08 17:53
HatakeKaKaShi12-Feb-08 17:53 
GeneralRe: Generating Of Excel Reports - Problem Pin
Mycroft Holmes12-Feb-08 20:59
professionalMycroft Holmes12-Feb-08 20:59 
GeneralRe: Generating Of Excel Reports - Problem Pin
HatakeKaKaShi12-Feb-08 21:16
HatakeKaKaShi12-Feb-08 21:16 
GeneralRe: Generating Of Excel Reports - Problem Pin
Johan Hakkesteegt13-Feb-08 0:05
Johan Hakkesteegt13-Feb-08 0:05 
QuestionVB.Net - how to update table.. Pin
zaimah12-Feb-08 15:49
zaimah12-Feb-08 15:49 
GeneralRe: VB.Net - how to update table.. Pin
Christian Graus12-Feb-08 16:01
protectorChristian Graus12-Feb-08 16:01 
GeneralRe: VB.Net - how to update table.. Pin
zaimah12-Feb-08 16:40
zaimah12-Feb-08 16:40 
GeneralRe: VB.Net - how to update table.. Pin
Christian Graus12-Feb-08 17:31
protectorChristian Graus12-Feb-08 17:31 
QuestionAssociation of list and images Pin
Alexandre HEMEURY12-Feb-08 10:07
Alexandre HEMEURY12-Feb-08 10:07 
GeneralRe: Association of list and images Pin
Christian Graus12-Feb-08 10:53
protectorChristian Graus12-Feb-08 10:53 
Questionlistview item stored in a file Pin
Alexandre HEMEURY12-Feb-08 10:03
Alexandre HEMEURY12-Feb-08 10:03 
GeneralRe: listview item stored in a file Pin
Christian Graus12-Feb-08 10:54
protectorChristian Graus12-Feb-08 10:54 
Generaladd checkbox to listbox Pin
hassanasp12-Feb-08 6:50
hassanasp12-Feb-08 6:50 
GeneralRe: add checkbox to listbox Pin
Eslam Afifi12-Feb-08 7:30
Eslam Afifi12-Feb-08 7:30 
Generalcalling Cobol stored procedure from .NET Pin
jchigg200012-Feb-08 4:06
jchigg200012-Feb-08 4:06 
GeneralRe: calling Cobol stored procedure from .NET Pin
Christian Graus12-Feb-08 10:56
protectorChristian Graus12-Feb-08 10:56 

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.