Click here to Skip to main content
15,886,755 members
Home / Discussions / C#
   

C#

 
GeneralRe: Looping though Dataset Pin
Xmen Real 25-Feb-09 4:25
professional Xmen Real 25-Feb-09 4:25 
AnswerRe: Looping though Dataset Pin
PIEBALDconsult25-Feb-09 3:35
mvePIEBALDconsult25-Feb-09 3:35 
AnswerRe: Looping though Dataset Pin
ABitSmart25-Feb-09 3:35
ABitSmart25-Feb-09 3:35 
GeneralRe: Looping though Dataset Pin
kanchoette25-Feb-09 3:44
kanchoette25-Feb-09 3:44 
GeneralRe: Looping though Dataset Pin
ABitSmart25-Feb-09 4:10
ABitSmart25-Feb-09 4:10 
QuestionHow to add a ScrollBar where there is none? Pin
Megidolaon25-Feb-09 3:12
Megidolaon25-Feb-09 3:12 
AnswerRe: How to add a ScrollBar where there is none? Pin
Xmen Real 25-Feb-09 3:19
professional Xmen Real 25-Feb-09 3:19 
GeneralRe: How to add a ScrollBar where there is none? [modified] Pin
Megidolaon25-Feb-09 21:23
Megidolaon25-Feb-09 21:23 
Thanks, the FlowLayoutPanel is exactly what I need.

Though, the second problem is there, the PictueBoxes have a weird layout and weird images, what confuses me the most is that most of the tme it seems to work, but some seem corrupted.

This is the original image (256 x 2000 pixel):
http://i43.tinypic.com/10qjng4.jpg[^]

This is what the PictureBoxes look like(the black lines are the PictureBoxes' FixedSingle Border):
http://i42.tinypic.com/1677e44.jpg[^]

The code I use to assign the images to the PictureBoxes:
g.DrawImage(resource, new Rectangle(0, 0, 32, 32), 
   new Rectangle(32 * i, 32 * k, 32, 32), GraphicsUnit.Pixel);
Where i is the counter for the height(0-7) and k is the counter for the height (0-63).
I have 2 nested for loops, the outer one for the width and the inner one for the height.
I store the PictureBoxes in a Dictionary<point,picturebox>;. I already checked but I create a new Point for ever PictureBox and the coordinates are unique.

modified on Thursday, February 26, 2009 3:48 AM

GeneralRe: How to add a ScrollBar where there is none? Pin
Xmen Real 25-Feb-09 23:01
professional Xmen Real 25-Feb-09 23:01 
GeneralRe: How to add a ScrollBar where there is none? Pin
Megidolaon25-Feb-09 23:41
Megidolaon25-Feb-09 23:41 
GeneralRe: How to add a ScrollBar where there is none? Pin
Xmen Real 25-Feb-09 23:47
professional Xmen Real 25-Feb-09 23:47 
GeneralRe: How to add a ScrollBar where there is none? Pin
Megidolaon26-Feb-09 2:02
Megidolaon26-Feb-09 2:02 
GeneralRe: How to add a ScrollBar where there is none? Pin
Xmen Real 26-Feb-09 2:49
professional Xmen Real 26-Feb-09 2:49 
GeneralRe: How to add a ScrollBar where there is none? [modified] Pin
Megidolaon26-Feb-09 20:49
Megidolaon26-Feb-09 20:49 
GeneralRe: How to add a ScrollBar where there is none? Pin
Xmen Real 27-Feb-09 1:37
professional Xmen Real 27-Feb-09 1:37 
GeneralRe: How to add a ScrollBar where there is none? [modified] Pin
Megidolaon1-Mar-09 20:30
Megidolaon1-Mar-09 20:30 
GeneralRe: How to add a ScrollBar where there is none? Pin
Xmen Real 2-Mar-09 5:55
professional Xmen Real 2-Mar-09 5:55 
GeneralRe: How to add a ScrollBar where there is none? Pin
Megidolaon2-Mar-09 20:24
Megidolaon2-Mar-09 20:24 
AnswerRe: How to add a ScrollBar where there is none? Pin
Megidolaon6-Mar-09 1:11
Megidolaon6-Mar-09 1:11 
QuestionHow to Loop through this Arraylist Pin
Vimalsoft(Pty) Ltd25-Feb-09 3:03
professionalVimalsoft(Pty) Ltd25-Feb-09 3:03 
AnswerRe: How to Loop through this Arraylist Pin
Colin Angus Mackay25-Feb-09 3:14
Colin Angus Mackay25-Feb-09 3:14 
GeneralRe: How to Loop through this Arraylist Pin
Vimalsoft(Pty) Ltd25-Feb-09 3:29
professionalVimalsoft(Pty) Ltd25-Feb-09 3:29 
AnswerRe: How to Loop through this Arraylist Pin
PIEBALDconsult25-Feb-09 3:54
mvePIEBALDconsult25-Feb-09 3:54 
GeneralRe: How to Loop through this Arraylist Pin
Vimalsoft(Pty) Ltd25-Feb-09 4:05
professionalVimalsoft(Pty) Ltd25-Feb-09 4:05 
GeneralRe: How to Loop through this Arraylist Pin
PIEBALDconsult25-Feb-09 6:51
mvePIEBALDconsult25-Feb-09 6:51 

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.