Search:
Namespaces
Discussions
.NET v1.1
Feedback
launching default browser
Messages
Related Types
This message was discovered on
ASPFriends.com 'winforms-cs' list
.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
dave wanta (VIP)
hi all,
I have a textbox that has HTML in it. I would like to have a button on my winform that launches the system's default browser, and displays that html in the browser. I realize I may have to save the html to a temporary file, before I display it... so I guess the real hurdle is launching the default browser.
Does anyone know how to do that?
Thanks,
dave
Reply to this message...
Brian Bilbro (VIP)
Hey Dave,
If you write the html to a file, such as, c:\myfile.html
then you should be able to do:
System.Diagnostics.
Process
.Start("c:\\myfile.html");
--
Brian
[Original message clipped]
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
Reply to this message...
System.Diagnostics.Process
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com