Click here to Skip to main content
15,895,709 members
Home / Discussions / C#
   

C#

 
GeneralRe: Newbie Question Pin
kruegersck23-Jun-08 2:58
kruegersck23-Jun-08 2:58 
GeneralRe: Newbie Question Pin
Christian Graus23-Jun-08 11:36
protectorChristian Graus23-Jun-08 11:36 
QuestionDrog and Drop question ? Pin
Mohammad Dayyan22-Jun-08 11:17
Mohammad Dayyan22-Jun-08 11:17 
AnswerRe: Drog and Drop question ? Pin
Christian Graus22-Jun-08 12:20
protectorChristian Graus22-Jun-08 12:20 
GeneralRe: Drog and Drop question ? Pin
Mohammad Dayyan22-Jun-08 12:28
Mohammad Dayyan22-Jun-08 12:28 
GeneralRe: Drog and Drop question ? Pin
Christian Graus22-Jun-08 12:31
protectorChristian Graus22-Jun-08 12:31 
GeneralRe: Drog and Drop question ? Pin
Mohammad Dayyan22-Jun-08 12:39
Mohammad Dayyan22-Jun-08 12:39 
AnswerRe: Drog and Drop question ? Pin
Anthony Mushrow22-Jun-08 14:50
professionalAnthony Mushrow22-Jun-08 14:50 
OK, i finally got it. IE expects Files (which we already knew right?). After a little investigation it turns out the a FileDrop is just an array of strings (usualy with just one string in, go figure).

So, simple enough:

void TreeView1ItemDrag(object sender, ItemDragEventArgs e)
{
  string[] stuff = new string[1];
  stuff[0] = @"http://www.google.co.uk"; // or e.Item.ToString() or however you've got your address in there
.
  //Create a new data object with the FileDrop type
  DataObject data = new DataObject(DataFormats.FileDrop, stuff);
.
  //And IE only wants Copy, it doesn't like move or whatever
  this.treeView1.DoDragDrop(data, DragDropEffects.Copy);
}


So, IE will get this info, check the array of strings for the file to open, find your web address, and open it.

My current favourite word is: I'm starting to run out of fav. words!
-SK Genius

Game Programming articles start -here[^]-

GeneralRe: Drog and Drop question ? Pin
DaveyM6922-Jun-08 23:18
professionalDaveyM6922-Jun-08 23:18 
QuestionMaking scrol lbox custom controls using compact framework sdk Pin
neilfed222-Jun-08 9:13
neilfed222-Jun-08 9:13 
Answer[Cross Post]Re: Making scrol lbox custom controls using compact framework sdk Pin
Scott Dorman22-Jun-08 10:34
professionalScott Dorman22-Jun-08 10:34 
QuestionHelp. I'm Lost. How to retrieve the selected row information from a DataGridView Pin
TheFoZ22-Jun-08 8:04
TheFoZ22-Jun-08 8:04 
AnswerRe: Help. I'm Lost. How to retrieve the selected row information from a DataGridView Pin
User 665822-Jun-08 8:22
User 665822-Jun-08 8:22 
GeneralRe: Help. I'm Lost. How to retrieve the selected row information from a DataGridView Pin
TheFoZ22-Jun-08 8:25
TheFoZ22-Jun-08 8:25 
GeneralRe: Help. I'm Lost. How to retrieve the selected row information from a DataGridView Pin
Harvey Saayman22-Jun-08 8:56
Harvey Saayman22-Jun-08 8:56 
GeneralRe: Help. I'm Lost. How to retrieve the selected row information from a DataGridView Pin
TheFoZ22-Jun-08 9:16
TheFoZ22-Jun-08 9:16 
GeneralRe: Help. I'm Lost. How to retrieve the selected row information from a DataGridView Pin
Paul Conrad22-Jun-08 9:36
professionalPaul Conrad22-Jun-08 9:36 
QuestionHow to call base class methods automatically? Pin
Metal7622-Jun-08 7:34
Metal7622-Jun-08 7:34 
AnswerRe: How to call base class methods automatically? Pin
Scott Dorman22-Jun-08 7:50
professionalScott Dorman22-Jun-08 7:50 
AnswerRe: How to call base class methods automatically? [modified] Pin
User 665822-Jun-08 8:09
User 665822-Jun-08 8:09 
AnswerRe: How to call base class methods automatically? Pin
S. Senthil Kumar22-Jun-08 10:17
S. Senthil Kumar22-Jun-08 10:17 
AnswerRe: How to call base class methods automatically? Pin
Joe Woodbury22-Jun-08 13:27
professionalJoe Woodbury22-Jun-08 13:27 
GeneralRe: How to call base class methods automatically? Pin
Metal7623-Jun-08 4:05
Metal7623-Jun-08 4:05 
QuestionGet Class Info Pin
half-life22-Jun-08 5:45
half-life22-Jun-08 5:45 
AnswerRe: Get Class Info Pin
zafersavas22-Jun-08 5:57
zafersavas22-Jun-08 5:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.