Form layout in desgin time

O

Ohad Young

Hi,

Is there in VS.NET IDE something like the form layout window in VB6?
How cam I design a GUI independent of the client's resolution?
Best, Ohad

--
Ohad Young
Medical Informatics Research Center
Ben Gurion University
Information System Eng
Office Phone: 972-8-6477160
Cellular Phone: 972-54-518301
E-Mail: (e-mail address removed)
 
H

Herfried K. Wagner [MVP]

* "Ohad Young said:
Is there in VS.NET IDE something like the form layout window in VB6?

No, there is no built-in replacement.
How cam I design a GUI independent of the client's resolution?

Test the form on different resolutions?

;-)
 
Y

Ying-Shen Yu[MSFT]

Hi Ohad,
Is there in VS.NET IDE something like the form layout window in VB6?

No, there is no Form Layout Window in VS.NET IDE, However if you want to set
the Startup Position of your form , you may change the StartPosition
property of your form to Manual. and set the upper-left point of your form
in the Location property.
How cam I design a GUI independent of the client's resolution?

This is not simple question. Basically, you may use the Dock and the Anchor
and other properties to adjust the size and location of your control. For
some more complex cases, maybe you need write a custom layout engine for
your form. Here is an article written by Chris, it will give you some
sample on how to write and use custom layout engine in Winform app.
<Providing Custom Layout Engines for Windows Forms>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/ht
ml/custlaywinforms.asp

If you have any further questions on this issue, please be free to reply
this thread.
Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, "online" should be removed before
sending.
 
O

Ohad Young

Hi Ying-Shen,

Thanks for the reply and the helpful article.

I have another question on the same subject.
How can I mimic the behavior of HTML frames in winforms?
What I mean is that I need my GUI to have a dynamic part
capable of loading different user controls according to user interaction.

Best, Ohad

"Ying-Shen Yu[MSFT]" said:
Hi Ohad,
Is there in VS.NET IDE something like the form layout window in VB6?

No, there is no Form Layout Window in VS.NET IDE, However if you want to set
the Startup Position of your form , you may change the StartPosition
property of your form to Manual. and set the upper-left point of your form
in the Location property.
How cam I design a GUI independent of the client's resolution?

This is not simple question. Basically, you may use the Dock and the Anchor
and other properties to adjust the size and location of your control. For
some more complex cases, maybe you need write a custom layout engine for
your form. Here is an article written by Chris, it will give you some
sample on how to write and use custom layout engine in Winform app.
<Providing Custom Layout Engines for Windows Forms>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/ht
ml/custlaywinforms.asp

If you have any further questions on this issue, please be free to reply
this thread.
Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, "online" should be removed before
sending.
 
Ö

Özden Irmak

Hello,

If you need to adjust your form sizes to different screen resolutions than
your development environment than please take a look at Klik! SizeLib.Net :

http://www.kliksoft.com/?S=2&SS=3

Best Regards,

Özden Irmak
Klik! Software

Ohad Young said:
Hi Ying-Shen,

Thanks for the reply and the helpful article.

I have another question on the same subject.
How can I mimic the behavior of HTML frames in winforms?
What I mean is that I need my GUI to have a dynamic part
capable of loading different user controls according to user interaction.

Best, Ohad

"Ying-Shen Yu[MSFT]" said:
Hi Ohad,
Is there in VS.NET IDE something like the form layout window in VB6?

No, there is no Form Layout Window in VS.NET IDE, However if you want to set
the Startup Position of your form , you may change the StartPosition
property of your form to Manual. and set the upper-left point of your form
in the Location property.
How cam I design a GUI independent of the client's resolution?

This is not simple question. Basically, you may use the Dock and the Anchor
and other properties to adjust the size and location of your control. For
some more complex cases, maybe you need write a custom layout engine for
your form. Here is an article written by Chris, it will give you some
sample on how to write and use custom layout engine in Winform app.
<Providing Custom Layout Engines for Windows Forms>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/ht
ml/custlaywinforms.asp

If you have any further questions on this issue, please be free to reply
this thread.
Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, "online" should be removed before
sending.
 
Y

Ying-Shen Yu[MSFT]

Hi Ohad,

Thanks for your reply!

I think you may try this way to mimic the Frame in winform app, by
replacing a panel with differenct user controls at run-time.
In Design-time, you may place a panel on your form to be a placeholder,
then write different usercontrols for dynamic loading. In user action event
handler,
You may loading and initialize these user controls like the follow snippet:
UserControl ctl;
....
//save UserControl reference later releasing.
ctl = new UserControl1();
ctl.Bounds = panel1.Bounds;
Controls.Add(ctl);

When you need unloading this usercontrol, you may use
Controls.Remove(ctl);
ctl.Dispose();

Does this way fit your needs?
If it doesn't , please reply this thread to let me know more detail of your
problem,
Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, "online" should be removed before
sending.
 
O

Ohad Young

Hi,

Thanks for the tip. The way you suggested was what I was thinking about.
I did some testing with similar code and it works fine. I hope it will be OK
for the more complicated application I'm coding now.

Best, Ohad
 
Y

Ying-Shen Yu[MSFT]

Hi Ohad,

Thanks for your reply!

Creating control dynamically and layouting it in run-time should work fine,
in fact the you can see the designer-generated InitializeComponent method
uses almost the same way to initialize those components. If you meet any
problem on it , please be free to post it on this newsgroup, thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, "online" should be removed before
sending.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top