Anyone here good with vb.net

3 replies
Found 27th Apr 2009
Im writing a little web browser program.

I want all web pages entered into the combobox to be wrote to a history.txt file.

Im not sure which way to go about this

  1. Misc
Groups
  1. Misc
3 Comments

Banned

well rick, the first thing you need to do is trawl the net for answers. search engines are your friends. i wasnt gonna go ahead with this...but what the hey.

i found this in under two minutes...hope it helps you some :-)

Private Sub Command1_Click()
Open "d:\test.txt" For Append As #1 ' will add data to existing file
'if you want to clear the existing records each time then
'use the word 'Output' instead of 'Append'


Dim i As Integer
For i = 1 To 9
'Print #1, i, i + 1
Print #1, i & "," & i + 1
'choose the option that fits you
Next
Close #1
End Sub

Ok i know this is for a command button (text box entry me thinks) and not a combo box. But trial and error old dog and lemme know how you get on.

give me html codes anyday, lol

Banned

you any good with oracle?
Post a comment
Avatar
@
    Text
    Top Discussions
    1. Topcashback Trick or Treat competition77883
    2. Win an all-inclusive holiday to Antigua, including flights!77
    3. Win a villa holiday for two in Portugal with Four Seasons Fairways @ Sunday…1111
    4. Win a trip to Dublin, with Ireland.com via Classic FM23

    See more discussions