VGA???

  • Thread starter Thread starter Andrea J
  • Start date Start date
A

Andrea J

How can I make softwares which use 640x480 display?
If I make a form in VS .NEt 2003 640x40 big, once transferred to the ppc, it
exceeds the screen bounds.

Any help would be appreciated.

thanks in advance


Andrea
 
Andrea,

There is not anything automatic built in to VS2003 to make
it easy to handle both 320x240 and 640x480 app dev, but
here is what you'll need to do:

http://msdn.microsoft.com/library/d...ing_orientation_and_resolution_aware_apps.asp

It's easy to implement, but if you have a large number of controls
on your forms, it's a lot of manual labor to support portrait, landscape,
hi-res portrait, and hi-res landscape modes. Add to that smart SIP
behavior, and you've got yourself a few days of tweaking control location
and size.

In VS2005 and CF2, there is anchoring and docking support that makes
this a bit easier.
--
Darren Shaffer
..NET Compact Framework MVP
Principal Architect
Connected Innovation
www.connectedinnovation.com
 
What about having separate forms alternatively displayed (as last chance, 4
different forms, one for each possible display scenario). Does this make
sense?
 
You could do seperate forms for each DPI though I wouldn't recommend it...
the designer in VS 2003 still won't help you do the VGA layout so you'll
still end up handcrafting initialization code. VS 2005 does let you switch
the designer into VGA mode so it may (I personally haven't played with this
much yet) be better there.

As for having different forms for different orientations, this would be very
hard to do correctly. Keep in mind that the user can rotate their device at
any point... it would be a pretty awful user experience if you lost track of
the application's state each time this happened. Rather than just
repositioning controls on the existing form, you'd have to load the other
form and transfer the properties of every control along with each
public/private member of the form itself.
 
Back
Top