Newbie

  • Thread starter Thread starter Mosfet
  • Start date Start date
M

Mosfet

Hi,

I am trying to move from native to managed code.
Usually I developped with MFC/WTL but today I am experiencing .NET.
I have a few questions :

1)I am using VS 2005 and for maximum compatibilities I am going to
developp with CF 1.0. Will my application run on CF 2.0 ?
I suppose so but I prefer to be sure...

2)How do you write code that can work on several resolutions.
Let's take an example :

In function of which platform my code is running on I am loading a logo
that has a different size. Below this logo I put a label and below the
label a listview.

So how do I resize the picture box in function of my image size?
If I use anchor will it automatically place my two other controls below
my logo ?
 
Hi,

1) Yes, code built for eve will run on v2, the runtime will operate in
compatibility mode if it sees your app is compiled for v1 to cover cases
where the behaviour has changed in v2.

2) Here is one area where v2 can make your life easier since it supports a
few features like docking and anchoring which help to do some of the form
layout for you based on the runtime screen size. Otherwise you need to use
techniques like handling the Resize event for your form, checking the screen
bounds and dpi etc. See this webcast series for more details:-
http://msdn2.microsoft.com/en-us/windowsmobile/bb264319.aspx

Peter
 
Peter Foot [MVP] a écrit :
Hi,

1) Yes, code built for eve will run on v2, the runtime will operate in
compatibility mode if it sees your app is compiled for v1 to cover cases
where the behaviour has changed in v2.

2) Here is one area where v2 can make your life easier since it supports
a few features like docking and anchoring which help to do some of the
form layout for you based on the runtime screen size. Otherwise you need
to use techniques like handling the Resize event for your form, checking
the screen bounds and dpi etc. See this webcast series for more details:-
http://msdn2.microsoft.com/en-us/windowsmobile/bb264319.aspx

Peter
Thanks a lot but all the layout and anchoring won't help me to resize my
picturebox ;-)
 
Back
Top