Solved

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

Posted on 2010-11-21
2
1,076 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

860 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