Click here to Skip to main content
15,914,392 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRegenerating Datasets and table adapters Pin
Mr Oizo3-Sep-07 10:55
Mr Oizo3-Sep-07 10:55 
AnswerRe: Regenerating Datasets and table adapters Pin
Christian Graus3-Sep-07 12:37
protectorChristian Graus3-Sep-07 12:37 
GeneralRe: Regenerating Datasets and table adapters Pin
Mr Oizo3-Sep-07 23:16
Mr Oizo3-Sep-07 23:16 
GeneralRe: Regenerating Datasets and table adapters Pin
Dave Kreskowiak4-Sep-07 4:20
mveDave Kreskowiak4-Sep-07 4:20 
QuestionAccessing Exchange server public folders Pin
manisghouri3-Sep-07 5:49
manisghouri3-Sep-07 5:49 
Questioncombobox: append Pin
Tom Deketelaere3-Sep-07 4:21
professionalTom Deketelaere3-Sep-07 4:21 
AnswerRe: combobox: append Pin
Johan Hakkesteegt4-Sep-07 2:11
Johan Hakkesteegt4-Sep-07 2:11 
GeneralRe: combobox: append Pin
Tom Deketelaere4-Sep-07 3:31
professionalTom Deketelaere4-Sep-07 3:31 
thanks for the reply
turned out I was able to do it very simpel with the code already in the leave event (the code that check wheter or not the text exists in the list) apperently the text that is apended is already in the .text property the only problem I had was that its case sensitive and the text in the list was uppercase and the text entered lowercase.

but you're post did help me with forming an idee of what was going on so thanks...

just in case you are wondering how I did it here is the code:

If cboType.SelectedItem = Nothing And Not cboType.Text.Equals("") Then
            Dim l As New List(Of String)
            For Each s As String In cboType.DataSource
                l.Add(s.ToLower)
            Next
            If l.Contains(cboType.Text.ToLower) Then
                cboType.SelectedItem = cboType.Text
            Else
                cboType.Text = ""
                cboType.Focus()
            End If
        End If


If my help was helpfull let me know, if not let me know why.

The only way we learn is by making mistaks.

Questionlines in multiline rich text box Pin
BooleanTrue3-Sep-07 3:58
professionalBooleanTrue3-Sep-07 3:58 
AnswerRe: lines in multiline rich text box Pin
Luc Pattyn3-Sep-07 5:47
sitebuilderLuc Pattyn3-Sep-07 5:47 
GeneralRe: lines in multiline rich text box Pin
Paul Conrad3-Sep-07 7:12
professionalPaul Conrad3-Sep-07 7:12 
GeneralRe: lines in multiline rich text box Pin
Luc Pattyn3-Sep-07 7:30
sitebuilderLuc Pattyn3-Sep-07 7:30 
GeneralRe: lines in multiline rich text box Pin
Paul Conrad3-Sep-07 7:35
professionalPaul Conrad3-Sep-07 7:35 
QuestionMP3 Playlist Pin
Indra PR3-Sep-07 3:37
Indra PR3-Sep-07 3:37 
AnswerRe: MP3 Playlist Pin
plural3-Sep-07 4:41
plural3-Sep-07 4:41 
GeneralRe: MP3 Playlist Pin
plural3-Sep-07 4:43
plural3-Sep-07 4:43 
QuestionAccessing the windows forms generated code Pin
Mr Oizo3-Sep-07 3:27
Mr Oizo3-Sep-07 3:27 
AnswerRe: Accessing the windows forms generated code Pin
originSH3-Sep-07 3:39
originSH3-Sep-07 3:39 
GeneralRe: Accessing the windows forms generated code Pin
Mr Oizo3-Sep-07 7:38
Mr Oizo3-Sep-07 7:38 
GeneralRe: Accessing the windows forms generated code Pin
Paul Conrad3-Sep-07 7:57
professionalPaul Conrad3-Sep-07 7:57 
GeneralRe: Accessing the windows forms generated code Pin
Mr Oizo3-Sep-07 7:55
Mr Oizo3-Sep-07 7:55 
GeneralRe: Accessing the windows forms generated code Pin
originSH3-Sep-07 22:35
originSH3-Sep-07 22:35 
QuestionPlay AVI file Pin
Rupesh Kumar Swami3-Sep-07 2:12
Rupesh Kumar Swami3-Sep-07 2:12 
AnswerRe: Play AVI file Pin
Christian Graus3-Sep-07 2:49
protectorChristian Graus3-Sep-07 2:49 
AnswerRe: Play AVI file Pin
plural3-Sep-07 4:48
plural3-Sep-07 4:48 

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.