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!
Printable View
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!
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.
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!
Ya I want to do that Draw my own!
Do you know how I could do that?
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++
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.
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.Quote:
Originally Posted by VB6Learner
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?
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:
Me.Close
Minimize:
vb Code:
Me.WindowState = FormWindowState.Minimized
Maximize:
vb Code:
Me.WindowState = FormWindowState.Maximized
Also i suggest Docking the picture to the Top, or use Anchor one or the other.
Thanks ill try this out right away!