Snowfox2

Ok, i am wanting to do a few special things for my project. These being as follows:
Being able to search a text field.
Being able to make a field resizable (Text box and flash object)
If i think of more, i will post more, thank you Big Smile.
I would like code:

Dim txt As String
Dim b() As Byte


On Error GoTo E


Command1.Enabled = False

' This opens the file specified in the URL text box
b() = Inet1.OpenURL(URL.Text, 1)

txt = ""

For t = 0 To UBound(b) - 1
txt = txt + Chr(b(t))
Next

' This loads the opened file into the RichTextBox control
Text1.Text = txt

Command1.Enabled = True

Exit Sub

E:

MsgBox "The document you requested could not be found.", vbCritical

Exit Sub

To be able to handle more then 8 characters. (8 chracters as in something like havefunathome.html instead of only index.html or havefun.html) Understand



EDIT: Oh and how do i load from certain lines in a text file say i have
Hi
My
Name
Is
Bob

How would i load My into text1.text


Re: Visual Basic Express Edition A few problems.

Chris Dunaway

Snowfox2 wrote:
Being able to search a text field.

How do you want to search it If it is a string, you can use the IndexOf method of the string class to find a string within it:

Dim pos As Integer = TextBox1.Text.IndexOf("Search String")

Snowfox2 wrote:
Being able to make a field resizable (Text box and flash object)

They are already resizable. Can you be more specific about what you mean

<snip code>

Snowfox2 wrote:
To be able to handle more then 8 characters. (8 chracters as in something like havefunathome.html instead of only index.html or havefun.html) Understand

Not really, why can't you use a filename with more than 8 characters Are you getting an exception If so, what is it

Snowfox2 wrote:

EDIT: Oh and how do i load from certain lines in a text file say i have
Hi
My
Name
Is
Bob

How would i load My into text1.text

Use the classes in the System.IO namespace to open the file and read it line by line. Check out the StreamReader class.

Chris