Click here to Skip to main content
15,914,165 members
Home / Discussions / C#
   

C#

 
QuestionTransferring items from a listbox to a string variable [modified] Pin
gamer11276-Nov-09 0:34
gamer11276-Nov-09 0:34 
AnswerRe: Transferring items from a listbox to a string variable Pin
Covean6-Nov-09 1:03
Covean6-Nov-09 1:03 
AnswerRe: Transferring items from a listbox to a string variable Pin
Eddy Vluggen6-Nov-09 1:14
professionalEddy Vluggen6-Nov-09 1:14 
GeneralRe: Transferring items from a listbox to a string variable Pin
V.6-Nov-09 1:27
professionalV.6-Nov-09 1:27 
GeneralRe: Transferring items from a listbox to a string variable Pin
Covean6-Nov-09 1:29
Covean6-Nov-09 1:29 
GeneralRe: Transferring items from a listbox to a string variable Pin
Eddy Vluggen6-Nov-09 2:12
professionalEddy Vluggen6-Nov-09 2:12 
GeneralRe: Transferring items from a listbox to a string variable Pin
V.6-Nov-09 2:18
professionalV.6-Nov-09 2:18 
QuestionDrag rectangle using mouse in C# Pin
lexical16-Nov-09 0:31
lexical16-Nov-09 0:31 
Hi..if sumone knows how to do it plz help i m a beginner in C#.
i have made the reactangle don't know how to drag it with the help of mouse and redraw it where i release the mouse button..

private void Shapes_Paint(object sender, PaintEventArgs e)<br />
      {<br />
            if (Square.Checked == true)<br />
            {<br />
                e.Graphics.DrawRectangle(Pens.Red, 180, 80, 80, 80);<br />
             }<br />
             if (Triangle.Checked == true)<br />
             {<br />
                  e.Graphics.DrawPolygon(Pens.Red, new Point[] {  <br />
                  new Point   (300, 150), new Point(400, 250), new Point<br />
                  (200, 250) });<br />
             }<br />
      }

if i click mouse buton while the mouse is on top of the square, and then holds the mouse button down and drags the mouse, then the square will be dragged by the mouse:

1. As the square is being dragged, the mouse pointer should
remain over the same point on the square as it was when the
mouse was initially clicked. As the mouse is moving, the
square should move continuously with the mouse.
2. If the user clicks the left mouse button with the mouse
outside of the square and then drags the mouse, the square
should not move, even if the mouse is dragged over the
square.
AnswerRe: Drag rectangle using mouse in C# Pin
Luc Pattyn6-Nov-09 3:18
sitebuilderLuc Pattyn6-Nov-09 3:18 
GeneralRe: Drag rectangle using mouse in C# Pin
lexical18-Nov-09 21:35
lexical18-Nov-09 21:35 
GeneralRe: Drag rectangle using mouse in C# Pin
Luc Pattyn8-Nov-09 23:10
sitebuilderLuc Pattyn8-Nov-09 23:10 
QuestionJavascript Compatible text from c# text Pin
mmdullah6-Nov-09 0:24
mmdullah6-Nov-09 0:24 
AnswerRe: Javascript Compatible text from c# text Pin
Curtis Schlak.6-Nov-09 10:51
Curtis Schlak.6-Nov-09 10:51 
QuestionMinimize to tray bar [modified] Pin
Ronni Marker5-Nov-09 22:14
Ronni Marker5-Nov-09 22:14 
AnswerMessage Closed Pin
5-Nov-09 22:20
stancrm5-Nov-09 22:20 
GeneralRe: Minimize to tray bar Pin
Ronni Marker5-Nov-09 22:26
Ronni Marker5-Nov-09 22:26 
GeneralRe: Minimize to tray bar Pin
Ronni Marker5-Nov-09 22:37
Ronni Marker5-Nov-09 22:37 
QuestionSystem.Security.RightsManagement Pin
Joe Rozario5-Nov-09 21:52
Joe Rozario5-Nov-09 21:52 
QuestionTextbox-formatting value using databinding Pin
jogisarge5-Nov-09 21:04
jogisarge5-Nov-09 21:04 
QuestionHow I Show MessegeBox in ClassFile in C#.net Pin
Vikash Yadav5-Nov-09 20:23
Vikash Yadav5-Nov-09 20:23 
AnswerRe: How I Show MessegeBox in ClassFile in C#.net Pin
SUNISU5-Nov-09 20:28
SUNISU5-Nov-09 20:28 
GeneralRe: How I Show MessegeBox in ClassFile in C#.net Pin
Christian Graus5-Nov-09 20:30
protectorChristian Graus5-Nov-09 20:30 
GeneralRe: How I Show MessegeBox in ClassFile in C#.net Pin
Ron Beyer6-Nov-09 10:30
professionalRon Beyer6-Nov-09 10:30 
AnswerRe: How I Show MessegeBox in ClassFile in C#.net Pin
Christian Graus5-Nov-09 20:30
protectorChristian Graus5-Nov-09 20:30 
QuestionHttpWebrequest's Proxy property Pin
himuskanhere5-Nov-09 19:20
himuskanhere5-Nov-09 19:20 

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.