Hi,
I have a form which contain 2 panels, Master and Detail, Master panel is on
top and Detail panel is at the bottom. In the form, I set Detail panel to
Dock to the bottom and Master panel Dock to fill. As a result, when I do
form resize, Detail's height always retain whereas Master height change base
on form size.
What I want to do now is I want to set a minimum size for the form, so that
if the form got resize small than certain value, the Scroll Bar will visible.
So I set form AutoScroll = True and form AutoScrollMinSi ze = 400,300 (which
is my form size). Then I have a problem that Master panel suddenly grow to
size 400,300 and I cannot set Master panel size lower than 400,300...and the
Scroll Bar always on.
Sorry if I didn't explain my problem very clear, I should have attach a
simple program to demostrate but I don't see such option open.
To put it simple, I want to put 2 panels to fill up the form, top panel will
resize base on form resize, whereas bottom panel size always retain. And the
form should have scroll bar visible when smaller than minimum size.
Thanks for help in advance. 1 9510
You should be dynamically resizing the controls based on the form size.
Override the form's OnSizeChanged method and layout your child controls to
the formula you like. Use AutoScrollMinSi ze correctly on the lower panel and
you should be ok.
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"Kent" <Ke**@discussio ns.microsoft.co m> wrote in message
news:51******** *************** ***********@mic rosoft.com... Hi,
I have a form which contain 2 panels, Master and Detail, Master panel is on top and Detail panel is at the bottom. In the form, I set Detail panel to Dock to the bottom and Master panel Dock to fill. As a result, when I do form resize, Detail's height always retain whereas Master height change base on form size.
What I want to do now is I want to set a minimum size for the form, so that if the form got resize small than certain value, the Scroll Bar will visible. So I set form AutoScroll = True and form AutoScrollMinSi ze = 400,300 (which is my form size). Then I have a problem that Master panel suddenly grow to size 400,300 and I cannot set Master panel size lower than 400,300...and the Scroll Bar always on.
Sorry if I didn't explain my problem very clear, I should have attach a simple program to demostrate but I don't see such option open.
To put it simple, I want to put 2 panels to fill up the form, top panel will resize base on form resize, whereas bottom panel size always retain. And the form should have scroll bar visible when smaller than minimum size.
Thanks for help in advance. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Yasin Gedik |
last post by:
Hello,
I have a problem with autoscroll property.
I am designing a form for pocket pc 2003 in whidbey, and deploying it to
emulator.
I set the forms Autoscroll property true and put something (for example a
label) out side of visible part. When in design mode there is no problem,
scrollbars automatically appears and works fine, but when i run (deploy) the
|
by: chris vettese |
last post by:
On my subform I have a field in the footer that totals the value of a
field. On the main form I have referenced this field. I'm using this
field in a calculation on my main form. The problem occurs when there
are no records in the subform. The field on the main form that
references the subform total field returns #Error. How can I make
this field show the total when there are records and 0 when there are
no records???
Thank you,...
|
by: Hans Karman |
last post by:
I have a form (giving details of a person) and a subform (giving details of
the person's assets).
A search in the form for a particular name using the Find dialog box finds
the wanted person.
The assets are then updated and the next person's name entered into the Find
dialog box, but this fails to find the required name, because the focus is
still in the subform. The user thus has to first place the cursor into the
form and then execute...
|
by: Pierre Carter |
last post by:
Hello,
I'm using Response.Write to write text dynamically to a form. My
problem is that the text sent to the page is not written at the top of
the page, even if all margins are set to zero. I always have a space
between the top of the frame and the start of the text. I already use
this method with Classic ASP forms using VBScript and I do not have this
problem. Does anybody have an idea on how to solve this issue because
it is very...
|
by: Bernie Yaeger |
last post by:
I have a child form that has autoscroll set to true. However, when the mdi
parent is maximized and the child form is maximized, no scroll bars appear,
even though there is more controls and data below the visible area. Is
there a way to scroll the child form and/or the mdi parent when both are
maximized?
Thanks for any help.
Bernie Yaeger
| |
by: Frank |
last post by:
Hello,
I have a form in which I draw a grid in the paint event. Works fine, except
when using the scrollbars.
Autoscroll is switched on, I use doublebuffering and userpaint and
AllPaintingInWmPaint are true.
When using the scrollbars sometimes some lines are not drawn or drawn twice.
The gridlines distort in the scrolled region.
As far as I can tell the clipregion is the whole window, so that can't be
it. Besides, it only goes wrong when...
|
by: Bremanand |
last post by:
Hi..Am doing Retailer software using VB 6.0 with ms-access..
Actually i have many form(sales entry form,purchase entry form ,stock form, etc..) in my project which all are in MDI except Log in form.
my problem is,,, when am loging in using my user id through log in form,then MDI form will b getting loaded..
my Doubt is......
now each form should have the userid which was currently logged in.. i have to use this id in all of my form...
|
by: prabuinet |
last post by:
hi,
I added a form as a control on another form. After adding i want the
embedded form to have focus. I tried all combinations but its not
working..
Do any one know how to do this.
-------------------------------------------
|
by: LamSoft |
last post by:
I've got some problem on some form submit problem.
In a master page, there is a form tag with the "runat=server" attribute, and
a ID called "myForm".
In the contentPlaceHolder under that master page, I cannot create another
form tag with "runat=server" attribute as ASP.NET does not allow two FORM
Server tag in the same page.
The problem now is in the contentPlaceHolder, how to control the "submit"
|
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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: 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...
| |