Hi All,
I have a horizontal Splitter, for which I would like the top panel to
remain 20 pixels in height. I do this because I have a containter on
it, and I overide the OnPaint method. It is being painted as a band
similar to that of Disk Defragmentor.
Any ideas on how to disable a Splitter panel from being resized? I've
locked the controls (it stops me from resizing it at design time);
I've set SplitterFixedPa nel = Panel1 [1,5]; and I've set
SplitterDistanc e to the same as design time [2]. Overriding Moving
events causes a runtime error when I try to force the control's height
back to the desired height through the Height property [3, 4]. From
[5,6]: "Use the Panel1 [or Panel2] property to configure the left
panel of a vertical SplitContainer or the top panel of a horizontal
SplitContainer. For example, you can specify the minimum size of the
panel by changing the value of the Panel1MinSize property, set the
FixedPanel property to Panel1 so that the panel remains the same size
when the container is resized, or you can get or set the panel's
BackgroundImage and BackgroundImage Layout properties."
Nothing stops this damn thing from moving. Any help would be
appreciated.
Thanks,
Jeff
[1] http://msdn2.microsoft.com/en-us/lib...el(vs.80).aspx
[2] http://msdn2.microsoft.com/en-us/lib...ce(VS.80).aspx
[3] http://msdn2.microsoft.com/en-us/lib...ng(VS.80).aspx
[4] http://msdn2.microsoft.com/en-us/lib...ed(VS.80).aspx
[5] http://msdn2.microsoft.com/en-us/lib...l1(VS.80).aspx
[6] http://msdn2.microsoft.com/en-us/lib...l2(VS.80).aspx 3 4168
You should look at SplitContainer which offers Panel1MinSize and
Panel2MinSize. This would do what you are looking for, in my opinion.
"Jeffrey Walton" wrote:
Hi All,
I have a horizontal Splitter, for which I would like the top panel to
remain 20 pixels in height. I do this because I have a containter on
it, and I overide the OnPaint method. It is being painted as a band
similar to that of Disk Defragmentor.
Any ideas on how to disable a Splitter panel from being resized? I've
locked the controls (it stops me from resizing it at design time);
I've set SplitterFixedPa nel = Panel1 [1,5]; and I've set
SplitterDistanc e to the same as design time [2]. Overriding Moving
events causes a runtime error when I try to force the control's height
back to the desired height through the Height property [3, 4]. From
[5,6]: "Use the Panel1 [or Panel2] property to configure the left
panel of a vertical SplitContainer or the top panel of a horizontal
SplitContainer. For example, you can specify the minimum size of the
panel by changing the value of the Panel1MinSize property, set the
FixedPanel property to Panel1 so that the panel remains the same size
when the container is resized, or you can get or set the panel's
BackgroundImage and BackgroundImage Layout properties."
Nothing stops this damn thing from moving. Any help would be
appreciated.
Thanks,
Jeff
[1] http://msdn2.microsoft.com/en-us/lib...el(vs.80).aspx
[2] http://msdn2.microsoft.com/en-us/lib...ce(VS.80).aspx
[3] http://msdn2.microsoft.com/en-us/lib...ng(VS.80).aspx
[4] http://msdn2.microsoft.com/en-us/lib...ed(VS.80).aspx
[5] http://msdn2.microsoft.com/en-us/lib...l1(VS.80).aspx
[6] http://msdn2.microsoft.com/en-us/lib...l2(VS.80).aspx
Hi Mike,
Thanks. I tried that also. I suppose this is another bug. I'm amazed
that so many of these exist. How did the Framework (2.0) get through
QA??? I've had problems with ListView/SelectedNode after ExpandAll,
setting the application icon, this issue, and three more - and this is
one project. It never ends. I guess this is why when visiting MSDN's
pages, their sample code receives a single star rating.
Jeff
On Nov 21, 10:24 am, Family Tree Mike
<FamilyTreeM... @discussions.mi crosoft.comwrot e:
You should look at SplitContainer which offers Panel1MinSize and
Panel2MinSize. This would do what you are looking for, in my opinion.
"Jeffrey Walton" wrote:
Hi All,
I have a horizontal Splitter, for which I would like the top panel to
remain 20 pixels in height. I do this because I have a containter on
it, and I overide the OnPaint method. It is being painted as a band
similar to that of Disk Defragmentor.
Any ideas on how to disable a Splitter panel from being resized? I've
locked the controls (it stops me from resizing it at design time);
I've set SplitterFixedPa nel = Panel1 [1,5]; and I've set
SplitterDistanc e to the same as design time [2]. Overriding Moving
events causes a runtime error when I try to force the control's height
back to the desired height through the Height property [3, 4]. From
[5,6]: "Use the Panel1 [or Panel2] property to configure the left
panel of a vertical SplitContainer or the top panel of a horizontal
SplitContainer. For example, you can specify the minimum size of the
panel by changing the value of the Panel1MinSize property, set the
FixedPanel property to Panel1 so that the panel remains the same size
when the container is resized, or you can get or set the panel's
BackgroundImage and BackgroundImage Layout properties."
Nothing stops this damn thing from moving. Any help would be
appreciated.
Thanks,
Jeff
[1]http://msdn2.microsoft .com/en-us/library/system.windows. forms.splitco.. .
[2]http://msdn2.microsoft .com/en-us/library/system.windows. forms.splitco.. .
[3]http://msdn2.microsoft .com/en-us/library/system.windows. forms.splitco.. .
[4]http://msdn2.microsoft .com/en-us/library/system.windows. forms.splitco.. .
[5]http://msdn2.microsoft .com/en-us/library/system.windows. forms.splitco.. .
[6]http://msdn2.microsoft .com/en-us/library/system.windows. forms.splitco.. .- Hide quoted text -
- Show quoted text -
I'm sorry you are having trouble with this. I just tried it here, where all
I have is VS 2008 express. It works as advertised for me in this environment.
"Jeffrey Walton" wrote:
Hi Mike,
Thanks. I tried that also. I suppose this is another bug. I'm amazed
that so many of these exist. How did the Framework (2.0) get through
QA??? I've had problems with ListView/SelectedNode after ExpandAll,
setting the application icon, this issue, and three more - and this is
one project. It never ends. I guess this is why when visiting MSDN's
pages, their sample code receives a single star rating.
Jeff
On Nov 21, 10:24 am, Family Tree Mike
<FamilyTreeM... @discussions.mi crosoft.comwrot e:
You should look at SplitContainer which offers Panel1MinSize and
Panel2MinSize. This would do what you are looking for, in my opinion.
"Jeffrey Walton" wrote:
Hi All,
I have a horizontal Splitter, for which I would like the top panel to
remain 20 pixels in height. I do this because I have a containter on
it, and I overide the OnPaint method. It is being painted as a band
similar to that of Disk Defragmentor.
Any ideas on how to disable a Splitter panel from being resized? I've
locked the controls (it stops me from resizing it at design time);
I've set SplitterFixedPa nel = Panel1 [1,5]; and I've set
SplitterDistanc e to the same as design time [2]. Overriding Moving
events causes a runtime error when I try to force the control's height
back to the desired height through the Height property [3, 4]. From
[5,6]: "Use the Panel1 [or Panel2] property to configure the left
panel of a vertical SplitContainer or the top panel of a horizontal
SplitContainer. For example, you can specify the minimum size of the
panel by changing the value of the Panel1MinSize property, set the
FixedPanel property to Panel1 so that the panel remains the same size
when the container is resized, or you can get or set the panel's
BackgroundImage and BackgroundImage Layout properties."
Nothing stops this damn thing from moving. Any help would be
appreciated.
Thanks,
Jeff
[1]http://msdn2.microsoft .com/en-us/library/system.windows. forms.splitco.. .
[2]http://msdn2.microsoft .com/en-us/library/system.windows. forms.splitco.. .
[3]http://msdn2.microsoft .com/en-us/library/system.windows. forms.splitco.. .
[4]http://msdn2.microsoft .com/en-us/library/system.windows. forms.splitco.. .
[5]http://msdn2.microsoft .com/en-us/library/system.windows. forms.splitco.. .
[6]http://msdn2.microsoft .com/en-us/library/system.windows. forms.splitco.. .- Hide quoted text -
- Show quoted text -
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bob (remove 'excise-' to reply) |
last post by:
I've got a form with three controls: a left-docked richtextbox, a
right-docked form, and a right-docked listview.
When I resize the form, the listview increases and decreases, the
splitter remaining at the same spot. How can I maintain the size of the
right-side listview when resizing the parent form? (Have the splitter
move in relationship to the right-edge of the form.)
I have to do this programmatically, no VS IDE to work with.
|
by: John |
last post by:
Hi,
I have a group of controls in a panel on the right-hand side of a
splitter and a treeview on the left-hand side.
The only configuration that I can find to make the right-hand side
resize correctly is:
lhsTreeview - Dock = Fill, Anchor = Top,Left
splitter - Dock = Right
rhsPanel - Dock = Right, Anchor = Top,Left
|
by: BBM |
last post by:
I'm trying to set up a form with two panels divided by a Splitter control.
I can make the Splitter work in the situations described in the documentation (Listbox or TreeView on left w/Dock set to Left, Panel on right of form w/ Dock set to Fill, Splitter between them set w/ Dock set to Left. Works as advertised.
But... if I change to have two panels on the form one on the left with Dock set to Left, a panel on the right with Dock set to...
|
by: Gustaf Liljegren |
last post by:
I've been following the "Walkthrough: Creating a Multipane User
Interface with Windows Forms" on MSDN (please Google). It creates an
Outlook-like UI. It works great, but there is one thing missing for me.
When I resize the form, I want the left pane to keep its width, while
the two right panes should resize proportionally. When I resize now, the
splitter bar just disappears when I make the form smaller.
Hope there's a solution,
Gustaf
|
by: Sam |
last post by:
Hi all,
I have a splitter sitting between 2 panels (which I use for drawing) on my
main form. The problem that I'm having is that when I resize my form, the
panel(plnDwgContainer) that has the fill dockstyle method seems to be a bit
slow. However, if I try to resize my panel using the splitter, then it seems
to be ok. Does anyone experience this? Below is what I have on my form.
Thanks
Sam
| |
by: Sam |
last post by:
Hi,
I have a panel docked to the bottom of my form. This panel can be
expanded vertically by clicking on a button. When the user click on the
button again, the panel is then collapsed. The panel has a horizontal
splitter, which the user can use to resize the panel when it is
expanded. I would like to save the height of the panel when the user
uses the splitter, so that when the panel is expanded via the button,
it size will be...
|
by: dotnetchic |
last post by:
In vs 2003 we were able to place a container (panel) on the bottom of a
form, attach a splitter to the bottom, and place another container
panel up top, set to fill. Then within the top panel, you could add
two more panels, one docked to the left, attach a splitter to the left,
then set the other panel to fill. This gives you one main top/bottom
window with user resize capability, plus the ability to resize within
the upper portion of...
|
by: JDeats |
last post by:
I have a simple WinForm with a WinForms splitter down the middle. I
would like to make it so when the user clicks on a button inside the
left portion of the screen (the panel to the splitters left) that
portion of the form is reduced in size by about 90% (I want to shrink
this area of the of the form).
The splitter doesn't appear to have any methods for programmatic
resizing, I tried changing it's width settings and the splitter moved...
|
by: mbh1 |
last post by:
hi,
I've added a splitter container to my form, but now I want
to add another panel which will also resize itself according
to the two other panel (I want two verticaly panels and one horizontal)
is there a way to this "triple" splitter container??
thanks
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |