Click here to Skip to main content
15,904,934 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralInserting Image into Richtext Box Control Pin
hari_vb30-Jun-04 1:41
susshari_vb30-Jun-04 1:41 
GeneralDrag URL -> Drop File Pin
Timotei_Younge29-Jun-04 23:16
Timotei_Younge29-Jun-04 23:16 
GeneralRe: Drag URL -> Drop File Pin
Dave Kreskowiak30-Jun-04 2:42
mveDave Kreskowiak30-Jun-04 2:42 
Questionhow to put an exe file into vb6.0 Pin
saimram29-Jun-04 19:36
saimram29-Jun-04 19:36 
AnswerRe: how to put an exe file into vb6.0 Pin
Dave Kreskowiak30-Jun-04 2:39
mveDave Kreskowiak30-Jun-04 2:39 
Generaldata type error Pin
GaryKoh29-Jun-04 16:50
GaryKoh29-Jun-04 16:50 
GeneralRe: data type error Pin
Dave Kreskowiak30-Jun-04 0:38
mveDave Kreskowiak30-Jun-04 0:38 
GeneralRe: data type error Pin
GaryKoh30-Jun-04 1:24
GaryKoh30-Jun-04 1:24 
hello dave
im sorry but the result is still the same
im still getting 12345 instead of 123.45
i double check everything and the value in the notepad is 123.45
i try using label instead of textbox but the same thing is shown
i try changing the value in notepad to 345,232.45 and this error comes out

An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll

Additional information: Input string was not in a correct format. 


but if i change it to 123.455,67 it just show me 123455,67
is the problem coming from the notepad?
i change most of the coding as you recommended

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim name, display As String
        Dim total, amount, charges As Double
        Dim num1 As Double
        Dim sr As StreamReader = File.OpenText("info.txt")


        Do While (sr.Peek <> -1)
            num1 = Double.Parse(sr.ReadLine())
        Loop
        Text1.Text = num1.ToString()
        Label2.Text = num1.ToString()


i'm so confuse on this problem cause i try reading book and it say that this two method should provide me with the answer i was looking for but it seem like it is not
please help me
thank you and sorry for the trouble

Gary the amatuer
GeneralRe: data type error Pin
Dave Kreskowiak30-Jun-04 12:04
mveDave Kreskowiak30-Jun-04 12:04 
GeneralRe: data type error Pin
GaryKoh30-Jun-04 17:13
GaryKoh30-Jun-04 17:13 
GeneralRe: data type error Pin
Dave Kreskowiak1-Jul-04 1:21
mveDave Kreskowiak1-Jul-04 1:21 
GeneralRe: data type error Pin
GaryKoh1-Jul-04 3:29
GaryKoh1-Jul-04 3:29 
GeneralDon't know where to put this. ACCESS! PLEASE HELP Pin
Rip V. Winkle29-Jun-04 15:34
Rip V. Winkle29-Jun-04 15:34 
GeneralRe: Don't know where to put this. ACCESS! PLEASE HELP Pin
KevinMac29-Jun-04 18:27
KevinMac29-Jun-04 18:27 
GeneralRe: Don't know where to put this. ACCESS! PLEASE HELP Pin
Rip V. Winkle11-Jul-04 8:25
Rip V. Winkle11-Jul-04 8:25 
GeneralRe: Don't know where to put this. ACCESS! PLEASE HELP Pin
KevinMac12-Jul-04 16:18
KevinMac12-Jul-04 16:18 
GeneralRunning a program from the network Pin
ltnuke29-Jun-04 11:45
ltnuke29-Jun-04 11:45 
GeneralRe: Running a program from the network Pin
Jeremy Falcon29-Jun-04 11:52
professionalJeremy Falcon29-Jun-04 11:52 
GeneralRe: Running a program from the network Pin
Steven Campbell29-Jun-04 11:59
Steven Campbell29-Jun-04 11:59 
GeneralRe: Running a program from the network Pin
Colin Angus Mackay29-Jun-04 13:16
Colin Angus Mackay29-Jun-04 13:16 
GeneralRe: Running a program from the network Pin
ltnuke30-Jun-04 2:13
ltnuke30-Jun-04 2:13 
GeneralRe: Running a program from the network Pin
Colin Angus Mackay30-Jun-04 4:55
Colin Angus Mackay30-Jun-04 4:55 
GeneralRe: Running a program from the network Pin
mtone2-Jul-04 9:22
mtone2-Jul-04 9:22 
GeneralHooking application Open file calls Pin
WESHILL29-Jun-04 10:32
WESHILL29-Jun-04 10:32 
GeneralRe: Hooking application Open file calls Pin
Dave Kreskowiak29-Jun-04 15:49
mveDave Kreskowiak29-Jun-04 15:49 

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.