How can we resize windows form control?

Home Forums General Programming Visual Basic .Net How can we resize windows form control?

This topic contains 0 replies, has 2 voices, and was last updated by  Anonymous 5 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3226

    Ankur
    Moderator

    Hi,

    I want to write some code at run time which help to resize my windows form and all child controls according to machine resolution settings.
    Actually right now all control size are fixed so it seems poor look with very high resolution.

    Please help me…it’s very urgent.

    Thanks
    Ankur

    #4397

    Anonymous

    Hi, im not sure whether you still need such image resize code or not, i offered a sample code here just incase. and if you have any suggestion on this code, please let me know, thank you.

    using System.IO;
    using System.Drawing.Printing;
    using RasterEdge.Imaging;
    using RasterEdge.Imaging.Processing;

    private static Image ResizeImage(Image imgToResize, Size size)
    {
    Bitmap LoadImage = new Bitmap(@”C:\\1.bmp”);
    Size newsize = new size (width, height);
    e.g. Size newsize = new size (150, 250);
    }
    Image.ResizeImage (@”C:\\1.bmp”, new size(150,250));

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.