检查按钮是否有图像 [英] Check if Button have image

查看:132
本文介绍了检查按钮是否有图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的

如何检查按钮是否有图像?

How to check if a button have an image or not?

我尝试过此代码,但不起作用:

i have try this code but not working :

 If IsNothing(CType(child, Button).Image) Then
     CType(child, Button).TextAlign = ContentAlignment.MiddleCenter
End If

最诚挚的问候,

Surbakti

推荐答案

如何检查按钮是否有图像?

How to check if a button have an image or not?

我尝试过此代码,但不起作用:

i have try this code but not working :

不工作"是什么意思?是否有错误,或者没有按预期执行?如果这是错误,则发布确切的错误消息.如果它没有达到您的期望,那么您应该指出您期望发生的事情, 以及实际发生了什么.

What do you mean 'not working'?   Is there an error, or is it not doing what you expected?  If here is an error then post the exact error message. If it's not doing what you expected then you should indicate what you expected to happen, and what actually happened.


这篇关于检查按钮是否有图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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