473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Drap and Drop Question

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?
Jan 25 '08 #1
0 803

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Torre Quinn | last post by:
Does anyone have any good sites or resources dealing with adding drag and drop functionality to a set of controls on a form? I'd like to try to get several examples of varied applications of drag...
2
by: pmclinn | last post by:
Does anyone have some sample code that would show me how to drag and ..doc or exe file to a drop target and then extract the file path on drop?
0
by: shanmuganathan82 | last post by:
i need drag and drop in table . in database get the value display lablel in table place the value using asp.net with c# and java script advance thanks by shanmuganathan
1
by: selvi166 | last post by:
hi, i am using visual studio 2005. while designing the form in asp.net 2.0 the drap and drop of the control is not working as like vb. i know there is two mode which allows drap and drop and...
1
by: student2008 | last post by:
Sorry about the title its a tricky one. I have a form which allows me to add a question and answers into a mysql database via a combination of, if a certain option is chosen and the reset button...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.