Click here to Skip to main content
15,884,298 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: puzzle game Pin
Richard MacCutchan21-Dec-12 6:30
mveRichard MacCutchan21-Dec-12 6:30 
QuestionTimer for Internet connection Pin
bolepks20-Dec-12 8:51
bolepks20-Dec-12 8:51 
AnswerRe: Timer for Internet connection Pin
Dave Kreskowiak20-Dec-12 9:46
mveDave Kreskowiak20-Dec-12 9:46 
GeneralRe: Timer for Internet connection Pin
bolepks20-Dec-12 9:56
bolepks20-Dec-12 9:56 
GeneralRe: Timer for Internet connection Pin
Dave Kreskowiak21-Dec-12 4:11
mveDave Kreskowiak21-Dec-12 4:11 
Questioninstr function not accepting arguments VB.net Pin
xman12519-Dec-12 2:10
xman12519-Dec-12 2:10 
AnswerRe: instr function not accepting arguments VB.net Pin
Dave Kreskowiak19-Dec-12 3:13
mveDave Kreskowiak19-Dec-12 3:13 
AnswerRe: instr function not accepting arguments VB.net Pin
Zaf Khan19-Dec-12 5:37
Zaf Khan19-Dec-12 5:37 
Here is a sample for you...

VB
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim maintext As String
    Dim smalltext As String
    Dim foundpos As Integer
    Dim startpos As Integer
    'startpos = 6     'should test not found
    startpos = 0      'should test matched
    maintext = "Jack and Jill"
    smalltext = "and"
    foundpos = maintext.IndexOf(smalltext, startpos)
    If foundpos > 0 Then
        'found
        MsgBox("match found at character " & foundpos)
    Else
        'not found
        MsgBox("no match found")
    End If

End Sub

GeneralRe: instr function not accepting arguments VB.net Pin
xman12519-Dec-12 20:44
xman12519-Dec-12 20:44 
GeneralRe: instr function not accepting arguments VB.net Pin
xman12519-Dec-12 20:50
xman12519-Dec-12 20:50 
GeneralRe: instr function not accepting arguments VB.net Pin
Zaf Khan19-Dec-12 21:05
Zaf Khan19-Dec-12 21:05 
AnswerRe: instr function not accepting arguments VB.net Pin
Eddy Vluggen20-Dec-12 1:56
professionalEddy Vluggen20-Dec-12 1:56 
QuestionRe: instr function not accepting arguments VB.net Pin
Zaf Khan19-Dec-12 21:02
Zaf Khan19-Dec-12 21:02 
GeneralRe: instr function not accepting arguments VB.net Pin
Dave Kreskowiak20-Dec-12 1:47
mveDave Kreskowiak20-Dec-12 1:47 
AnswerRe: instr function not accepting arguments VB.net Pin
Mike Meinz23-Jan-13 3:36
Mike Meinz23-Jan-13 3:36 
QuestionIs it possible to change Import directives dynamically at run time. Pin
Member 342716218-Dec-12 10:32
Member 342716218-Dec-12 10:32 
AnswerRe: Is it possible to change Import directives dynamically at run time. Pin
Eddy Vluggen18-Dec-12 21:57
professionalEddy Vluggen18-Dec-12 21:57 
Questionconcatenate 2 scripts Pin
Nitro7617-Dec-12 2:54
Nitro7617-Dec-12 2:54 
AnswerRe: concatenate 2 scripts Pin
Eddy Vluggen18-Dec-12 21:55
professionalEddy Vluggen18-Dec-12 21:55 
Questionsystem.net.mail - manage multiple attachment Pin
alejx14-Dec-12 13:00
alejx14-Dec-12 13:00 
AnswerRe: system.net.mail - manage multiple attachment Pin
Eddy Vluggen17-Dec-12 1:17
professionalEddy Vluggen17-Dec-12 1:17 
QuestionHelp with Class Library and "Roll Your Own MsgBox" Pin
w4uoa13-Dec-12 5:19
w4uoa13-Dec-12 5:19 
AnswerRe: Help with Class Library and "Roll Your Own MsgBox" Pin
Simon_Whale13-Dec-12 5:38
Simon_Whale13-Dec-12 5:38 
AnswerRe: Help with Class Library and "Roll Your Own MsgBox" Pin
Richard MacCutchan13-Dec-12 5:40
mveRichard MacCutchan13-Dec-12 5:40 
Questionnewbie Pin
vaskoedo12-Dec-12 2:16
vaskoedo12-Dec-12 2:16 

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.