Click here to Skip to main content
15,922,894 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionPrinting a form without the background. Pin
Samadara10-Dec-05 2:23
Samadara10-Dec-05 2:23 
QuestionCrystal Report Pin
tusar12310-Dec-05 0:57
tusar12310-Dec-05 0:57 
QuestionDataGrid Height . Pin
microuser_20009-Dec-05 23:52
microuser_20009-Dec-05 23:52 
AnswerRe: DataGrid Height . Pin
oakleaf10-Dec-05 4:14
oakleaf10-Dec-05 4:14 
QuestionTypeEditor for Extended Property Pin
xstoneheartx9-Dec-05 19:09
xstoneheartx9-Dec-05 19:09 
QuestionCapture image in VB.Net through Webcamera Pin
Pratap Chowdary9-Dec-05 17:50
Pratap Chowdary9-Dec-05 17:50 
Questionobject not set to instance Pin
ibigpapa9-Dec-05 15:36
ibigpapa9-Dec-05 15:36 
AnswerRe: object not set to instance Pin
Joshua Quick9-Dec-05 17:10
Joshua Quick9-Dec-05 17:10 
My guess is that this code is in your constructor (ie: Sub New) just above the InitializeComponent() method. Am I right?

You see, your member variable txtStatPath (which I'm guessing is a TextBox) is assigned a reference in the InitializeComponent() method. Before that method gets called, txtStatPath is initialized to Nothing which would cause that NullReferenceExcepection that you are seeing.

The best place to put this code is in your Form Load event.
AnswerRe: object not set to instance Pin
ibigpapa9-Dec-05 21:07
ibigpapa9-Dec-05 21:07 
GeneralRe: object not set to instance Pin
Joshua Quick12-Dec-05 9:09
Joshua Quick12-Dec-05 9:09 
GeneralRe: object not set to instance Pin
ibigpapa12-Dec-05 13:20
ibigpapa12-Dec-05 13:20 
GeneralRe: object not set to instance Pin
Joshua Quick12-Dec-05 13:46
Joshua Quick12-Dec-05 13:46 
QuestionCondition in WHERE clause in SQL Pin
andy389-Dec-05 15:26
andy389-Dec-05 15:26 
AnswerRe: Condition in WHERE clause in SQL Pin
uktrips0079-Dec-05 19:07
uktrips0079-Dec-05 19:07 
QuestionSaving Outsidefiles Pin
Luke_Nava9-Dec-05 13:03
Luke_Nava9-Dec-05 13:03 
AnswerRe: Saving Outsidefiles Pin
Joshua Quick9-Dec-05 13:34
Joshua Quick9-Dec-05 13:34 
QuestionDate conversion problem!!!! Pin
Omar Mallat9-Dec-05 12:13
professionalOmar Mallat9-Dec-05 12:13 
AnswerRe: Date conversion problem!!!! Pin
Omar Mallat9-Dec-05 12:56
professionalOmar Mallat9-Dec-05 12:56 
GeneralRe: Date conversion problem!!!! Pin
Joshua Quick9-Dec-05 13:30
Joshua Quick9-Dec-05 13:30 
GeneralRe: Date conversion problem!!!! Pin
Omar Mallat9-Dec-05 18:33
professionalOmar Mallat9-Dec-05 18:33 
Questionpdf 2 image with itextsharp ?? Pin
darth_toni9-Dec-05 9:25
darth_toni9-Dec-05 9:25 
QuestionHi ! Pin
abhishk2001@yahoo.com9-Dec-05 8:03
abhishk2001@yahoo.com9-Dec-05 8:03 
AnswerRe: Hi ! Pin
Brent Lamborn9-Dec-05 10:53
Brent Lamborn9-Dec-05 10:53 
Questionadd chars to text at KEYPRESS Pin
Greeky9-Dec-05 2:45
Greeky9-Dec-05 2:45 
AnswerRe: add chars to text at KEYPRESS Pin
Roy Heil9-Dec-05 7:33
professionalRoy Heil9-Dec-05 7:33 

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.