Windows Forms Treeview

August 3, 2010 at 07:27:21
Specs: Windows XP
Hello,

I'm new to the forum so please bear with me!!
I have 2 problems with my project-

I have a web browser in my Forms application.
When I open one of my documents and display it in the web browser I would also like the title of the document to appear in the browser.

Has anyone any ideas?

And Secondly-

When I select a node in my treeview I have no problem seeing them in my web browser.

My problem is that when I try to collapse my tree then my last viewed document in the web browser remains visibe.

How can I ensure that when I collapse my tree my web browser will also become totally empty?

Thanks for the help.


See More: Windows Forms Treeview

Report •

#1
August 3, 2010 at 08:48:24
I have a web browser in my Forms application.
When I open one of my documents and display it in the web browser I would also like the title of the document to appear in the browser.

Has anyone any ideas?
I have no idea what you're asking here.

How can I ensure that when I collapse my tree my web browser will also become totally empty?
Trap the "TreeView.AfterCollapse" event, and navigate to "about:blank".


Report •

#2
August 3, 2010 at 10:11:10
Hello,

Thanks for the help. Problem no.2 fixed!!

With the first problem- I have a treeview. In the treeview I have 10 menus. In each menu I have a further 10 sub menus.
For example the Main menu is called 'computing.net' and 1 of the sub menus is called 'answers'. When I click on 'answers' the document is displayed in the web browser. I would also like the title of the document ('answers') to appear in the web browser in the Label box that I have dragged onto the application.

Sorry that I can't explain it any better.
I really appreciate the help.


Report •

#3
August 3, 2010 at 15:30:38
Assuming you're using the WebBrowser COM object, there's an event called TitleChange. Trap it.

Report •
Related Solutions


Ask Question