Solved

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

Posted on 2010-11-21
2
1,083 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

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…
A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
In this Micro Tutorial viewers will learn how to remove an unwanted object using Photoshop’s feature known as content-aware fill.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

751 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