Technology Questions

Go Back   Technology Questions > Hardware Questions > Mobile Computers > Tablet PC > Tablet PC Software > Tablet PC Developers

Tablet PC Developers Show off your work while discussing with others how to create ink enabled applications.

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 11-28-2008, 09:17 PM
Carl Ganz
Newsgroup Contributor
 
Posts: n/a
Form Resizer

I have a VB.NET application that will run on an IBM ThinkPad tablet
PC. I can easily trap the DisplaySettingsChangedEvent to determine
when the user swiches from portrait to landscape mode. I'm trying to
work out the logic neeed to reposition/resize the controls on a form
when the orientation changes. It would seem that you could just
determine the ratio of the height/width when you change modes and
multiply the Top, Left, Width, and Height properties of all the
controls. Then, when switching back, you could apply the inverse of
the height/width ratio to restore the original values. This works well
in theory but has some issues in practice. For example, if I reduce a
label width to 75% of its starting value, text could be cut off.
TextBoxes and ComboBoxes won't size at all if the control is smaller
that the Text property and thus adjacent controls will not be
positioned properly in relation to it. Can this be done without taking
into account portrait mode when developing the screen landscape?

This is not a new problem so I was wondering what the best solution is
to handle this. Any tablet PC application would have this issue. Any
suggestions?

Thanks

Carl
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 11-28-2008, 09:17 PM
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form Resizer SetonSoftware Windows XP Tablet PC Newsgroup 1 10-24-2008 07:10 PM
image resizer powertoy H.S. Windows XP 7 02-16-2008 08:41 AM
File resizer Dr S Namasivayam Windows Vista 3 02-08-2008 04:42 PM
Re: Image Resizer Doesn't Work Polcat Windows XP 3 12-17-2007 11:10 PM
Picture Resizer Power Toy Andrew Aitchison Windows Vista 2 06-27-2007 09:30 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 10:12 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0