473,804 Members | 3,330 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

gradient titlebar in vbdotnet

hi everybody! does anyone know how to get a gradient titlebar in
vbdotnet app...?
pls help. thanks in advance.

Sep 13 '06 #1
10 2271

Ammu wrote:
hi everybody! does anyone know how to get a gradient titlebar in
vbdotnet app...?
pls help. thanks in advance.
--------------------------------------------------------------------------------------
Hello Ammu,

This is something I found. Not sure whether it will work in dotnet or
not.
I think this is vb6.0 stuff

Anyway have a look (I havent checked it myself)

http://cuinl.tripod.com/Tips/gradienttitle.htm

I have something really simple. Only 4-5 lines of code
But that also VB 6 stuff.

Regards.

Sneha (India)
sp**********@gm ail.com

Sep 13 '06 #2
--------------------------------------------------------------------------------------
Hello Ammu,
I thought you can use this. Only a picture box. So I think it will
work in dotnet also.
If it does not you shall try modifying it.

Code------------------------
Private Sub Command1_Click( )
Picture1.ScaleM ode = vbPixels
Picture1.DrawWi dth = 3
For i = 1 To 765
Picture1.Line (i, Picture1.ScaleH eight)-(i, 0), RGB(0, 0, Int(i / 3))
Next i
Picture1.ScaleM ode = vbTwips
End Sub

--------------------------------------

In the above example I have used a Picture box
width 10400 twips and height 375

Autoredraw should be set to true
Border style fixed single and
Appearance -Flat

The measurements of the pic doesnt matter.
Again, you can try changing the RGB values

for i=1 to 765...
is it clear to you? See I have used the Blue Value in RGB as
i/3. So the maximum value of BLue will be 765 /3 that is 255

Let me know If you need further help.
But remember I use only VB 6

Regards.

Sneha (India)
sp**********@gm ail.com

Sep 13 '06 #3
"Ammu" <pr********@gma il.comschrieb:
hi everybody! does anyone know how to get a gradient titlebar in
vbdotnet app...?

Hm... At least on some color settings forms have a gradient in the titlebar
by default.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Sep 13 '06 #4

Sneha Menon wrote:
--------------------------------------------------------------------------------------
Hello Ammu,
I thought you can use this. Only a picture box. So I think it will
work in dotnet also.
If it does not you shall try modifying it.

Code------------------------
Private Sub Command1_Click( )
Picture1.ScaleM ode = vbPixels
Picture1.DrawWi dth = 3
For i = 1 To 765
Picture1.Line (i, Picture1.ScaleH eight)-(i, 0), RGB(0, 0, Int(i / 3))
Next i
Picture1.ScaleM ode = vbTwips
End Sub

--------------------------------------

In the above example I have used a Picture box
width 10400 twips and height 375

Autoredraw should be set to true
Border style fixed single and
Appearance -Flat

The measurements of the pic doesnt matter.
Again, you can try changing the RGB values

for i=1 to 765...
is it clear to you? See I have used the Blue Value in RGB as
i/3. So the maximum value of BLue will be 765 /3 that is 255

Let me know If you need further help.
But remember I use only VB 6

Regards.

Sneha (India)
sp**********@gm ail.com
hi Sneha!
First of all,thank u for ur quick response!i ve already tried the
codings found in that website.it doesnt work with dotnet when i upgrade
the code from vb,but still works with vb.

Next thing,i could nt use picture box control for fake titlebar
look,since it conflicts with my custom menubar ( position) settings in
the form. i need some api programming codes to give a my app titlebar,
a gradient look especially in vbdotnet.

i do ve vb codes for gradient titlebar,but none of them working when
upgraded to vbdotnet .
let m know if there is any way to do that? please.....
thank u ! take care

Sep 13 '06 #5

Ammu wrote:
let m know if there is any way to do that? please.....

-----------------------------------------------------------------------------
Hi Ammu

A little confused.

In the beginning, when you asked for a gradient title bar, I had the
impression you were using a borderless form. Now it seems you are not.

If you are using a regular form with menu bar and all, the default
title bar also will be there. Then what you want actually? Change the
colors of the default title bar?

I think I am missing some point.

If you can tell me what it is exactly, may be I can point you in the
right direction.

Best Regards Ammu.

Sneha (India)
sp**********@gm ail.com
-------------------------------------------------------------------------------

Sep 13 '06 #6

