-
Apr 3rd, 2024, 02:39 AM
#1
Thread Starter
Lively Member
how to have the treeview the whole height of the page
Hello,
I attaced the picture. In this picture there is a horizontal line below of the tree view. I want the tree view have the whole place. how to do that?
now fill for tree view is none and for toolstrip is top.
thank you
-
Apr 3rd, 2024, 03:40 AM
#2
Re: how to have the treeview the whole height of the page
Set the Height at design time and set Dock… I don’t remember the possible values at the moment, so try it, and see how it looks
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Apr 3rd, 2024, 04:32 AM
#3
Re: how to have the treeview the whole height of the page
There's no need to set the Height if you set Dock. Dock the ToolStrip to Top first, then Dock the TreeView to Left. That should give you the effect you want.
-
Apr 3rd, 2024, 07:30 AM
#4
Thread Starter
Lively Member
Re: how to have the treeview the whole height of the page
Hello,
I set the toolstrip to top and then treeview to left but the treeview will be disappeared when i do it.
-
Apr 3rd, 2024, 09:40 AM
#5
Re: how to have the treeview the whole height of the page
Sounds like you did something wrong. Create a new form, add a ToolStrip, then add a TreeView. The ToolStrip will be docked to the Top by default. Set the Dock for the TreeView to Left. Does it work as expected? That's what I just did and it worked as you'd expect. If it works, you need to determine what's different about your existing form. If it doesn't work, we'll have to dig a little deeper.
-
Apr 4th, 2024, 01:53 AM
#6
Thread Starter
Lively Member
Re: how to have the treeview the whole height of the page
Hello,
you know it doesn't work for me and i can't make a new form. I have to change the current form.
-
Apr 4th, 2024, 01:57 AM
#7
Thread Starter
Lively Member
Re: how to have the treeview the whole height of the page
When i dock the treeview to left the toolstrip would be disappeared
-
Apr 4th, 2024, 02:53 AM
#8
Re: how to have the treeview the whole height of the page
 Originally Posted by mred
Hello,
you know it doesn't work for me and i can't make a new form. I have to change the current form.
He meant you should create a new application for testing purposes only. In a new application you can isolate the problem areas…
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Apr 4th, 2024, 03:41 AM
#9
Re: how to have the treeview the whole height of the page
 Originally Posted by mred
you know it doesn't work for me
Yes I do but it should if you did it right, so either you did something wrong or something is broken in your project or on your system. We can't work out which or what if all you do is keep telling it does work.
 Originally Posted by mred
i can't make a new form.
Of course you can. It's for diagnostic/testing purposes so can simply be discarded when that's done. Isolating problem functionality like that is not even something we should need to suggest. It should be something you do as a matter of course before even posting here. If the cause of the issue is something other than the ToolStrip or the TreeView and you haven't even mentioned it to us then this has all been a waste of your time and ours.
 Originally Posted by mred
I have to change the current form.
The two are not mutually exclusive.
 Originally Posted by mred
When i dock the treeview to left the toolstrip would be disappeared
That's not normal so, again, we need more specific information.
 Originally Posted by .paul.
He meant you should create a new application for testing purposes only. In a new application you can isolate the problem areas…
Not even necessarily a new application. Just add a new form to the same application and delete it once the testing is done. If you're using source control, which you should, then you can simply discard your changes and everything goes back to how it was on the last pull. If you do appropriate testing and still can't work out the issue then you should be providing us with a set of steps that we can follow to reproduce the issue. We'll be doing that with a new form so you should be testing that way too. If it works on a new form but not on the existing one then it's obviously something else about the existing form that's the problem, so you can change the new form to match the existing one step by step until it breaks, at which point you will have identified the cause.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|