You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This question is more c# console specific than probably Terminal.Gui.
I have implemented drag & drop with a TextField and attached the TextChanging event. In that event I call File.Exists() for the TextChangingEventArgs.NewText once it is true, i handle it as if it was a drop. This works very well.
My main issue is, that in that case i set the focus to another TextField where I can enter the description, the thing I'm struggling is to bring the window to front and activate it, so that I just can go on typing. I tried the BringWindowToTop which works to bring the window on top, but I did not find any way to activate it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This question is more c# console specific than probably Terminal.Gui.
I have implemented drag & drop with a
TextField
and attached theTextChanging
event. In that event I callFile.Exists()
for theTextChangingEventArgs.NewText
once it is true, i handle it as if it was a drop. This works very well.My main issue is, that in that case i set the focus to another TextField where I can enter the description, the thing I'm struggling is to bring the window to front and activate it, so that I just can go on typing. I tried the
BringWindowToTop
which works to bring the window on top, but I did not find any way to activate it.Beta Was this translation helpful? Give feedback.
All reactions