473,387 Members | 1,504 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.

Location of controls when inhereting a baseform...

We had a BaseForm with some code that we inhereted for new forms from by
simply changing ": Form" to ": BaseClasses.BaseForm".
There were no problems...
Then we added a Cancel and a Save button to the BaseFrom. The buttons are
anchord to Bottom and Right.
Now they do not appear to position according to the anchor, but appears at
the fixed positions in the alreade created forms...
When I create a new form using Add --New Item --Inherited Form it looks
good (because the initial size is equal to the BaseForm) and the buttons
stay anchored when I resize the form.
But after working a while with this new form (and using undo after a
misstake with doubleclick on a control) the inherited buttons suddenly
appeared in their original locations and not in the right bottom
corner...Why?

What can you do to make the relative anchor location (to the bottom right)
take effect with the distance to the frame that is set in the ancestor
instead of the "absolute locaion" (relative upper-left) from the ancestor?
Is there a way to override the posistioning of the buttons? (just by drag in
VS2005 and not coding it for runtime execution..).

//Claes
Apr 30 '07 #1
0 967

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

Similar topics

10
by: Scott | last post by:
I'm new to ASP, but I've been programming in VB for several years, and I'm having a few issues with this ASP enhancement I'm working on. I've found ASP to be a lot different than what I'm use to...
3
by: Geir Sanne | last post by:
I got a windows form that i move some controls and then save. when i open the same form all the controls are bigger and in a different place. how do i turn off this ?
0
by: brendan mcloughlin | last post by:
Hi, I am currently pondering the options for using a baseform in a web site application to save development time. I have used this approach a number of times however I was hoping to get some...
1
by: JJ | last post by:
Hi, I am buidling some controls dynamically in the .cs file, context menu. I am wondering if there is any chance I could obtain the location of any controls and set the location of another...
2
by: Vish | last post by:
Hi, I am trying to move controls around in a form based on user selection on a combo-box. So i hard coded the location and distances of where and how much to move controls by in my program....
4
by: Mikus Sleiners | last post by:
I can't seem to add new controls to form that is inherited from another form. I have BaseForm wich have table layout on it 2 panelsm and some buttons. Now i create InheritedForm : BaseForm and...
13
by: Marc | last post by:
The first part of the below writes the name and location of all buttons on a from to a text file. The second part reads that information back in and recreates the buttons. My problem is reading...
3
by: Marc | last post by:
Hi Guys, Is there an easy way to save and reload a controls location somehow? My controls are draggable and I am struggling to find a way to save the controls 'last' location since the mouse...
1
by: =?Utf-8?B?UmljaA==?= | last post by:
I placed a button on a form menustrip for the purpose of causing the horizontal scrollbar of my form to appear so that I can access controls outside of the form's current view (the controls are...
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: 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: 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
BarryA
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...
1
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...
0
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...
0
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...
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,...

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.