我忘了调用''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" 解决方案???\\\Private Sub Form1_Load( _ByVal sender As System.Object, _ByVal e As System.EventArgs _) Handles MyBase.LoadDim 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.RedMe.Region = New System.Drawing.Region(g)End Sub///--Herfried K. WagnerMVP · VB Classic, VB.NET http://www.mvps.org/dotnetI forgot to call the ''GraphicsPath''''s ''Dispose'' method. Notice that thesame effect can be archieved on Windows 2000+ machines by setting the form''s''TransparencyKey'' property and drawing the "m" onto the form.--Herfried K. WagnerMVP · VB Classic, VB.NET http://www.mvps.org/dotnet 这篇关于帮我的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-15 14:35