C# & VB.NET School Support

Moderators: None (Apply to moderate this forum)
Number of threads: 138
Number of posts: 231

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Problems in C# Posted by amgad on 13 Aug 2008 at 9:21 AM
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...
Report
Re: Problems in C# Posted by bradwang on 13 Aug 2008 at 8:39 PM
Why not find a good C# tutorial and learn the syntax carefully and in detail?

Brad Wang - .NET Freelancer from China
MSN: brad_wang_cn@hotmail.com
Skype: brad_wang
Report
Re: Problems in C# Posted by amgad on 14 Aug 2008 at 8:25 AM
: Why not find a good C# tutorial and learn the syntax carefully and
: in detail?
:
: Brad Wang - .NET Freelancer from China
: MSN: brad_wang_cn@hotmail.com
: Skype: brad_wang

*************

Ok, But where's the rest of the Answers ?!
Report
Re: Problems in C# Posted by mfawzy on 16 Aug 2008 at 11:34 PM
i think that is your problem ....u have to search more and take care when u are reading books .

Report
Re: Problems in C# Posted by bradwang on 17 Aug 2008 at 11:04 PM
I agree with you. :)


Brad Wang - .NET Freelancer from China
MSN: brad_wang_cn@hotmail.com
Skype: brad_wang
Report
Re: Problems in C# Posted by amgad on 18 Aug 2008 at 8:18 AM
OK...Thanks



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.