Click here to Skip to main content
15,916,838 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using a custom icon from resource file Pin
Paul Silvernail13-Sep-03 7:30
Paul Silvernail13-Sep-03 7:30 
GeneralRe: Using a custom icon from resource file Pin
James T. Johnson14-Sep-03 11:10
James T. Johnson14-Sep-03 11:10 
GeneralFast image adding for ImageList Pin
Jucovschi Petru13-Sep-03 3:55
Jucovschi Petru13-Sep-03 3:55 
GeneralRe: Fast image adding for ImageList Pin
leppie13-Sep-03 4:57
leppie13-Sep-03 4:57 
Generaldebugging in VS stopped working... Pin
Jan R Hansen13-Sep-03 1:19
Jan R Hansen13-Sep-03 1:19 
GeneralRe: debugging in VS stopped working... Pin
Uwe Keim13-Sep-03 2:26
sitebuilderUwe Keim13-Sep-03 2:26 
QuestionWould someone please put me on the right track? Pin
profoundwhispers12-Sep-03 22:53
profoundwhispers12-Sep-03 22:53 
AnswerRe: Would someone please put me on the right track? Pin
J. Dunlap13-Sep-03 9:26
J. Dunlap13-Sep-03 9:26 
Generaldll references Pin
pseudonym6712-Sep-03 22:19
pseudonym6712-Sep-03 22:19 
GeneralRe: dll references Pin
Arjan Einbu12-Sep-03 23:07
Arjan Einbu12-Sep-03 23:07 
GeneralRe: dll references Pin
dbetting13-Sep-03 15:36
dbetting13-Sep-03 15:36 
GeneralDLL wrapper and structs Pin
pithhelmet12-Sep-03 14:10
pithhelmet12-Sep-03 14:10 
GeneralRe: DLL wrapper and structs Pin
Tym!15-Sep-03 6:48
Tym!15-Sep-03 6:48 
GeneralException from HRESULT: 0x800A01C9 Pin
ajkumar12-Sep-03 14:09
ajkumar12-Sep-03 14:09 
GeneralRe: Exception from HRESULT: 0x800A01C9 Pin
leppie12-Sep-03 14:44
leppie12-Sep-03 14:44 
GeneralRe: Exception from HRESULT: 0x800A01C9 Pin
ajkumar12-Sep-03 15:52
ajkumar12-Sep-03 15:52 
GeneralRe: Exception from HRESULT: 0x800A01C9 Pin
leppie12-Sep-03 16:10
leppie12-Sep-03 16:10 
GeneralRe: Exception from HRESULT: 0x800A01C9 Pin
J. Dunlap12-Sep-03 15:05
J. Dunlap12-Sep-03 15:05 
GeneralRe: Exception from HRESULT: 0x800A01C9 Pin
ajkumar14-Sep-03 6:17
ajkumar14-Sep-03 6:17 
General#dev 0.97 released Pin
leppie12-Sep-03 10:59
leppie12-Sep-03 10:59 
GeneralRe: #dev 0.97 released Pin
J. Dunlap12-Sep-03 13:55
J. Dunlap12-Sep-03 13:55 
GeneralRe: #dev 0.97 released Pin
leppie12-Sep-03 14:41
leppie12-Sep-03 14:41 
GeneralI would like to refine an array. Pin
mcgahanfl12-Sep-03 9:42
mcgahanfl12-Sep-03 9:42 
1. In the code below I refine an array and add two properties to it. I can add elements to this array but can not read them back.

public class C_myList : System.Collections.ArrayList
{
public C_myList()
{
}
public void Add(string sString, int iNumber)
{
m_sString = sString;
m_iNumber = iNumber;
base.Add(this);
}
//refine the arraylist by adding two properties
public int m_iNumber;
public string m_sString;
}

2. Now I would like to add some items to this array and read them back. I can add them but what is the syntax for reading them back?

private void button1_Click(object sender, System.EventArgs e)
{
C_myList aList = new C_myList();
for(int i=0; i < 20; i++)
{
aList.Add(i.ToString(), i * 2 );
}

/*for(int x =0; x < 5; x++)
{
int ivalue = xList[x];
int ivalue2= xList[x].m_iMajorTabOrder;
}*/


}

thanks
GeneralRe: I would like to refine an array. Pin
Ernesto Perales Soto12-Sep-03 13:18
Ernesto Perales Soto12-Sep-03 13:18 
GeneralRe: I would like to refine an array. Pin
Nnamdi Onyeyiri13-Sep-03 1:24
Nnamdi Onyeyiri13-Sep-03 1:24 

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.