Click here to Skip to main content
15,929,263 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to write a dll code and prevent multiple instance? Pin
Pete O'Hanlon22-Nov-07 9:28
mvePete O'Hanlon22-Nov-07 9:28 
AnswerRe: how to write a dll code and prevent multiple instance? Pin
llllllkk22-Nov-07 20:13
llllllkk22-Nov-07 20:13 
QuestionSelecting an item in a checked listview when form loads Pin
Lucy22-Nov-07 3:42
Lucy22-Nov-07 3:42 
AnswerRe: Selecting an item in a checked listview when form loads Pin
J4amieC22-Nov-07 3:47
J4amieC22-Nov-07 3:47 
GeneralRe: Selecting an item in a checked listview when form loads Pin
Lucy22-Nov-07 3:51
Lucy22-Nov-07 3:51 
AnswerRe: Selecting an item in a checked listview when form loads Pin
Andrei Ungureanu22-Nov-07 3:53
Andrei Ungureanu22-Nov-07 3:53 
GeneralRe: Selecting an item in a checked listview when form loads Pin
Lucy22-Nov-07 3:55
Lucy22-Nov-07 3:55 
GeneralRe: Selecting an item in a checked listview when form loads Pin
Andrei Ungureanu22-Nov-07 4:05
Andrei Ungureanu22-Nov-07 4:05 
Well....I will just give you an idea. The StackOverflow exception is because in the CheckChanged event you change the checked property of the listview items, thus this generating another checkchanged event, and so you enter in a infinite loop, which at a certain moment fills the system's stack and the program stops. To avoid this situation you should check if the checkedchanged event has been triggered by the user or by your code. I situation almost like these I used to use a boolean value which is set to true if I change the checked property of an item, or false if the user checks the item, and in the event handler method do whatever you need depending on the value. It's just an idea to work around this problem...maybe you'll find another one.

Hope it helps.

I will use Google before asking dumb questions

GeneralRe: Selecting an item in a checked listview when form loads Pin
Lucy22-Nov-07 4:11
Lucy22-Nov-07 4:11 
Questionpanel idle Pin
Fkabir22-Nov-07 3:03
Fkabir22-Nov-07 3:03 
AnswerRe: panel idle Pin
Mustafa Ismail Mustafa22-Nov-07 3:50
Mustafa Ismail Mustafa22-Nov-07 3:50 
GeneralRe: panel idle Pin
Fkabir22-Nov-07 6:48
Fkabir22-Nov-07 6:48 
GeneralRe: panel idle Pin
Mustafa Ismail Mustafa22-Nov-07 8:52
Mustafa Ismail Mustafa22-Nov-07 8:52 
QuestionReplace data in DataTable Column Pin
MumbleB22-Nov-07 2:39
MumbleB22-Nov-07 2:39 
AnswerRe: Replace data in DataTable Column Pin
Andrei Ungureanu22-Nov-07 2:44
Andrei Ungureanu22-Nov-07 2:44 
GeneralRe: Replace data in DataTable Column Pin
MumbleB22-Nov-07 3:03
MumbleB22-Nov-07 3:03 
GeneralRe: Replace data in DataTable Column Pin
Andrei Ungureanu22-Nov-07 3:14
Andrei Ungureanu22-Nov-07 3:14 
GeneralRe: Replace data in DataTable Column Pin
MumbleB22-Nov-07 4:48
MumbleB22-Nov-07 4:48 
AnswerRe: Replace data in DataTable Column Pin
Whytespot22-Nov-07 5:29
Whytespot22-Nov-07 5:29 
GeneralRe: Replace data in DataTable Column Pin
MumbleB22-Nov-07 5:41
MumbleB22-Nov-07 5:41 
GeneralRe: Replace data in DataTable Column Pin
Whytespot22-Nov-07 5:59
Whytespot22-Nov-07 5:59 
GeneralRe: Replace data in DataTable Column Pin
MumbleB22-Nov-07 6:15
MumbleB22-Nov-07 6:15 
GeneralRe: Replace data in DataTable Column Pin
Whytespot22-Nov-07 6:20
Whytespot22-Nov-07 6:20 
GeneralRe: Replace data in DataTable Column Pin
MumbleB22-Nov-07 6:37
MumbleB22-Nov-07 6:37 
QuestionHow to prevent DataGridView from skipping to next row after edit/Enter Pin
Dragan Matic22-Nov-07 1:24
Dragan Matic22-Nov-07 1:24 

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.