blah blah blah is here! blah blah » Close

1
votes
1 answers

Removing selected Item from Array and Listbox

Hi, I am creating an addressbook where you can add First Name, Last Name, Address, City, State and Zip into textboxes and have them display in a listbox on the add button click event. Now I need to be able to remove the selected Item from ...

2
votes
1 answers

style and efficiency question: arrays versus List<generic>

I find that I practically never use arrays anymore because of the potential waste of memory from having to declare arrays more than large enough. Another reason is because arrays look old fashioned to me. List<> seems to have largel ...

0
votes
1 answers

Writing an extension method for arrays

I want to write some extension methods for arrays. I'm not quite sure how to approach this. Suppose I have an array: [code]byte[] myArray = new byte[24]; // populate byte array here[/code] I want something like [code]bool areAr ...

0
votes
2 answers

Arrays Of Controls

eeboy
499

I have a WPF form that has a tab control on it. There are 5 tabs. The 'control content' of the tabs is to be identical... same buttons, lists, textboxes, etc. The content within those controls is to be different for each of the five tabs. I ...

1
votes
1 answers

C# TextBox values to x string array

I have a textbox with the following values : 4,5,6,7,8,9,10,11,12,13,15 I want these values to be split into `x` string arrays with `y` values in each array. For example extract into 3 arrays with 4 numbers in each : int x = 3; str ...

0
votes
1 answers

Test an array for numeric values

I have the following code [code] if (Int32.TryParse(this.txtAssemblyNo.Text.Trim(), out trap)) { while (txtAssemblyNo.Text.Trim().Length < this.txtAssemblyNo.MaxLength) { ...

0
votes
2 answers

Can someone please explain this line of C# code to me?

I've been dodging arrays for quite some time in C# but now it's time to ride that horse. The following code: Code: [code] private void button1_Click(object sender, EventArgs e) { 1 // create the array 2 ...

0
votes
1 answers

Can C# do an array of pointers?

Hello So i need to declare an array of pointers, like in C++ i would use double* voltagePointerArray[64]; I need to do the same for C#, but i am not sure of the syntax or for that matter even if i can actually do it. Help wil ...

1
votes
1 answers

Read a Text file and put in a array( continue_6)

Dear Vulpes, I tried to read the data here, but i got an error would you please kindly help me again... I want to put the data coming after *'DY ' 62500 'REAL'* to an array named DY, and do so for DX. When I am using the code e ...

0
votes
1 answers

Multi-dimensional array declaration

Hello I want to have a multi-dimensional array that I want to declare such that I can access it from all the other functions in the program. I am designing a windows application. I have a form with 16 tabs, and i want to be able to decla ...

Feedback