Click here to Skip to main content
15,886,362 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: insert statment Pin
thealca19-Jul-05 22:50
thealca19-Jul-05 22:50 
GeneralCard32.dll mouse event Pin
StealthMaker19-Jul-05 10:05
StealthMaker19-Jul-05 10:05 
GeneralNeed suggestions on using a barcode scanner as a input device Pin
spettiford19-Jul-05 9:12
spettiford19-Jul-05 9:12 
GeneralRe: Need suggestions on using a barcode scanner as a input device Pin
thealca19-Jul-05 13:54
thealca19-Jul-05 13:54 
GeneralRe: Need suggestions on using a barcode scanner as a input device Pin
spettiford20-Jul-05 7:37
spettiford20-Jul-05 7:37 
GeneralRe: Need suggestions on using a barcode scanner as a input device Pin
thealca20-Jul-05 13:32
thealca20-Jul-05 13:32 
GeneralRe: Need suggestions on using a barcode scanner as a input device Pin
Anonymous21-Jul-05 3:28
Anonymous21-Jul-05 3:28 
QuestionOpen/Close Forms: Has anybody seen this problem? Pin
Brad Fackrell19-Jul-05 8:47
Brad Fackrell19-Jul-05 8:47 
I show/hide different forms by defining the forms in a module:

Public Class formLibrary

    Public Shared frmMain As Form
    Public Shared frmComponents As Form
    Public Shared frmNewProject As Form
    ....

End Class

Then I use the following to close the current form and open another:

Dim newFrmMain As New frmMain
formLibrary.frmNewProject.Hide()
newFrmMain.ShowDialog()

This is working perfect for all forms in my project except one. When I attempt to open the frmNewProject, I get this error:
An unhandled exception of type 'System.NullReferenceException' occurred in Mule! Data Management Tool.exe
Additional information: Object reference not set to an instance of an object.


..on this line of code:

formLibrary.frmNewProject.Hide()

Has anybody ever experienced a problem like this?

Thanks
Brad
AnswerRe: Open/Close Forms: Has anybody seen this problem? Pin
Anonymous19-Jul-05 9:45
Anonymous19-Jul-05 9:45 
GeneralRe: Open/Close Forms: Has anybody seen this problem? Pin
Anonymous19-Jul-05 9:48
Anonymous19-Jul-05 9:48 
GeneralRe: Open/Close Forms: Has anybody seen this problem? Pin
Brad Fackrell19-Jul-05 10:00
Brad Fackrell19-Jul-05 10:00 
GeneralRe: Open/Close Forms: Has anybody seen this problem? Pin
Anonymous19-Jul-05 13:05
Anonymous19-Jul-05 13:05 
GeneralRe: Open/Close Forms: Has anybody seen this problem? Pin
Brad Fackrell20-Jul-05 2:26
Brad Fackrell20-Jul-05 2:26 
GeneralRe: Open/Close Forms: Has anybody seen this problem? Pin
Anonymous20-Jul-05 3:44
Anonymous20-Jul-05 3:44 
GeneralRe: Open/Close Forms: Has anybody seen this problem? Pin
Brad Fackrell20-Jul-05 4:02
Brad Fackrell20-Jul-05 4:02 
GeneralRe: Open/Close Forms: Has anybody seen this problem? Pin
Anonymous20-Jul-05 4:47
Anonymous20-Jul-05 4:47 
GeneralRe: Open/Close Forms: Has anybody seen this problem? Pin
Brad Fackrell20-Jul-05 5:26
Brad Fackrell20-Jul-05 5:26 
GeneralRe: Open/Close Forms: Has anybody seen this problem? Pin
Anonymous20-Jul-05 5:47
Anonymous20-Jul-05 5:47 
GeneralRe: Open/Close Forms: Has anybody seen this problem? Pin
Brad Fackrell20-Jul-05 9:08
Brad Fackrell20-Jul-05 9:08 
GeneralUrgently need help for inserting value from .net CF to SQL CE database Pin
19-Jul-05 8:38
suss19-Jul-05 8:38 
GeneralHelp: System.Reflection.TargetInvocationException Pin
Anonymous19-Jul-05 7:22
Anonymous19-Jul-05 7:22 
GeneralPopulating Dropdown list Pin
macca2419-Jul-05 5:27
macca2419-Jul-05 5:27 
GeneralRe: Populating Dropdown list Pin
StealthMaker19-Jul-05 10:14
StealthMaker19-Jul-05 10:14 
GeneralCombo Box row selected Pin
directred19-Jul-05 1:14
directred19-Jul-05 1:14 
GeneralRe: Combo Box row selected Pin
toxcct19-Jul-05 1:23
toxcct19-Jul-05 1:23 

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.