Click here to Skip to main content
15,905,913 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to get two child classes to access a third class Pin
led mike4-Oct-06 5:22
led mike4-Oct-06 5:22 
AnswerRe: How to get two child classes to access a third class Pin
aamironline4-Oct-06 5:23
aamironline4-Oct-06 5:23 
AnswerRe: How to get two child classes to access a third class Pin
Muntyness4-Oct-06 5:39
Muntyness4-Oct-06 5:39 
GeneralRe: How to get two child classes to access a third class Pin
aamironline4-Oct-06 6:00
aamironline4-Oct-06 6:00 
GeneralRe: How to get two child classes to access a third class Pin
LongRange.Shooter4-Oct-06 6:28
LongRange.Shooter4-Oct-06 6:28 
QuestionHow to get the height and width of a window with scrollbar Pin
Subramanyahs4-Oct-06 4:08
Subramanyahs4-Oct-06 4:08 
AnswerRe: How to get the height and width of a window with scrollbar Pin
f*** YOU4-Oct-06 5:07
f*** YOU4-Oct-06 5:07 
QuestionHow to create window installer in .Net Pin
Praveen Raghuvanshi4-Oct-06 3:54
professionalPraveen Raghuvanshi4-Oct-06 3:54 
AnswerRe: How to create window installer in .Net Pin
Chris Buckett4-Oct-06 4:56
Chris Buckett4-Oct-06 4:56 
GeneralRe: How to create window installer in .Net Pin
Praveen Raghuvanshi4-Oct-06 17:33
professionalPraveen Raghuvanshi4-Oct-06 17:33 
GeneralRe: How to create window installer in .Net Pin
Chris Buckett4-Oct-06 21:42
Chris Buckett4-Oct-06 21:42 
GeneralRe: How to create window installer in .Net Pin
Praveen Raghuvanshi5-Oct-06 21:40
professionalPraveen Raghuvanshi5-Oct-06 21:40 
GeneralRe: How to create window installer in .Net Pin
Chris Buckett5-Oct-06 21:44
Chris Buckett5-Oct-06 21:44 
GeneralRe: How to create window installer in .Net Pin
Praveen Raghuvanshi5-Oct-06 22:34
professionalPraveen Raghuvanshi5-Oct-06 22:34 
QuestionHow to make an EventHandler for array of buttons Pin
t_nedelchev4-Oct-06 3:51
t_nedelchev4-Oct-06 3:51 
AnswerRe: How to make an EventHandler for array of buttons Pin
Utkarshraj Atmaram4-Oct-06 4:19
Utkarshraj Atmaram4-Oct-06 4:19 
QuestionProcess.start Pin
Support1234-Oct-06 3:32
Support1234-Oct-06 3:32 
AnswerRe: Process.start Pin
Eric Dahlvang4-Oct-06 3:55
Eric Dahlvang4-Oct-06 3:55 
GeneralRe: Process.start ERROR Pin
Support1234-Oct-06 5:46
Support1234-Oct-06 5:46 
GeneralRe: Process.start ERROR Pin
Eric Dahlvang4-Oct-06 6:17
Eric Dahlvang4-Oct-06 6:17 
GeneralRe: Process.start ERROR Pin
Support1234-Oct-06 21:39
Support1234-Oct-06 21:39 
QuestionResources.resx query Pin
Utkarshraj Atmaram4-Oct-06 2:57
Utkarshraj Atmaram4-Oct-06 2:57 
I've created Resource.resx, which has some images. The resources are named as Res1, Res2, Res3 etc.

I'm dynamically creating some PictureBoxes, using this function:

public PictureBox AddNewPicBox(int n)
{
    Create a new instance of the PictureBox class.
    PictureBox picBoxLine = new PictureBox();

    this.Controls.Add(picBoxLine);

   // Set intial properties for the PictureBox object.
   picBoxLine.Width = 25;
   picBoxLine.Left = (n-1) * 25;
   picBoxLine.Top = 1;
   picBoxLine.Tag = n;
}


In this function, I want to set the Image property of the newly created PictureBox depending on parameter n.

For eg. if n = 1, I want
picBoxLine.Image = ResourcesImages.Res1;


When n=2,
I want
picBoxLine.Image = ResourcesImages.Res2;


Any idea how to do this?

Ut

AnswerRe: Resources.resx query Pin
Eric Dahlvang4-Oct-06 4:50
Eric Dahlvang4-Oct-06 4:50 
GeneralRe: Resources.resx query Pin
Utkarshraj Atmaram4-Oct-06 17:29
Utkarshraj Atmaram4-Oct-06 17:29 
QuestionSystem.IO.FileNotFoundException: The specified module could not be found. Pin
Elena_2006oct4-Oct-06 1:46
Elena_2006oct4-Oct-06 1:46 

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.