给定一个.NET控件,我能得到的提示? [英] Given a .net control, can I get the tooltip?

查看:96
本文介绍了给定一个.NET控件,我能得到的提示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.NET控件(确定,他们中的很多)。我可以调用任何给定的控制方法,但不能创建新的控件或访问我没有控件类的静态方法。我没有获得任何提示的对象。有没有什么方法可以让我得到了一个给定的控制工具提示对象?

I have a .net control (ok, a lot of them). I can invoke methods on any given control, but cannot create new controls or access static methods of the classes I don't have controls for. I don't have access to any tooltip objects. Is there any way I can get the tooltip object for a given control?

(我们使用Java中的相当有限的测试自动化框架访问写在C#.NET应用程序的控制,这是奇怪的查询后面的背景)

(We're using a rather restricted test automation framework in Java to access controls on an application written in C#.net, is the background behind this odd query)

ETA:可能我没讲清楚。我并不想设置一个提示,我想为获得现有的工具提示。我不能创建新的控制,使任何包含新富()是行不通的。

ETA: Maybe I didn't make myself clear. I'm not trying to set a tooltip, I'm trying to get the existing tooltip. And I can't create new controls so anything that includes new Foo() isn't going to work.

推荐答案

看来这是不可能的。 :(要获得提示的控制,我需要访问的工具提示类,这是好的,如果我编程的控制,但否则没有真正暴露出来。

It appears this is not possible. :( To get the tooltip for a control, I need access to the ToolTip class, which is fine if I'm programming the controls but otherwise not really exposed.

这篇关于给定一个.NET控件,我能得到的提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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