Click here to Skip to main content
15,881,173 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionDrag and drop pictureBox bitmap is overwritten by repaint (C#) Pin
charles92223-Jul-07 18:57
charles92223-Jul-07 18:57 
AnswerRe: Drag and drop pictureBox bitmap is overwritten by repaint (C#) Pin
Christian Graus23-Jul-07 19:11
protectorChristian Graus23-Jul-07 19:11 
GeneralRe: Drag and drop pictureBox bitmap is overwritten by repaint (C#) Pin
Paul Conrad23-Jul-07 19:48
professionalPaul Conrad23-Jul-07 19:48 
GeneralRe: Drag and drop pictureBox bitmap is overwritten by repaint (C#) Pin
Christian Graus23-Jul-07 19:58
protectorChristian Graus23-Jul-07 19:58 
GeneralRe: Drag and drop pictureBox bitmap is overwritten by repaint (C#) Pin
Paul Conrad23-Jul-07 20:00
professionalPaul Conrad23-Jul-07 20:00 
GeneralRe: Drag and drop pictureBox bitmap is overwritten by repaint (C#) Pin
Luc Pattyn24-Jul-07 12:18
sitebuilderLuc Pattyn24-Jul-07 12:18 
GeneralRe: Drag and drop pictureBox bitmap is overwritten by repaint (C#) Pin
Christian Graus24-Jul-07 13:29
protectorChristian Graus24-Jul-07 13:29 
GeneralRe: Drag and drop pictureBox bitmap is overwritten by repaint (C#) Pin
charles92224-Jul-07 22:08
charles92224-Jul-07 22:08 
>>Why on earth would you draw on top of a picture box, that' kind of redundant, isn't it ?
Christian, thanks for your prompt response. Perhaps it is redundant. Imagine a wall full of empty photograph frames. That's the destination picture box. Now imagine a number of photographs, perhaps in a shoebox on the floor. The photos in the shoebox are the smaller bitmaps (also displayed in picture boxes) that our intrepid user will be dragging to one of the frames on the wall.

>>Do your drawing in the paint event, then whenever the control is invalidated, your code will draw what you want drawn.
Please excuse my brain malfunction. It must have been the UFO's. I had the code in the paint event, and for some reason moved it. <<insert homer="" simpson="" 'doh!'="" sound="" here="">> I put it back in the paint event and all is well now. Thanks again. (Proof that working 8 hours a day on old C code will indeed rot your brain.)

>>Why are you using BitBlt instead of using the GDI+ methods ?
Excellent question. Answer: (1) Old habits die hard (2) I had read "on the Internet" that BitBlt was so fast; however, DrawImage() is working plenty fast for me. (Lots of overloads for DrawImage() ! )






charles922
QuestionData Flow between a web server and a computer Pin
Tarik Guney23-Jul-07 12:12
Tarik Guney23-Jul-07 12:12 
AnswerRe: Data Flow between a web server and a computer Pin
Paul Conrad23-Jul-07 15:20
professionalPaul Conrad23-Jul-07 15:20 
GeneralRe: Data Flow between a web server and a computer Pin
Tarik Guney23-Jul-07 22:39
Tarik Guney23-Jul-07 22:39 
QuestionDisplaying a Form in a specific monitor Pin
Leslie Sanford23-Jul-07 10:21
Leslie Sanford23-Jul-07 10:21 
AnswerRe: Displaying a Form in a specific monitor Pin
Luc Pattyn23-Jul-07 11:18
sitebuilderLuc Pattyn23-Jul-07 11:18 
GeneralRe: Displaying a Form in a specific monitor Pin
Leslie Sanford23-Jul-07 12:56
Leslie Sanford23-Jul-07 12:56 
GeneralRe: Displaying a Form in a specific monitor Pin
Luc Pattyn23-Jul-07 13:28
sitebuilderLuc Pattyn23-Jul-07 13:28 
GeneralRe: Displaying a Form in a specific monitor Pin
Leslie Sanford25-Jul-07 17:28
Leslie Sanford25-Jul-07 17:28 
GeneralRe: Displaying a Form in a specific monitor Pin
Paul Conrad25-Jul-07 17:49
professionalPaul Conrad25-Jul-07 17:49 
QuestionC# Winforms DataGridView control in User Control Pin
ADSolArch22-Jul-07 23:08
ADSolArch22-Jul-07 23:08 
QuestionGet window handle from mouse, outside form Pin
Genbox22-Jul-07 4:10
Genbox22-Jul-07 4:10 
QuestionAdding a row with combobox control to a datagrid / datagridview Pin
atulagarwal5620-Jul-07 0:01
atulagarwal5620-Jul-07 0:01 
QuestionGrid Box Control With Check Box Where is it? Pin
ozzyrocsdbn18-Jul-07 3:15
ozzyrocsdbn18-Jul-07 3:15 
AnswerRe: Grid Box Control With Check Box Where is it? Pin
Naji El Kotob18-Jul-07 23:31
Naji El Kotob18-Jul-07 23:31 
QuestionDataGrid Pin
Taras61117-Jul-07 10:23
Taras61117-Jul-07 10:23 
Questioninstallshield Pin
ellllllllie17-Jul-07 1:51
ellllllllie17-Jul-07 1:51 
AnswerRe: installshield Pin
ekynox17-Jul-07 20:02
ekynox17-Jul-07 20:02 

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.