473,785 Members | 2,811 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form Size Problem

Hi,

How could I set the presence of the form to be called to be locked inside
the boundary of the calling form ?

I got A and B form
A form contain tree view menu

and B form was part of the tree view menu item. So when I click the tree
view menu item and select B form to be showed under A form.
then B form will be shown up. but the problem is I dun want B form size to
be static, i want the B form size to be dynamic. When I resize the A form
treeview menu, then treeview menu getting smaller, then the B form getting
bigger.
Jul 21 '05 #1
1 1357


Hi,

How could I set the presence of the form to be called to be locked inside
the boundary of the calling form ?

I got A and B form.
A form contain tree view menu

and B form was part of the tree view menu item. So when I click the tree
view menu item and select B form to be showed under A form.
then B form will be shown up. but the problem is I dun want B form size to
be static, i want the B form size to be dynamic. When I resize the A form
treeview menu, then treeview menu getting smaller, then the B form getting
bigger.


Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1956
by: Rodrigo Ferreira | last post by:
In my project i create a form in runtime when i click in a button. The problem consists in the form size. I put this lines: frmCalculadora.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; frmCalculadora.AutoScaleBaseSize = new System.Drawing.Size(5, 13); frmCalculadora.ClientSize = new System.Drawing.Size(160, 16); But the form doesn't appear with this height. The width is correct but the height not!
3
2999
by: MG | last post by:
It appears that VS.NET limits the size of a web form to the size of your screen based on the resolution of the machine it's running on. Is there a way to make the size of a web form larger than the size of the visible screen at a given resolution ? Thanks.
1
1046
by: A-PK | last post by:
Hi, How could I set the presence of the form to be called to be locked inside the boundary of the calling form ? I got A and B form A form contain tree view menu and B form was part of the tree view menu item. So when I click the tree view menu item and select B form to be showed under A form.
3
2832
by: David A. Osborn | last post by:
I'm working with VB.net and when ever I dynamically create a form when I do the form.show() or form.visible = true the form.left parameter gets reset to 22. Does anyone have any ideas why this is happening? Below is a copy of the function: Private Function Add_Form() As String Dim FormNew As System.Windows.Forms.Form Dim LocalMousePosition_Down As Point
1
9522
by: Kent | last post by:
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...
14
3431
by: Galen Somerville | last post by:
My current screen resolution is set to 1024 x 768. My form size always comes up as 1032 x 748. I have tried the help sample ' Retrieve the working rectangle from the Screen class ' using the PrimaryScreen and the WorkingArea properties. Dim workingRectangle As System.Drawing.Rectangle = _ Screen.PrimaryScreen.WorkingArea ' Set the size of the form slightly less than size of
7
2324
by: greg.merideth | last post by:
I inherited a vs2003 project which I've converted into vs2005 to run under .net 2.0. The conversion was fine and the project compiles and runs just fine until today. A user called me up asking why they cannot see the bottom of the form anymore (it's a fixed height form). I opened the project again and looked at the form and sure enough, it's exactly 180 pixels less than it used to be. Thinking I messed up, I fixed the form, recompiled...
1
1444
by: igalep132 | last post by:
Hey all, I was trying to resize control size to the form size. I'm changing my form size according to current Screen Size by using Screen.PrimaryScreen.WorkingArea; and then I'm making a resizing to my form. but the main problem is how to resize controls which are embedded to the form ? Thanks Igal
2
1743
by: =?Utf-8?B?VGVycnk=?= | last post by:
Hope someone has some ideas - this is driving me nuts, I am using VS2008 and have a tightly layed out form at 8 pts. The form has a font dialog and when the user changes the font size, everything works great. I go through the forms control collection (recurively) and everything resizes as it should. Ok, so the next step is to remember the font size selected by the user and select it when the form is loaded. Woops - does not work! So, I...
0
9480
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,...
0
10324
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10090
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,...
0
9949
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8971
agi2029
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...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6739
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();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2879
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.