本文介绍了如何从Sql表保存和检索控件的位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我用来移动我的控件的代码,如何从sql数据库表中保存和检索此控件的当前位置?
This is the code that i use to move my control, how do i save and retrieve the current location of this control from a sql database table?
If _mouseDown = True And RadioButton1.Checked = True Then
Button1.Width = e.X
Else
If e.X >= Button1.Width - 3 And RadioButton1.Checked = True Then
Button1.Cursor = Cursors.VSplit
Else
Button1.Cursor = Me.Cursor
End If
End If
If _mouseDown = True And RadioButton1.Checked = True Then
Button1.Height = e.Y
Else
If e.Y >= Button1.Height - 3 And RadioButton1.Checked = True Then
Button1.Cursor = Cursors.HSplit
Else
Button1.Cursor = Me.Cursor
End If
End If
推荐答案
这篇关于如何从Sql表保存和检索控件的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!