Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
AnswerRe: Making a class public Pin
Simon P Stevens27-Nov-08 2:53
Simon P Stevens27-Nov-08 2:53 
GeneralRe: Making a class public [modified] Pin
Thekaninos27-Nov-08 3:14
Thekaninos27-Nov-08 3:14 
GeneralRe: Making a class public Pin
Simon P Stevens27-Nov-08 3:24
Simon P Stevens27-Nov-08 3:24 
AnswerRe: Making a class public Pin
PIEBALDconsult27-Nov-08 4:10
mvePIEBALDconsult27-Nov-08 4:10 
QuestionLetter Combination Pin
Silvyster27-Nov-08 2:01
Silvyster27-Nov-08 2:01 
AnswerRe: Letter Combination Pin
Simon P Stevens27-Nov-08 3:12
Simon P Stevens27-Nov-08 3:12 
AnswerRe: Letter Combination Pin
Guffa27-Nov-08 3:20
Guffa27-Nov-08 3:20 
QuestionWhy doesnt this function for controls objects work? [modified] Pin
Matjaz-xyz27-Nov-08 1:45
Matjaz-xyz27-Nov-08 1:45 
Where's the problem? I have thre listboxes. For example, the first one has 23 image paths, the second one has 7 imagepaths. First i check if any of them are the same then i add them to the third lsitbox. Then i want to create pictureboxes depending of the number of items in the third listbox.

Here's the code of the function:
void prikaz(int stevilo)<br />
        {<br />
            PictureBox[] picBOX = new PictureBox[stevilo];<br />
            CheckBox[] chkBOX = new CheckBox[stevilo];<br />
<br />
            for(int i = 0; i<lb1.items.count;>            {<br />
                Image a;<br />
                Image b;<br />
<br />
                a = System.Drawing.Image.FromFile(@txtNacrti.Text + @"\" + lb1.Items[i].ToString());<br />
                //b = new Bitmap(a, 100, 100);<br />
<br />
                picBOX[i] = new PictureBox();<br />
                picBOX[i].Size = new Size(100, 100);<br />
                picBOX[i].Name = "picc" + i.ToString();<br />
                picBOX[i].Location = new System.Drawing.Point(picX, picY);<br />
                picBOX[i].BorderStyle = BorderStyle.FixedSingle;<br />
                picBOX[i].ImageLocation = @txtNacrti.Text + @"\" + lb1.Items[i].ToString();<br />
<br />
                chkBOX[i] = new CheckBox();<br />
                chkBOX[i].AutoSize = true;<br />
                chkBOX[i].Name = "chk" + i.ToString();<br />
                chkBOX[i].Location = new System.Drawing.Point(chkX, chkY);<br />
                chkBOX[i].Text = lb1.Items[i].ToString();<br />
<br />
                chkY = chkY + 106;<br />
                picY = picY + 106;<br />
            }<br />
}


Regards,
Matjaž

modified on Thursday, November 27, 2008 8:17 AM

AnswerRe: Why doesnt this function for creating objects work? Pin
leppie27-Nov-08 1:55
leppie27-Nov-08 1:55 
GeneralRe: Why doesnt this function for creating objects work? Pin
Matjaz-xyz27-Nov-08 2:01
Matjaz-xyz27-Nov-08 2:01 
AnswerRe: Why doesnt this function for creating objects work? Pin
leppie27-Nov-08 1:57
leppie27-Nov-08 1:57 
GeneralRe: Why doesnt this function for creating objects work? Pin
Matjaz-xyz27-Nov-08 2:17
Matjaz-xyz27-Nov-08 2:17 
GeneralRe: Why doesnt this function for creating objects work? Pin
Tom Deketelaere27-Nov-08 2:21
professionalTom Deketelaere27-Nov-08 2:21 
GeneralRe: Why doesnt this function for creating objects work? Pin
Matjaz-xyz27-Nov-08 2:23
Matjaz-xyz27-Nov-08 2:23 
AnswerRe: Why doesnt this function for creating objects work? Pin
Matjaz-xyz27-Nov-08 2:20
Matjaz-xyz27-Nov-08 2:20 
AnswerRe: Why doesnt this function for controls objects work? Pin
Thomas Weller27-Nov-08 2:25
Thomas Weller27-Nov-08 2:25 
QuestionFind Hndlers of an other application Windows Pin
franco nero27-Nov-08 1:40
franco nero27-Nov-08 1:40 
AnswerRe: Find Hndlers of an other application Windows Pin
Giorgi Dalakishvili27-Nov-08 1:55
mentorGiorgi Dalakishvili27-Nov-08 1:55 
QuestionReflection - practical application Pin
devvvy27-Nov-08 1:38
devvvy27-Nov-08 1:38 
AnswerRe: Reflection - practical application Pin
Simon P Stevens27-Nov-08 1:45
Simon P Stevens27-Nov-08 1:45 
GeneralRe: Reflection - practical application Pin
devvvy27-Nov-08 2:18
devvvy27-Nov-08 2:18 
GeneralRe: Reflection - practical application Pin
Simon P Stevens27-Nov-08 2:47
Simon P Stevens27-Nov-08 2:47 
AnswerRe: Reflection - practical application Pin
Eddy Vluggen27-Nov-08 2:48
professionalEddy Vluggen27-Nov-08 2:48 
GeneralRe: Reflection - practical application Pin
devvvy27-Nov-08 4:34
devvvy27-Nov-08 4:34 
GeneralRe: Reflection - practical application Pin
Thomas Weller27-Nov-08 4:47
Thomas Weller27-Nov-08 4:47 

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.