一个关于VB编程的菜鸟级问题
我希望让我编写的程序始终保持在其他窗口的上方能办到吗~?比如我运行我编写的程序然后打开photoshop最大化并且正常操作还能让我编写的程序保持在Photoshop上面高...
我希望让我编写的程序始终保持在其他窗口的上方 能办到吗~?
比如我运行我编写的程序 然后打开photoshop最大化 并且正常操作
还能让我编写的程序保持在Photoshop上面
高手帮帮我吖`.... 展开
比如我运行我编写的程序 然后打开photoshop最大化 并且正常操作
还能让我编写的程序保持在Photoshop上面
高手帮帮我吖`.... 展开
展开全部
'加入以下代码:
'声明
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Const topview = -1
Private Sub Form_Load()
'窗体Form 始终保持在其他窗口的上方
SetWindowPos Me.hwnd, topview, _
Me.Left \ Screen.TwipsPerPixelX, _
Me.top \ Screen.TwipsPerPixelY, _
Me.Width \ Screen.TwipsPerPixelX, _
Me.Height \ Screen.TwipsPerPixelY, 0
End Sub
'声明
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Const topview = -1
Private Sub Form_Load()
'窗体Form 始终保持在其他窗口的上方
SetWindowPos Me.hwnd, topview, _
Me.Left \ Screen.TwipsPerPixelX, _
Me.top \ Screen.TwipsPerPixelY, _
Me.Width \ Screen.TwipsPerPixelX, _
Me.Height \ Screen.TwipsPerPixelY, 0
End Sub
--
2022-12-05 广告
2022-12-05 广告
图形化编程简单理解为用积木块形式编程,scratch和python也是其中的一种,属于入门级编程,以其简单生动的画面获得无数学生的喜爱,深圳市创客火科技有限公司是一家做教育无人机的公司,旗下有编程无人机,积木无人机及室内外编队,每款飞机含有...
点击进入详情页
本回答由--提供
展开全部
复制下面代码即可
Private Declare Function SetWindowPos& Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long)
Private Sub Form1_Load()
SetWindowPos(Me.hwnd, -1, 0, 0, 0, 0, 3)
End Sub
Private Declare Function SetWindowPos& Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long)
Private Sub Form1_Load()
SetWindowPos(Me.hwnd, -1, 0, 0, 0, 0, 3)
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Public Declare Function SetWindowPos& Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long)
Call SetWindowPos((窗口句柄)hwnd, -1, 0, 0, 0, 0, 3)
试试
Call SetWindowPos((窗口句柄)hwnd, -1, 0, 0, 0, 0, 3)
试试
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
让指定对象获取焦点
对象名.SetFocus
可能有用 试下
对象名.SetFocus
可能有用 试下
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询