Click here to Skip to main content
15,913,570 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Basic Question: String declaration with "child values" Pin
re infecta2-Sep-06 21:39
re infecta2-Sep-06 21:39 
Questiondynamic setup preparation Pin
Pradip Kishore2-Sep-06 0:24
Pradip Kishore2-Sep-06 0:24 
QuestionBubble up User Control event Pin
FreQi1-Sep-06 15:57
FreQi1-Sep-06 15:57 
AnswerRe: Bubble up User Control event Pin
Dave Kreskowiak2-Sep-06 7:39
mveDave Kreskowiak2-Sep-06 7:39 
AnswerRe: Bubble up User Control event Pin
Davelister3-Sep-06 6:45
Davelister3-Sep-06 6:45 
QuestionRe: Bubble up User Control event Pin
FreQi3-Sep-06 8:14
FreQi3-Sep-06 8:14 
QuestionRemoving items from CheckedListBox Pin
The ANZAC1-Sep-06 14:11
The ANZAC1-Sep-06 14:11 
AnswerRe: Removing items from CheckedListBox Pin
Davelister3-Sep-06 7:00
Davelister3-Sep-06 7:00 
As far as too remove the checked items this should do it

<br />
        Dim CIs As Windows.Forms.CheckedListBox.CheckedIndexCollection = CheckedListBox1.CheckedIndices<br />
        Dim UnCheckedItems As New List(Of Object)<br />
<br />
        For CI As Integer = CIs.Count - 1 To 0 Step -1<br />
            CheckedListBox1.Items.RemoveAt(CI)<br />
        Next<br />
<br />
'As for saving the rest<br />
        For x As Integer = 0 To CheckedListBox1.Items.Count - 1<br />
            UnCheckedItems.Add(CheckedListBox1.Items.Item(x))<br />
        Next<br />


You have to remove them in reverse order otherwise you will get an index out of range exception before the end of the loop or remove incorrect items (I found this out my own experience)

As for saving to a setting, in the example i've used a generic list to save the remaining items, which could be set up in a module or something

I'm not dumb I just have a huge command of thouroughly usless infromation.

GeneralRe: Removing items from CheckedListBox Pin
The ANZAC3-Sep-06 11:14
The ANZAC3-Sep-06 11:14 
GeneralRe: Removing items from CheckedListBox Pin
Davelister4-Sep-06 10:37
Davelister4-Sep-06 10:37 
QuestionDisable maximize on a transparent form Pin
re infecta1-Sep-06 12:25
re infecta1-Sep-06 12:25 
AnswerRe: Disable maximize on a transparent form Pin
Marek Grzenkowicz1-Sep-06 23:31
Marek Grzenkowicz1-Sep-06 23:31 
GeneralRe: Disable maximize on a transparent form Pin
re infecta2-Sep-06 0:07
re infecta2-Sep-06 0:07 
GeneralRe: Disable maximize on a transparent form Pin
re infecta3-Sep-06 0:36
re infecta3-Sep-06 0:36 
GeneralRe: Disable maximize on a transparent form Pin
Dave Kreskowiak3-Sep-06 1:55
mveDave Kreskowiak3-Sep-06 1:55 
GeneralRe: Disable maximize on a transparent form Pin
Dave Kreskowiak3-Sep-06 1:54
mveDave Kreskowiak3-Sep-06 1:54 
QuestionRe: Disable maximize on a transparent form Pin
Marek Grzenkowicz3-Sep-06 6:00
Marek Grzenkowicz3-Sep-06 6:00 
AnswerRe: Disable maximize on a transparent form Pin
re infecta3-Sep-06 7:19
re infecta3-Sep-06 7:19 
GeneralRe: Disable maximize on a transparent form Pin
Marek Grzenkowicz3-Sep-06 7:27
Marek Grzenkowicz3-Sep-06 7:27 
GeneralRe: Disable maximize on a transparent form Pin
Dave Sexton4-Sep-06 3:33
Dave Sexton4-Sep-06 3:33 
Question.exe?... VB.NET Pin
Aaron1281-Sep-06 11:50
Aaron1281-Sep-06 11:50 
AnswerRe: .exe?... VB.NET Pin
Coding C#1-Sep-06 21:57
Coding C#1-Sep-06 21:57 
GeneralRe: .exe?... VB.NET Pin
Aaron1282-Sep-06 7:30
Aaron1282-Sep-06 7:30 
GeneralRe: .exe?... VB.NET Pin
Dave Kreskowiak2-Sep-06 7:47
mveDave Kreskowiak2-Sep-06 7:47 
GeneralRe: .exe?... VB.NET Pin
Aaron1282-Sep-06 8:21
Aaron1282-Sep-06 8:21 

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.