Sneha Menon wrote:
Ammu wrote:
let m know if there is any way to do that? please.....
-----------------------------------------------------------------------------
Hi Ammu

A little confused.

In the beginning, when you asked for a gradient title bar, I had the
impression you were using a borderless form. Now it seems you are not.

If you are using a regular form with menu bar and all, the default
title bar also will be there. Then what you want actually? Change the
colors of the default title bar?

I think I am missing some point.

If you can tell me what it is exactly, may be I can point you in the
right direction.

Best Regards Ammu.

Sneha (India)
sp**********@gm ail.com
-------------------------------------------------------------------------------
hi Sneha!

i wanna to change my application's default titlebar's color ! i like to
give a gradient look to my titlebar with gray and whitesmoke colors .

i already made my application gui with a metallic gray gradient
look(including menu bar and all) except titlebar.i am just trying to
change my titlebar's color .

regards
Ammu

Sep 14 '06 #7

Ammu wrote:
i wanna to change my application's default titlebar's color ! i like to
give a gradient look to my titlebar with gray and whitesmoke colors .
-------------------------------------------------------------------------------
Hi Ammu

Here I am stumped! I could not remember coming accross such a code
Item. I wont be of any help on these line.

All the same, these are some thoughts...

I doubt the outcome of the exercise. The standard Form is almost always
at the mercy or otherwise of the end user. For example, The standard
Form extensively depends on the System/OS settings. If we prefer the
cool, sober, rectangular appearance and incorporate the same in our
forms, calamity is still only one or two clicks away. As long as the
user also has the same taste, we win. On the other hand, if he switches
to Windows XP style? Our hard work goes awry.

If you are a developer with an aesthetic bend as the case seems to be,
I would suggest Custom forms itself. Of course, you have to take care
of everything, The backGround color/Picture, Icon, Title Bar
Color/appearance, Minimize/Maximize/Close buttons, Caption, resizing
issues everything. But that is worth the effort. What ever the whim and
fancy of the user, your form remains the same.

And again, that is NOT a difficult task as it sounds. It is very easy
to Create custom forms with all the features of the standard form and
more. You can create forms of any shape.

If you need it, I am in a position to give you all the guidance in this
line and related graphic issues.

Once again, I am in VB 6. Translating my guidance into dotnet
compatibility would be your headache.

Anyway, I will watch this thread.

Sorry, I could not help you in the current strategy

Regards

Sneha (India)
sp**********@gm ail.com

Sep 14 '06 #8
On 13 Sep 2006 23:03:40 -0700, "Ammu" <pr********@gma il.comwrote:
>
Sneha Menon wrote:
>Ammu wrote:
let m know if there is any way to do that? please.....

-----------------------------------------------------------------------------
Hi Ammu

A little confused.

In the beginning, when you asked for a gradient title bar, I had the
impression you were using a borderless form. Now it seems you are not.

If you are using a regular form with menu bar and all, the default
title bar also will be there. Then what you want actually? Change the
colors of the default title bar?

I think I am missing some point.

If you can tell me what it is exactly, may be I can point you in the
right direction.

Best Regards Ammu.

Sneha (India)
sp**********@gm ail.com
-------------------------------------------------------------------------------

hi Sneha!

i wanna to change my application's default titlebar's color ! i like to
give a gradient look to my titlebar with gray and whitesmoke colors .

i already made my application gui with a metallic gray gradient
look(includi ng menu bar and all) except titlebar.i am just trying to
change my titlebar's color .

regards
Ammu
What you are trying to do is commonly called skinning a form. You might try a
google search for VB.Net skin or skinning.

You can also use a thrid party control to do this:
http://www.sunisoft.com/irisskin/index.htm

Gene
Sep 14 '06 #9

Sneha Menon wrote:
Ammu wrote:
i wanna to change my application's default titlebar's color ! i like to
give a gradient look to my titlebar with gray and whitesmoke colors .
-------------------------------------------------------------------------------
Hi Ammu

Here I am stumped! I could not remember coming accross such a code
Item. I wont be of any help on these line.

All the same, these are some thoughts...

I doubt the outcome of the exercise. The standard Form is almost always
at the mercy or otherwise of the end user. For example, The standard
Form extensively depends on the System/OS settings. If we prefer the
cool, sober, rectangular appearance and incorporate the same in our
forms, calamity is still only one or two clicks away. As long as the
user also has the same taste, we win. On the other hand, if he switches
to Windows XP style? Our hard work goes awry.

