Me.ClientRectangle不再工作了吗? [英] Me.ClientRectangle not working anymore?

查看:56
本文介绍了Me.ClientRectangle不再工作了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果有人可以帮助我,将不胜感激.我已经使用Visual Basic 2010一年了,以前没有任何问题.但是,我第一次去Visual Basic 2013时,Me.ClientRectangle不再起作用.它不给 给我一个错误,它不再起作用了.

If anyone can help me, it'll be greatly appreciated. I've been using Visual Basic 2010 for a year now, and haven't had any problems with this before. The first time I go to Visual Basic 2013, however, Me.ClientRectangle doesn't work anymore. It doesn't give me an error, it just doesn't work anymore.

如果您需要更多代码,请对此问题发表评论,我可以给您.谢谢!

If you need more code, please comment on the question and I can give it to you. Thanks!

如果OvalShape1.Left< = Me.ClientRectangle.Left然后
            MoveRight = True
       如果

If OvalShape1.Left <= Me.ClientRectangle.Left Then
            MoveRight = True
        End If

推荐答案

结束,是什么让您认为ClientRectangle不起作用"? 我"是指代码显示在其中的类,因此,如果您在Form1类中的某个地方对Me.ClientRectangle进行编码,则将获得一个Rectangle,它代表表单的客户区域.

What makes you think that ClientRectangle "doesn't work"? 'Me' refers to the class that the code appears in, so if you code Me.ClientRectangle somewhere in the Form1 class, you will get a Rectangle that represents the client area of the form.

Me.ClientRectangle.Left在您发布的语句中返回什么值,为什么您认为这是错误的?

What value is being returned by Me.ClientRectangle.Left in the statement that you posted, and why do you think it's wrong?


这篇关于Me.ClientRectangle不再工作了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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