Click here to Skip to main content
15,891,253 members
Home / Discussions / C#
   

C#

 
GeneralAsa Client Pin
sreejith ss nair23-Dec-04 3:34
sreejith ss nair23-Dec-04 3:34 
GeneralRe: Asa Client Pin
Heath Stewart23-Dec-04 5:57
protectorHeath Stewart23-Dec-04 5:57 
GeneralDraw line between pictureboxes Pin
ninja260523-Dec-04 2:18
ninja260523-Dec-04 2:18 
GeneralRe: Draw line between pictureboxes Pin
Heath Stewart23-Dec-04 5:47
protectorHeath Stewart23-Dec-04 5:47 
GeneralRe: Draw line between pictureboxes Pin
ninja260523-Dec-04 18:37
ninja260523-Dec-04 18:37 
GeneralRe: Draw line between pictureboxes Pin
Heath Stewart23-Dec-04 19:24
protectorHeath Stewart23-Dec-04 19:24 
GeneralRe: Draw line between pictureboxes Pin
ninja260523-Dec-04 20:18
ninja260523-Dec-04 20:18 
GeneralRe: Draw line between pictureboxes Pin
Heath Stewart23-Dec-04 20:23
protectorHeath Stewart23-Dec-04 20:23 
So instead of calling Graphics.DrawImage twice call it as many times as you need. It's no different conceptually than instantiating X number of PictureBoxes, siting those in your container control, and loading images into them. The biggest differences between drawing the images yourself and using PictureBox controls is that PictureBox controls have more overhead (they're controls - not just an image) and aren't as flexible as drawing the images yourself. Like I said before, if you want your line to overlap the images you either need to use layered windows (not easy - requires that you P/Invoke a could of native methods, define constants from various Windows APIs headers, and a couple of structs that are defined natively) or draw it all on the same surface. It's really not that hard.

Again, read the documentation for the Graphics class which has a lot of examples for owner-drawing as well.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: Draw line between pictureboxes Pin
ninja260524-Dec-04 0:33
ninja260524-Dec-04 0:33 
GeneralRe: Draw line between pictureboxes Pin
Heath Stewart27-Dec-04 10:09
protectorHeath Stewart27-Dec-04 10:09 
GeneralRe: Draw line between pictureboxes Pin
ninja260529-Dec-04 0:38
ninja260529-Dec-04 0:38 
GeneralRe: Draw line between pictureboxes Pin
Heath Stewart29-Dec-04 5:28
protectorHeath Stewart29-Dec-04 5:28 
GeneralRe: Draw line between pictureboxes Pin
ninja260510-Jan-05 0:49
ninja260510-Jan-05 0:49 
GeneralI wish myself a flicker free form Pin
TyronX23-Dec-04 2:09
TyronX23-Dec-04 2:09 
GeneralRe: I wish myself a flicker free form Pin
Heath Stewart23-Dec-04 5:27
protectorHeath Stewart23-Dec-04 5:27 
GeneralRe: I wish myself a flicker free form Pin
TyronX23-Dec-04 6:47
TyronX23-Dec-04 6:47 
GeneralRe: I wish myself a flicker free form Pin
Heath Stewart23-Dec-04 9:31
protectorHeath Stewart23-Dec-04 9:31 
GeneralRe: I wish myself a flicker free form Pin
TyronX23-Dec-04 10:23
TyronX23-Dec-04 10:23 
GeneralConnection to access database with C#.net Pin
Robske23-Dec-04 1:41
Robske23-Dec-04 1:41 
GeneralRe: Connection to access database with C#.net Pin
leppie23-Dec-04 3:27
leppie23-Dec-04 3:27 
GeneralRe: Connection to access database with C#.net Pin
Robske23-Dec-04 4:25
Robske23-Dec-04 4:25 
GeneralRe: Connection to access database with C#.net Pin
leppie23-Dec-04 4:42
leppie23-Dec-04 4:42 
GeneralRe: Connection to access database with C#.net Pin
Robske23-Dec-04 8:06
Robske23-Dec-04 8:06 
GeneralRe: Connection to access database with C#.net Pin
Rob Graham23-Dec-04 8:56
Rob Graham23-Dec-04 8:56 
GeneralRe: Connection to access database with C#.net Pin
Robske25-Dec-04 1:23
Robske25-Dec-04 1:23 

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.