Click here to Skip to main content
15,909,440 members
Home / Discussions / C#
   

C#

 
QuestionHow to drag & drop shape drawn by GDI+ in picture box area? Pin
yuenli6-Mar-08 16:05
yuenli6-Mar-08 16:05 
GeneralRe: How to drag & drop shape drawn by GDI+ in picture box area? Pin
Christian Graus6-Mar-08 17:25
protectorChristian Graus6-Mar-08 17:25 
GeneralRe: How to drag & drop shape drawn by GDI+ in picture box area? Pin
yuenli6-Mar-08 18:25
yuenli6-Mar-08 18:25 
GeneralRe: How to drag & drop shape drawn by GDI+ in picture box area? Pin
Christian Graus6-Mar-08 18:33
protectorChristian Graus6-Mar-08 18:33 
GeneralRe: How to drag & drop shape drawn by GDI+ in picture box area? Pin
yuenli6-Mar-08 18:43
yuenli6-Mar-08 18:43 
GeneralRe: How to drag & drop shape drawn by GDI+ in picture box area? Pin
Christian Graus6-Mar-08 18:47
protectorChristian Graus6-Mar-08 18:47 
GeneralRe: How to drag & drop shape drawn by GDI+ in picture box area? Pin
yuenli6-Mar-08 18:54
yuenli6-Mar-08 18:54 
GeneralRe: How to drag & drop shape drawn by GDI+ in picture box area? Pin
Christian Graus6-Mar-08 20:54
protectorChristian Graus6-Mar-08 20:54 
The drawing all happens in OnPaint. What you need to do in the mouse move, is move your shape if the mouse is down, so that it moves the amount that the mouse has moved. Then call invalidate() to force a repaint, which draws the shape in it's new position.

Christian Graus - Microsoft MVP - C++

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

GeneralRe: How to drag & drop shape drawn by GDI+ in picture box area? Pin
yuenli8-Mar-08 4:25
yuenli8-Mar-08 4:25 
GeneralOleDb Jet UpdateCommand Pin
jharker19876-Mar-08 15:30
jharker19876-Mar-08 15:30 
GeneralRe: OleDb Jet UpdateCommand Pin
PIEBALDconsult6-Mar-08 16:39
mvePIEBALDconsult6-Mar-08 16:39 
GeneralRe: OleDb Jet UpdateCommand Pin
jharker19877-Mar-08 1:11
jharker19877-Mar-08 1:11 
GeneralRe: OleDb Jet UpdateCommand Pin
PIEBALDconsult7-Mar-08 5:44
mvePIEBALDconsult7-Mar-08 5:44 
GeneralRe: OleDb Jet UpdateCommand Pin
KaptinKrunch6-Mar-08 16:46
KaptinKrunch6-Mar-08 16:46 
GeneralPump wait message while accessing data Pin
MAW306-Mar-08 15:14
MAW306-Mar-08 15:14 
GeneralRe: Pump wait message while accessing data Pin
KaptinKrunch6-Mar-08 16:50
KaptinKrunch6-Mar-08 16:50 
GeneralRe: Pump wait message while accessing data Pin
PIEBALDconsult6-Mar-08 17:31
mvePIEBALDconsult6-Mar-08 17:31 
QuestionHow can I create the following array? [modified] Pin
DIMITRIS OLGA6-Mar-08 11:48
DIMITRIS OLGA6-Mar-08 11:48 
GeneralRe: How can I create the following array? Pin
Christian Graus6-Mar-08 11:58
protectorChristian Graus6-Mar-08 11:58 
JokeRe: How can I create the following array? Pin
PIEBALDconsult6-Mar-08 12:16
mvePIEBALDconsult6-Mar-08 12:16 
GeneralRe: How can I create the following array? Pin
Anthony Mushrow6-Mar-08 13:11
professionalAnthony Mushrow6-Mar-08 13:11 
GeneralRe: How can I create the following array? Pin
Christian Graus6-Mar-08 13:31
protectorChristian Graus6-Mar-08 13:31 
Questionhow to move a control on mouse move event Pin
netJP12L6-Mar-08 10:30
netJP12L6-Mar-08 10:30 
AnswerRe: how to move a control on mouse move event Pin
Christian Graus6-Mar-08 11:59
protectorChristian Graus6-Mar-08 11:59 
GeneralRe: how to move a control on mouse move event Pin
netJP12L6-Mar-08 16:48
netJP12L6-Mar-08 16:48 

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.