Need help with landscape orientation using vb.net

  • Thread starter Thread starter dave m
  • Start date Start date
D

dave m

First, is this possible using vb.net, and could someone point me to some
documentation or examples on how to accomplish this?

Thanks for any replies.

Dave M.
 
Yes it is possible. What are you looking for? How to change the orientation
or how to handle it in your form when it happens? Are you using CF v1 or v2?

Cheers
Daniel
 
For v1.0 you have to P/Invoke ChangeDisplaySettingsEx some details here on
David Klines blog:-
http://blogs.msdn.com/davidklinems/archive/2005/02.aspx

In V2 you can use the Microsoft.WindowsCE.Forms.SystemSettings class to get
and set the rotation.

In order to respond to a rotation change you need to handle the Resize event
for your form. For v1.0 this is an essentially manual process. For v2.0 you
can use docking and anchoring to specify layout and it will resize
gracefully for you.

Peter
 
I need to be able to change the screen orientation programatically. I'm
using CF v.1
 

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

Back
Top