473,787 Members | 2,928 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 10712
> 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.ne t> wrote in message
news:u9******** ******@TK2MSFTN GP12.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 IDocHostUIHandl er. Once that is done you
can then cast webbrowsers Document property to ICustomDoc and call the
SetUIHandler method. The IDocHostUIHandl er 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******** ******@TK2MSFTN GP10.phx.gbl...

"Noah Coad [MVP .NET/C#]" <no**@coad.ne t> wrote in message
news:u9******** ******@TK2MSFTN GP12.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 IDocHostUIHandl er. Once that is done you can then cast webbrowsers Document property to ICustomDoc and call the
SetUIHandler method. The IDocHostUIHandl er 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
2300
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 connected to the internet previously or are currently online"
2
2059
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 correctly? Anyone else notice this problem? Are they going to fix it? There should also be some options to Move \Save\ the project to another location from the Start Page.
0
720
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 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...
4
1399
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 Default.aspx as the default start page. Any ideas? Thanks!
6
1869
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
3075
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 tilde in "~/my/start/page.aspx"? Perhaps there is an undocumented but known (by others here) variable that you put in your Start URL such as (literally) "http://mydevserver/mydevsite/%StartPage%" ? Thanks,
1
2602
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. Simple example: In your start page simply try to redirect... private void Page_Load(object sender, System.EventArgs e) { if (!IsPostBack) // or is. doesn't matter. { Response.Redirect(APageInYourApplication.aspx); }
1
1496
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. Unfortunately, mmc30_samples in WDK does not contain a start page sample. Do I have to derive the start page from Microsoft.ManagementConsole.FormView or something else? Do I have to implement expanding/collapsing myself, or I can use some existing...
8
2660
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 small feature request that could be easily solved but was rejected all the time in the VS 2005 cycle. I just hate doing demo's with all the Recent Project garbage in my face :-( If you agree (or don't agree) please submit your vote on this feature...
0
1659
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 show Start Page in normal mode but not in full screen mode. Does anyone happen to notice similar issue and able to fix it? Thanks, Hetal.
0
9655
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9497
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9964
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7517
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6749
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4067
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.