473,410 Members | 1,930 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,410 software developers and data experts.

MDI Form with Web Browser

I am developing a Application for a Project at Uni, and I have made a web
browser on a form. It works when I have the form as its own window, but when
I put it in a MDI it dorsnt work. Does anyone know a way around this?? thanks
--
------------
Mike Tadd
Nov 21 '05 #1
5 1943
Hi Mike,

Give us some more detail. I have a browser working as a child window in an
mdi app with no difficulty - I did nothing special.

Here's my initial code, calling webbrowser.vb, a (mdi child) windows form:
Dim newmdichild As New webbrowser

newmdichild.MdiParent = Me

newmdichild.Show()

Dim nullObject As System.Object = 0

Dim str As String = ""

Dim nullObjStr As System.Object = str

newmdichild.AxWebBrowser1.GoHome()

HTH,

Bernie Yaeger

"Mike Tadd" <Mi******@discussions.microsoft.com> wrote in message
news:D8**********************************@microsof t.com...
I am developing a Application for a Project at Uni, and I have made a web
browser on a form. It works when I have the form as its own window, but
when
I put it in a MDI it dorsnt work. Does anyone know a way around this??
thanks
--
------------
Mike Tadd

Nov 21 '05 #2
I have the same midi part
BrowserWindow.MDIParent = Me
BrowserWindow.show()

This brings it up ok. But nothing is then displayed. there is a text box on
the page that allows you to enter a if, then it changes the url to the
string. i.e. display.php?page=434.

when the user changes the text box, and clicks go the page= changes. thats
all that happens.

"Bernie Yaeger" wrote:
Hi Mike,

Give us some more detail. I have a browser working as a child window in an
mdi app with no difficulty - I did nothing special.

Here's my initial code, calling webbrowser.vb, a (mdi child) windows form:
Dim newmdichild As New webbrowser

newmdichild.MdiParent = Me

newmdichild.Show()

Dim nullObject As System.Object = 0

Dim str As String = ""

Dim nullObjStr As System.Object = str

newmdichild.AxWebBrowser1.GoHome()

HTH,

Bernie Yaeger

"Mike Tadd" <Mi******@discussions.microsoft.com> wrote in message
news:D8**********************************@microsof t.com...
I am developing a Application for a Project at Uni, and I have made a web
browser on a form. It works when I have the form as its own window, but
when
I put it in a MDI it dorsnt work. Does anyone know a way around this??
thanks
--
------------
Mike Tadd


Nov 21 '05 #3
Hi Mike,

Now I do recall having the same problem before I looked into it a little
further. And then I added this code (which I included before but which you
are not using) AFTER the browserwindow.show():
Dim nullObject As System.Object = 0

Dim str As String = ""

Dim nullObjStr As System.Object = str

newmdichild.AxWebBrowser1.GoHome()

Then, in the browser window itself, I have a button that is set as the
form's acceptbutton called 'goit'. Here is its click event code:

Dim nullObject As System.Object = 0

Dim str As String = ""

Dim nullObjStr As System.Object = str

AxWebBrowser1.Navigate(addressit.Text, nullObject, nullObjStr, nullObjStr,
nullObjStr)

Finally, I have a call to the axwebrowser's documentcomplete event:

Private Sub AxWebBrowser1_DocumentComplete(ByVal sender As Object, ByVal e
As AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent ) Handles
AxWebBrowser1.DocumentComplete

addressit.Text = AxWebBrowser1.LocationURL.ToString

End Sub

I also use toolbars and images for the usual buttons - goback, home,
goforward, etc. If you need some help with these, let me know.

Bernie

"Mike Tadd" <Mi******@discussions.microsoft.com> wrote in message
news:CE**********************************@microsof t.com...
I have the same midi part
BrowserWindow.MDIParent = Me
BrowserWindow.show()

This brings it up ok. But nothing is then displayed. there is a text box
on
the page that allows you to enter a if, then it changes the url to the
string. i.e. display.php?page=434.

when the user changes the text box, and clicks go the page= changes. thats
all that happens.

"Bernie Yaeger" wrote:
Hi Mike,

