Seite 1 von 1

Auf GotFocus bzw. LostFocus von cg.Inputfield o.ä. reagieren

Verfasst: Montag 12. September 2016, 07:37
von 1acal
Hallo codegarden,

ist es möglich auf die Events GotFocus bzw. LostFocus z.B. von einem cg.Inputfield (und auch von der CheckBox) zu reagieren?
Danke und Gruß

Re: Auf GotFocus bzw. LostFocus von cg.Inputfield o.ä. reagieren

Verfasst: Montag 12. September 2016, 14:59
von FWENZL
Hallo 1acal,

Um auf ein Control und dessen Events zuzugreifen können Sie z.B. folgendermaßen vorgehen:
(Beispiel stammt aus dem Datev-Export Modul)

Code: Alles auswählen

       Friend WithEvents  m_belegart As Combobox
       
[...]

   m_belegart = KON.searchControl("cb_belegart")
   If Not m_belegart Is Nothing Then
      AddHandler m_belegart.SelectedIndexChanged, AddressOf Belegart_SelectedIndexChanged
   End If


Gruß,
Frank

Re: Auf GotFocus bzw. LostFocus von cg.Inputfield o.ä. reagieren

Verfasst: Dienstag 13. September 2016, 10:35
von 1acal
... super, funktioniert - Danke.