Results 1 to 12 of 12

Thread: [2008] Change Top Bar?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    493

    [2008] Change Top Bar?

    How can I change the Top Bar color so when I run it it changes the color of it? Here is a picture of what Im taling about!
    Last edited by VB6Learner; Aug 19th, 2008 at 09:12 PM.

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

    Re: [2008] Change Top Bar?

    You haven't attached your image. If you're talking about the title bar of the form then that's controlled by the current Windows theme. You can change it but it's a rather complex process involving unmanaged code. You can also remove the border altogether and draw your own, but that brings its own problems.
    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

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    493

    Re: [2008] Change Top Bar?

    Sorry about the pic for some reason it wont upload... Well what im talking about is the thing with the Exit Minimize And Maximize Button!

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    493

    Re: [2008] Change Top Bar?

    Ya I want to do that Draw my own!

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    493

    Re: [2008] Change Top Bar?

    Do you know how I could do that?

  6. #6
    New Member r33k's Avatar
    Join Date
    Jul 2008
    Location
    New Jersey
    Posts
    9

    Re: [2008] Change Top Bar?

    photoshop.. I don't know what coding he was referring to but i know you can make the design in photoshop and apply it. I've done it in C++

    Quote Originally Posted by HBDev
    Being that this is illegal in 71 U.S. states including New Failico, Califailia, and Failida you are sentenced to death by lethal injection of fail.

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

    Re: [2008] Change Top Bar?

    I thought someone else would have posted here by now but it appears not. Set the FormBorderStyle to None and then either add a PictureBox to the top of your form an display your image of choice there or else use GDI+ to draw a title bar in the Paint event handler of the form.
    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
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    493

    Re: [2008] Change Top Bar?

    Ya but how could I make a Exit Minimize and Maximize sign?

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

    Re: [2008] Change Top Bar?

    Quote Originally Posted by VB6Learner
    Ya but how could I make a Exit Minimize and Maximize sign?
    You draw them. You then need to handle the appropriate events of the controls you use or the form itself, depending on exactly how you do it. I told you it was messy.
    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
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    493

    Re: [2008] Change Top Bar?

    Ohh so what your saying I draw the bar change Drag it to the top and place a Button down and Redraw that to be a Image?

  11. #11
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Re: [2008] Change Top Bar?

    You draw an image, for the top bar. Then you draw more images or make buttons for the Exit etc... Then you code it on the click event:

    Exit:
    vb Code:
    1. Me.Close

    Minimize:
    vb Code:
    1. Me.WindowState = FormWindowState.Minimized

    Maximize:
    vb Code:
    1. Me.WindowState = FormWindowState.Maximized

    Also i suggest Docking the picture to the Top, or use Anchor one or the other.

  12. #12

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    493

    Re: [2008] Change Top Bar?

    Thanks ill try this out right away!

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