Click here to Skip to main content
15,914,419 members
Home / Discussions / C#
   

C#

 
AnswerRe: windows forms key board for other application Pin
Gopal.S23-Feb-10 23:08
Gopal.S23-Feb-10 23:08 
QuestionParental Control Pin
satsumatable23-Feb-10 19:07
satsumatable23-Feb-10 19:07 
AnswerRe: Parental Control Pin
Pascal Ganaye17-Jun-10 10:16
Pascal Ganaye17-Jun-10 10:16 
QuestionSend and receive sms in .net cf Pin
abalbo23-Feb-10 18:53
abalbo23-Feb-10 18:53 
AnswerRe: Send and receive sms in .net cf Pin
rickyjos23-Feb-10 19:09
rickyjos23-Feb-10 19:09 
QuestionC# array Pin
Iman Mohtashemi23-Feb-10 18:14
Iman Mohtashemi23-Feb-10 18:14 
AnswerRe: C# array Pin
Saksida Bojan23-Feb-10 19:29
Saksida Bojan23-Feb-10 19:29 
AnswerRe: C# array Pin
RichardM123-Feb-10 19:50
RichardM123-Feb-10 19:50 
I think you need to get a beginner's book on c#/.NET
But here you go.

public class MyClass
{
  static Random s_random = new Random();
  public int[,] IntArray = new int[10,10];
  public MyClass()
  {
    for(int x = 0; x< 10; x++)
    {
      for(int y = 0; y < 10; y++)
      {
        IntArray[x, y] = random.Next(1, 1000);
      }
    }
  }
  public override string ToString ()
  {
    StringBuilder sb = new StringBuilder(); 
    for(int x = 0; x< 10; x++)
    {
      for(int y = 0; y < 10; y++)
      {
        if(y>1)
          sb.Append(", ");
        sb.Append(IntArray[x, y].ToString());
      }
      sb.Append(Environment.NewLine);
    }
  }
}


public static void Generate()
{
  MyClass array = new MyClass();
  Console.Write(array.ToString())
}
Opacity, the new Transparency.

QuestionAd insertion technique Pin
booota23-Feb-10 17:54
booota23-Feb-10 17:54 
AnswerRe: Ad insertion technique Pin
AspDotNetDev23-Feb-10 17:58
protectorAspDotNetDev23-Feb-10 17:58 
QuestionRe: Ad insertion technique Pin
booota24-Feb-10 19:24
booota24-Feb-10 19:24 
AnswerRe: Ad insertion technique Pin
AspDotNetDev24-Feb-10 19:35
protectorAspDotNetDev24-Feb-10 19:35 
QuestionWINDOWS FORM Pin
Aillish23-Feb-10 16:17
Aillish23-Feb-10 16:17 
AnswerRe: WINDOWS FORM Pin
Luc Pattyn23-Feb-10 16:36
sitebuilderLuc Pattyn23-Feb-10 16:36 
GeneralRe: WINDOWS FORM Pin
RichardM123-Feb-10 19:08
RichardM123-Feb-10 19:08 
AnswerRe: WINDOWS FORM Pin
Roger Wright23-Feb-10 19:57
professionalRoger Wright23-Feb-10 19:57 
QuestionCreating 1000 by 1000 square matrix with random numbers using C# Pin
Iman Mohtashemi23-Feb-10 15:30
Iman Mohtashemi23-Feb-10 15:30 
AnswerRe: Creating 1000 by 1000 square matrix with random numbers using C# Pin
AspDotNetDev23-Feb-10 15:34
protectorAspDotNetDev23-Feb-10 15:34 
AnswerRe: Creating 1000 by 1000 square matrix with random numbers using C# Pin
Luc Pattyn23-Feb-10 16:00
sitebuilderLuc Pattyn23-Feb-10 16:00 
AnswerRe: Creating 1000 by 1000 square matrix with random numbers using C# Pin
Un Known Legend23-Feb-10 17:22
Un Known Legend23-Feb-10 17:22 
GeneralRe: Creating 1000 by 1000 square matrix with random numbers using C# Pin
Iman Mohtashemi23-Feb-10 17:44
Iman Mohtashemi23-Feb-10 17:44 
GeneralRe: Creating 1000 by 1000 square matrix with random numbers using C# Pin
Iman Mohtashemi23-Feb-10 17:50
Iman Mohtashemi23-Feb-10 17:50 
GeneralRe: Creating 1000 by 1000 square matrix with random numbers using C# Pin
AspDotNetDev23-Feb-10 17:56
protectorAspDotNetDev23-Feb-10 17:56 
QuestionGet Object Reference for an already running EXCEL.EXE Pin
Matthew Klein23-Feb-10 12:35
Matthew Klein23-Feb-10 12:35 
AnswerRe: Get Object Reference for an already running EXCEL.EXE Pin
snrch44517-May-11 10:42
snrch44517-May-11 10:42 

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.