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 SplitterFixedPanel = Panel1 [1,5]; and I've set
SplitterDistance 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 BackgroundImageLayout 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 4145
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 SplitterFixedPanel = Panel1 [1,5]; and I've set
SplitterDistance 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 BackgroundImageLayout 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.microsoft.comwrote:
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 SplitterFixedPanel = Panel1 [1,5]; and I've set
SplitterDistance 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 BackgroundImageLayout 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.microsoft.comwrote:
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 SplitterFixedPanel = Panel1 [1,5]; and I've set
SplitterDistance 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 BackgroundImageLayout 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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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)...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |