Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
GeneralRe: Simple code example [modified] Pin
hain10-Sep-07 12:28
hain10-Sep-07 12:28 
GeneralRe: Simple code example Pin
Patrick Etc.10-Sep-07 12:49
Patrick Etc.10-Sep-07 12:49 
GeneralRe: Simple code example Pin
hain10-Sep-07 16:12
hain10-Sep-07 16:12 
QuestionModal Dialog [modified] Pin
kamalesh8210-Sep-07 9:34
kamalesh8210-Sep-07 9:34 
AnswerRe: Modal Dialog Pin
Christian Graus10-Sep-07 9:52
protectorChristian Graus10-Sep-07 9:52 
GeneralRe: Modal Dialog Pin
kamalesh8210-Sep-07 9:58
kamalesh8210-Sep-07 9:58 
GeneralRe: Modal Dialog Pin
Christian Graus10-Sep-07 10:00
protectorChristian Graus10-Sep-07 10:00 
QuestionPicture Box created by code not showing up Pin
Jordanwb10-Sep-07 9:09
Jordanwb10-Sep-07 9:09 
Hi, In my game that I'm making I have a 2D Array of Picture boxes. Using a function:

<br />
<br />
image_arr[0] = Bulldozer_2._0.Properties.Resources.empty; //<- Array declared as Image type<br />
image_arr[1] = Bulldozer_2._0.Properties.Resources.wall;<br />
image_arr[2] = Bulldozer_2._0.Properties.Resources.target;<br />
image_arr[3] = Bulldozer_2._0.Properties.Resources.rock;<br />
image_arr[4] = Bulldozer_2._0.Properties.Resources.target_w_rock;<br />
image_arr[5] = Bulldozer_2._0.Properties.Resources.bulldozer_down;<br />
image_arr[6] = Bulldozer_2._0.Properties.Resources.bulldozer_up;<br />
image_arr[7] = Bulldozer_2._0.Properties.Resources.bulldozer_left;<br />
image_arr[8] = Bulldozer_2._0.Properties.Resources.bulldozer_right;<br />
<br />
const Byte IMAGE_WIDTH = 32;<br />
const Byte IMAGE_HEIGHT = 32;<br />
<br />
PictureBox[,] PicBoxes = new PictureBox[MAX_ROWS, MAX_COLS];<br />
<br />
private void draw_image(Byte type, int row, int col)<br />
{<br />
    PicBoxes[row, col] = new PictureBox();<br />
    PicBoxes[row, col].Name = "pictureBox1";<br />
    PicBoxes[row, col].Size = new System.Drawing.Size(IMAGE_WIDTH, IMAGE_HEIGHT);<br />
    PicBoxes[row, col].Image = image_arr[type];<br />
    PicBoxes[row, col].Location = new System.Drawing.Point(col * IMAGE_WIDTH, row * IMAGE_HEIGHT);<br />
}<br />
<br />


Got any ideas why the image isn't showing up? The Images are there and in the resources folder.
AnswerRe: Picture Box created by code not showing up Pin
Ermak8610-Sep-07 9:38
Ermak8610-Sep-07 9:38 
GeneralRe: Picture Box created by code not showing up Pin
Jordanwb10-Sep-07 9:53
Jordanwb10-Sep-07 9:53 
GeneralRe: Picture Box created by code not showing up Pin
Christian Graus10-Sep-07 9:55
protectorChristian Graus10-Sep-07 9:55 
GeneralRe: Picture Box created by code not showing up Pin
Jordanwb10-Sep-07 9:58
Jordanwb10-Sep-07 9:58 
GeneralRe: Picture Box created by code not showing up Pin
Ermak8610-Sep-07 10:02
Ermak8610-Sep-07 10:02 
GeneralRe: Picture Box created by code not showing up Pin
Jordanwb10-Sep-07 10:04
Jordanwb10-Sep-07 10:04 
GeneralRe: Picture Box created by code not showing up Pin
Ermak8610-Sep-07 10:13
Ermak8610-Sep-07 10:13 
GeneralRe: Picture Box created by code not showing up Pin
Jordanwb10-Sep-07 10:18
Jordanwb10-Sep-07 10:18 
GeneralRe: Picture Box created by code not showing up Pin
Skippums10-Sep-07 10:34
Skippums10-Sep-07 10:34 
GeneralRe: Picture Box created by code not showing up Pin
Jordanwb10-Sep-07 10:42
Jordanwb10-Sep-07 10:42 
GeneralRe: Picture Box created by code not showing up Pin
Skippums10-Sep-07 10:48
Skippums10-Sep-07 10:48 
GeneralRe: Picture Box created by code not showing up Pin
Ermak8610-Sep-07 10:47
Ermak8610-Sep-07 10:47 
GeneralRe: Picture Box created by code not showing up Pin
Jordanwb10-Sep-07 10:48
Jordanwb10-Sep-07 10:48 
GeneralRe: Picture Box created by code not showing up Pin
Christian Graus10-Sep-07 10:25
protectorChristian Graus10-Sep-07 10:25 
Questionhosting a java applet Pin
zildjohn0110-Sep-07 8:52
zildjohn0110-Sep-07 8:52 
AnswerRe: hosting a java applet Pin
led mike10-Sep-07 9:28
led mike10-Sep-07 9:28 
GeneralRe: hosting a java applet Pin
zildjohn0110-Sep-07 13:07
zildjohn0110-Sep-07 13:07 

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.