Hello,
I created a form that contains datagrid, buttons,textbox and etc. i want to
set my window to the maximum size when the form is loaded, i changed the
window size property to maximum, but now all my form object are set like the
window size is normal, how can i set my objects to be where i put them (i
want that no matter what the window's size is, the object will be placed
always at the same place).
Thanks,
Gidi. 4 3794
Have a look at the Anchor property for the appropriate controls.
--
Tim Wilson
..Net Compact Framework MVP
"Gidi" <sh*****@hotmail.com.dontspam> wrote in message
news:5F**********************************@microsof t.com... Hello,
I created a form that contains datagrid, buttons,textbox and etc. i want
to set my window to the maximum size when the form is loaded, i changed the window size property to maximum, but now all my form object are set like
the window size is normal, how can i set my objects to be where i put them (i want that no matter what the window's size is, the object will be placed always at the same place).
Thanks, Gidi.
Hi Tim,
Thanks,
i tried but then i have another problem: my form is designed like this:
i have a group of buttons, lets say that their position is X.
then i have few more groups of buttons that are not visible and click the
relevent button will show the specific group of buttons, it goes something
like this:
X
X
X
X
i tried to anchor the first group (the main group), and it worked just fine.
but i couldn't make the other groups to be anchord too, to the position i
want them to be (like when the window is in normal size).
how can i fix it?
thanks,
Gidi.
"Tim Wilson" wrote: Have a look at the Anchor property for the appropriate controls.
-- Tim Wilson ..Net Compact Framework MVP
"Gidi" <sh*****@hotmail.com.dontspam> wrote in message news:5F**********************************@microsof t.com... Hello,
I created a form that contains datagrid, buttons,textbox and etc. i want to set my window to the maximum size when the form is loaded, i changed the window size property to maximum, but now all my form object are set like the window size is normal, how can i set my objects to be where i put them (i want that no matter what the window's size is, the object will be placed always at the same place).
Thanks, Gidi.
Are you looking to center the groups of buttons when the form is maximized
or are you more interested in expanding the groups of buttons to fill the
extra space? If it's the latter, then you should be able to work out the
anchoring, and then depending on the button layout you may need to do some
manual calculations to spread out the buttons, if applicable. When you state
that "i couldn't make the other groups to be anchord too, to the position i
want them to be (like when the window is in normal size)", can you describe
in more detail what you expect to see?
--
Tim Wilson
..NET Compact Framework MVP
"Gidi" <sh*****@hotmail.com.dontspam> wrote in message
news:6B**********************************@microsof t.com... Hi Tim, Thanks,
i tried but then i have another problem: my form is designed like this: i have a group of buttons, lets say that their position is X. then i have few more groups of buttons that are not visible and click the relevent button will show the specific group of buttons, it goes something like this: X X X X i tried to anchor the first group (the main group), and it worked just
fine. but i couldn't make the other groups to be anchord too, to the position i want them to be (like when the window is in normal size).
how can i fix it?
thanks, Gidi.
"Tim Wilson" wrote:
Have a look at the Anchor property for the appropriate controls.
-- Tim Wilson ..Net Compact Framework MVP
"Gidi" <sh*****@hotmail.com.dontspam> wrote in message news:5F**********************************@microsof t.com... Hello,
I created a form that contains datagrid, buttons,textbox and etc. i
want to set my window to the maximum size when the form is loaded, i changed
the window size property to maximum, but now all my form object are set
like the window size is normal, how can i set my objects to be where i put them
(i want that no matter what the window's size is, the object will be
placed always at the same place).
Thanks, Gidi.
Tim thanks again for your quick reply.
I found my problem, and i manged to do what i wanted using the Anchor
property.
Thank you very much.
Gidi.
"Tim Wilson" wrote: Are you looking to center the groups of buttons when the form is maximized or are you more interested in expanding the groups of buttons to fill the extra space? If it's the latter, then you should be able to work out the anchoring, and then depending on the button layout you may need to do some manual calculations to spread out the buttons, if applicable. When you state that "i couldn't make the other groups to be anchord too, to the position i want them to be (like when the window is in normal size)", can you describe in more detail what you expect to see?
-- Tim Wilson ..NET Compact Framework MVP
"Gidi" <sh*****@hotmail.com.dontspam> wrote in message news:6B**********************************@microsof t.com... Hi Tim, Thanks,
i tried but then i have another problem: my form is designed like this: i have a group of buttons, lets say that their position is X. then i have few more groups of buttons that are not visible and click the relevent button will show the specific group of buttons, it goes something like this: X X X X i tried to anchor the first group (the main group), and it worked just fine. but i couldn't make the other groups to be anchord too, to the position i want them to be (like when the window is in normal size).
how can i fix it?
thanks, Gidi.
"Tim Wilson" wrote:
Have a look at the Anchor property for the appropriate controls.
-- Tim Wilson ..Net Compact Framework MVP
"Gidi" <sh*****@hotmail.com.dontspam> wrote in message news:5F**********************************@microsof t.com... > Hello, > > I created a form that contains datagrid, buttons,textbox and etc. i want to > set my window to the maximum size when the form is loaded, i changed the > window size property to maximum, but now all my form object are set like the > window size is normal, how can i set my objects to be where i put them (i > want that no matter what the window's size is, the object will be placed > always at the same place). > > Thanks, > Gidi. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: David Hayes |
last post by:
juglesh <juglesh@nospamRadioKDUG.com> wrote in "Re: how to maximize the
browser window that fits the monitor size?" (Saturday, January 01, 2005 3:12
AM):
>
> >I want to maximize the browser...
|
by: Terren |
last post by:
I have a popup window that is used to display text from a database.
Some times it can be a few words, sometimes it can be a hundred words.
What I would like to do is resize the popup window to...
|
by: Owen Jenkins |
last post by:
I have tried to resize a snapshot control on a form but it seems not to
work. I can resize the width by clicking the maximize button with the
following code in the Resize event....
|
by: touf |
last post by:
Hi,
I've developped an application on a machine that have 1280,1024 , the forms
look ok,
WhenI change the resolution to 1024,768 the forms are biggest than the
screen.
Is there a way to resize...
|
by: gilgames |
last post by:
I am new in VB.Net, I need some help.
I want to resize my dialogs dynamically (so that a dialog made for
1280x1024 screens shows properly on 800x640 screen. I make the
calculation in the Handles...
|
by: GTi |
last post by:
Does anyone have a script to resize a (popup) window that is cross
browser compatible.
What I realy need is to resize a windows based on the INNER size.
function SetWindowSize(w,h)
{
try
{...
|
by: RC |
last post by:
I know how to do this in JavaScript by
window.open("newFile.html",
"newTarget",
"scrollbars=no,resizable=0,width=200,height=200");
The browser will open a new window size 200x200, not allow...
|
by: Bob Alston |
last post by:
I have a system where many subforms are used. Often the size of the
subform had to be larger than could be displayed without scrolling.
I set the height of the subform to the typical height...
|
by: Doug Gunnoe |
last post by:
I'm considering resizing a div onload to better match the screen width
of the user.
Easy enough, however it seems that I have read in this group that
there are potential problems with this,...
|
by: =?Utf-8?B?UmljaA==?= |
last post by:
A lot of users at my workplace use different screen resolutions, and I build
apps to use 1680 x 1050 pixels res by default. But some users are using 800
x 600, and the apps are too large for their...
|
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
|
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...
|
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...
|
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...
|
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: 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: 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...
|
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...
|
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,...
| |