Solved

Making a workable skin for a windows form in vb.net

Posted on 2010-11-21
2
1,062 Views
Last Modified: 2012-05-10
I am trying to skin a form in vb.net - I designed a simple skin in Photoshop to try out - I added it to my form as a background image - but I experience two problems:
1. the skin is not the right size for the form (I obviously have set the image size wrong in PS)
2. I can make the skin fit the form by setting mode to stretch but when I do this and change the size of the form by dragging then the text boxes etc are in the wrong place.

Any help would be welcome
0
Comment
Question by:Jedeye
2 Comments
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 100 total points
ID: 34183258
0
 
LVL 5

Accepted Solution

by:
Barsham earned 400 total points
ID: 34184516
We have two kinds of graphics :
1- Vector graphics   http://en.wikipedia.org/wiki/Vector_graphics
2- Raster graphics   http://en.wikipedia.org/wiki/Raster_graphics

you should first decide what type of graphics you'll use in your project.
In vector graphics the positive point is you can re-size the image without losing the quality because everything made by lines and points (like WMF or other vector base images).

In your case I think you're using raster graphics (i.e. Bitmap) for your background image. so you'll lose quality and style when you change the resolution. If you want to keep your graphics style (Bitmap), I suggest to remove form sizable properties from your form and make an exact size for your image and also your form.


And also please consider that .NET has different behaviors for different image types (JPEG , BMP , GIF, ...). I recon to change the type and check the performance of your form. It's really important cause you want something beautiful and also fast.





0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In this article, I'll explain how to change the color of a selection in Photoshop. I'm sure there are a couple different ways to do this in photoshop, but this is my preferred method in Photoshop. I am using Photoshop CS6 and I will be adjusting the…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
In this tutorial viewers will learn a few layer organization tricks and tips to improve their workflow in Photoshop. Open a multi-layer document in Photoshop: View all your layers by going Window > Layers:  To make sure your layers can be identified…
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now