Click here to Skip to main content
15,890,690 members
Home / Discussions / C#
   

C#

 
AnswerRe: Timer Controll in Thread Pin
#realJSOP9-Jun-08 2:51
mve#realJSOP9-Jun-08 2:51 
AnswerRe: Timer Controll in Thread Pin
PIEBALDconsult9-Jun-08 5:51
mvePIEBALDconsult9-Jun-08 5:51 
GeneralRe: Timer Controll in Thread Pin
#realJSOP9-Jun-08 5:54
mve#realJSOP9-Jun-08 5:54 
GeneralRe: Timer Controll in Thread Pin
PIEBALDconsult9-Jun-08 13:41
mvePIEBALDconsult9-Jun-08 13:41 
GeneralRe: Timer Controll in Thread Pin
#realJSOP10-Jun-08 0:11
mve#realJSOP10-Jun-08 0:11 
Questionserialize atextbox control Pin
Elesh8-Jun-08 23:41
Elesh8-Jun-08 23:41 
GeneralRe: serialize atextbox control Pin
ncjlee9-Jun-08 0:33
ncjlee9-Jun-08 0:33 
QuestionListBox throwing a "Not valid value"-exception Pin
Gadjuka8-Jun-08 23:14
Gadjuka8-Jun-08 23:14 
Hi all!

I'm having a problem with checkedlistbox.
At one point I want to update the data associated with the selected item, which is a struct I defined. When I try to do this I get an error:
"Specified argument was out of the range of valid values.Parameter name: '-1'is not a valid value for 'index'"
And then the last item in the list is removed.

CheckedListBoxItem temp = (CheckedListBoxItem)clbFormats.Items[clbFormats.SelectedIndex];
temp.Update = chkUpdate.Checked;
clbFormats.Items[clbFormats.SelectedIndex] = temp;	// <-- This is where it raises an error


The thing is that clbFormats.SelectedIndex isn't -1, it's 0 if I add it to the watch window. And if I do that same with clbFormats.Items[clbFormats.SelectedIndex] it also shows the correct, valid values.
And what's even stranger is that this code works if I compile it in VS2005, unfortunately I have to use VS2003.

/Gadjuka
AnswerRe: ListBox throwing a "Not valid value"-exception Pin
#realJSOP9-Jun-08 2:57
mve#realJSOP9-Jun-08 2:57 
GeneralRe: ListBox throwing a "Not valid value"-exception Pin
Gadjuka9-Jun-08 20:02
Gadjuka9-Jun-08 20:02 
GeneralRe: ListBox throwing a "Not valid value"-exception Pin
#realJSOP10-Jun-08 0:10
mve#realJSOP10-Jun-08 0:10 
QuestionSortedDictionary v.s. Dictionary Pin
George_George8-Jun-08 22:41
George_George8-Jun-08 22:41 
AnswerRe: SortedDictionary v.s. Dictionary Pin
leppie9-Jun-08 3:43
leppie9-Jun-08 3:43 
GeneralRe: SortedDictionary v.s. Dictionary Pin
George_George9-Jun-08 16:57
George_George9-Jun-08 16:57 
QuestionX509Store from file Pin
komadich8-Jun-08 22:40
komadich8-Jun-08 22:40 
GeneralRe: X509Store from file Pin
telha9-Jun-08 0:40
telha9-Jun-08 0:40 
QuestionEncoding problem with string from DLL Pin
steve_rm8-Jun-08 21:46
steve_rm8-Jun-08 21:46 
AnswerRe: Encoding problem with string from DLL Pin
ncjlee8-Jun-08 21:56
ncjlee8-Jun-08 21:56 
QuestionRe: Encoding problem with string from DLL Pin
steve_rm9-Jun-08 1:45
steve_rm9-Jun-08 1:45 
AnswerRe: Encoding problem with string from DLL Pin
ncjlee9-Jun-08 2:40
ncjlee9-Jun-08 2:40 
QuestionRe: Encoding problem with string from DLL Pin
steve_rm9-Jun-08 16:33
steve_rm9-Jun-08 16:33 
Questioni want to upload all files from one folder( in client side) to server without browse option Pin
md_azy8-Jun-08 21:30
md_azy8-Jun-08 21:30 
AnswerRe: i want to upload all files from one folder( in client side) to server without browse option Pin
Guffa8-Jun-08 21:33
Guffa8-Jun-08 21:33 
GeneralRe: i want to upload all files from one folder( in client side) to server without browse option Pin
md_azy9-Jun-08 1:29
md_azy9-Jun-08 1:29 
GeneralRe: i want to upload all files from one folder( in client side) to server without browse option Pin
Guffa9-Jun-08 6:38
Guffa9-Jun-08 6:38 

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.