Click here to Skip to main content
15,887,175 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How I fill different image boxes through a loop VB.NET Pin
dan!sh 3-Aug-09 2:24
professional dan!sh 3-Aug-09 2:24 
QuestionTest For Null Pin
JasonD_S3-Aug-09 0:12
JasonD_S3-Aug-09 0:12 
AnswerRe: Test For Null Pin
dan!sh 3-Aug-09 0:21
professional dan!sh 3-Aug-09 0:21 
GeneralRe: Test For Null Pin
JasonD_S3-Aug-09 0:39
JasonD_S3-Aug-09 0:39 
GeneralRe: Test For Null Pin
dan!sh 3-Aug-09 1:01
professional dan!sh 3-Aug-09 1:01 
General[Message Deleted] Pin
Johan Hakkesteegt3-Aug-09 1:05
Johan Hakkesteegt3-Aug-09 1:05 
GeneralRe: Test For Null Pin
JasonD_S3-Aug-09 1:15
JasonD_S3-Aug-09 1:15 
GeneralRe: Test For Null Pin
Johan Hakkesteegt3-Aug-09 1:28
Johan Hakkesteegt3-Aug-09 1:28 
You're on the right track though.

The best way to go is to start of with the Try Catch block and MsgBox(ex.ToString) in the Catch clause. Turning on line numbers in your code editor is also a good idea.

Then when you get these NullReferenceExceptions, you'll know exactly which object is causing the error.

Next thing is combining checks, on separate lines, so that you always first check for Is Nothing, and only then for anything else like null or empty strings, etc.

My advice is free, and you may get what you paid for.

GeneralRe: Test For Null Pin
JasonD_S3-Aug-09 1:55
JasonD_S3-Aug-09 1:55 
AnswerRe: Test For Null Pin
Kschuler3-Aug-09 8:01
Kschuler3-Aug-09 8:01 
QuestionHow do i Multiply Bytes w/o overflow (Like char in c++) ? Pin
Kobi_Z2-Aug-09 21:38
Kobi_Z2-Aug-09 21:38 
AnswerRe: How do i Multiply Bytes w/o overflow (Like char in c++) ? Pin
Christian Graus2-Aug-09 22:00
protectorChristian Graus2-Aug-09 22:00 
GeneralRe: How do i Multiply Bytes w/o overflow (Like char in c++) ? Pin
Kobi_Z2-Aug-09 22:25
Kobi_Z2-Aug-09 22:25 
GeneralRe: How do i Multiply Bytes w/o overflow (Like char in c++) ? Pin
Christian Graus2-Aug-09 22:28
protectorChristian Graus2-Aug-09 22:28 
GeneralRe: How do i Multiply Bytes w/o overflow (Like char in c++) ? Pin
riced2-Aug-09 23:41
riced2-Aug-09 23:41 
AnswerRe: How do i Multiply Bytes w/o overflow (Like char in c++) ? Pin
dan!sh 2-Aug-09 22:43
professional dan!sh 2-Aug-09 22:43 
GeneralRe: How do i Multiply Bytes w/o overflow (Like char in c++) ? Pin
Kobi_Z3-Aug-09 0:22
Kobi_Z3-Aug-09 0:22 
AnswerRe: How do i Multiply Bytes w/o overflow (Like char in c++) ? Pin
KarstenK3-Aug-09 0:39
mveKarstenK3-Aug-09 0:39 
QuestionWhich is the best and sure way to shutdown systems Pin
Amer Rehman2-Aug-09 20:55
Amer Rehman2-Aug-09 20:55 
AnswerRe: Which is the best and sure way to shutdown systems Pin
Johan Hakkesteegt3-Aug-09 1:41
Johan Hakkesteegt3-Aug-09 1:41 
AnswerRe: Which is the best and sure way to shutdown systems Pin
Dave Kreskowiak3-Aug-09 2:03
mveDave Kreskowiak3-Aug-09 2:03 
Questionhaving problems (Public Shared Sub ShowTcpStatistics) Statement cannot within method body. End of method assumed// which is affecting my txtbox.Text Pin
that_dude_tj2-Aug-09 10:59
that_dude_tj2-Aug-09 10:59 
AnswerRe: having problems (Public Shared Sub ShowTcpStatistics) Statement cannot within method body. End of method assumed// which is affecting my txtbox.Text Pin
Christian Graus2-Aug-09 11:45
protectorChristian Graus2-Aug-09 11:45 
AnswerRe: having problems (Public Shared Sub ShowTcpStatistics) Statement cannot within method body. End of method assumed// which is affecting my txtbox.Text Pin
Dave Kreskowiak2-Aug-09 11:46
mveDave Kreskowiak2-Aug-09 11:46 
Generaltxtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
that_dude_tj2-Aug-09 12:32
that_dude_tj2-Aug-09 12:32 

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.