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 ...
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 ...
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 ...
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...
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 ...
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.
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.
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.
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.
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