Click here to Skip to main content
15,900,461 members
Home / Discussions / C#
   

C#

 
QuestionHow to create banner maker windows application. Pin
Ch.Gayatri Subudhi10-Apr-09 19:01
Ch.Gayatri Subudhi10-Apr-09 19:01 
AnswerRe: How to create banner maker windows application. Pin
Eddy Vluggen11-Apr-09 0:20
professionalEddy Vluggen11-Apr-09 0:20 
AnswerRe: How to create banner maker windows application. Pin
Ch.Gayatri Subudhi11-Apr-09 2:16
Ch.Gayatri Subudhi11-Apr-09 2:16 
GeneralRe: How to create banner maker windows application. Pin
Henry Minute11-Apr-09 2:42
Henry Minute11-Apr-09 2:42 
QuestionTab Form Pin
Sajjad Leo10-Apr-09 18:43
Sajjad Leo10-Apr-09 18:43 
AnswerRe: Tab Form Pin
a.hamidy10-Apr-09 20:16
a.hamidy10-Apr-09 20:16 
AnswerRe: Tab Form Pin
dybs10-Apr-09 20:17
dybs10-Apr-09 20:17 
AnswerRe: Tab Form Pin
riced10-Apr-09 22:51
riced10-Apr-09 22:51 
QuestionSimple Question - Loading Form Pin
viciouskinid10-Apr-09 17:05
viciouskinid10-Apr-09 17:05 
AnswerRe: Simple Question - Loading Form Pin
Mycroft Holmes10-Apr-09 22:28
professionalMycroft Holmes10-Apr-09 22:28 
Questionimport excel to gridview Pin
orked mohamed10-Apr-09 10:52
orked mohamed10-Apr-09 10:52 
QuestionXML document repair? Pin
jharker198710-Apr-09 10:26
jharker198710-Apr-09 10:26 
QuestionSIP server Pin
yogesh_softworld12310-Apr-09 8:55
yogesh_softworld12310-Apr-09 8:55 
QuestionHow to handle OnMouseMove (NC_MOUSEMOVE) using C#? Pin
Supra210-Apr-09 8:12
Supra210-Apr-09 8:12 
AnswerRe: How to handle OnMouseMove (NC_MOUSEMOVE) using C#? Pin
Henry Minute10-Apr-09 8:27
Henry Minute10-Apr-09 8:27 
GeneralRe: How to handle OnMouseMove (NC_MOUSEMOVE) using C#? Pin
Supra210-Apr-09 19:56
Supra210-Apr-09 19:56 
GeneralRe: How to handle OnMouseMove (NC_MOUSEMOVE) using C#? Pin
Henry Minute11-Apr-09 0:29
Henry Minute11-Apr-09 0:29 
AnswerRe: How to handle OnMouseMove (NC_MOUSEMOVE) using C#? Pin
Colin Angus Mackay10-Apr-09 8:31
Colin Angus Mackay10-Apr-09 8:31 
QuestionCan someone please tell me what is wrong with this List function? Pin
stonebergftw10-Apr-09 7:49
stonebergftw10-Apr-09 7:49 
AnswerRe: Can someone please tell me what is wrong with this List function? Pin
Colin Angus Mackay10-Apr-09 8:00
Colin Angus Mackay10-Apr-09 8:00 
GeneralRe: Can someone please tell me what is wrong with this List function? Pin
stonebergftw10-Apr-09 8:12
stonebergftw10-Apr-09 8:12 
GeneralRe: Can someone please tell me what is wrong with this List function? Pin
Colin Angus Mackay10-Apr-09 8:25
Colin Angus Mackay10-Apr-09 8:25 
GeneralRe: Can someone please tell me what is wrong with this List function? Pin
stonebergftw10-Apr-09 8:37
stonebergftw10-Apr-09 8:37 
GeneralRe: Can someone please tell me what is wrong with this List function? Pin
Colin Angus Mackay10-Apr-09 8:57
Colin Angus Mackay10-Apr-09 8:57 
stonebergftw wrote:
The List function is REALLY confusing me


List is a class not a function. A list has many methods (which is what C# calls functions).

stonebergftw wrote:
I am trying to create a 3x3 array(or list) in the function CreateTableInstance, set each value in that array to 0, and then return the value into the List Variable, theBoard, located in the module button1_Click.


This is still confused. If you create an array there is no point returning it into a List variable. You would want to return it into an array variable.

The following returns a two dimensional array of type int:
public int[,] CreateTableInstance()
{
    int[,] result = new int[3,3];
 
    // Actually these for loops are probably redundant because 
    // 0 is the default value for an int
    for (int i=0; i<3 i++)
    {
        for (int j; j<3; j++)
        {
            resut[i,j] = 0;
        }
    }
    return result;
}
DISCLAIMER: I typed it directly and didn't test it
In your event handler you would do something like this to get the array from the method

int[,] theBoard = CreateTableInstance();



GeneralRe: Can someone please tell me what is wrong with this List function? Pin
stonebergftw10-Apr-09 9:08
stonebergftw10-Apr-09 9:08 

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.