Autor Beitrag
Chatfix
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1583
Erhaltene Danke: 10

Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
BeitragVerfasst: Di 15.10.02 18:01 
hallo, bin mal wieder vor einem rätsel *g*

also ich habe eine prozedur, die nach dateien sucht. wenn man nun nach *.* sucht dauert es ziemlich lang, und ich möchte das man mit ESC die prozedur beendet.
nun habe ich schon im form1.onkeydown probiert prozedur.exit, das funzt aber nicht.. wie kann ich direkt in der prozedur auf eine taste reagieren?

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: Di 15.10.02 18:05 
Hallo Chatfix,

schau dir mal Application.ProcessMessages und break an.

_________________
If accidentally read, induce vomitting.
Chatfix Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1583
Erhaltene Danke: 10

Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
BeitragVerfasst: Di 15.10.02 18:09 
hab ich schon ;) break unterbricht ja "nur" eine schleife ;) und Application.ProcessMessages hab ich generell in meinen programmen drin

Das löst allerdings nicht mein problem aber trotzdem thx ;)

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: Di 15.10.02 18:15 
Huch, da habe ich mich verguckt. Ich dachte an eine Schleife ... :oops:

Wie sieht denn deine Prozedur zum Datei-suchen aus?

Ich kann mich täuschen, aber wird das Form1.OnKeyDown nicht nur ausgelöst, wenn Form1 den Focus hat?
Hast du schon mal versucht, auf OnKeyDown zu reagieren, wenn die Prozedur gerade nicht läuft?

Ansonsten wüsste ich jetzt auch nicht ... :?

_________________
If accidentally read, induce vomitting.
Chatfix Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1583
Erhaltene Danke: 10

Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
BeitragVerfasst: Di 15.10.02 18:19 
Naja das suchen läuft schon in einer schleife ab... nur muss ich in der prozedur oder in der schleife auf die taste reagieren.... das ist das problem.. gut das mit dem form-focus werd ich nochmal testen...

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce