Autor Beitrag
Christoph1972
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 690
Erhaltene Danke: 16


VS2015 Pro / C# & VB.Net
BeitragVerfasst: So 18.10.09 21:27 
Hallo zusammen,

die Aktivität meiner Anwendung wird mit einem NotifyIcon im SystemTray angezeigt. Nun möchte ich bei einem Event, ein Tooltip an der Position des NotifyIcons anzeigen. Dem Tooltip kann kein NotifyIcon als Control angehängt werden.

Hat jemand eine Idee, wie ich das realisieren könnte?

_________________
Gruß
Christoph
nico t.
Hält's aus hier
Beiträge: 7


C# (VS2005, VS2008), BDS Delphi 2006, Delphi 7
BeitragVerfasst: Mi 21.10.09 10:06 
Das NotifyIcon besitzt doch schon eine Art ToolTip. Warum nutzt du nicht die?

ausblenden C#-Quelltext
1:
2:
3:
4:
5:
6:
7:
public void SampleEvent(EventArgs e)
{
     notifyIcon1.BalloonTipIcon = ToolTipIcon.Info;
     notifyIcon1.BalloonTipText = "Das ist der Tooltip";
     notifyIcon1.BalloonTipTitle = "Tooltip";
     notifyIcon1.ShowBalloonTip(50);
}


Gruß Nico
Christoph1972 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 690
Erhaltene Danke: 16


VS2015 Pro / C# & VB.Net
BeitragVerfasst: Mi 21.10.09 14:32 
Hi,

vielen Dank! Ich habe die Member leider nicht gesehen :oops: Gut das ich noch keine Zeit gefunden habe, mein eigens ToolTip zu entwickeln. Das hatte ich schon eingeplant......

_________________
Gruß
Christoph