Hi there,
is there any possible to loop height of a treeview? I would like to fit the height of a main window application to the height of a treeview.
Regards.
VB6
Printable View
Hi there,
is there any possible to loop height of a treeview? I would like to fit the height of a main window application to the height of a treeview.
Regards.
VB6
Not quite sure what you mean, but maybe something likeCode:Treeview1.Height = Me.Height
Thanks hack. Maybe You know the effect like auto resizing of height? For example if the main window goes to full screen, tree view inside also auto resizing its height. Just like in the Visual Basic ( project sample window ). Height of a tree view, and the main application are connected together all the time ( looping or something ).
Perhaps you are referring to the reentrancy problem in Resize?
If so, try this:
Code:Private Sub Form_Resize()
Static Busy As Boolean 'retains value across calls
If Busy Then Exit Sub
Busy = True
Height = TreeView1.Height
Busy = False
End Sub
Thanks VB, not exactly. I'm referring to something like that:
When I changing the main window size ( for example height ), at the same time treeview should also changing its size. Above code is only the clue what I found in VB forum but I suppose there is some little more advanced.Code:Private Sub Form_Resize()
Me.TreeView1.Move 0, 0, ScaleWidth, ScaleHeight
End Sub