c# - How to find a control from tooltip -


ide: vs 2010, c# .net 4.0, winforms

i have form form1, , having panels p1 p2 p3, having assigned tooltiptext "pan1", "pan2", "pan3" respectively.

i know can search control in form using

control[] c= this.controls.find("p1", true);   

but there way find control tooltip text,

//example control[] c1 = this.control.findbytooltip("tooltiptext",true);   

i know can map using switch case there easier way..?

if looking panel tooltip, signal designed wrong in application... here how it

  var c = this.controls.oftype<control>().where(p => tooltiphcp.gettooltip(p) == "tooltiptext"); 

Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -