horraaaaa
finally got it to work
what i did was use a richtext box, set visible = false.
then used a textbox and copied the .text over from the richtext box.
Dim a
a = ".txt"
txtRate.LoadFile("VAT Rate" & a, RichTextBoxStreamType.PlainText)
TextBox.Text = txtRate.Text...
tired this as well , no luck
TextBox.Text = IO.File.OpenText("VAT Rate.txt")
error message says
Value of type 'System.IO.StreamReader' cannot be converted to 'String'.
ahhhh
the answer is probably so simple, when you konw how
clubriza
hi crisse1
the error message i get is
Argument not specified for parameter 'path' of 'Public Shared Function OpenRead(path As String) As System.IO.FileStream'.
cheers for helping
clubriza
thanks for your replys,
i already tired the help files, and came up with these:
Textbox.Text = System.IO.File.OpenRead("VAT Rate.txt", System.IO.File.OpenRead)
and this
' Create an instance of StreamReader to read from a file.
Dim sr As IO.StreamReader = New IO.StreamReader("VAT...
Hi all,
Im making a VAT Calculator, that shows + vat, - vat, Net, Gross ect.
I want a textbox to display the contents of the "vat rate.txt" file. "ie 17.5" (is that possible?)
The reason for this is, i want the user to be able to change the vat rate (+ i can set it to only accept numbers & a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.