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:
    423
    Bardak
    Sep 19, 2003
  2. Guest
    Replies:
    3
    Views:
    1,889
    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:
    521
    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:
    383
    Venkat Polisetti
    Apr 8, 2005
  5. Can Erten

    Windows Mobile 5.0-> Windows Mobile Media Player 10 Activex Control

    Can Erten, May 13, 2005, in forum: Microsoft Dot NET Compact Framework
    Replies:
    2
    Views:
    619
    Can Erten
    May 14, 2005
  6. Guest

    Downloading to Mobile device from an Mobile ASP.net app

    Guest, Jun 15, 2005, in forum: Microsoft Dot NET Compact Framework
    Replies:
    1
    Views:
    335
    Guest
    Jun 15, 2005
  7. GRT
    Replies:
    1
    Views:
    508
    Ilya Tumanov [MS]
    Aug 8, 2005
  8. Joseph Byrns

    VGA or not VGA

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