Click here to Skip to main content
16,005,206 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: how to convert c# code into vb.net 2005 code Pin
Dave Doknjas28-Jul-07 12:47
Dave Doknjas28-Jul-07 12:47 
QuestionObject reference not set to an instance of an object [modified] Pin
ASPnoob27-Jul-07 19:36
ASPnoob27-Jul-07 19:36 
AnswerRe: Object reference not set to an instance of an object Pin
Christian Graus27-Jul-07 19:54
protectorChristian Graus27-Jul-07 19:54 
AnswerRe: Object reference not set to an instance of an object Pin
Paul Conrad27-Jul-07 19:58
professionalPaul Conrad27-Jul-07 19:58 
GeneralRe: Object reference not set to an instance of an object Pin
ASPnoob27-Jul-07 20:49
ASPnoob27-Jul-07 20:49 
GeneralRe: Object reference not set to an instance of an object Pin
Paul Conrad27-Jul-07 21:08
professionalPaul Conrad27-Jul-07 21:08 
GeneralRe: Object reference not set to an instance of an object Pin
ASPnoob27-Jul-07 21:30
ASPnoob27-Jul-07 21:30 
GeneralRe: Object reference not set to an instance of an object Pin
Christian Graus27-Jul-07 21:35
protectorChristian Graus27-Jul-07 21:35 
Honestly, if you're stepping through the code, and you can't work out what object does not have a value, then you should seriously re-evaluate this whole programming thing.

Something is set to Nothing, which means you've not given it a value. Work out what it is by checking the values of all the variables in use in the line that blows up. Stop saying things like 'I tried what Christian said and it didn't work'. What I said is correct, so if you can't make it work then post the code, so we can help you. You're iterating over the items collection, when there is a property that gives you what you want, the selected value. If the SelectedValue throws the same exception, then the control itself is probably null, but again, you have to step through the debugger and work that out.


Christian Graus - Microsoft MVP - C++

"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

AnswerRe: Object reference not set to an instance of an object Pin
Christian Graus27-Jul-07 21:40
protectorChristian Graus27-Jul-07 21:40 
AnswerMessage formatting question (expires on sunday) Pin
Luc Pattyn27-Jul-07 23:24
sitebuilderLuc Pattyn27-Jul-07 23:24 
GeneralRe: Message formatting question (expires on sunday) Pin
ASPnoob28-Jul-07 7:55
ASPnoob28-Jul-07 7:55 
GeneralRe: Message formatting question (expires on sunday) Pin
Luc Pattyn28-Jul-07 9:08
sitebuilderLuc Pattyn28-Jul-07 9:08 
GeneralRe: Message formatting question (expires on sunday) Pin
ASPnoob28-Jul-07 13:47
ASPnoob28-Jul-07 13:47 
GeneralRe: Message formatting question (expires on sunday) Pin
Luc Pattyn28-Jul-07 13:57
sitebuilderLuc Pattyn28-Jul-07 13:57 
Questionhow to make a word pad like application in vb.net Pin
eyes200727-Jul-07 19:33
eyes200727-Jul-07 19:33 
AnswerRe: how to make a word pad like application in vb.net Pin
Paul Conrad27-Jul-07 19:34
professionalPaul Conrad27-Jul-07 19:34 
GeneralRe: how to make a word pad like application in vb.net Pin
eyes200727-Jul-07 20:21
eyes200727-Jul-07 20:21 
GeneralRe: how to make a word pad like application in vb.net Pin
Paul Conrad27-Jul-07 20:34
professionalPaul Conrad27-Jul-07 20:34 
GeneralRe: how to make a word pad like application in vb.net Pin
eyes200727-Jul-07 21:19
eyes200727-Jul-07 21:19 
GeneralRe: how to make a word pad like application in vb.net Pin
Paul Conrad28-Jul-07 5:48
professionalPaul Conrad28-Jul-07 5:48 
AnswerRe: how to make a word pad like application in vb.net Pin
BarCode28-Jul-07 5:31
BarCode28-Jul-07 5:31 
GeneralRe: how to make a word pad like application in vb.net Pin
Paul Conrad28-Jul-07 5:49
professionalPaul Conrad28-Jul-07 5:49 
QuestionString compare from different text files Pin
sweehin1827-Jul-07 12:38
sweehin1827-Jul-07 12:38 
AnswerRe: String compare from different text files Pin
Christian Graus27-Jul-07 13:00
protectorChristian Graus27-Jul-07 13:00 
GeneralRe: String compare from different text files Pin
sweehin1827-Jul-07 13:33
sweehin1827-Jul-07 13: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.