blah blah blah is here! blah blah » Close

0
votes
1 answers

A text-file-array question

Hi all, I've got a few questions. 1st. How do I save a text file into an array so that the lines on the text file are different numbers in the array. 2nd. Can I use a random int to select which array value to use and display? 3rd. Can I ...

0
votes
0 answers

C# Fourms App - Array Display

In the C# Fourms application toolbox IS their any type of table in which I could display a string matrix (array) that would have scroll bars and work regardless of how many entries I have. IT would be like an excel spreadsheet except I can ...

1
votes
2 answers

C Sharp Combination

Hi everyone I'm trying to create all possible combinations without repetitions. I need to create 3 numbers with values from 1-10 with no repetitions. Ex: 1-2-3 1-3-4 1-2-4 1-3-5 2-3-5 and so on..... I need a ...

0
votes
2 answers

Index was outside the bounds of the array.

Hi all, i'm new to C#, and as i try to debug the following code, i take the error : "Index was outside the bounds of the array. " in line : Console.WriteLine(args[0]); . The source code is the following: using System; using ...

0
votes
1 answers

Search/replace/remove/etc in an array with multiple items?

Is it possible to accomplish something like this? [code] byte[] bytes = new byte[] { 0x00, 0x01, 0x01, 0x05, 0xa0, 0xa1, 0x01, 0x01, 0x00, 0xa0, 0xa1, 0xa0, 0xa4, 0x00 }; // ...

0
votes
1 answers

Accessing array from multiple threads

Let's say I have two arrays: int[] array1 = new int[2000000]; int[] array2 = new int[2000000]; I stick some values into the arrays and then want to add the contents of array2 to array1 like so: for(int i = 0; i < 2000000; ++i) ...

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 ...

Feedback