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

C#

 
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 
AnswerRe: System.IO.FileNotFoundException: The specified module could not be found. Pin
Gael Fraiteur4-Oct-06 1:49
Gael Fraiteur4-Oct-06 1:49 
GeneralRe: System.IO.FileNotFoundException: The specified module could not be found. [modified] Pin
Elena_2006oct6-Oct-06 2:18
Elena_2006oct6-Oct-06 2:18 
GeneralRe: System.IO.FileNotFoundException: The specified module could not be found. Pin
Gael Fraiteur6-Oct-06 2:28
Gael Fraiteur6-Oct-06 2:28 
GeneralRe: System.IO.FileNotFoundException: The specified module could not be found. Pin
Elena_2006oct6-Oct-06 2:36
Elena_2006oct6-Oct-06 2:36 
QuestionHTML/String parsing Pin
Imtiaz Murtaza4-Oct-06 1:23
Imtiaz Murtaza4-Oct-06 1:23 
AnswerRe: HTML/String parsing Pin
Liron Hirsch4-Oct-06 1:49
Liron Hirsch4-Oct-06 1:49 
AnswerRe: HTML/String parsing Pin
Ravi Bhavnani4-Oct-06 4:12
professionalRavi Bhavnani4-Oct-06 4:12 
QuestionDynamic cast in C# Pin
WSonck4-Oct-06 1:14
WSonck4-Oct-06 1:14 
AnswerRe: Dynamic cast in C# Pin
User 66584-Oct-06 1:20
User 66584-Oct-06 1:20 
GeneralRe: Dynamic cast in C# Pin
WSonck4-Oct-06 1:33
WSonck4-Oct-06 1:33 
AnswerRe: Dynamic cast in C# Pin
Colin Angus Mackay4-Oct-06 1:37
Colin Angus Mackay4-Oct-06 1:37 
GeneralRe: Dynamic cast in C# Pin
WSonck4-Oct-06 4:19
WSonck4-Oct-06 4:19 
AnswerRe: Dynamic cast in C# Pin
f*** YOU4-Oct-06 5:00
f*** YOU4-Oct-06 5:00 
GeneralRe: Dynamic cast in C# Pin
Colin Angus Mackay4-Oct-06 5:50
Colin Angus Mackay4-Oct-06 5:50 

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.