C# Class BF2Statistics.Utilities.Tipsy

Tipsy is a simple class that can Add and Remove tooltips to form controls programatically during runtime.
Show file Open project: BF2Statistics/ControlCenter Class Usage Examples

Public Methods

Method Description
GetControlToolTip ( Control control ) : ToolTip

Returns the controls tooptip object. If the control does not have a tooltip, a new instance of a tooltip is returned instead

GetControlToolTip ( string controlName ) : ToolTip

Returns the controls tooptip object. If the control does not have a tooltip, a new instance of a tooltip is returned instead

RemoveToolTip ( Control control ) : void

Removes any and all tooltips for a control

SetToolTip ( Control control, string text, bool ShowAlways = false, int timeToDisplay = 5000 ) : void

Sets a tooltip object for a control

Method Details

GetControlToolTip() public static method

Returns the controls tooptip object. If the control does not have a tooltip, a new instance of a tooltip is returned instead
public static GetControlToolTip ( Control control ) : ToolTip
control System.Windows.Forms.Control
return System.Windows.Forms.ToolTip

GetControlToolTip() public static method

Returns the controls tooptip object. If the control does not have a tooltip, a new instance of a tooltip is returned instead
public static GetControlToolTip ( string controlName ) : ToolTip
controlName string
return System.Windows.Forms.ToolTip

RemoveToolTip() public static method

Removes any and all tooltips for a control
public static RemoveToolTip ( Control control ) : void
control System.Windows.Forms.Control
return void

SetToolTip() public static method

Sets a tooltip object for a control
public static SetToolTip ( Control control, string text, bool ShowAlways = false, int timeToDisplay = 5000 ) : void
control System.Windows.Forms.Control
text string
ShowAlways bool
timeToDisplay int
return void