24-C# ToolTip Kullanımı ve Özellikleri,C# Dersleri 2018

SendeKodYaz
SendeKodYaz
9.2 هزار بار بازدید - 7 سال پیش - C# form tutorial 2018 with
C# form tutorial 2018 with 24 training videos with C# What is ToolTip ?, C# tooltip with the use of properties are described.

What is C# ToolTip?

ToolTip is the tip of the word Turks. When a C# Windows Form application is executed, it runs when the user touches the controls such as TextBox with the mouse. The tip text appears in a bubble when it comes to control. Like the ToolTip object is in the Timer object, the form is not attached to itself, but a pane is added at the bottom of the form. By adding the ToolTip object to the project, it is allowed to add a hint to all objects, such as the form and its TextBox, RadioButton, and so on.

C# ToolTip Usage

After the toolTip1 named object is added to the project, the form or any object on it is selected. Then, in the Properties panel, click ToolTip on toolTip1 to display the hint text to be displayed when the mouse is over the control.
C # ToolTip Properties
Name: toolTip is the name of the control and is not recommended to change if you do not have advanced programming knowledge.
Active: toolTip1 is the property that determines the state of activity of the control. If this property is set to false, hints will not be displayed even if you hover over the controls with the hint text and the mouse.
AutomaticDelay: Automatic delay means. It is a feature that determines how many milliseconds the hint text will be displayed when the project is executed and the mouse reaches any control point. The default value is 500 milliseconds, which is half a second.
AutoPopDelay: The feature that determines how many milliseconds the hint text is to be displayed, with a default value of 5000 milliseconds, or 5 seconds.
BackColor: The hint shown to the user is the background color of the text bubble.
ForeColor: The font color of the tip text.
IMPORTANT NOTE: Even if you change ForeColor and BackColor properties from the Properties panel or code, it will be seen that these changes do not take place when the project is executed. Our programming knowledge needs to be advanced to change the ForeColor and BackColor properties of the ToolTip object. However, these changes are also possible with the following method.
Open the file named Program.cs in the Solution Explorer panel and delete the selected Application.EnableVisualStyles () command line below. What is Application.EnableVisualStyles () ?. This method provides ready-made visual styles (colors, font styles, themes, etc.) for applications. When we delete this line we can change the background (BackColor) and foreground (ForeColor) colors of the ToolTip object. But we should not forget that we can change the design features of the form and the objects added on it so that we can erase this line.
InitialDelay: It means start delay. When the AutomaticDelay value is changed, the InitialDelay value also gets the same value.
IsBalloon: The tip text is normally displayed in a rectangular frame, as shown above. However, if this property, which is normally false, is changed to true, the clue text is displayed in a bubble, as shown below.
ToolTipIcon: Hint means the icon. It includes None, Info, Warning, and Error. When None is selected, the icon does not appear in the hint text, otherwise the icon is displayed according to which selection was made. For example; When the Warning is selected, the icon in the following screen image is displayed in the hint box.
ToolTipTitle: Tip means title. The text here is displayed as a title in the hint boxes of all controls. For example; When ToolTipTitle text is typed as "Blank Unavailable!", The following text is displayed as a text title in the hint box, as can be understood.
UseAnimation: means use animation. If the default value is true and this property is set to false, the hint box will be displayed directly without the balloon animation.
UseFading: We can name this feature fade in use. When the default value is true and this property is changed to false, the clue box disappears directly after a certain amount of time on the screen without fading effect.
~
Web Site ► http://www.sendekodyaz.com
~
Not to miss new videos ► http://bit.ly/sendekodyazyoutube
For C # Forms training ► http://bit.ly/csharpformdersleri
Training for C # Console Lessons ► http://bit.ly/csharpconsoledersleri
~
Facebook ► Facebook: sendekodyaz
Google+ ► http://plus.google.com/+SendKodYaz
Twitter ► Twitter: sende_kodyaz
Tumblr ► Tumblr: sendekodyaz
Blogger ► http://onlineprogramlamadersleri.blog...
7 سال پیش در تاریخ 1396/10/20 منتشر شده است.
9,205 بـار بازدید شده
... بیشتر