Click here to Skip to main content
15,921,174 members
Home / Discussions / C#
   

C#

 
AnswerRe: Shutdown application? Pin
SeMartens13-Jan-09 0:48
SeMartens13-Jan-09 0:48 
Questionhow to disable multi select of checkbox in listview ? Pin
Denver Thomas13-Jan-09 0:10
Denver Thomas13-Jan-09 0:10 
AnswerRe: how to disable multi select of checkbox in listview ? Pin
Wendelius13-Jan-09 0:18
mentorWendelius13-Jan-09 0:18 
AnswerRe: how to disable multi select of checkbox in listview ? Pin
Reza Raad13-Jan-09 0:20
Reza Raad13-Jan-09 0:20 
AnswerRe: how to disable multi select of checkbox in listview ? Pin
hground26-Mar-10 6:30
hground26-Mar-10 6:30 
GeneralRe: how to disable multi select of checkbox in listview ? Pin
molesworth26-Mar-10 7:27
molesworth26-Mar-10 7:27 
GeneralRe: how to disable multi select of checkbox in listview ? Pin
MarqW18-May-10 2:30
MarqW18-May-10 2:30 
GeneralRe: how to disable multi select of checkbox in listview ? [modified] Pin
mycleverscreenname23-Aug-10 8:04
mycleverscreenname23-Aug-10 8:04 
For some reason, the first solution, translated into C++/CLI, will create a stack overflow if you shift- or control-click anywhere besides the "Name" column.

MarqW's solution, translated into C++/CLI works fine. No need for global variables.
private: System::Void listView1_ItemCheck(System::Object^  sender, System::Windows::Forms::ItemCheckEventArgs^  e)
		 {
			 if( (ModifierKeys == Keys::Control) || (ModifierKeys == Keys::Shift) )
			 {
				 e->NewValue = e->CurrentValue;
			 }
		 }


It's the difference between the ItemCheck and ItemChecked events.

modified on Monday, August 23, 2010 3:30 PM

GeneralRe: how to disable multi select of checkbox in listview ? Pin
jerryno67-Oct-11 6:26
jerryno67-Oct-11 6:26 
GeneralRe: how to disable multi select of checkbox in listview ? Pin
MarqW9-Oct-11 20:44
MarqW9-Oct-11 20:44 
GeneralRe: how to disable multi select of checkbox in listview ? Pin
jerryno610-Oct-11 0:09
jerryno610-Oct-11 0:09 
SuggestionRe: how to disable multi select of checkbox in listview ? Pin
MarqW10-Oct-11 0:21
MarqW10-Oct-11 0:21 
Questionadd user control in datagridview in c# Pin
monuSaini13-Jan-09 0:08
monuSaini13-Jan-09 0:08 
AnswerRe: add user control in datagridview in c# Pin
Vivek Bhatnagar13-Jan-09 0:44
Vivek Bhatnagar13-Jan-09 0:44 
GeneralRe: add user control in datagridview in c# Pin
monuSaini13-Jan-09 0:51
monuSaini13-Jan-09 0:51 
GeneralRe: add user control in datagridview in c# Pin
Vivek Bhatnagar13-Jan-09 1:06
Vivek Bhatnagar13-Jan-09 1:06 
QuestionNeed Library for resume parsing [modified] Pin
Sudhir Mangla13-Jan-09 0:06
professionalSudhir Mangla13-Jan-09 0:06 
AnswerRe: Need Library for resume parsing Pin
lawrenceinba13-Jan-09 0:24
lawrenceinba13-Jan-09 0:24 
GeneralRe: Need Library for resume parsing Pin
Sudhir Mangla13-Jan-09 2:03
professionalSudhir Mangla13-Jan-09 2:03 
GeneralRe: Need Library for resume parsing Pin
lawrenceinba13-Jan-09 2:49
lawrenceinba13-Jan-09 2:49 
AnswerRe: Need Library for resume parsing Pin
Henry Minute13-Jan-09 6:08
Henry Minute13-Jan-09 6:08 
AnswerRe: Need Library for resume parsing Pin
Ben Fair13-Jan-09 6:29
Ben Fair13-Jan-09 6:29 
GeneralRe: Need Library for resume parsing Pin
Sudhir Mangla14-Jan-09 0:11
professionalSudhir Mangla14-Jan-09 0:11 
Questionescape sequences in C# Pin
lawrenceinba13-Jan-09 0:04
lawrenceinba13-Jan-09 0:04 
AnswerRe: escape sequences in C# Pin
SeMartens13-Jan-09 0:10
SeMartens13-Jan-09 0: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.