TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Thomas Sieverding
NA
13
0
DragDrop Form Activation
May 18 2008 8:16 PM
Pretty much, I want to make my controls so that you can drag them off of the form and it will launch a window containing my new form.
So... I was thinking
void Button1_MouseDown(object sender, MouseEventArgs e)
{
this.DragLeave += new EventHandler(Form1_DragLeave);
DoDragDrop(null, DragDropEffects.None);
}
void Form1_DragLeave(object sender, EventArgs e)
{
Application.Run(new Form2());
Form2.ActiveForm.SetDesktopLocation(MousePosition.X, MousePosition.Y);
}
However, DoDragDrop does not accept those arguments, so, thoughts on an alternative?
Reply
Answers (
0
)
HELP Loading a Class Property from a DataRow
C# Call Detection