component autoresize on a vga mobile 5

Discussion in 'Microsoft Dot NET Compact Framework' started by Fabrizio, Jan 25, 2008.

  1. Fabrizio

    Fabrizio Guest

    Hello,
    I'm porting a htc tytn application on a htc x7500 (mobile 5). The
    difference that makes the application to run badly is the screen. The
    x7500 has a vga screen and it seems that it tries to resize
    automatically all the components and all the images. The image in a
    picturebox is resized if loaded changing the image property compile
    time, and it's not resized if I load it runtime from a file. Does
    anybody know why?

    The code I use to load an image is:
    Bitmap b = new Bitmap(imagefile); ;
    Image imm = Image.FromHbitmap(b.GetHbitmap());

    And how could I avoid the automatical resize of the panels and the
    textBox? Is it related to the font size?
    I would need to manage explicitly this resize or, better, to avoid it
    at all, at least for my application.

    Thank you very much for any hint.
    --
    Fabrizio
     
    Fabrizio, Jan 25, 2008
    #1
    1. Advertisements

  2. Fabrizio

    Fabrizio Guest

    Fabrizio, Jan 29, 2008
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Fredrik Ljungbeck

    Performance on Mobile Client vs ASP.net Mobile

    Fredrik Ljungbeck, Sep 19, 2003, in forum: Microsoft Dot NET Compact Framework
    Replies:
    1
    Views:
    272
    Bardak
    Sep 19, 2003
  2. Guest
    Replies:
    3
    Views:
    1,705
    Guest
    May 21, 2004
  3. Michael Rietbrock

    How can I set the display to VGA (192 DPI) on Win Mobile 2003 SE using CF VB.NET ?

    Michael Rietbrock, Oct 15, 2004, in forum: Microsoft Dot NET Compact Framework
    Replies:
    1
    Views:
    425
    Alex Feinman [MVP]
    Oct 15, 2004
  4. Venkat Polisetti

    Pocket Access : is it available in Windows Mobile 2003 and Windows Mobile 2003 SE

    Venkat Polisetti, Apr 8, 2005, in forum: Microsoft Dot NET Compact Framework
    Replies:
    0
    Views:
    288
    Venkat Polisetti
    Apr 8, 2005
  5. Joseph Byrns

    VGA or not VGA

    Joseph Byrns, Nov 18, 2005, in forum: Microsoft Dot NET Compact Framework
    Replies:
    1
    Views:
    297
Loading...

Share This Page