Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / April 2006

Tip: Looking for answers? Try searching our database.

portrait/landscape using the designer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
leibnizster - 19 Apr 2006 17:05 GMT
hello,

can I use the VS2005 designer  in such a way that I can visually see
the locations of the controls a for both portrait and landscape
situations? So there will be 2 different layouts (not using docks and
anchors)

Thank you.
Daniel Moth - 20 Apr 2006 14:11 GMT
If you right click on the form (or from the Format menu) you can choose to
rotate the form left/right and see what it will look like at runtime.

If you don't want to use docks and anchors, and unless you've designed for
square screens, you'll have to add your own resizing logic and execute one
or the other depending on orientation. You can detect that in your form
resize event handler and/or use methods to trigger it yourself as described
here:
http://blogs.msdn.com/davidklinems/archive/2006/04/17/577897.aspx

In the latter case, obviously the designer will not execute your code so you
cannot visualise the changes. The only thing you could do is create two
forms and hence have two codebases. Before running the app you could
manually merge the code from the second form into the first at the correct
execution path.

Cheers
Daniel
--
http://www.danielmoth.com/Blog/

> hello,
>
[quoted text clipped - 4 lines]
>
> Thank you.
leibnizster - 20 Apr 2006 20:14 GMT
thank you

i hoped that this was implemented somehow in VS2005 as I think would be
something quite useful and pretty easy to implement for the Visual
Studio for Devices team

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.