Tutorials
Resources
Forum
Communities
Interview
Jobs
Projects
Offshore Development
Silverlight Tutorials
|
Mentor
|
Code Converter
|
Articles
|
Code Factory
|
Computer Jokes
|
Members
|
Peer Appraisal
|
IT Companies
|
Bookmarks
|
Revenue Sharing
|
Prizes & Awards
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
srinivasa reddy...
(25)
Tejinder Singh ...
(16)
Babu Akkandi
(16)
Last 7 Days
Appukuttan
(620)
Babu Akkandi
(453)
Tejinder Singh ...
(267)
more...
New Feature:
Community Sites
:
Create your own .NET community website and start earning from Google AdSense !
It's Free !
Creating web browser in .Net that can't be closed by Virus
Posted Date: 18 May 2008
Resource Type:
Code Snippets
Category:
C# Syntax
Author:
shakti singh tanwar
Member Level:
Diamond
Rating:
Points
: 10
Some time back my system got affected by Muaaaahh virus.This virus didn't allow me to open orkut site and even when i tried to search orkut using google it closed my browser window.Then i created a .Net windows application using WebBrowser control.
Advantage of this control is that it can't be closed by any external application like say virus since it runs inside its own process and .Net application security doesn't allow an object to access other's memory directly unless it's a secure communication.
So I opened a windows application and added a webbrowser control to my page.
I placed a button on my form and write below code in click event.
try
{
object missing = System.Reflection.Missing.Value;
axWebBrowser1.Navigate( textBox1.Text,ref missing,ref missing,ref missing,ref missing);
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
and Bingo.
Responses
No responses found. Be the first to respond and make money from
revenue sharing program
.
Feedbacks
Popular Tags
What are tags ?
Search Tags
Sign In
(No tags found.)
Post Feedback
This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must
Sign In
to post a response.
Next Resource:
Change Disktop background using PInvoke
Previous Resource:
Getting schema of database
Return to Discussion Resource Index
Post New Resource
Category:
C# Syntax
Post resources and
earn money
!
Related Resources
Saving excelsheet in Database using Fileupload C#
Zip and Unzip files using C#
Rounding numbers in C#
Demand FileIOPermissionAccess.AllAccess
Data bind a Control to an Enum
dotNet Slackers
BizTalk Adaptors
Web Design
Contact Us
Privacy Policy
Terms Of Use