Click here to Skip to main content
15,890,186 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralFile Download - web service Pin
jrmcdona2-Jul-03 7:22
jrmcdona2-Jul-03 7:22 
Questionhow solving the error cordbg.exe Pin
gary6662-Jul-03 6:59
gary6662-Jul-03 6:59 
GeneralDataGridEx Pin
Bernhard Hofmann2-Jul-03 2:59
Bernhard Hofmann2-Jul-03 2:59 
QuestionString to Integer? Pin
oliver_twistor1-Jul-03 8:09
oliver_twistor1-Jul-03 8:09 
AnswerRe: String to Integer? Pin
apferreira1-Jul-03 8:16
apferreira1-Jul-03 8:16 
AnswerRe: String to Integer? Pin
Matt Casto1-Jul-03 8:16
Matt Casto1-Jul-03 8:16 
GeneralFinding the End Of File Pin
DxSolo1-Jul-03 7:45
DxSolo1-Jul-03 7:45 
GeneralRe: Finding the End Of File Pin
dynamic2-Jul-03 8:33
dynamic2-Jul-03 8:33 
this should help , make sure to put your text file's location where it currently says C:\mytest.txt .
VbCode:
<font color="blue">Imports</font> System.IO <br> <font color="DarkGreen">'/// at the top of your form's code window ^^^^. <br></font> <font color="DarkGreen">'///////////////////////////////////////////// <br></font> <font color="blue">Private</font> <font color="blue">Sub</font> Button3_Click(<font color="blue">ByVal</font> sender <font color="blue">As</font> System.Object, <font color="blue">ByVal</font> e <font color="blue">As</font> System.EventArgs) <font color="blue">Handles</font> Button3.Click <br>     <font color="blue">Dim</font> sReader <font color="blue">As</font> StreamReader = <font color="blue">New</font> StreamReader(<font color="blue">New</font> FileStream("C:\mytest.txt", FileMode.Open, FileAccess.Read)) <br>     <font color="blue">Dim</font> x <font color="blue">As</font> <font color="blue">Integer</font> = sReader.BaseStream.Length <br>     MessageBox.Show("The Length of the text file is: " & x & " Characters") <br>     While Not sReader.Peek <br>         Console.WriteLine(sReader.ReadLine) <br>     <font color="blue">End</font> While <br>     sReader.Close() <br> <font color="blue">End</font> <font color="blue">Sub</font> <br> 


hope that helpsSmile | :)



Vb:
<font color="blue">Public Function</font> TwinsOnWay(<font color="blue">ByVal</font> twins <font color="blue">As String</font>) <font color="blue">As String <br>     Select Case</font> twins<br>         <font color="blue">Case</font> "Gender" <br>             <font color="blue">Return</font> "Two Girls" <br>     <font color="blue">End Select <br> End Function</font> <br> 


General?? displaying data Pin
shirleyLo1-Jul-03 3:10
shirleyLo1-Jul-03 3:10 
GeneralObtaining Focus in VB application Pin
Simes1-Jul-03 1:12
Simes1-Jul-03 1:12 
Generallarge Memory used in .NET application Pin
maxfava30-Jun-03 23:17
maxfava30-Jun-03 23:17 
GeneralRe: large Memory used in .NET application Pin
Ian Darling1-Jul-03 6:43
Ian Darling1-Jul-03 6:43 
GeneralRe: large Memory used in .NET application Pin
apferreira1-Jul-03 7:07
apferreira1-Jul-03 7:07 
Generali want this function Pin
elmahdy30-Jun-03 15:24
elmahdy30-Jun-03 15:24 
GeneralRe: i want this function Pin
Ian Darling1-Jul-03 6:39
Ian Darling1-Jul-03 6:39 
GeneralRe: i want this function Pin
elmahdy1-Jul-03 13:28
elmahdy1-Jul-03 13:28 
GeneralRe: i want this function Pin
Ian Darling2-Jul-03 22:28
Ian Darling2-Jul-03 22:28 
GeneralMultiple Textboxes in same array Pin
mpalmati30-Jun-03 12:57
mpalmati30-Jun-03 12:57 
GeneralRe: Multiple Textboxes in same array Pin
Ian Darling1-Jul-03 4:56
Ian Darling1-Jul-03 4:56 
GeneralRe: Multiple Textboxes in same array Pin
mpalmati1-Jul-03 6:19
mpalmati1-Jul-03 6:19 
GeneralRe: Multiple Textboxes in same array Pin
Ian Darling1-Jul-03 6:34
Ian Darling1-Jul-03 6:34 
QuestionHow do I convert to and from UNIX standard epoch date numbers? Pin
Olle Jonsson30-Jun-03 2:48
Olle Jonsson30-Jun-03 2:48 
AnswerRe: How do I convert to and from UNIX standard epoch date numbers? Pin
Olle Jonsson30-Jun-03 5:13
Olle Jonsson30-Jun-03 5:13 
AnswerRe: How do I convert to and from UNIX standard epoch date numbers? Pin
Matt Casto30-Jun-03 5:13
Matt Casto30-Jun-03 5:13 
GeneralRe: How do I convert to and from UNIX standard epoch date numbers? Pin
Olle Jonsson30-Jun-03 5:32
Olle Jonsson30-Jun-03 5:32 

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.