Click here to Skip to main content
15,889,216 members
Home / Discussions / C#
   

C#

 
AnswerRe: Datagridview row delete question Pin
vinod malla21-Mar-10 19:55
vinod malla21-Mar-10 19:55 
QuestionHow to play audio files in default player from a mixed-mode CD Pin
radarseraing21-Mar-10 14:01
radarseraing21-Mar-10 14:01 
Questioncrystal report issue Pin
hos_oracle21-Mar-10 3:49
hos_oracle21-Mar-10 3:49 
AnswerRe: crystal report issue Pin
Abhinav S21-Mar-10 4:46
Abhinav S21-Mar-10 4:46 
Questionselecting multiple controls with ctrl key pressed Pin
teknolog12321-Mar-10 3:19
teknolog12321-Mar-10 3:19 
AnswerRe: selecting multiple controls with ctrl key pressed Pin
Not Active21-Mar-10 4:02
mentorNot Active21-Mar-10 4:02 
AnswerRe: selecting multiple controls with ctrl key pressed Pin
Kristian Sixhøj21-Mar-10 4:18
Kristian Sixhøj21-Mar-10 4:18 
AnswerRe: selecting multiple controls with ctrl key pressed Pin
AspDotNetDev21-Mar-10 11:31
protectorAspDotNetDev21-Mar-10 11:31 
If you are talking about adding controls to a collection at runtime, the following code will detect whether or not the CTRL key is currently pressed:
C#
if ((Control.ModifierKeys & Keys.Control) == Keys.Control)
{
    MessageBox.Show("CTRL key is pressed.");
}

You could add an event handler to the Click event of each control you create so that you can detect if CTRL was pressed while it was clicked. FYI, you can use the same event handler for all your controls. And that event handler can add the control to the collection of controls.

GeneralRe: selecting multiple controls with ctrl key pressed Pin
teknolog12322-Mar-10 2:55
teknolog12322-Mar-10 2:55 
GeneralRe: selecting multiple controls with ctrl key pressed Pin
AspDotNetDev22-Mar-10 6:34
protectorAspDotNetDev22-Mar-10 6:34 
AnswerRe: selecting multiple controls with ctrl key pressed Pin
yu-jian21-Mar-10 19:03
yu-jian21-Mar-10 19:03 
QuestionText file to multidimensional array help needed! Pin
venomation21-Mar-10 2:56
venomation21-Mar-10 2:56 
AnswerRe: Text file to multidimensional array help needed! Pin
Not Active21-Mar-10 3:59
mentorNot Active21-Mar-10 3:59 
GeneralRe: Text file to multidimensional array help needed! Pin
harold aptroot21-Mar-10 4:42
harold aptroot21-Mar-10 4:42 
GeneralRe: Text file to multidimensional array help needed! Pin
Not Active21-Mar-10 4:45
mentorNot Active21-Mar-10 4:45 
AnswerRe: Text file to multidimensional array help needed! Pin
Rod Kemp21-Mar-10 4:03
Rod Kemp21-Mar-10 4:03 
GeneralRe: Text file to multidimensional array help needed! Pin
venomation21-Mar-10 4:31
venomation21-Mar-10 4:31 
GeneralRe: Text file to multidimensional array help needed! Pin
harold aptroot21-Mar-10 4:51
harold aptroot21-Mar-10 4:51 
QuestionCollectionBase and Updating an Item Pin
Ryan Minor21-Mar-10 1:57
Ryan Minor21-Mar-10 1:57 
AnswerRe: CollectionBase and Updating an Item Pin
Not Active21-Mar-10 3:53
mentorNot Active21-Mar-10 3:53 
AnswerRe: CollectionBase and Updating an Item [modified] Pin
DaveyM6921-Mar-10 3:57
professionalDaveyM6921-Mar-10 3:57 
Questionc# & oracle Pin
amer shammout21-Mar-10 0:18
amer shammout21-Mar-10 0:18 
AnswerRe: c# & oracle Pin
Not Active21-Mar-10 1:50
mentorNot Active21-Mar-10 1:50 
QuestionHow to Dynamic add html in GridView by c# code???? Pin
mimimimilaw20-Mar-10 20:30
mimimimilaw20-Mar-10 20:30 
AnswerRe: How to Dynamic add html in GridView by c# code???? Pin
Rod Kemp20-Mar-10 21:10
Rod Kemp20-Mar-10 21:10 

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.