Give us some more detail. I have a browser working as a child window in
an
mdi app with no difficulty - I did nothing special.

Here's my initial code, calling webbrowser.vb, a (mdi child) windows
form:
Dim newmdichild As New webbrowser

newmdichild.MdiParent = Me

newmdichild.Show()

Dim nullObject As System.Object = 0

Dim str As String = ""

Dim nullObjStr As System.Object = str

newmdichild.AxWebBrowser1.GoHome()

HTH,

Bernie Yaeger

"Mike Tadd" <Mi******@discussions.microsoft.com> wrote in message
news:D8**********************************@microsof t.com...
>I am developing a Application for a Project at Uni, and I have made a
>web
> browser on a form. It works when I have the form as its own window, but
> when
> I put it in a MDI it dorsnt work. Does anyone know a way around this??
> thanks
> --
> ------------
> Mike Tadd


Nov 21 '05 #4
This still dont work. I get too many arguments errors on the navigate. bit of
the code below. Also what does this code do?? anyone else know a way to get
this working, i need it done for my coursework very soon.

"Bernie Yaeger" wrote:
Hi Mike,

Now I do recall having the same problem before I looked into it a little
further. And then I added this code (which I included before but which you
are not using) AFTER the browserwindow.show():
Dim nullObject As System.Object = 0

Dim str As String = ""

Dim nullObjStr As System.Object = str

newmdichild.AxWebBrowser1.GoHome()

Then, in the browser window itself, I have a button that is set as the
form's acceptbutton called 'goit'. Here is its click event code:

Dim nullObject As System.Object = 0

Dim str As String = ""

Dim nullObjStr As System.Object = str

AxWebBrowser1.Navigate(addressit.Text, nullObject, nullObjStr, nullObjStr,
nullObjStr)

Finally, I have a call to the axwebrowser's documentcomplete event:

Private Sub AxWebBrowser1_DocumentComplete(ByVal sender As Object, ByVal e
As AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent ) Handles
AxWebBrowser1.DocumentComplete

addressit.Text = AxWebBrowser1.LocationURL.ToString

End Sub

I also use toolbars and images for the usual buttons - goback, home,
goforward, etc. If you need some help with these, let me know.

Bernie

"Mike Tadd" <Mi******@discussions.microsoft.com> wrote in message
news:CE**********************************@microsof t.com...
I have the same midi part
BrowserWindow.MDIParent = Me
BrowserWindow.show()

This brings it up ok. But nothing is then displayed. there is a text box
on
the page that allows you to enter a if, then it changes the url to the
string. i.e. display.php?page=434.

when the user changes the text box, and clicks go the page= changes. thats
all that happens.

"Bernie Yaeger" wrote:
Hi Mike,

Give us some more detail. I have a browser working as a child window in
an
mdi app with no difficulty - I did nothing special.

Here's my initial code, calling webbrowser.vb, a (mdi child) windows
form:
Dim newmdichild As New webbrowser

newmdichild.MdiParent = Me

newmdichild.Show()

Dim nullObject As System.Object = 0

Dim str As String = ""

Dim nullObjStr As System.Object = str

newmdichild.AxWebBrowser1.GoHome()

HTH,

Bernie Yaeger

"Mike Tadd" <Mi******@discussions.microsoft.com> wrote in message
news:D8**********************************@microsof t.com...
>I am developing a Application for a Project at Uni, and I have made a
>web
> browser on a form. It works when I have the form as its own window, but
> when
> I put it in a MDI it dorsnt work. Does anyone know a way around this??
> thanks
> --
> ------------
> Mike Tadd


Nov 21 '05 #5
This still dont work. I get too many arguments errors on the navigate. bit of
the code below. Also what does this code do?? anyone else know a way to get
this working, i need it done for my coursework very soon.

"Bernie Yaeger" wrote:
Hi Mike,

Now I do recall having the same problem before I looked into it a little
further. And then I added this code (which I included before but which you
are not using) AFTER the browserwindow.show():
Dim nullObject As System.Object = 0

Dim str As String = ""

