Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Duplication a Form

Started 1 month, 2 weeks ago by idspence
I have a web browser.  and I would like button that duplicated the form.  (i.e. if you press CTRL + N in internet explorer)
Site: MSDN Forums  MSDN Forums - site profile
Forum: Visual Basic General  Visual Basic General - forum profile
Total authors: 3 authors
Total thread posts: 11 posts
Thread activity: no new posts during last week
Domain info for: microsoft.com

Other posts in this thread:

kaymaf replied 1 month, 2 weeks ago
If you want that, run/launch another instance of your program and pass the current webpage url to your webbrowser. kaymaf

Acamar replied 1 month, 2 weeks ago
Does your form have a property for the current URL?  You would simply create a new instance of your form and set the URL property of that instance to the link that was clicked.  Dim newForm as Form1 = New Form1 newForm.URL = <the URL for the link that was clicked> newForm.Show Or, you could create a constructor that took the link as an argument, so creating the new instance and settng the ...

idspence replied 1 month, 2 weeks ago
what?

Acamar replied 1 month, 2 weeks ago
You can have as many instances of your form as you require.  Dim newForm as Form1 = New Form1 newForm.Show Note that if you repeat that you will not be able to reference the new forms from the first form that you start.  But if each form is independent and includes functions for closing etc, then that doesn't matter.   If you want to keep track of the forms you create and be able to manage ...

idspence replied 1 month, 2 weeks ago
okay great :D.  how would i be able to use that code when the user click a link in the webbrowser that opens in a new window?

Acamar replied 1 month, 2 weeks ago
Does your form have a property for the current URL?  You would simply create a new instance of your form and set the URL property of that instance to the link that was clicked.  Dim newForm as Form1 = New Form1 newForm.URL = <the URL for the link that was clicked> newForm.Show Or, you could create a constructor that took the link as an argument, so creating the new instance and settng the ...

idspence replied 1 month, 2 weeks ago
Okay /  thats answers my first question   but i dont think you fully understood what I ment. < a href = "http://www.microsoft.com/" target = "_blank" > New Window Link </ a > When a HTML link has the  target="_blank" in the .html file the link opens up in a new window.  But in my web browser that link would open up in internet explorer.  How do i make it so it...

Acamar replied 1 month, 2 weeks ago
Your question was "...and I would like button that duplicated the form"  In this case, the button would execute the code to duplicate the form, using the address you will provide (eg, from a tag on the current page, or a default).  In other words, the user decides that they want a new form to open, and indicates that by clicking the button. The question now appears to be "How do I intercept a ...

idspence replied 1 month, 1 week ago
when i said "   but i dont think you fully understood what I ment. " i was trying to save a post.  but i guess ill make a new post and ask the above question.

Acamar replied 1 month, 1 week ago
The Navigating event, which occurs in response to the user's attempt to move to a new site, includes a property in the event args that tells you the site they are moving to.  If you intercept that event and look at the URL, you can detect if it is _blank, cancel the navigation, and open your additional form with a default addres.

 

Top contributing authors

Name
Posts
idspence
5
user's latest post:
Duplication a Form
Published (2009-11-14 03:00:00)
when i said &quot;   but i dont think you fully understood what I ment. &quot; i was trying to save a post.  but i guess ill make a new post and ask the above question.
Acamar
5
user's latest post:
Duplication a Form
Published (2009-11-14 08:08:00)
The Navigating event, which occurs in response to the user's attempt to move to a new site, includes a property in the event args that tells you the site they are moving to.  If you intercept that event and look at the URL, you can detect if it is _blank, cancel the navigation, and open your additional form with a default addres.
kaymaf
1
user's latest post:
Duplication a Form
Published (2009-11-07 15:07:00)
If you want that, run/launch another instance of your program and pass the current webpage url to your webbrowser. kaymaf

Related threads on "MSDN Forums":

Related threads on other sites:

Thread profile page for "Duplication a Form" on http://msdn.microsoft.com. This report page is a snippet summary view from a single thread "Duplication a Form", located on the Message Board at http://msdn.microsoft.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity