473,324 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Need to control a navigate event from different form

Hola, necesito solulcionar un tema que creo que tiene que ver con el manejo
de calses.
Hello to all, I need to make a button in a form , that when pressed, it
oppens a new form, which contains a Webbrowser control, and it passes an url
as a string, then, the new windows starts to navigate!
Also, Im having problems in pcs that doesnt have VB6 installed, when the
webbrowser control form opens. It shuts down!

Heres the code I tried, but its invalid.!

mk_fglobalbrowser = New mkgv2_globalbrowser
mk_fglobalbrowser.MdiParent = Gman.mk_fcrear
mk_fglobalbrowser.Show()
mk_fglobalbrowser.cont_browser.navigate(var_url)

Nov 21 '05 #1
1 1001
Marcos,

Did you do it like this?

Open a new windows application project

In the toolbox rightclick and select add/Remove items

In the customize toolbox select Com and in that Microsoft Webbrowser

Set on form1 a button
Set on form1 a textbox
Click on that and than type in the button click event
dim frm = form2 'you will see an error at this moment
dim frm.Url = textbox1.text
frm.showdialog
frm.dispose

Add a new windowsform

Drag from your toolbox that Microsoft Web-browser on form2
(don't make it to small, than it does nothing)

Create in form2 a friend string named url
friend url as string

Then this code and you should have a mini Webbrowser.

Private load_form2 (ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles mybase.load
Me.AxWebBrowser1.Navigate2(url)
End Sub

Now all should be complete as you asked.

Most is typed in this message so watch typos

I hope this helps a little bit?

Cor

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John Hargrove | last post by:
I'm having trouble setting decimal place values in the results field of a sample management database I'm building for an environmental testing laboratory. The degree of sensitivity varies among...
0
by: bitwelder | last post by:
Hello, I have a Microsoft Access 2000 web form which needs to display images which are referenced by a fieldname in my table called URL. I've imbedded the Microsoft Web Browser activex control...
2
by: Lyle Fairfield | last post by:
I am using Microsoft’s Web Browser Control embedded on an Access Form to browse a specific site. I have a good reason for doing so; the pages on this site run code which aborts their display unless...
9
by: kimiraikkonen | last post by:
Hello experts, That's very very simple question but i wonder if you can help: I have form1 and a button which brings user to form2 when button is clicked, and i have a web-browser (.net 2.0...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.