Click here to Skip to main content
15,894,460 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: barcode reader Pin
Paul Conrad25-Jan-08 3:55
professionalPaul Conrad25-Jan-08 3:55 
Questionproblem with basic timer in vb.net [modified] Pin
Chun224-Jan-08 19:48
Chun224-Jan-08 19:48 
GeneralRe: problem with basic timer in vb.net Pin
CKnig24-Jan-08 21:44
CKnig24-Jan-08 21:44 
GeneralRe: problem with basic timer in vb.net Pin
Chun225-Jan-08 5:36
Chun225-Jan-08 5:36 
GeneralRe: problem with basic timer in vb.net Pin
Dave Kreskowiak25-Jan-08 9:41
mveDave Kreskowiak25-Jan-08 9:41 
Questionhow can calling command prompt ? [modified] Pin
break_day24-Jan-08 18:58
break_day24-Jan-08 18:58 
AnswerRe: how can calling command prompt ? Pin
Dave Kreskowiak25-Jan-08 3:41
mveDave Kreskowiak25-Jan-08 3:41 
QuestionFind text problem Pin
monsieur_jj24-Jan-08 16:14
monsieur_jj24-Jan-08 16:14 
Hi all,

I have an issue with the code below, What it does is it searches a character or a word in a text, the problem is that let's say im searching for the word "net" in "net work net work net work" what will happen is that it will highlight the second net then after pressing enter it will highlight the third net. It completely ignores the first "net". Any suggestions will be fine.

the value of nLoc_Temp is 1

Thanks,
Jj

Private Sub Find_Text()

    Dim nLoc As Long
    Dim nResp As Integer
    
StartSearch:
    
    TextView.SetFocus
    Radio_Vals (False) 'disable radio buttons
    'check for search type
    If rdo_Exact(0).Value = True Then
        nLoc = TextView.Find(txt_srch.Text, nLoc_Temp, , rtfWholeWord)
    Else
        nLoc = TextView.Find(txt_srch.Text, nLoc_Temp)
    End If
    
    If nLoc <> -1 Then
        'next start-up possition
        nLoc_Temp = nLoc + Len(txt_srch.Text)
    Else
        If nLoc_Temp <> 1 Then
            nResp = MsgBox("Search complete!" & Chr(13) & Chr(13) & _
                   "Search again from start?", vbYesNo + vbInformation)
            If nResp = vbYes Then
                nLoc_Temp = 1
                GoTo StartSearch
            Else
                'clear selection
                TextView.SelLength = 0
                txt_srch.SetFocus
                Radio_Vals (True)
            End If
        Else
            MsgBox "Cannot find [" & txt_srch.Text & "]", vbExclamation
            txt_srch.SetFocus
            Radio_Vals (True)
        End If
    End If
    
End Sub

GeneralRe: Find text problem Pin
Johan Hakkesteegt25-Jan-08 1:54
Johan Hakkesteegt25-Jan-08 1:54 
GeneralRe: Find text problem Pin
Luc Pattyn25-Jan-08 4:08
sitebuilderLuc Pattyn25-Jan-08 4:08 
GeneralStreamwriter Pin
Cedrickdeorange24-Jan-08 12:27
Cedrickdeorange24-Jan-08 12:27 
GeneralRe: Streamwriter Pin
John_Adams24-Jan-08 18:31
John_Adams24-Jan-08 18:31 
GeneralRe: Streamwriter Pin
Cedrickdeorange25-Jan-08 14:15
Cedrickdeorange25-Jan-08 14:15 
GeneralReading from a file and using Set methods Pin
Cory Kimble24-Jan-08 7:14
Cory Kimble24-Jan-08 7:14 
GeneralRe: Reading from a file and using Set methods Pin
pmarfleet24-Jan-08 9:29
pmarfleet24-Jan-08 9:29 
GeneralRe: Reading from a file and using Set methods Pin
Cory Kimble25-Jan-08 4:52
Cory Kimble25-Jan-08 4:52 
Generalcustom datagrid problems Pin
Smithers-Jones24-Jan-08 6:28
Smithers-Jones24-Jan-08 6:28 
GeneralRe: custom datagrid problems Pin
Paul Conrad24-Jan-08 6:55
professionalPaul Conrad24-Jan-08 6:55 
GeneralRe: custom datagrid problems [modified] Pin
Smithers-Jones24-Jan-08 10:12
Smithers-Jones24-Jan-08 10:12 
Question[Message Deleted] Pin
zeeshi_2424-Jan-08 0:50
zeeshi_2424-Jan-08 0:50 
GeneralRe: mpeg file encryption and compression...urgent!!!! Pin
Steven J Jowett24-Jan-08 2:03
Steven J Jowett24-Jan-08 2:03 
GeneralRe: mpeg file encryption and compression...urgent!!!! Pin
Vimalsoft(Pty) Ltd24-Jan-08 2:04
professionalVimalsoft(Pty) Ltd24-Jan-08 2:04 
GeneralRe: mpeg file encryption and compression...urgent!!!! Pin
Justin Perez24-Jan-08 2:51
Justin Perez24-Jan-08 2:51 
GeneralRe: mpeg file encryption and compression...urgent!!!! Pin
Paul Conrad24-Jan-08 5:04
professionalPaul Conrad24-Jan-08 5:04 
GeneralRe: mpeg file encryption and compression...urgent!!!! Pin
Justin Perez24-Jan-08 5:22
Justin Perez24-Jan-08 5:22 

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.