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

WebBrowser in C# (VS.NET Start Page)

How does one gain access to the WebBrowser (SHDocVw) control to the extent
of the one used in VS.NET Start Page?

I'm familiar with using the control directly, I've written a tutorial on it,
and am familiar with HTML Applications (HTA), but how are features like the
right-click context sensitive menu and selection diabled in VS.NET's Start
Page?

If I attempt to make a WebBrowser control navigate to an HTA file, it brings
up a dialog asking whether to open or save the file, how do I get it to
directly open imediately in the browser?

Is there any word on when/if a .NET WebBrowser host will be released?

WebBrowser Reference:
http://msdn.microsoft.com/library/de...reflist_vb.asp

My Web Content Tutorial:
http://www.devhood.com/tutorials/tut...utorial_id=312

-Noah Coad
Microsoft MVP & MCP [.NET/C#]
Nov 15 '05 #1
4 10673
> Is there any word on when/if a .NET WebBrowser host will be released?

The much talked about
http://msdn.microsoft.com/vstudio/pr...o/roadmap.aspx contains the
sentences:
"Second, Windows Forms will include features and controls that increase
developer productivity. These include: an Active Document Container for
hosting Office documents, a Microsoft Office-style toolbar, intuitive
splitter controls, a sound component that can run in partial trust, a Web
browser control that can be accessed safely by way of managed code, and
layout controls that automatically position and resize controls on a form as
screen resolution or form dimensions change."

If it turns into reality Whidbey will quickly become my best friend...
--
WildHeart'2k3
Nov 15 '05 #2
> Is there any word on when/if a .NET WebBrowser host will be released?

The much talked about
http://msdn.microsoft.com/vstudio/pr...o/roadmap.aspx contains the
sentences:
"Second, Windows Forms will include features and controls that increase
developer productivity. These include: an Active Document Container for
hosting Office documents, a Microsoft Office-style toolbar, intuitive
splitter controls, a sound component that can run in partial trust, a Web
browser control that can be accessed safely by way of managed code, and
layout controls that automatically position and resize controls on a form as
screen resolution or form dimensions change."

If it turns into reality Whidbey will quickly become my best friend...
--
WildHeart'2k3
Nov 15 '05 #3

"Noah Coad [MVP .NET/C#]" <no**@coad.net> wrote in message
news:u9**************@TK2MSFTNGP12.phx.gbl...
How does one gain access to the WebBrowser (SHDocVw) control to the extent
of the one used in VS.NET Start Page?

I'm familiar with using the control directly, I've written a tutorial on it, and am familiar with HTML Applications (HTA), but how are features like the right-click context sensitive menu and selection diabled in VS.NET's Start
Page?


Noah,

If you want to control things like the context menu of the webbrowser you'll
have write a class to implement the IDocHostUIHandler. Once that is done you
can then cast webbrowsers Document property to ICustomDoc and call the
SetUIHandler method. The IDocHostUIHandler interface has a method called
ShowContextMenu and you can disable the showing of the menu in your
implementation of this method

hth
andrew

Nov 15 '05 #4
Just the thing I was looking for, thanks!!!

-Noah
"andrew lowe" <andrew [dot] lowe [at] geac [.] com> wrote in message
news:eH**************@TK2MSFTNGP10.phx.gbl...

"Noah Coad [MVP .NET/C#]" <no**@coad.net> wrote in message
news:u9**************@TK2MSFTNGP12.phx.gbl...
How does one gain access to the WebBrowser (SHDocVw) control to the extent of the one used in VS.NET Start Page?

I'm familiar with using the control directly, I've written a tutorial on it,
and am familiar with HTML Applications (HTA), but how are features like

the
right-click context sensitive menu and selection diabled in VS.NET's Start Page?


Noah,

If you want to control things like the context menu of the webbrowser

you'll have write a class to implement the IDocHostUIHandler. Once that is done you can then cast webbrowsers Document property to ICustomDoc and call the
SetUIHandler method. The IDocHostUIHandler interface has a method called
ShowContextMenu and you can disable the showing of the menu in your
implementation of this method

hth
andrew

Nov 15 '05 #5

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

Similar topics

2
by: Mario | last post by:
Hi, I'm experiencing a nasty problem with Visual Studio .Net 2003. Most Online Resources in the Start Page doesnt work, showing the following message: "This feature requires that you have...
2
by: Gerry Viator | last post by:
Hi all, Using VS.NET 2003 and VB.NET Why does the Modified Date on the Start Page not Update the Date correctly? A Bug? Also seams under the name column on the Start Page also doesn't Update...
0
by: Noah Coad [MVP .NET/C#] | last post by:
How does one gain access to the WebBrowser (SHDocVw) control to the extent of the one used in VS.NET Start Page? I'm familiar with using the control directly, I've written a tutorial on it, and...
4
by: VB Programmer | last post by:
When I set intro.aspx as the "start page" for my ASP.NET project it works perfectly in Visual Studio.net. When I use IE and open up the website in localhost (http://localhost/MySite/) it uses...
6
by: Randy | last post by:
Hello All, Can someone tell me why when I go to the Solution Explorer and try to set a certain aspx page as the start page (Set As Start Page), it is grayed out? Thanks :)
0
by: Jon Davis | last post by:
I know that you can configure setup Visual Studio to open a specific URL when debugging. But is it possible to set the application root and then use the project's "Start Page", i.e. replace the...
1
by: rouellette | last post by:
Is it possible to redirect to another page in your application from the start page BEFORE the user has been authenticated if you're using FORMS authentication? I can't seem to get it to work. ...
1
by: muriwai | last post by:
Hi, I am developing a managed c# snap-in for MMC 3.0. According to http://msdn2.microsoft.com/en-us/library/bb226798.aspx, the start page should have smoothly expanding/collapsing sections....
8
by: Maarten van Stam [MVP VSTO] | last post by:
I posted a feedback item in Microsoft Connect: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=277761 Please have a look at this, as I think it is a relative...
0
by: Hetal | last post by:
We recently upgraded to VS 2008 and for some reason, the environment does not show "Start Page" in full screen mode even when setting in Environment -Startup is set to "Show Start Page". It does...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.