用面板拖动VB 2010 Windows [英] Drag VB 2010 WIndow With A Panel

查看:54
本文介绍了用面板拖动VB 2010 Windows的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我在vb 2010中制作了一个表格,但没有正常的Windows皮肤.我已经用黑色面板替换了通常具有最小化控件的顶部面板.我希望面板在拖动窗口时拖动窗口.

希望你知道我的意思!

Thx

Hi, I have made a form in vb 2010 but without the normal windows skin. I have replaced the top panel that usually has the controls to minimize etc. with a black panel. I want the panel to drag the window about when it is dragged.

I hope you know what I mean!

Thx

推荐答案

对于VB, ^ ]是一个非常易于使用的解决方案.

可拖动表单:通过单击表单上的任意位置来拖动无边界表单 [ ^ ](本文是C#,但您可以了解它的完成方式)
For VB, this[^] is a pretty easy solution to use.

Draggable Form: Drag a Borderless Form by Clicking Anywhere on the Form[^] (This article is C#, but you can get an idea of how it''s done)


我发现:

http://social.msdn.microsoft.com/论坛/en-US/vblanguage/thread/4744ba67-3774-4e76-85a1-6bbe7093a896 [
I found out:

http://social.msdn.microsoft.com/forums/en-US/vblanguage/thread/4744ba67-3774-4e76-85a1-6bbe7093a896[^]


这篇关于用面板拖动VB 2010 Windows的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