|
-
Aug 19th, 2008, 07:10 PM
#1
Thread Starter
Hyperactive Member
[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.
-
Aug 19th, 2008, 07:49 PM
#2
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.
-
Aug 19th, 2008, 09:13 PM
#3
Thread Starter
Hyperactive Member
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!
-
Aug 19th, 2008, 09:14 PM
#4
Thread Starter
Hyperactive Member
Re: [2008] Change Top Bar?
Ya I want to do that Draw my own!
-
Aug 20th, 2008, 01:53 AM
#5
Thread Starter
Hyperactive Member
Re: [2008] Change Top Bar?
Do you know how I could do that?
-
Aug 20th, 2008, 01:56 AM
#6
New Member
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++
 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.

-
Aug 20th, 2008, 02:03 AM
#7
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.
-
Aug 20th, 2008, 02:08 AM
#8
Thread Starter
Hyperactive Member
Re: [2008] Change Top Bar?
Ya but how could I make a Exit Minimize and Maximize sign?
-
Aug 20th, 2008, 02:18 AM
#9
Re: [2008] Change Top Bar?
 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.
-
Aug 20th, 2008, 01:44 PM
#10
Thread Starter
Hyperactive Member
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?
-
Aug 20th, 2008, 04:24 PM
#11
Frenzied Member
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:
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.
-
Aug 20th, 2008, 05:58 PM
#12
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|