SORU
27 AĞUSTOS 2009, PERŞEMBE


C#: Nasıl bir denetim için araç İpucu eklerim?

Fare hovering zaman için ToolTip görüntülemek için istediğim bazı kontroller var. Bunu nasıl yapabilirim? Bu doğru, ama aynı zamanda tasarımcı (araç kutusunda ToolTip bir bileşen Var, ama tam olsun.. bilmiyorum) kod yapmak için nasıl bilmek istiyorum.

Eğer bu başarısız olursa hiç şaşırmam, ama sadece daha gelişmiş, belirli senaryolar üzerine sorular bulabilirim. Temel şeyleri öğrenmek istiyorum.

CEVAP
27 AĞUSTOS 2009, PERŞEMBE


Here kod ile bunu yapmak için kendi makale

private void Form1_Load(object sender, System.EventArgs e)
{
         // Create the ToolTip and associate with the Form container.
         ToolTip toolTip1 = new ToolTip();

         // Set up the delays for the ToolTip.
         toolTip1.AutoPopDelay = 5000;
         toolTip1.InitialDelay = 1000;
         toolTip1.ReshowDelay = 500;
         // Force the ToolTip text to be displayed whether or not the form is active.
         toolTip1.ShowAlways = true;

         // Set up the ToolTip text for the Button and Checkbox.
         toolTip1.SetToolTip(this.button1, "My button1");
         toolTip1.SetToolTip(this.checkBox1, "My checkBox1");
}

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Caramella Girls

    Caramella Gi

    19 Mayıs 2008
  • ShoSho

    ShoSho

    20 Ocak 2010
  • TheRightTire

    TheRightTire

    14 EKİM 2009