If you are a developer with an aesthetic bend as the case seems to be,
I would suggest Custom forms itself. Of course, you have to take care
of everything, The backGround color/Picture, Icon, Title Bar
Color/appearance, Minimize/Maximize/Close buttons, Caption, resizing
issues everything. But that is worth the effort. What ever the whim and
fancy of the user, your form remains the same.

And again, that is NOT a difficult task as it sounds. It is very easy
to Create custom forms with all the features of the standard form and
more. You can create forms of any shape.

If you need it, I am in a position to give you all the guidance in this
line and related graphic issues.

Once again, I am in VB 6. Translating my guidance into dotnet
compatibility would be your headache.

Anyway, I will watch this thread.

Sorry, I could not help you in the current strategy

Regards

Sneha (India)
sp**********@gm ail.com

Hi Sneha! thank u for ur timely reply ,sweety.i m very much interested
in knowing of custom forms creation .if u could help me,i would be
grateful to u.

As of now,i know to create forms of different shapes using gdi+
techniques in vbdotnet.Ayway translating ur vb graphics guidances into
vbdotnet techniques would be my problem as u mentioned .

i really interested in exploring these techniques,Anyw ay i ll take care
of those issues and u ll take care of u my friend.

regards
Ammu

Sep 14 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2435
by: Woody Splawn | last post by:
I have a webform where I would like to have the background color for the webform be a gradient in blue. How do I do this? What is the easiest way? What is the way most used by other developers? Do you draw it with code or attach a .gif file as a background or what? Does one way or the other have an effect on speed? Thank You
13
2079
by: Crirus | last post by:
The main ideea: I havea 513x513 array of values....I draw a sort of map using that values for colors... so I have a realistic lanscape (map). I want to zoom about 60 times that map...and the zoomed area to be drawn on full screen. I want to draw it smoth not a square of 60 pixels x 60 pixels with one color, because I can see blocks and it's not good. There is a way to interpoate the colors between rectangles to show a smoth zoom?
0
4455
by: Don | last post by:
I'm making a custom control that has a multiline textbox on it. I want to make the textbox have a gradient background. On my custom control's Paint event I call a routine that draws a gradient on the textbox's background, but the gradient starts appearing at the bottom of the textbox after the last line of text. It's almost as if VB draws the gradient on the entire textbox, then blanks out the part of the textbox that actually displays...
11
4511
by: Maximus | last post by:
Hi all, Has anyone been able to reterive the gradient selection colors used in outlook 2003? Basically, I have a grid showing a list of records and my client wants the selected row to have the same selection gradient back color as Outlook 2003 has on its left pane. The selected pane in Outlook 2003 have a gradient orange color for blue color scheme in XP. This gradient color changes according to the color schemes of the windows XP. Can...
0
1064
by: Ammu | last post by:
does anyone know how to get a gradient titlebar in vbdotnet?pls help......
4
5890
by: Jon Slaughter | last post by:
I'm drawing a linear gradient and its very "banded". The colors are far enough part that it should be plenty smooth enough but I always get the same number of bands regardless. I've tried to set g.InterpolationMode = InterpolationMode.HighQualityBicubic; g.CompositingQuality = CompositingQuality.HighQuality;
11
1369
by: Jim Madsen | last post by:
Hi all-- Two years ago I bought a copy of vbdotnet2003 and the book "Learn MS VBDotNet 2003 in 21 Days", published by Sams. I started working through the book, but lost interest. This Christmas, I decided I would continue trying to learn this language. I am not a programmer, and am trying to learn this as a matter of personal interest and increasing my career potential. I have many questions, that aren't up to the types of...
6
6171
by: moondaddy | last post by:
I want to fill the entire background of a page with a gradient. As a test, I first filled with a solid color like this: <body style="background-color: #ccffff;" > and the entire page was this color. next I replaced that with a gradient style like this: <body style="filter:
9
8148
by: Eric Lindsay | last post by:
How do you provide a consistent gradient fill as a background in a liquid layout? If I make a gradient fill image say 1000 pixels wide (and repeat it down the page) to suit a typical computer display, then only a small portion of the gradient will show if the viewpoint is a smaller PDA or phone display. On the other hand, if viewed full screen on a 1920 pixel wide display, I would run out of gradient on one or both sides of the page....
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9579
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10317
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10075
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9143
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4295
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.