Click here to Skip to main content
15,893,644 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Problems with ListView Group showing in an MDI application Pin
Dave Kreskowiak28-Mar-08 5:19
mveDave Kreskowiak28-Mar-08 5:19 
QuestionSave image from WebBrowser Control Pin
Justin Porteous27-Mar-08 8:08
Justin Porteous27-Mar-08 8:08 
GeneralRe: Save image from WebBrowser Control Pin
jzonthemtn28-Mar-08 2:18
jzonthemtn28-Mar-08 2:18 
GeneralRe: Save image from WebBrowser Control Pin
Justin Porteous28-Mar-08 4:10
Justin Porteous28-Mar-08 4:10 
GeneralRe: Save image from WebBrowser Control Pin
Justin Porteous28-Mar-08 4:14
Justin Porteous28-Mar-08 4:14 
GeneralRead File Content and Store it in string Line by Line Pin
aaraaayen27-Mar-08 3:54
aaraaayen27-Mar-08 3:54 
GeneralRe: Read File Content and Store it in string Line by Line Pin
Xmen Real 27-Mar-08 6:42
professional Xmen Real 27-Mar-08 6:42 
AnswerRe: Read File Content and Store it in string Line by Line Pin
Justin Porteous27-Mar-08 8:17
Justin Porteous27-Mar-08 8:17 
Try this...
<br />
        Dim FILE_NAME As String = "C:\test.txt"<br />
        Dim tmpLine As String = ""<br />
<br />
<br />
        If System.IO.File.Exists(FILE_NAME) = True Then<br />
<br />
            Dim objReader As New System.IO.StreamReader(FILE_NAME)<br />
<br />
            Do While objReader.Peek() <> -1<br />
<br />
                tmpLine = objReader.ReadLine()<br />
                If Mid(tmpLine, 1, 1) = "1" Then<br />
                    ' Your code for command 1<br />
                ElseIf Mid(tmpLine, 1, 1) = "2" Then<br />
                    ' Your code for command 2<br />
                Else<br />
                    ' Your code for anything else<br />
                End If<br />
            Loop<br />
<br />
<br />
<br />
        Else<br />
<br />
            MsgBox("File Does Not Exist")<br />
<br />
        End If<br />

QuestionDataTable problem Pin
siddy1727-Mar-08 1:42
siddy1727-Mar-08 1:42 
GeneralRe: DataTable problem Pin
nlarson1127-Mar-08 2:21
nlarson1127-Mar-08 2:21 
GeneralRe: DataTable problem Pin
Eduard Keilholz27-Mar-08 2:24
Eduard Keilholz27-Mar-08 2:24 
GeneralRe: DataTable problem Pin
siddy1728-Mar-08 5:36
siddy1728-Mar-08 5:36 
GeneralRe: DataTable problem Pin
Dave Kreskowiak28-Mar-08 6:11
mveDave Kreskowiak28-Mar-08 6:11 
GeneralRe: DataTable problem Pin
siddy1728-Mar-08 19:14
siddy1728-Mar-08 19:14 
GeneralRe: DataTable problem Pin
Dave Kreskowiak29-Mar-08 17:55
mveDave Kreskowiak29-Mar-08 17:55 
QuestionMax value again?? Pin
outaleb27-Mar-08 1:26
outaleb27-Mar-08 1:26 
AnswerRe: Max value again?? Pin
Eduard Keilholz27-Mar-08 2:20
Eduard Keilholz27-Mar-08 2:20 
GeneralRe: Max value again?? Pin
outaleb27-Mar-08 3:58
outaleb27-Mar-08 3:58 
GeneralRe: Max value again?? Pin
Eduard Keilholz27-Mar-08 5:58
Eduard Keilholz27-Mar-08 5:58 
Questionhow to monitor the ctrl+z event in a word document Pin
vb_firstTimer27-Mar-08 0:07
vb_firstTimer27-Mar-08 0:07 
GeneralSize of Flash File descreses Pin
sjs4u26-Mar-08 21:55
sjs4u26-Mar-08 21:55 
GeneralRe: Size of Flash File descreses Pin
Christian Graus26-Mar-08 22:01
protectorChristian Graus26-Mar-08 22:01 
GeneralDatabase update Pin
nitin_ion26-Mar-08 21:26
nitin_ion26-Mar-08 21:26 
GeneralRe: Database update Pin
Dave Kreskowiak28-Mar-08 4:11
mveDave Kreskowiak28-Mar-08 4:11 
GeneralRemoving mouse scroll from adobe acrobat 7.0 browser Pin
Prakash_Mishra26-Mar-08 21:18
Prakash_Mishra26-Mar-08 21:18 

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.