473,387 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

inherited form with anchor property problem

hi all,

i have a base form (i.e. form1), there is a button with "bottom, right"
anchor property...
when i create a form2 which inherited from form1 with different size...
the button keep on the same position and doesn't change... ^_^

how can i fix this?
is it inherited items can't change position?

cheers,
colin

Nov 20 '05 #1
1 1717
When you inherit the form you inherit its class definition, not any values
you may set to and instantiated object of form1.

you would need to set the anchor properties of the new object.

OHM
"Colin Lai" <co******@grandion.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
hi all,

i have a base form (i.e. form1), there is a button with "bottom, right"
anchor property...
when i create a form2 which inherited from form1 with different size...
the button keep on the same position and doesn't change... ^_^

how can i fix this?
is it inherited items can't change position?

cheers,
colin

Nov 20 '05 #2

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

Similar topics

6
by: Mihai Marinescu | last post by:
Hi all, I have 3 Listboxes which i want to resize automatically when the forms resizes. I played with anchors but when i rersize to much the listboxes starts to overlap eachother. How can i...
1
by: Andrew Venmore | last post by:
Hello, I have a base dialog form with a panel docked to the bottom with an OK and a Cancel button in it (all Modifiers=Protected, buttons' Anchor=Top,Right). At design time the size of the base...
8
by: Aaron Ackerman | last post by:
If I am expanding (maximizing a form how do I maximize the tab control along with it?
2
by: kjvt | last post by:
I have just about given up on using a base form class with anchored controls! My base form has a protected tab control that I would like to anchor to all sides of the form. However, the derived...
8
by: Spam Trap | last post by:
I am getting strange resizing problems when using an inherited form. Controls are moving themselves seemingly randomly, but reproducibly. "frmBase" is my base class (a windows form), and...
3
by: Jacob Thastrup | last post by:
Hi This is propably easy to answer but how do I make sure that my controls stay in a certain area of my form. Right now if I maximize my form the controls will stay in their original position and...
4
by: gsb58 | last post by:
Hi! On a form I have a calendar. The form is rezised to 1024x768 (Don't worry - this is a training case) when loaded. Now I want to center the calendar on the form so that its edges are...
14
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...
4
by: asad.naeem | last post by:
hi to all this is the problem about inheritence. I have designed a form with some essential controls which are required for every form which will inherited from it. for example i have Button1 on...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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$) { } ...
0
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
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,...
0
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,...
0
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...

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.