Problems viewing last node in TreeView

I had a problem with TreeView in Visual Studio 2008. I add a TreeView to my form, loading it with data at runtime, and then the last object in the list ends further than the scroll bar goes. The only way to see this object is to open one of the other nodes and close it. Does anyone know a way to avoid this problem?

+3
source share
1 answer

I have not seen this behavior before, it seems that this may be a problem with the pattern. Can you post some code to demonstrate what you are doing to make sure there is nothing crazy?

One thing I can offer to try is to call treeview.SuspendLayout () and ResumeLayout () after adding your nodes. Look, it doesn't matter.

EDIT

Flag This Problem

Correction Suggestions:

i) Disabling visual styles.
ii) Adding an empty node to the end of the list.

+3
source

Source: https://habr.com/ru/post/1729912/


All Articles