Click here to Skip to main content
15,896,497 members
Home / Discussions / C#
   

C#

 
QuestionSet readonly attribute of an class property at runtime Pin
Paw Jershauge28-Aug-07 6:26
Paw Jershauge28-Aug-07 6:26 
AnswerRe: Set readonly attribute of an class property at runtime Pin
J4amieC28-Aug-07 6:42
J4amieC28-Aug-07 6:42 
GeneralRe: Set readonly attribute of an class property at runtime Pin
Paw Jershauge28-Aug-07 10:12
Paw Jershauge28-Aug-07 10:12 
GeneralRe: Set readonly attribute of an class property at runtime Pin
led mike28-Aug-07 11:04
led mike28-Aug-07 11:04 
GeneralRe: Set readonly attribute of an class property at runtime Pin
Paw Jershauge28-Aug-07 20:27
Paw Jershauge28-Aug-07 20:27 
AnswerRe: Set readonly attribute of an class property at runtime Pin
led mike28-Aug-07 7:21
led mike28-Aug-07 7:21 
GeneralRe: Set readonly attribute of an class property at runtime Pin
Paw Jershauge28-Aug-07 10:15
Paw Jershauge28-Aug-07 10:15 
QuestionControl is locked, how to unlock? [modified] Pin
Jordanwb28-Aug-07 5:54
Jordanwb28-Aug-07 5:54 
I'm remaking a game I made in C#, it was originally in C++ using Borland BGI Graphics. I made an array of picture boxes but the picture boxes won't show up (using Visual Studio 2005 Pro):

Code:

<br />
<br />
const Byte MAX_ROWS = 20;<br />
const Byte MAX_COLS = 20;<br />
PictureBox[,] PicBoxes = new System.Windows.Forms.PictureBox[MAX_ROWS, MAX_COLS];<br />
<br />
private void draw_image(Byte type, int row, int col)<br />
{<br />
    PicBoxes[0, 0].Name = "pictureBox1";<br />
    PicBoxes[0, 0].Image = Bulldozer_2._0.Properties.Resources.bulldozer_down;<br />
    PicBoxes[0, 0].Size = new System.Drawing.Size(32, 32);<br />
    PicBoxes[0, 0].Visible = true;<br />
    PicBoxes[0, 0].Enabled = true;<br />
    PicBoxes[0, 0].IsAccessible = true;<br />
    PicBoxes[0, 0].Show();<br />
    PicBoxes[0, 0].Location = new System.Drawing.Point(5, 5);<br />
}<br />


When I put a breakpoint on the first line in the "draw_image" function the PicBoxes array shows up as locked. How do I unlock it?


-- modified at 21:15 Tuesday 28th August, 2007
AnswerRe: Control is locked, how to unlock? Pin
Guffa28-Aug-07 6:25
Guffa28-Aug-07 6:25 
GeneralRe: Control is locked, how to unlock? [modified] Pin
Jordanwb28-Aug-07 14:53
Jordanwb28-Aug-07 14:53 
GeneralRe: Control is locked, how to unlock? Pin
Guffa28-Aug-07 21:03
Guffa28-Aug-07 21:03 
GeneralRe: Control is locked, how to unlock? Pin
Jordanwb29-Aug-07 7:43
Jordanwb29-Aug-07 7:43 
AnswerRe: Control is locked, how to unlock? Pin
Guffa29-Aug-07 11:59
Guffa29-Aug-07 11:59 
QuestionRandom Number Pin
Imran Adam28-Aug-07 5:34
Imran Adam28-Aug-07 5:34 
AnswerRe: Random Number [modified] Pin
Alaric_28-Aug-07 6:05
professionalAlaric_28-Aug-07 6:05 
AnswerRe: Random Number Pin
originSH28-Aug-07 6:10
originSH28-Aug-07 6:10 
GeneralRe: Random Number Pin
Yitzchok Dev28-Aug-07 10:40
Yitzchok Dev28-Aug-07 10:40 
GeneralRe: Random Number Pin
Guffa28-Aug-07 21:05
Guffa28-Aug-07 21:05 
AnswerRe: Random Number Pin
Dan Neely28-Aug-07 10:53
Dan Neely28-Aug-07 10:53 
QuestionForeColor in Combobox control Pin
polishprogrammer28-Aug-07 5:19
polishprogrammer28-Aug-07 5:19 
AnswerRe: ForeColor in Combobox control Pin
Martin#28-Aug-07 5:58
Martin#28-Aug-07 5:58 
QuestionHebrew or Arabic string in TextBox - characters are reordered automatically for displaying Pin
wex_pl28-Aug-07 4:51
wex_pl28-Aug-07 4:51 
QuestionXmlTextReader Clean Up Pin
swjam28-Aug-07 4:48
swjam28-Aug-07 4:48 
AnswerRe: XmlTextReader Clean Up Pin
Scott Dorman28-Aug-07 5:05
professionalScott Dorman28-Aug-07 5:05 
QuestionVariable transfer between different .net Programs Pin
Der M28-Aug-07 4:29
Der M28-Aug-07 4:29 

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.