Click here to Skip to main content
15,911,142 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to access checkbox control, which is in Datagrid view Pin
Xmen Real 10-Mar-09 2:31
professional Xmen Real 10-Mar-09 2:31 
Question.Net default proxy setting Pin
George_George10-Mar-09 0:53
George_George10-Mar-09 0:53 
QuestionObject reference not set to an instance of an object Pin
mrithula810-Mar-09 0:48
mrithula810-Mar-09 0:48 
AnswerRe: Object reference not set to an instance of an object Pin
Pete O'Hanlon10-Mar-09 1:00
mvePete O'Hanlon10-Mar-09 1:00 
AnswerRe: Object reference not set to an instance of an object Pin
NeCroFire10-Mar-09 1:03
NeCroFire10-Mar-09 1:03 
AnswerRe: Object reference not set to an instance of an object Pin
Rutvik Dave10-Mar-09 4:24
professionalRutvik Dave10-Mar-09 4:24 
GeneralRe: Object reference not set to an instance of an object Pin
mrithula811-Mar-09 19:18
mrithula811-Mar-09 19:18 
GeneralRe: Object reference not set to an instance of an object Pin
Rutvik Dave12-Mar-09 3:57
professionalRutvik Dave12-Mar-09 3:57 
Whats in the path.xml ? just dump it here (if it is not very large).

I think the following code is causing error. somthing wrong with the string assignments.

String ss = listBox1.SelectedItem.ToString();


I think, this is causing problem. what if listbox1 is not selected ? and at the first time when form is loading its not selected. so that is causing problem.

try this one instead,

String ss;
if(listBox1.SelectedIndex >= 0)
    ss = listBox1.SelectedItem.ToString();
else
    ss = listBox1.Items[0].ToString(); //this will select the first item in the listbox

GeneralRe: Object reference not set to an instance of an object Pin
fandikurnia6-Apr-09 21:10
fandikurnia6-Apr-09 21:10 
QuestionParsing "javascript-driven" webpage Pin
whaka10-Mar-09 0:30
whaka10-Mar-09 0:30 
QuestionIn use by another process Pin
abbd10-Mar-09 0:23
abbd10-Mar-09 0:23 
AnswerRe: In use by another process Pin
dan!sh 10-Mar-09 0:38
professional dan!sh 10-Mar-09 0:38 
AnswerRe: In use by another process Pin
Luc Pattyn10-Mar-09 0:42
sitebuilderLuc Pattyn10-Mar-09 0:42 
GeneralRe: In use by another process Pin
Xmen Real 10-Mar-09 2:36
professional Xmen Real 10-Mar-09 2:36 
QuestionRe: In use by another process Pin
abbd10-Mar-09 4:10
abbd10-Mar-09 4:10 
AnswerRe: In use by another process Pin
Xmen Real 10-Mar-09 4:12
professional Xmen Real 10-Mar-09 4:12 
QuestionRe: In use by another process Pin
abbd10-Mar-09 4:19
abbd10-Mar-09 4:19 
QuestionThrowing an exception in a constructor Pin
Rob Philpott9-Mar-09 23:47
Rob Philpott9-Mar-09 23:47 
AnswerRe: Throwing an exception in a constructor Pin
Eddy Vluggen10-Mar-09 0:02
professionalEddy Vluggen10-Mar-09 0:02 
GeneralRe: Throwing an exception in a constructor Pin
Rob Philpott10-Mar-09 0:05
Rob Philpott10-Mar-09 0:05 
GeneralRe: Throwing an exception in a constructor Pin
Eddy Vluggen10-Mar-09 0:15
professionalEddy Vluggen10-Mar-09 0:15 
AnswerRe: Throwing an exception in a constructor Pin
Luc Pattyn10-Mar-09 0:44
sitebuilderLuc Pattyn10-Mar-09 0:44 
GeneralRe: Throwing an exception in a constructor Pin
Eddy Vluggen10-Mar-09 0:49
professionalEddy Vluggen10-Mar-09 0:49 
AnswerRe: Throwing an exception in a constructor Pin
dan!sh 10-Mar-09 0:06
professional dan!sh 10-Mar-09 0:06 
GeneralRe: Throwing an exception in a constructor Pin
Rob Philpott10-Mar-09 0:11
Rob Philpott10-Mar-09 0:11 

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.