Page 1 of 2

Webbrowser Open links

Posted: Mon Mar 29, 2010 4:29 pm
by MasterCoding
hi does any 1 knows a way to get the webbrowser control contextmenustrip to get away

so i can add my own with open link in a new tab and new window

Thanx

Re: Webbrowser Open links

Posted: Mon Mar 29, 2010 4:38 pm
by Insignia

Re: Webbrowser Open links

Posted: Mon Mar 29, 2010 5:09 pm
by kimbo
if ya add a contextmenustrip to the project ya can change the web browser contextmenustrip property to it and dat will turn off the default one and use ya own x

Re: Webbrowser Open links

Posted: Mon Mar 29, 2010 5:34 pm
by MasterCoding
guys i already know how to delete that context menu strip but i wanna add in my context menu strip open link in a new tab and in a new window i wanna add only that so

Re: Webbrowser Open links

Posted: Mon Mar 29, 2010 5:39 pm
by Usman55
Hello MasterCoding,

The way you do it is that you make your own Context Menu Strip and then Set the WebBrowser Control's ContextMenuStrip property to the name of your Context Menu Strip. Hope that helps you out!

Thank you.

Re: Webbrowser Open links

Posted: Mon Mar 29, 2010 5:43 pm
by MasterCoding
i don't get you i want just my own controls add to my context menu strip but i don't know the codes

Re: Webbrowser Open links

Posted: Mon Mar 29, 2010 5:48 pm
by Usman55
Hello again,

I'll tell you from the beginning:

1. Create a new Form.
2. Add a Web Browser control.
3. Add a Context Menu Strip.
4. Add all the controls that you want to the Context Menu Strip.
5. Now set the Web Browser's Context Menu Strip property to the Context Menu Strip that you added.

You're done!

Re: Webbrowser Open links

Posted: Mon Mar 29, 2010 5:53 pm
by MasterCoding
yes yes i JUST WANT TO KNOW SOME CODES NOT THE STEPS JUST CODEs!!!!!!!!!!!!!!!!!!!!!!

Re: Webbrowser Open links

Posted: Mon Mar 29, 2010 5:55 pm
by Usman55
What type of codes?

Re: Webbrowser Open links

Posted: Mon Mar 29, 2010 6:02 pm
by MasterCoding
the codes to do that WITH VB the code codes