Autor Beitrag
Raorkon
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 86
Erhaltene Danke: 1



BeitragVerfasst: Fr 12.02.10 10:06 
Hallo Zusammen,

ich habe eine Anwendung für ein mobiles Gerät, die Anwedung soll nun um einen Treeview erweitert werden.
Der Treeview ist kein Problem allerdings komme ich bei einen Problem nicht weiter.

Wenn auf einen Knoten des TV über Touchscreen geklickt wird soll ein Panel mit Informationen erscheinen.

Nun hänge ich bei diesen Click-Event

ich habe mir das folgendermaßen gedacht:

ausblenden C#-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
        protected Control control;

        /// <summary>
        /// Initialisiert die Form
        /// </summary>
        public DeliveryOrderForm(string p_deliveryno)
        {
            InitializeComponent();

            control = tvDeliveryOrder; // der Treeview

            control.Click += new EventHandler(OnClick);
            ...     
        }


        private void OnClick(Object objSender, EventArgs e)
        {

        }


nur leider passiert gar nichts was mache ich falsch?

Moderiert von user profile iconChristian S.: Code- durch C#-Tags ersetzt
Moderiert von user profile iconChristian S.: Topic aus C# - Die Sprache verschoben am Fr 12.02.2010 um 10:22
Christoph1972
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 690
Erhaltene Danke: 16


VS2015 Pro / C# & VB.Net
BeitragVerfasst: Fr 12.02.10 16:11 
Hi,

ausblenden C#-Quelltext
1:
treeView.NodeMouseClick += new TreeNodeMouseClickEventHandler(.......)					

_________________
Gruß
Christoph
Raorkon Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 86
Erhaltene Danke: 1



BeitragVerfasst: Fr 12.02.10 20:41 
mhh auf diese Methode kann ich leider nicht aufrufen. Ich habe aber das SDK von .Net 2.0 installiert und auch alle verfügbare Updates. Auf was muss ich achten um dieses Event aufrufen zu können.
JüTho
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2021
Erhaltene Danke: 6

Win XP Prof
C# 2.0 (#D für NET 2.0, dazu Firebird); früher Delphi 5 und Delphi 2005 Pro
BeitragVerfasst: Fr 12.02.10 21:41 
Zitat:
Auf was muss ich achten um dieses Event aufrufen zu können.

Nicht für mobile Geräte entwickeln. :mrgreen: Dieses Ereignis ist laut SDK-Doku im CF leider nicht vorhanden (aber sonst weiß ich auch nichts). Jürgen
Raorkon Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 86
Erhaltene Danke: 1



BeitragVerfasst: Fr 12.02.10 21:50 
habe ich schon fast befürchtet :?
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4809
Erhaltene Danke: 1061

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Sa 13.02.10 14:57 
Benutze dafür das AfterSelect-Ereignis.