vbdotnet中的渐变标题栏 [英] gradient titlebar in vbdotnet

查看:59
本文介绍了vbdotnet中的渐变标题栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!有没有人知道如何获得渐变标题栏

vbdotnet app ...?

请帮忙。提前谢谢。

解决方案



Ammu写道:


大家好!有没有人知道如何获得渐变标题栏

vbdotnet app ...?

请帮忙。提前致谢。



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

你好Ammu,


这是我发现的东西。不确定它是否可以在dotnet中运行或

没有。

我认为这是vb6.0的东西


无论如何都有一个看(我自己没看过)

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


我有一些非常简单的事情。只有4-5行代码

但是这也是VB 6的东西。


问候。


Sneha(印度)
sp**********@gmail.com



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



你好Ammu,

我以为你可以用它。只有一个图片框。所以我认为它也会在dotnet中运行


如果没有,你会尝试修改它。


Code- -----------------------

Private Sub Command1_Click()

Picture1.ScaleMode = vbPixels

Picture1.DrawWidth = 3

对于i = 1到765

Picture1.Line(i,Picture1.ScaleHeight) - (i,0) ,RGB(0,0,Int(i / 3))

下一页i

Picture1.ScaleMode = vbTwips

End Sub


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


在上面的例子中,我使用了一个图片框

宽度10400缇和高度375


Autoredraw应设置为true

边框样式固定单个和

外观 - 平面


图片的测量无关紧要。

再一次,您可以尝试更改RGB值


,i = 1到765 ......

你明白了吗?请参阅我使用RGB中的蓝色值作为
i / 3。所以BLue的最大值是765/3,即255


但是请记住我只用VB 6


问候。


Sneha(印度)
sp ********** @ gmail.com


" Ammu" < pr ******** @ gmail.comschrieb:


大家好!有谁知道如何获得渐变标题栏

vbdotnet app ...?



Hm ......至少在某些颜色设置表格中,标题栏中有一个渐变

默认情况下。


-

MS Herfried K. Wagner

MVP< URL:http://dotnet.mvps.org/>

VB< URL:http://dotnet.mvps.org/dotnet/faqs/>


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

解决方案


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**********@gmail.com


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

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.ScaleMode = vbPixels
Picture1.DrawWidth = 3
For i = 1 To 765
Picture1.Line (i, Picture1.ScaleHeight)-(i, 0), RGB(0, 0, Int(i / 3))
Next i
Picture1.ScaleMode = 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**********@gmail.com


"Ammu" <pr********@gmail.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/>


这篇关于vbdotnet中的渐变标题栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