i work with webbrowser for showing simple text. i am in situation where i want that when user drag any file on webbrowser control then i want to show a icon for that file and one progressbar and one button programmatically. i manage to show file associated icon ob richtextbox just like using
here is the code for handling file drag drop on richtextbox like below one
richTextBox1.AllowDrop = true;
//richTextBox1.EnableAutoDragDrop = true;this.richTextBox1.DragEnter += new DragEventHandler(richTextBox1_DragEnter);
this.richTextBox1.DragDrop += new DragEventHandler(richTextBox1_DragDrop);
void richTextBox1_DragEnter(object sender, System.Windows.Forms.DragEventArgs e)
e.Effect = DragDropEffects.Copy;
void richTextBox1_DragDrop(object sender, System.Windows.Forms.DragEventArgs e)
//Image img = default(Image);//img = Image.FromFile(((Array)e.Data.GetData(DataFormats.FileDrop)).GetValue(0).ToString());//Clipboard.SetImage(img);//this.richTextBox1.SelectionStart = 0;//richTextBox1.AppendText("Hello");//this.richTextBox1.Paste();/*
Dim img As Image = Image.FromFile(fname)
*/string strFilePath = ((Array)e.Data.GetData(DataFormats.FileDrop)).GetValue(0).ToString();
Icon oIcon= System.Drawing.Icon.ExtractAssociatedIcon(strFilePath);
Bitmap myBitmap = new Bitmap(oIcon.ToBitmap());
DataFormats.Format myFormat = DataFormats.GetFormat(DataFormats.Bitmap);
richTextBox1.Text = "";
richTextBox1.AppendText(" " + System.IO.Path.GetFileName(strFilePath));
MessageBox.Show("The data format that you attempted site" +
" is not supportedby this control.");
here is one image link for your visualization purpose http://i.stack.imgur.com/5oRkt.png
i want to accomplish the same thing for webbrowser control for handing file drag drop and want to show one file associated icon and one progressbar and one button. please guide me with sample code for doing with webbrowser control. thanks
"SendKey" and an online game makes me think you are trying to write a bot or something of that nature. Is that correct?
If so, then perhaps the game servers have some sort of bot-detection system built in that is simply gobbling up your requests and ignoring them.
If you can't explain your problem properly, we can't help. So far you haven't posted a single coherent thought. Tell us what you are trying to accomplish and don't assume that we can figure your problems out with random phrases.
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
..and just like with Warcraft, there are limits to what you can and are allowed to do. Their website has it's own forum, I suggest you post your question there. And don't be surprised if it's labeled "cheating"
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Edit your question and provide better information.
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
Last Visit: 31-Dec-99 18:00 Last Update: 23-Jun-17 4:31