473,770 Members | 5,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems with scaling controls on a panel

1 New Member
Hello

Iam using visual studio 2005.
I want to extend/scale a panel and the controls in the panel on a form.

Currently i have a default size for the panel. The forms windowstate containing this panel is set to maximize. I got it to where the panel maximizes with the form but the controls (labels, radio buttoons, datagrid, etc) on the panel dont scale. Is there a way i can scale all the controls in that form.

I tried the scale function and set it to pnlAssessment.S cale(New Size(1.5, 1.5))
but that made the controls bigger then the window.
Oct 9 '07 #1
1 1405
Killer42
8,435 Recognized Expert Expert
Perhaps you just got the scale the wrong way around, or something.

Try hitting the Search box for "elastic" in connection with VB. This sort of discussion has cropped up a few times in the past, and there are (or used to be) a type of control known as an elastic control which would help to automate resizing and moving your controls when things like screen resolution change.
Oct 9 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1297
by: steve bull | last post by:
I have encountered the following problems when creating new controls that I have added to the toolbox : 1. When I click on the design panel containing a number of widgets I get a build error of "Object reference not set to an instace of an object". It does not appear if I do a regular build. How can I identify where this problem is happening? When I double click on the error it just takes me to the top of the source code for the panel but...
19
2987
by: Dales | last post by:
I have a custom control that builds what we refer to as "Formlets" around some content in a page. These are basically content "wrapper" sections that are tables that have a colored header and provide an open TD with a DIV in it for the content of this formlet. (The DIV is for DHTML to hide and show the content) I've created a web page showing step by step the two problems I'm encountering. This problem is much easier to see than it...
1
1702
by: Sky Sigal | last post by:
(PS: Cross post from microsoft.pulic.dotnet.framework.aspnet.webcontrols) I've been looking lately for a way to keep the Properties panel for Controls 'clean'... My goal is to keep similar public properties of a custom Control neatly tied together -- rather than all over the IDE. One such set of values that will rarely be changed, so should have little priority in the IDE Properties panel, and therefore a good candidate for
3
2031
by: Jerry Spence1 | last post by:
A very useful feature was added in 2.0 of .NET framework which was the scaling of a form and all the controls within it. This is really useful but I am finding very little information of how to use it. I have managed to implement it as follows: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim addSize As New SizeF(0.5F, 0.5F)
1
12087
by: TheSteph | last post by:
Hi ! I would like to create a UserControl that act as a « Collapsible Panel ». So I have a UserControl with two panels : a "Header panel" at the top, and a "Container Area Panel" docked to fill the remaining client area of the
4
6884
by: tshad | last post by:
I am trying to hide and show certain parts of my code (which I have no problem doing with DW). In VS 2003, it won't let you use <div runat="server"to section of parts of my code in a table. This is during compilation (build). My code is: <TABLE id="Table1" style="WIDTH: 864px; HEIGHT: 177px" cellSpacing="1" cellPadding="1" width="864" border="0">
2
1794
by: mdavis | last post by:
Hello, I'm using a Login Control on asp.net 2.0 website and it works fine on IE & Firefox, however I have recently added a javscript function to listen for a 'return-key-click' and am encountering problems with Firefox. If the user clicks the 'Login' button with a mouse button click, it works fine, however if the user hits enter, the form fields are cleared and the user is not logged in. Please note, this only happens if the user has...
0
2222
by: chmagal | last post by:
Hello everybody! I am trying to create a UserControl that act as a (Expandable Panel). I created a UserControl (LGradientPanel) with two panels in it: LCaptionPanel and the LInnerPanel. The last one should "hold" the controls I will add to the UserControl. The LCaptionPanel will have a gradient fill and the text (caption) of the panel. No controls should be added to this panel. The LInnerPanel is the container area and shoul hold the...
0
777
by: ania1984 | last post by:
Hello, I have a form with several controls and one panel (C#). Inside this panel, I create two FloyLayOutPanels. In execution time, I add a lot of panels to each of the flowLayoutPanels. I have a button to do zooms into the flowlayoutpanels of the main panel. If the user clicks the button, the next code is executed: flowLayoutPanelLineA.Scale(new SizeF(2, 1)); flowLayoutPanelLineB.Scale(new SizeF(2, 1)); The result of these scales is...
0
9425
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
10053
jinu1996
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...
1
10001
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
8880
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
7415
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
6676
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
5312
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...
2
3573
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2816
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.