hi all, I'm using wmf file for my picturebox.

I want to make 30 * 30 pixel
picture1.Picture = LoadPicture(App.Path & "\17.wmf", 0, 0, 30, 30)
In picture 1, I have put scalemode in pixel and autosize to true

But I cannot resize the image.
picture1.Picture = LoadPicture(App.Path & "\17.wmf", 0, 0, 5, 5)
returns with the same dimension image..
What did I do wrong?

Thanks

Don't you have to resize the picture control? Try changing picture1.width and picture1.height instead.

Don't you have to resize the picture control? Try changing picture1.width and picture1.height instead.

Hi, I have tried changing the height and width instead.
it works, but i don't have the full image displayed.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.