Click here to Skip to main content
15,888,454 members
Home / Discussions / C#
   

C#

 
GeneralRe: scrollbars... *sigh* Pin
l a u r e n19-Jul-11 8:45
l a u r e n19-Jul-11 8:45 
GeneralRe: scrollbars... *sigh* Pin
Eddy Vluggen19-Jul-11 9:08
professionalEddy Vluggen19-Jul-11 9:08 
GeneralRe: scrollbars... *sigh* Pin
l a u r e n19-Jul-11 9:40
l a u r e n19-Jul-11 9:40 
GeneralRe: scrollbars... *sigh* Pin
Eddy Vluggen19-Jul-11 10:31
professionalEddy Vluggen19-Jul-11 10:31 
QuestionLINQ: Show parent table value in child table Gridview Pin
Raza us Samad19-Jul-11 4:01
Raza us Samad19-Jul-11 4:01 
Questionspecify area for Drag'n'Drop Pin
lukeer19-Jul-11 1:37
lukeer19-Jul-11 1:37 
AnswerRe: specify area for Drag'n'Drop Pin
Dave Kreskowiak19-Jul-11 3:59
mveDave Kreskowiak19-Jul-11 3:59 
AnswerRe: specify area for Drag'n'Drop Pin
Alan N19-Jul-11 4:30
Alan N19-Jul-11 4:30 
Hi,
Handle the DragOver event on the target and set the DragEventArgs.Effect value. The DragDrop event is suppressed when DragEventArgs.Effect is set to None.

C#
private void panel2_DragOver(object sender, DragEventArgs e) {
  Rectangle subRect = Rectangle.Inflate(panel2.ClientRectangle, -20, -20);

  Point p = panel2.PointToClient(new Point(e.X, e.Y));
  Boolean withinSubRect = subRect.Contains(p);
  if (withinSubRect) {
    e.Effect = DragDropEffects.All;
  } else {
    e.Effect = DragDropEffects.None;
  }
}


Alan.
Questionget parent and level of the xml node from XPathNavigator Pin
NarVish19-Jul-11 0:34
NarVish19-Jul-11 0:34 
AnswerRe: get parent and level of the xml node from XPathNavigator Pin
Mirko198019-Jul-11 1:38
Mirko198019-Jul-11 1:38 
GeneralRe: get parent and level of the xml node from XPathNavigator Pin
NarVish19-Jul-11 2:35
NarVish19-Jul-11 2:35 
GeneralRe: get parent and level of the xml node from XPathNavigator Pin
Mirko198019-Jul-11 4:58
Mirko198019-Jul-11 4:58 
GeneralRe: get parent and level of the xml node from XPathNavigator Pin
NarVish19-Jul-11 19:01
NarVish19-Jul-11 19:01 
QuestionC# Mysql query problem Pin
nighttrain_18-Jul-11 23:16
nighttrain_18-Jul-11 23:16 
AnswerRe: C# Mysql query problem Pin
Blue_Boy18-Jul-11 23:32
Blue_Boy18-Jul-11 23:32 
GeneralRe: C# Mysql query problem Pin
nighttrain_18-Jul-11 23:52
nighttrain_18-Jul-11 23:52 
SuggestionRe: C# Mysql query problem Pin
GuyThiebaut19-Jul-11 1:59
professionalGuyThiebaut19-Jul-11 1:59 
GeneralRe: C# Mysql query problem Pin
nighttrain_19-Jul-11 2:38
nighttrain_19-Jul-11 2:38 
GeneralRe: C# Mysql query problem Pin
GuyThiebaut19-Jul-11 3:05
professionalGuyThiebaut19-Jul-11 3:05 
AnswerRe: C# Mysql query problem Pin
PIEBALDconsult19-Jul-11 2:45
mvePIEBALDconsult19-Jul-11 2:45 
GeneralRe: C# Mysql query problem Pin
nighttrain_19-Jul-11 3:35
nighttrain_19-Jul-11 3:35 
AnswerRe: C# Mysql query problem [modified] Pin
BobJanova19-Jul-11 3:56
BobJanova19-Jul-11 3:56 
GeneralRe: C# Mysql query problem Pin
PIEBALDconsult19-Jul-11 14:22
mvePIEBALDconsult19-Jul-11 14:22 
GeneralRe: C# Mysql query problem Pin
BobJanova20-Jul-11 11:19
BobJanova20-Jul-11 11:19 
GeneralRe: C# Mysql query problem Pin
PIEBALDconsult20-Jul-11 14:18
mvePIEBALDconsult20-Jul-11 14:18 

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.