Click here to Skip to main content
15,912,082 members
Home / Discussions / C#
   

C#

 
GeneralRe: Cut,Copy ,Paste Problem... Pin
Rahul DSG22-Aug-09 3:11
Rahul DSG22-Aug-09 3:11 
GeneralRe: Cut,Copy ,Paste Problem... Pin
ricmil4224-Aug-09 3:19
ricmil4224-Aug-09 3:19 
GeneralRe: Cut,Copy ,Paste Problem... Pin
Rahul DSG30-Aug-09 18:55
Rahul DSG30-Aug-09 18:55 
AnswerRe: Cut,Copy ,Paste Problem... Pin
Andrew Rissing12-Aug-09 3:47
Andrew Rissing12-Aug-09 3:47 
QuestionConnectionString Problem with MSACCESS Pin
M Riaz Bashir12-Aug-09 2:19
M Riaz Bashir12-Aug-09 2:19 
AnswerRe: ConnectionString Problem with MSACCESS Pin
Mike Ellison12-Aug-09 2:43
Mike Ellison12-Aug-09 2:43 
AnswerRe: ConnectionString Problem with MSACCESS Pin
Luc Pattyn12-Aug-09 2:54
sitebuilderLuc Pattyn12-Aug-09 2:54 
QuestionLimit checkedListBox for maximum values [modified] Pin
bonzaiholding12-Aug-09 2:08
bonzaiholding12-Aug-09 2:08 
Hi,
I have an checkedListBox with 7 items :
1. a
2. b
3. c
4. d
5. e
6. f
7. g

I want to limit the user to choose only two , after 2 checkbox are checked i want it to be impossible to let the user to check another checkbox until he unchecked at least one of the checkbox that been checked.


Example :
private void checkedListBox_YAxisOptions_ItemCheck(object sender, ItemCheckEventArgs e)
        {
            if (e.NewValue == CheckState.Checked && this.ThereIsToMuchCheckBox() )
            {
                //I Want To Uncheck the checkbox that been selected. (Cancel the Selection)
                checkedListBox_YAxisOptions.SetItemCheckState(e.Index, CheckState.Unchecked);
                MessageBox.Show("You can't choose more then 4 options!");
            }
        }


With this code i have a problem because every time i have a memory overflow problem.
How can i do it?

modified on Wednesday, August 12, 2009 8:24 AM

AnswerRe: Limit checkedListBox for maximum values Pin
Ashfield12-Aug-09 2:09
Ashfield12-Aug-09 2:09 
GeneralRe: Limit checkedListBox for maximum values Pin
bonzaiholding12-Aug-09 2:11
bonzaiholding12-Aug-09 2:11 
AnswerRe: Limit checkedListBox for maximum values Pin
Alan N12-Aug-09 2:34
Alan N12-Aug-09 2:34 
GeneralRe: Limit checkedListBox for maximum values Pin
bonzaiholding12-Aug-09 2:39
bonzaiholding12-Aug-09 2:39 
Questionbrowse my computer Pin
Vivek Vijayan12-Aug-09 2:02
Vivek Vijayan12-Aug-09 2:02 
AnswerRe: browse my computer Pin
musefan12-Aug-09 2:09
musefan12-Aug-09 2:09 
QuestionUnable To Serialize TabControl . Pin
shaktisinh12-Aug-09 1:50
shaktisinh12-Aug-09 1:50 
AnswerRe: Unable To Serialize TabControl . Pin
Mike Ellison12-Aug-09 2:46
Mike Ellison12-Aug-09 2:46 
AnswerRe: Unable To Serialize TabControl . Pin
Hristo-Bojilov12-Aug-09 5:16
Hristo-Bojilov12-Aug-09 5:16 
GeneralRe: Unable To Serialize TabControl . Pin
shaktisinh13-Aug-09 0:32
shaktisinh13-Aug-09 0:32 
GeneralRe: Unable To Serialize TabControl . [modified] Pin
Hristo-Bojilov14-Aug-09 0:35
Hristo-Bojilov14-Aug-09 0:35 
QuestionHow to get the File Path using WMI Pin
Jacobb Michael12-Aug-09 1:28
Jacobb Michael12-Aug-09 1:28 
AnswerRe: How to get the File Path using WMI Pin
Dave Kreskowiak12-Aug-09 4:51
mveDave Kreskowiak12-Aug-09 4:51 
Questionproblem with windows application Pin
Member 305788712-Aug-09 1:26
Member 305788712-Aug-09 1:26 
AnswerRe: problem with windows application Pin
0x3c012-Aug-09 1:32
0x3c012-Aug-09 1:32 
GeneralRe: problem with windows application Pin
Member 305788712-Aug-09 3:21
Member 305788712-Aug-09 3:21 
GeneralRe: problem with windows application Pin
Dave Kreskowiak12-Aug-09 4:49
mveDave Kreskowiak12-Aug-09 4:49 

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.