Click here to Skip to main content
15,845,746 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Problems with ListView Group showing in an MDI application Pin
Dave Kreskowiak28-Mar-08 6:19
mveDave Kreskowiak28-Mar-08 6:19 
QuestionSave image from WebBrowser Control Pin
Justin Porteous27-Mar-08 9:08
Justin Porteous27-Mar-08 9:08 
GeneralRe: Save image from WebBrowser Control Pin
jzonthemtn28-Mar-08 3:18
jzonthemtn28-Mar-08 3:18 
GeneralRe: Save image from WebBrowser Control Pin
Justin Porteous28-Mar-08 5:10
Justin Porteous28-Mar-08 5:10 
GeneralRe: Save image from WebBrowser Control Pin
Justin Porteous28-Mar-08 5:14
Justin Porteous28-Mar-08 5:14 
GeneralRead File Content and Store it in string Line by Line Pin
aaraaayen27-Mar-08 4:54
aaraaayen27-Mar-08 4:54 
GeneralRe: Read File Content and Store it in string Line by Line Pin
Xmen Real 27-Mar-08 7:42
professional Xmen Real 27-Mar-08 7:42 
AnswerRe: Read File Content and Store it in string Line by Line Pin
Justin Porteous27-Mar-08 9:17
Justin Porteous27-Mar-08 9: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 2:42
siddy1727-Mar-08 2:42 
GeneralRe: DataTable problem Pin
nlarson1127-Mar-08 3:21
nlarson1127-Mar-08 3:21 
GeneralRe: DataTable problem Pin
Eduard Keilholz27-Mar-08 3:24
Eduard Keilholz27-Mar-08 3:24 
GeneralRe: DataTable problem Pin
siddy1728-Mar-08 6:36
siddy1728-Mar-08 6:36 
GeneralRe: DataTable problem Pin
Dave Kreskowiak28-Mar-08 7:11
mveDave Kreskowiak28-Mar-08 7:11 
GeneralRe: DataTable problem Pin
siddy1728-Mar-08 20:14
siddy1728-Mar-08 20:14 
GeneralRe: DataTable problem Pin
Dave Kreskowiak29-Mar-08 18:55
mveDave Kreskowiak29-Mar-08 18:55 
QuestionMax value again?? Pin
outaleb27-Mar-08 2:26
outaleb27-Mar-08 2:26 
AnswerRe: Max value again?? Pin
Eduard Keilholz27-Mar-08 3:20
Eduard Keilholz27-Mar-08 3:20 
GeneralRe: Max value again?? Pin
outaleb27-Mar-08 4:58
outaleb27-Mar-08 4:58 
GeneralRe: Max value again?? Pin
Eduard Keilholz27-Mar-08 6:58
Eduard Keilholz27-Mar-08 6:58 
Questionhow to monitor the ctrl+z event in a word document Pin
vb_firstTimer27-Mar-08 1:07
vb_firstTimer27-Mar-08 1:07 
GeneralSize of Flash File descreses Pin
sjs4u26-Mar-08 22:55
sjs4u26-Mar-08 22:55 
GeneralRe: Size of Flash File descreses Pin
Christian Graus26-Mar-08 23:01
protectorChristian Graus26-Mar-08 23:01 
GeneralDatabase update Pin
nitin_ion26-Mar-08 22:26
nitin_ion26-Mar-08 22:26 
GeneralRe: Database update Pin
Dave Kreskowiak28-Mar-08 5:11
mveDave Kreskowiak28-Mar-08 5:11 
GeneralRemoving mouse scroll from adobe acrobat 7.0 browser Pin
Prakash_Mishra26-Mar-08 22:18
Prakash_Mishra26-Mar-08 22: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.