Valhalla Legends Forums Archive | Visual Basic Programming | Adding a browser to bots

AuthorMessageTime
EviL_MarinE
Hey, i want to add a Website browser to my bot.
I made a function:

[code]
Private Sub mnuUpdates_Click()
frmBrowser.Show
[/code]

I Start it, press that button and it says "No MDI Form Aviabable to Load"
When the form is there
Any ideas anybody?
October 13, 2004, 3:22 PM
drivehappy
Do you have your main form set as a MDI parent - such that all MDI forms will only reside in that form?
October 13, 2004, 3:35 PM
LivedKrad
The properties window is your best friend!
October 13, 2004, 6:43 PM
MichaeL
You need a webbrowser for updates? Heres a simple way to show some updates

[code]Private Sub Form_load()
Text1.text = Inet1.OpenURL("http://www.updates.com/updates.txt")
End Sub
[/code]
Make the text box multiline and your set.  That will display whatever text you have in the updates.txt to the Text box, give it a try.  Simple, but effective
October 14, 2004, 1:24 AM
Newby
I'm assuming you had it generate the default browser form.

If you are using an MDI-style form layout, it should be fine.

However, from the looks of it, you are using SDI. Tell the frmBrowser that it isn't a child window.
October 14, 2004, 6:12 AM
Quarantine
VB6 has voice recognition ... hrmm :P
October 14, 2004, 7:28 AM
EviL_MarinE
i got it done ages ago, sorry for not saying
October 14, 2004, 3:57 PM
titan0060
doesn't VB6 come with a browser form built in?
October 14, 2004, 8:05 PM
MeltingWax
because wouldn't that be a waste when you can use the windows html interpreter?
October 17, 2004, 5:20 PM
LivedKrad
Sounds stupid.
October 17, 2004, 5:28 PM
CrAzY
Uhm, you relize that there is a Internet Explorer .ocx.  ;)
October 19, 2004, 12:19 AM
Imperceptus
I strongly suggest using the Execute method and then a nice state changed procedure.  Runs about 5 times faster from what I have noticed.
October 20, 2004, 9:32 PM

Search