Click here to Skip to main content
15,114,302 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionDrag and drop pictureBox bitmap is overwritten by repaint (C#) Pin
charles92223-Jul-07 19:57
Membercharles92223-Jul-07 19:57 
AnswerRe: Drag and drop pictureBox bitmap is overwritten by repaint (C#) Pin
Christian Graus23-Jul-07 20:11
protectorChristian Graus23-Jul-07 20:11 
GeneralRe: Drag and drop pictureBox bitmap is overwritten by repaint (C#) Pin
Paul Conrad23-Jul-07 20:48
professionalPaul Conrad23-Jul-07 20:48 
GeneralRe: Drag and drop pictureBox bitmap is overwritten by repaint (C#) Pin
Christian Graus23-Jul-07 20:58
protectorChristian Graus23-Jul-07 20:58 
GeneralRe: Drag and drop pictureBox bitmap is overwritten by repaint (C#) Pin
Paul Conrad23-Jul-07 21:00
professionalPaul Conrad23-Jul-07 21:00 
GeneralRe: Drag and drop pictureBox bitmap is overwritten by repaint (C#) Pin
Luc Pattyn24-Jul-07 13:18
sitebuilderLuc Pattyn24-Jul-07 13:18 
GeneralRe: Drag and drop pictureBox bitmap is overwritten by repaint (C#) Pin
Christian Graus24-Jul-07 14:29
protectorChristian Graus24-Jul-07 14:29 
GeneralRe: Drag and drop pictureBox bitmap is overwritten by repaint (C#) Pin
charles92224-Jul-07 23:08
Membercharles92224-Jul-07 23: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 13:12
MemberTarik Guney23-Jul-07 13:12 
AnswerRe: Data Flow between a web server and a computer Pin
Paul Conrad23-Jul-07 16:20
professionalPaul Conrad23-Jul-07 16:20 
GeneralRe: Data Flow between a web server and a computer Pin
Tarik Guney23-Jul-07 23:39
MemberTarik Guney23-Jul-07 23:39 
QuestionDisplaying a Form in a specific monitor Pin
Leslie Sanford23-Jul-07 11:21
MemberLeslie Sanford23-Jul-07 11:21 
AnswerRe: Displaying a Form in a specific monitor Pin
Luc Pattyn23-Jul-07 12:18
sitebuilderLuc Pattyn23-Jul-07 12:18 
GeneralRe: Displaying a Form in a specific monitor Pin
Leslie Sanford23-Jul-07 13:56
MemberLeslie Sanford23-Jul-07 13:56 
GeneralRe: Displaying a Form in a specific monitor Pin
Luc Pattyn23-Jul-07 14:28
sitebuilderLuc Pattyn23-Jul-07 14:28 
GeneralRe: Displaying a Form in a specific monitor Pin
Leslie Sanford25-Jul-07 18:28
MemberLeslie Sanford25-Jul-07 18:28 
GeneralRe: Displaying a Form in a specific monitor Pin
Paul Conrad25-Jul-07 18:49
professionalPaul Conrad25-Jul-07 18:49 
QuestionC# Winforms DataGridView control in User Control Pin
ADSolArch23-Jul-07 0:08
MemberADSolArch23-Jul-07 0:08 
QuestionGet window handle from mouse, outside form Pin
Genbox22-Jul-07 5:10
MemberGenbox22-Jul-07 5:10 
QuestionAdding a row with combobox control to a datagrid / datagridview Pin
atulagarwal5620-Jul-07 1:01
Memberatulagarwal5620-Jul-07 1:01 
QuestionGrid Box Control With Check Box Where is it? Pin
ozzyrocsdbn18-Jul-07 4:15
Memberozzyrocsdbn18-Jul-07 4:15 
AnswerRe: Grid Box Control With Check Box Where is it? Pin
Naji El Kotob19-Jul-07 0:31
MemberNaji El Kotob19-Jul-07 0:31 
QuestionDataGrid Pin
Taras61117-Jul-07 11:23
MemberTaras61117-Jul-07 11:23 
Questioninstallshield Pin
ellllllllie17-Jul-07 2:51
Memberellllllllie17-Jul-07 2:51 
AnswerRe: installshield Pin
ekynox17-Jul-07 21:02
Memberekynox17-Jul-07 21: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.