帮我 [英] help me
问题描述
我怎样才能使表格像m一样
" abd el moniem" <第**** @ hotmail.com> schrieb:我怎样才能使表格像m
???
\\\
Private Sub Form1_Load(_
ByVal sender As System.Object,_
ByVal e As System .EventArgs _
)处理MyBase.Load
Dim g As New System.Drawing.Drawing2D.GraphicsPath()
g.AddString(_
" m",_
System.Drawing.FontFamily.GenericSansSerif,_
System.Drawing.FontStyle.Bold,_
100,_
新点(0,0),_
System.Drawing.StringFormat.GenericDefault _
)
Me.BackColor = Color.Red
Me.Region = New System.Drawing.Region(g)
End Sub
///
-
Herfried K. Wagner
MVP·VB Classic,VB.NET
http://www.mvps.org/dotnet >
嗨Herfried,
好一个!!我不知道这是不是他想要的(但这对我来说也是这样),但无论哪种方式 - 效果都不错。 :-)
干杯,
Fergus
" Fergus Cooney" <音响****** @ tesco.net> schrieb:好一个!!我不知道这是不是他想要的(但这听起来也像我一样),但无论哪种方式 - 效果都不错。 : - )
我忘了调用''GraphicsPath''''Dispose''方法。请注意,通过设置'
''TransparencyKey''属性并绘制m形式,可以在Windows 2000+机器上实现
相同的效果。到表格。
-
Herfried K. Wagner
MVP·VB Classic,VB.NET
http://www.mvps.org/dotnet
how can i make the form like the "m"
"abd el moniem" <th****@hotmail.com> schrieb:how can i make the form like the "m"
???
\\\
Private Sub Form1_Load( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs _
) Handles MyBase.Load
Dim g As New System.Drawing.Drawing2D.GraphicsPath()
g.AddString( _
"m", _
System.Drawing.FontFamily.GenericSansSerif, _
System.Drawing.FontStyle.Bold, _
100, _
New Point(0, 0), _
System.Drawing.StringFormat.GenericDefault _
)
Me.BackColor = Color.Red
Me.Region = New System.Drawing.Region(g)
End Sub
///
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Hi Herfried,
Nice one!! I don''t know if it''s what he wants (but that''s what it sounds like to me too), but either way - nice effect. :-)
Cheers,
Fergus
"Fergus Cooney" <fi******@tesco.net> schrieb:Nice one!! I don''t know if it''s what he wants (but that''s what it sounds
like to me too), but either way - nice effect. :-)
I forgot to call the ''GraphicsPath''''s ''Dispose'' method. Notice that the
same effect can be archieved on Windows 2000+ machines by setting the form''s
''TransparencyKey'' property and drawing the "m" onto the form.
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
这篇关于帮我的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!