Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Problems in C#

1-
this.Cursor = Cursors.WaitCursor;
this.Cursor = Cursors.Default;

I asked about these lines before & i got the following :

These are just to set the current mouse Cursor to a certain status: either waiting status or default status.

But i still didn't understand them because i didn't feel a really effect of them,so can you give me a practical simple example ?

2-
int [,,] ar =new int [2,2,2];
ar [0, 0, 0] = 7;
ar [2, 1, 2] = 88;
Console.WriteLine(ar [0, 0, 0]);

Error: Index was outside the bounds of the array.

3-
class Program
{

static void Main(string[] args)
{
Program p = new Program();
p.ss();
}
void ss()
{
Console.WriteLine("ss");
}

}
why i must make the method ss() static to call it directly from the Main() or i must make an object from the class program to call it ?
Why i can't call it directly from the Main() ?

4-
what's the Index ? when i use it ? what's its Syntax with a simple example ?

Thank You...

Comments

  • bradwangbradwang Member Posts: 197
    Why not find a good C# tutorial and learn the syntax carefully and in detail?

    [color=Green][size=1][b]Brad Wang - .NET Freelancer from China
    MSN: brad_wang_cn@hotmail.com
    Skype: brad_wang[/b][/size][/color]
  • amgadamgad Member Posts: 6
    : Why not find a good C# tutorial and learn the syntax carefully and
    : in detail?
    :
    : [color=Green][size=1][b]Brad Wang - .NET Freelancer from China
    : MSN: brad_wang_cn@hotmail.com
    : Skype: brad_wang[/b][/size][/color]
    *************

    Ok, But where's the rest of the Answers ?!
  • mfawzymfawzy Member Posts: 1
    i think that is your problem ....u have to search more and take care when u are reading books .

  • bradwangbradwang Member Posts: 197
    I agree with you. :)


    [color=Green][size=1][b]Brad Wang - .NET Freelancer from China
    MSN: brad_wang_cn@hotmail.com
    Skype: brad_wang[/b][/size][/color]
  • amgadamgad Member Posts: 6
    OK...Thanks
Sign In or Register to comment.