Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hook the tab key on Window Form Pin
Duong Tien Nam4-Sep-05 21:04
Duong Tien Nam4-Sep-05 21:04 
QuestionAcceptButton for a UserControl? Pin
WetRivrRat4-Sep-05 16:33
WetRivrRat4-Sep-05 16:33 
AnswerRe: AcceptButton for a UserControl? Pin
Luis Alonso Ramos4-Sep-05 16:59
Luis Alonso Ramos4-Sep-05 16:59 
Questionruler control Pin
azusakt4-Sep-05 16:32
azusakt4-Sep-05 16:32 
AnswerRe: ruler control Pin
Christian Graus4-Sep-05 16:35
protectorChristian Graus4-Sep-05 16:35 
AnswerRe: ruler control Pin
Mohamad Al Husseiny4-Sep-05 16:36
Mohamad Al Husseiny4-Sep-05 16:36 
GeneralRe: ruler control Pin
azusakt4-Sep-05 16:42
azusakt4-Sep-05 16:42 
QuestionI darg-drop item to a WebBrowser control Pin
Member 19785854-Sep-05 15:31
Member 19785854-Sep-05 15:31 
Hi :
How can I darg-drop item to a WebBrowser control ?
I created an application written by C#,it includes two forms , one form

includes a TreeView control , the other includes a WebBrower control and a

TextBox control, now we call them as Form1 and Form2.
First , I try drag a item to the TextBox control,(I have set TreeView for

drag well ) I set
"this.textBox1.AllowDrop = true;" then add Events and write these methods:
this.textBox1.DragOver += new System.Windows.Forms.DragEventHandler

(this.textBox1_DragOver);
this.textBox1.DragDrop += new System.Windows.Forms.DragEventHandler

(this.textBox1_DragDrop);
this.textBox1.DragEnter += new System.Windows.Forms.DragEventHandler

(this.textBox1_DragEnter);
Run this application,and drag item from TreeView which in Form1 to TextBox

which in Form2,the TextBox 3 Events (DragOver,DragDrop,DragEnter) is done

well.
But when I want drag item to the WebBrower,I can not find DragEnter Event and

others Events related to "Drag-Drop",so I can not drop Item to WebBrowser.
Also I have tryed set WebBrowser's Document.DesignMode="On",but can not drop

too.
Then I Write a HTMLBody's ondragenter Event ,but this ondragenter() can not

trigger.
So I think it must be solved by COM knowledge.
Can any one give my some suggestion,
because my COM knowledge is poor, if anyone give me an all solved code ,I

will be very appreciated.Thanks very Smile | :)

AnswerRe: I darg-drop item to a WebBrowser control Pin
Christian Graus4-Sep-05 15:34
protectorChristian Graus4-Sep-05 15:34 
GeneralRe: I darg-drop item to a WebBrowser control Pin
Member 19785854-Sep-05 16:55
Member 19785854-Sep-05 16:55 
GeneralRe: I darg-drop item to a WebBrowser control Pin
Christian Graus4-Sep-05 16:58
protectorChristian Graus4-Sep-05 16:58 
GeneralRe: I darg-drop item to a WebBrowser control Pin
Member 19785854-Sep-05 20:31
Member 19785854-Sep-05 20:31 
GeneralRe: I darg-drop item to a WebBrowser control Pin
Christian Graus5-Sep-05 10:52
protectorChristian Graus5-Sep-05 10:52 
QuestionTwo Dimensional Control Array? Pin
ehollar4-Sep-05 15:15
ehollar4-Sep-05 15:15 
AnswerRe: Two Dimensional Control Array? Pin
Mohamad Al Husseiny4-Sep-05 15:30
Mohamad Al Husseiny4-Sep-05 15:30 
Questionhow to access main form controls from usercontrol on the form Pin
monica2k4-Sep-05 14:45
monica2k4-Sep-05 14:45 
AnswerRe: how to access main form controls from usercontrol on the form Pin
Christian Graus4-Sep-05 14:53
protectorChristian Graus4-Sep-05 14:53 
GeneralRe: how to access main form controls from usercontrol on the form Pin
monica2k4-Sep-05 15:00
monica2k4-Sep-05 15:00 
GeneralRe: how to access main form controls from usercontrol on the form Pin
Christian Graus4-Sep-05 15:04
protectorChristian Graus4-Sep-05 15:04 
GeneralRe: how to access main form controls from usercontrol on the form Pin
monica2k4-Sep-05 15:18
monica2k4-Sep-05 15:18 
GeneralRe: how to access main form controls from usercontrol on the form Pin
Christian Graus4-Sep-05 15:33
protectorChristian Graus4-Sep-05 15:33 
GeneralRe: how to access main form controls from usercontrol on the form Pin
monica2k4-Sep-05 15:48
monica2k4-Sep-05 15:48 
GeneralRe: how to access main form controls from usercontrol on the form Pin
Christian Graus4-Sep-05 15:51
protectorChristian Graus4-Sep-05 15:51 
GeneralRe: how to access main form controls from usercontrol on the form Pin
monica2k4-Sep-05 16:54
monica2k4-Sep-05 16:54 
GeneralRe: how to access main form controls from usercontrol on the form Pin
Christian Graus4-Sep-05 16:56
protectorChristian Graus4-Sep-05 16:56 

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.