Dim nullObjStr As System.Object = str

newmdichild.AxWebBrowser1.GoHome()

Then, in the browser window itself, I have a button that is set as the
form's acceptbutton called 'goit'. Here is its click event code:

Dim nullObject As System.Object = 0

Dim str As String = ""

Dim nullObjStr As System.Object = str

AxWebBrowser1.Navigate(addressit.Text, nullObject, nullObjStr, nullObjStr,
nullObjStr)

Finally, I have a call to the axwebrowser's documentcomplete event:

Private Sub AxWebBrowser1_DocumentComplete(ByVal sender As Object, ByVal e
As AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent ) Handles
AxWebBrowser1.DocumentComplete

addressit.Text = AxWebBrowser1.LocationURL.ToString

End Sub

I also use toolbars and images for the usual buttons - goback, home,
goforward, etc. If you need some help with these, let me know.

Bernie

"Mike Tadd" <Mi******@discussions.microsoft.com> wrote in message
news:CE**********************************@microsof t.com...
I have the same midi part
BrowserWindow.MDIParent = Me
BrowserWindow.show()

This brings it up ok. But nothing is then displayed. there is a text box
on
the page that allows you to enter a if, then it changes the url to the
string. i.e. display.php?page=434.

when the user changes the text box, and clicks go the page= changes. thats
all that happens.

"Bernie Yaeger" wrote:
Hi Mike,

Give us some more detail. I have a browser working as a child window in
an
mdi app with no difficulty - I did nothing special.

Here's my initial code, calling webbrowser.vb, a (mdi child) windows
form:
Dim newmdichild As New webbrowser

newmdichild.MdiParent = Me

newmdichild.Show()

Dim nullObject As System.Object = 0

Dim str As String = ""

Dim nullObjStr As System.Object = str

newmdichild.AxWebBrowser1.GoHome()

HTH,

Bernie Yaeger

"Mike Tadd" <Mi******@discussions.microsoft.com> wrote in message
news:D8**********************************@microsof t.com...
>I am developing a Application for a Project at Uni, and I have made a
>web
> browser on a form. It works when I have the form as its own window, but
> when
> I put it in a MDI it dorsnt work. Does anyone know a way around this??
> thanks
> --
> ------------
> Mike Tadd


Nov 21 '05 #6

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

Similar topics

12
by: Kepler | last post by:
How do you get the height of the client browser in IE? Both document.body.clientHeight and document.body.offsetHeight return the height of the document. If the page is long and there's a vertical...
4
by: Stuart Perryman | last post by:
Hi, I have the following code which works just fine in IE6 but not in Firefox. It is an extract of several table rows each with an individual form. It is generated by php. <form...
1
by: Ramachandra | last post by:
Hi All, I hav developed a site. And in one of the pgaes I am using the web excel object. Some clients complining that they are anable to see the excel object. After doing some work around on that...
2
by: Paul | last post by:
Hi this is related to a previous post, hopefully just a bit clearer description o the problem. I have a parent form that opens a new form (child form) while still leaving the parent form open....
13
by: deko | last post by:
I have a basic feedback form with a submit button. After the "send" button is clicked, I want the user to be redirected to a different page that says "Your message has been sent." How do I do...
5
by: jeremy | last post by:
I have an ASP.Net 2.0 application running on Windows Server 2003. The application displays properly in Internet Explorer, however, when I use a browser control embedded in a .net form, I get an...
2
by: Frank | last post by:
I created this test routine to return the form containing a certain input element: function GetElementForm(element) { // Return the form that contains element. var myElement = element; ...
27
by: David Golightly | last post by:
This is just a quick poll for all you web devs out there: What browsers do you test on/are concerned about compatibility with? Obviously, you're going to test on current-generation browsers such...
3
by: scripteaze | last post by:
posting to a form with no form name or it's just that i cant find the form name. can anyone explain how to either post to a form with no name or, find the name of the form..here my current output,...
4
by: isoquin | last post by:
This is an odd one. I have a group of users who all need to sign onto site X each with a unique password. Site X has a simple form with a password field and submit button. The submit method is...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.