Click here to Skip to main content
15,917,062 members
Home / Discussions / C#
   

C#

 
Questionhow to write code to download file Pin
uowzd015-Dec-07 12:05
uowzd015-Dec-07 12:05 
GeneralRe: how to write code to download file Pin
Christian Graus5-Dec-07 12:11
protectorChristian Graus5-Dec-07 12:11 
GeneralRe: how to write code to download file Pin
uowzd015-Dec-07 13:16
uowzd015-Dec-07 13:16 
QuestionSelectionColor in RichTextBox when minimized Pin
Johan Martensson5-Dec-07 11:45
Johan Martensson5-Dec-07 11:45 
AnswerRe: SelectionColor in RichTextBox when minimized Pin
bcool6330316-Apr-09 4:46
bcool6330316-Apr-09 4:46 
GeneralDataset rowfilter Pin
Scalee5-Dec-07 10:19
Scalee5-Dec-07 10:19 
QuestionFraming JScript Exceptions in C#? Pin
kumar.bs5-Dec-07 10:02
kumar.bs5-Dec-07 10:02 
QuestionDataGridView DoubleClick Event handler fails when CTRL key is held while DoubleClicking Pin
alanteigne5-Dec-07 10:01
alanteigne5-Dec-07 10:01 
Hello,

I have a DataGridView that is dynamically populated and configured for row select, multiselect = no. When a row is double clicked, an event handler is fired which runs a function based on the Row index. The row index is referenced as follows:

myDgv.SelectedRows[0].Cells[2].Value.ToString()

This works great, until the user is holding the CTRL key while double clicking. I get an "index out of range error", making me think holding the CTRL key changes the value the above code returns.

Has anyone ran into this before? I'm not sure what to do, other than catch the error and fail the event. Any ideas are appreciated!

Thanks,

Alan
GeneralRe: DataGridView DoubleClick Event handler fails when CTRL key is held while DoubleClicking Pin
alanteigne6-Dec-07 2:07
alanteigne6-Dec-07 2:07 
AnswerRe: DataGridView DoubleClick Event handler fails when CTRL key is held while DoubleClicking Pin
alanteigne6-Dec-07 5:24
alanteigne6-Dec-07 5:24 
QuestionHow can I get the call stack of a StackOverflowException? Pin
Dr. Spack5-Dec-07 10:00
Dr. Spack5-Dec-07 10:00 
GeneralRe: How can I save the call stack of a StackOverflowException? Pin
Robert Royall5-Dec-07 10:50
Robert Royall5-Dec-07 10:50 
GeneralRe: How can I save the call stack of a StackOverflowException? Pin
Dr. Spack5-Dec-07 23:30
Dr. Spack5-Dec-07 23:30 
Generalnavigating all nodes in a win forms treeview Pin
radi85-Dec-07 8:38
radi85-Dec-07 8:38 
GeneralRe: navigating all nodes in a win forms treeview Pin
Giorgi Dalakishvili5-Dec-07 8:53
mentorGiorgi Dalakishvili5-Dec-07 8:53 
GeneralRe: navigating all nodes in a win forms treeview Pin
radi85-Dec-07 8:55
radi85-Dec-07 8:55 
GeneralRe: navigating all nodes in a win forms treeview Pin
Pete O'Hanlon5-Dec-07 9:19
mvePete O'Hanlon5-Dec-07 9:19 
GeneralRe: navigating all nodes in a win forms treeview Pin
radi86-Dec-07 6:10
radi86-Dec-07 6:10 
QuestionFind name of declaring property of an object Pin
Joby15-Dec-07 8:37
Joby15-Dec-07 8:37 
GeneralRe: Find name of declaring property of an object Pin
Christian Graus5-Dec-07 9:16
protectorChristian Graus5-Dec-07 9:16 
GeneralRe: Find name of declaring property of an object Pin
Pete O'Hanlon5-Dec-07 9:20
mvePete O'Hanlon5-Dec-07 9:20 
GeneralWanted to built my own ACD (Auto Call Distribution) Pin
Muhammad Nauman Yousuf5-Dec-07 7:16
Muhammad Nauman Yousuf5-Dec-07 7:16 
GeneralIO performance in c# Pin
poqeqw5-Dec-07 7:01
poqeqw5-Dec-07 7:01 
GeneralRe: IO performance in c# Pin
Ennis Ray Lynch, Jr.5-Dec-07 10:01
Ennis Ray Lynch, Jr.5-Dec-07 10:01 
QuestionAre there in-depth samples for WorkFlow Foundation DependencyProperty ? Pin
vgrigor15-Dec-07 5:27
vgrigor15-Dec-07 5:27 

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.