Results 1 to 11 of 11

Thread: [2.0] Create my own Style Form in C#

  1. #1

    Thread Starter
    Lively Member fifo's Avatar
    Join Date
    Dec 2005
    Location
    HaiPhong, Vietnam
    Posts
    77

    [2.0] Create my own Style Form in C#

    hi, experts

    I want to create my own style forms in c# like Nero form, or Winnamp (See the picture below). But i dont know HOW???

    pls, show me?
    Attached Images Attached Images  
    !Have fun!

  2. #2
    Frenzied Member
    Join Date
    Mar 2006
    Location
    Pennsylvania
    Posts
    1,069

    Re: [2.0] Create my own Style Form in C#

    Well you would simply make the FormBorderStyle to None, and then design the window completely yourself, except, don't draw the buttons and dropdowns. Because for the buttons, when you mouseover them, they change hue or shade, and if you included those in the main background design, you would have to change the whole background image when you moused over something.

    Instead, draw all the buttons seperately. You would also want to handle the MouseMove event and MouseClick events. When you move your mouse, you want to check that it is within the bounds of a button. For example, let's say the Make Data CD button is at 300x, 300y of the form and it 50 pixels thick and 50 pixels high. Only use the below psuedocode if you drew the buttons onto the background. Otherwise, create buttons and set there image property to the custon button face, and use their Events.

    Code:
    If MousePosition.X >= 300 And MousePosition.X <= 350
    If MousePosition.Y >= 300 And MousePosition.Y <= 350
    'You are within the button's bounds, now test for click event/hover event.
    End If
    End If
    As for the transparency in the corners, you would just make a weird color in the corners that you would never use in your application, and then set the transparency key of your form to that color.

    As for tooltips, use the tooltips control and test for MousePosition again and only show when you are over

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

    Re: [2.0] Create my own Style Form in C#

    The "buttons" on that form would just be PictureBoxes. Then you just handle the MouseEnter, MouseDown, MouseUp and MouseLeave events to change the Image to give the rollover and press effects.

    I'm going to give you my opinion here, which you can choose to ignore if you want. Many people ask how to create fancy forms. If you have no idea where to start then that suggests fairly strongly to me that you are quite inexperienced. I would suggest creating a car that runs well before you worry about giving it a fancy paint job. Fancy interfaces may look good but an application that works should be what you aim for first.
    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

  4. #4

    Thread Starter
    Lively Member fifo's Avatar
    Join Date
    Dec 2005
    Location
    HaiPhong, Vietnam
    Posts
    77

    Re: [2.0] Create my own Style Form in C#

    @jmcilhinney : i see, but any way do you think interfaces alway are importance, don't you? With fancy interface you can make your clients stay longer before monitor (without boring).

    And about the problem, I used to use a tool, ActiveSkin for VB6, it's very good to design interfaces, really nice. I hope in C# we had some Tools like that. But...

    Do you know ?
    !Have fun!

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

    Re: [2.0] Create my own Style Form in C#

    If you're app doesn't work properly or do something useful then it will get uninstalled much quicker than if it doesn't have a fancy interface. The standard controls provided with the .NET Framework will create an interface that is usable and attractive enough if it's well designed. A nice custom interface can make an application more interesting, but if that interface doesn't provide useful functionality that works then what's the point?

    You can do everything yourself but there are skinning tools for the .NET platform. If I was looking for one I'd Google skinning ".net".
    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

  6. #6

    Thread Starter
    Lively Member fifo's Avatar
    Join Date
    Dec 2005
    Location
    HaiPhong, Vietnam
    Posts
    77

    Re: [2.0] Create my own Style Form in C#

    thank for replying
    But, I need a tool which can help me to create Skins, Styles for C# Forms.

    I don't need skin for my OS, or else.

    Can you show me the name of this tools (such as ActiveSkin for VB6)
    !Have fun!

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

    Re: [2.0] Create my own Style Form in C#

    I have provided advice. Did you even bother trying it? If you had then you'd have already found at least one link to a component that does what you want. I thought a bit harder and changed the search to skinning forms ".net" and found even more.
    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

    Thread Starter
    Lively Member fifo's Avatar
    Join Date
    Dec 2005
    Location
    HaiPhong, Vietnam
    Posts
    77

    Re: [2.0] Create my own Style Form in C#

    NO, i try, try, and try again, thousand times.

    I'm looking for this components a long time ago, BUT nothing is suitable for my aim. :Cry

    that reason why i need your help.

    any way, thank a lots
    !Have fun!

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

    Re: [2.0] Create my own Style Form in C#

    The searches I suggested returned these links:

    http://www.dotnetskin.net/
    http://www.codeproject.com/Purgatory/splforms.asp
    http://skin.qarchive.org/
    http://www.appface.com/eng/index.htm

    Are you saying that none of those is suitable for what you want to do?
    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

  10. #10

    Thread Starter
    Lively Member fifo's Avatar
    Join Date
    Dec 2005
    Location
    HaiPhong, Vietnam
    Posts
    77

    Re: [2.0] Create my own Style Form in C#

    I found some component useful:

    1. http://www.skincrafter.com/download.html

    2. http://www.formviz.com/download.html

    3. http://www.windowsforms.net/Default....dex=4&tabid=49

    really nice for make your own Skin, own Style Form.
    Try!
    !Have fun!

  11. #11

    Thread Starter
    Lively Member fifo's Avatar
    Join Date
    Dec 2005
    Location
    HaiPhong, Vietnam
    Posts
    77

    Re: [2.0] Create my own Style Form in C#

    thank a lots
    you are great
    Last edited by fifo; May 7th, 2007 at 02:47 AM.
    !Have fun!

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