Results 1 to 8 of 8

Thread: [2005] how to make custom skins for our application?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2007
    Posts
    95

    [2005] how to make custom skins for our application?

    i have searched for it in the forum but could not find any good results... does anybody knows the simplest way to skin applications?

  2. #2
    Hyperactive Member JXDOS's Avatar
    Join Date
    Aug 2006
    Location
    Mars...
    Posts
    423

    Re: [2005] how to make custom skins for our application?

    well.. you would have to draw each picture then load it into the backgroundimage property of each button/form/panel. A panel with a background image would be more realistic. Then if you want the button to be animated at mouse hove set mousehover handle with a gif background.
    If my post has been helpful, please rate it!

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2007
    Posts
    95

    Re: [2005] how to make custom skins for our application?

    what about the header (where minimize, restore/maximize and buttons are)?

  4. #4
    Addicted Member
    Join Date
    May 2007
    Posts
    153

    Re: [2005] how to make custom skins for our application?

    Well, you could make a picturebox there (on top of the screen) and choos "No border" on the form properties. I know there's a script somewhere that allows you to dragg your form while holding that picturebox. Google it...

  5. #5
    Addicted Member
    Join Date
    May 2007
    Posts
    165

    Re: [2005] how to make custom skins for our application?

    Is it a full MDI app or could you get by with just some borderless forms? What version of windows does it need to run on?

    Fairly easy to skin a borderless form, as long as it does not have to work in Win98 - use the colour/transparent colour as stated, but doing it with parent or child MDI forms with borders does not seem possible. Tried demos of a couple of commercial products but could not get them to install on Vista. You may have more luck with other Windows versions.

    Even if you use borderless forms you still have to add code to simulate a control box and allow normal appearing resize/maximise/minimise. I could not fully sort out all the problems with it going through the resize event all the time but could post bits of code if they would help. I got the drag event mentioned working, you can have drag on the edge of the form without picture box. (But only seems to work on the right edge!!!)
    Last edited by xoggoth; Jul 12th, 2007 at 02:49 PM.

  6. #6
    Hyperactive Member JXDOS's Avatar
    Join Date
    Aug 2006
    Location
    Mars...
    Posts
    423

    Re: [2005] how to make custom skins for our application?

    the close maximize minimize buttons could be set to visible = false and put your own panels/buttons there.
    If my post has been helpful, please rate it!

  7. #7
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] how to make custom skins for our application?

    The usual response is to remove the form's border and draw a faux border and title bar yourself. This works but is not ideal. You can change the appearance of the actual border and title bar, although it's not completely straightforward. The code is in C# but there are plenty of online code converters available.

    http://geekswithblogs.net/kobush/art...rderForms.aspx

    I do find it interesting that it seems universally to be those with low post counts that ask this question. The beginners always want to do the sexy stuff before they've got the meat and potatoes happening. I guess it's viewed as being more fun.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  8. #8
    Frenzied Member
    Join Date
    Jan 2001
    Posts
    1,374

    Re: [2005] how to make custom skins for our application?

    I use DevExpress forms which allow the user to customise the look and feel of the application. They have recently added Office 2007 skins (blue, black and silver) to their built-in range. If you are really keen, they also have a skin editor for creating your own customised skins.

    Have a look at this thread:

    http://www.vbforums.com/showthread.php?t=370353

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width