![VB.NET源码-156个实用实例哦……](http://www.zhzx123.com/VB.NET_03.gif)
请问类似QQ窗体靠边自动隐藏的效果如何实现?????
请问类似QQ窗体靠边自动隐藏的效果如何实现的?????
如果谁有代码的话请发一份给我好吗? vb_net2007@126.com
__________________________________________________________________________
Windows有API做这个工作,专门负责屏幕4个边缘的停靠,.NET Framework应该没有封装这个API。
__________________________________________________________________________
Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'靠右下角
Dim X As Short = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width
Dim Y As Short = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height
Me.Location = New System.Drawing.Point(X - Me.Width, Y - Me.Height)
'自动隐藏
Me.Hide()
End Sub
__________________________________________________________________________
这里有一个例子,你可以下来看下
http://bbs.hidotnet.com/ShowPost.aspx?PostID=2617
__________________________________________________________________________
学习
__________________________________________________________________________
lxcnn(过客) 给的例子不错,学习中!
__________________________________________________________________________
用VB2005打开出错
__________________________________________________________________________
用2003试过没有问题!
__________________________________________________________________________