Click here to Skip to main content
15,922,533 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi friends
i want to display just a part of page in webbrowser for example show a form
and webbrowser just show form

How can I do this? :)
Posted
Updated 13-Mar-15 12:30pm
v2
Comments
Sergey Alexandrovich Kryukov 13-Mar-15 18:37pm    
What have you tried so far?
What do you mean by WebBrowser? Which one? Full type name, please.
—SA
nabeghe 13-Mar-15 19:26pm    
for example i open this codeproject page in webbrowser control :)
i want webbrowser just show (Add your solution here) part of this page

1 solution

You can extract part of page and produce new HTML text, showing only what you need. Then set that text as a control's property. For example:
https://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.documenttext%28v=vs.110%29.aspx[^],
https://msdn.microsoft.com/en-us/library/system.windows.controls.webbrowser.navigatetostring%28v=VS.90%29.aspx[^].

As you can see, solutions are different from different WebBrowser classes. Too bad you did not properly indicate what you are using.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900