Z
zacks
I am trying to implement a form that has a TextBox control where the
user will key in a SQL Script. I would like to have the user be able
to drag a pre-existing query into it by dragging the file from a
Windows Explorer window into it. I can get the Drag Effect to work as
long as I key on the FileDrop DataFormat. But this does not take into
account the content of the file. It allows any type of file to be
dropped. The StringFormat or Text format do not appear applicable. I
would prefer to not have to handle different file types in the
DragDrop event by not even allowing it for non-Text files.
What is the best way to do this?
user will key in a SQL Script. I would like to have the user be able
to drag a pre-existing query into it by dragging the file from a
Windows Explorer window into it. I can get the Drag Effect to work as
long as I key on the FileDrop DataFormat. But this does not take into
account the content of the file. It allows any type of file to be
dropped. The StringFormat or Text format do not appear applicable. I
would prefer to not have to handle different file types in the
DragDrop event by not even allowing it for non-Text files.
What is the best way to do this?