Click here to Skip to main content
16,005,222 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: error in mail program Pin
Murtuza Husain Miyan Patel28-May-05 20:52
professionalMurtuza Husain Miyan Patel28-May-05 20:52 
Generalvalidating numbers in a textbox Pin
Binary011027-May-05 17:06
Binary011027-May-05 17:06 
GeneralRe: validating numbers in a textbox Pin
S. Senthil Kumar27-May-05 21:17
S. Senthil Kumar27-May-05 21:17 
GeneralRe: validating numbers in a textbox Pin
Christian Graus28-May-05 1:03
protectorChristian Graus28-May-05 1:03 
GeneralRe: validating numbers in a textbox Pin
Binary011028-May-05 6:16
Binary011028-May-05 6:16 
GeneralRe: validating numbers in a textbox Pin
devitj24-Aug-05 12:37
devitj24-Aug-05 12:37 
GeneralCurios about List Boxes Pin
Mtognetti27-May-05 11:48
Mtognetti27-May-05 11:48 
GeneralRe: Curios about List Boxes Pin
Robert Rohde28-May-05 4:38
Robert Rohde28-May-05 4:38 
There is no built in functionality for this. But you can handle the SelectedIndexChanged event to check whether some of those items was selected if if so you jsut have to deselect it by yourself.

Private Sub ListBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
    Dim notSelectableIndices As Integer() = New Integer() {2, 5, 8}

    Dim index As Integer
    For Each index In notSelectableIndices
        If (ListBox1.GetSelected(index)) Then
            ListBox1.SetSelected(index, False)
        End If
    Next
End Sub

GeneralRe: Curios about List Boxes Pin
Mtognetti28-May-05 10:08
Mtognetti28-May-05 10:08 
GeneralVBA question from a novice Pin
greatscott9027-May-05 8:00
greatscott9027-May-05 8:00 
Generaltext file Pin
Makniteasy27-May-05 7:33
Makniteasy27-May-05 7:33 
GeneralRe: text file Pin
Maqsood Ahmed27-May-05 21:10
Maqsood Ahmed27-May-05 21:10 
GeneralClient/Server design Pin
Anonymous27-May-05 7:04
Anonymous27-May-05 7:04 
GeneralCrystal report text object Pin
Anonymous27-May-05 5:40
Anonymous27-May-05 5:40 
GeneralVB6 problem using Crystal Reports Pin
Anonymous27-May-05 5:37
Anonymous27-May-05 5:37 
GeneralExecuteNonQuery() not working Pin
macca2427-May-05 4:09
macca2427-May-05 4:09 
GeneralRe: ExecuteNonQuery() not working Pin
Colin Angus Mackay27-May-05 5:27
Colin Angus Mackay27-May-05 5:27 
QuestionHow to remove system menu from MDI child form?? Pin
David Moody27-May-05 3:38
David Moody27-May-05 3:38 
QuestionWhat is the difference between LDAP and MAPI? Pin
SamNasr27-May-05 2:57
SamNasr27-May-05 2:57 
AnswerRe: What is the difference between LDAP and MAPI? Pin
Dave Kreskowiak27-May-05 3:58
mveDave Kreskowiak27-May-05 3:58 
Generaldate problem Pin
hakanaktan27-May-05 0:31
hakanaktan27-May-05 0:31 
GeneralRe: date problem Pin
Colin Angus Mackay27-May-05 10:37
Colin Angus Mackay27-May-05 10:37 
GeneralThanx Pin
hakanaktan27-May-05 19:59
hakanaktan27-May-05 19:59 
QuestionHow to connect to a remote computer? Pin
26-May-05 21:43
suss26-May-05 21:43 
QuestionHow to Call an Standard EXE from VB.NET Pin
Mahesh167926-May-05 20:43
Mahesh167926-May-05 20:43 

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.