Click here to Skip to main content
15,897,519 members
Home / Discussions / C#
   

C#

 
AnswerRe: Validating what's in TextBox: Basics Pin
Stanciu Vlad1-Sep-05 9:57
Stanciu Vlad1-Sep-05 9:57 
QuestionHow can we know if Scroll bars are active? Pin
rudy.net1-Sep-05 9:14
rudy.net1-Sep-05 9:14 
QuestionMinimize button event Pin
ngensys1-Sep-05 8:50
ngensys1-Sep-05 8:50 
AnswerRe: Minimize button event Pin
Stanciu Vlad1-Sep-05 9:43
Stanciu Vlad1-Sep-05 9:43 
AnswerRe: Minimize button event Pin
Bojan Rajkovic1-Sep-05 16:30
Bojan Rajkovic1-Sep-05 16:30 
QuestionWeb Custom Controls - ASP.NET 2.0 Pin
kalakrishna1-Sep-05 8:46
kalakrishna1-Sep-05 8:46 
Questionarray Pin
HFreitas1-Sep-05 8:04
HFreitas1-Sep-05 8:04 
AnswerRe: array Pin
Stanciu Vlad1-Sep-05 9:01
Stanciu Vlad1-Sep-05 9:01 
A very simple solution to your answer is the following method :
static void Mehtod(int[,] alfaArgument) 
{
	Console.WriteLine("Argument values : " + 
		alfaArgument[0,0] + ", " +
		alfaArgument[0,1] + ", " +
		alfaArgument[0,2] + ", " +
		alfaArgument[1,0] + ", " +
		alfaArgument[1,1] + ", " +
		alfaArgument[1,2]);
}


A more laborious method that can wrote on the screen the contents of an array with more then two dimensions is the following :
static void Mehtod(int[,/*,,,,,,,...*/] alfaArgument) 
{
   long[] indexes = new long[alfaArgument.Rank];

   for(long i = 0 ; i < indexes.LongLength ; i++)
       indexes[i] = 0;

   while(true)
   {
       string argument = "";
				
       for(long i = 0 ; i < indexes.LongLength ; i++)
           argument += indexes[i] + ", ";
       argument = argument.Substring(0, argument.Length-2);

       Console.WriteLine("alfaArgument["+argument+"] = " +     alfaArgument.GetValue(indexes));

       indexes[alfaArgument.Rank-1] ++;
       for(long i = indexes.LongLength-1 ; i > -1  ; i--) // for correct listing
       {
           if(indexes[i] >= alfaArgument.GetLongLength((int)i)) 
	   {
		indexes[i] = 0;
		if (i > 0)
			indexes[i-1] ++;
		else
			return;
	   }
       }
}


I hope you understand...because is a rough world out there...
QuestionReflection Ambiguous match error Pin
PhrankBooth1-Sep-05 7:40
PhrankBooth1-Sep-05 7:40 
AnswerRe: Reflection Ambiguous match error Pin
Judah Gabriel Himango1-Sep-05 7:55
sponsorJudah Gabriel Himango1-Sep-05 7:55 
QuestionRe: Reflection Ambiguous match error Pin
PhrankBooth1-Sep-05 9:05
PhrankBooth1-Sep-05 9:05 
AnswerRe: Reflection Ambiguous match error Pin
Judah Gabriel Himango1-Sep-05 10:07
sponsorJudah Gabriel Himango1-Sep-05 10:07 
Questioncombobox XML Pin
PHDENG811-Sep-05 7:30
PHDENG811-Sep-05 7:30 
AnswerRe: combobox XML Pin
Judah Gabriel Himango1-Sep-05 7:47
sponsorJudah Gabriel Himango1-Sep-05 7:47 
GeneralRe: combobox XML Pin
PHDENG811-Sep-05 8:17
PHDENG811-Sep-05 8:17 
GeneralRe: combobox XML Pin
PHDENG811-Sep-05 8:36
PHDENG811-Sep-05 8:36 
GeneralRe: combobox XML Pin
Judah Gabriel Himango1-Sep-05 9:21
sponsorJudah Gabriel Himango1-Sep-05 9:21 
QuestionCurves and Angles Pin
suresh sahu1-Sep-05 7:09
suresh sahu1-Sep-05 7:09 
AnswerRe: Curves and Angles Pin
Judah Gabriel Himango1-Sep-05 7:45
sponsorJudah Gabriel Himango1-Sep-05 7:45 
GeneralRe: Curves and Angles Pin
suresh sahu3-Sep-05 20:28
suresh sahu3-Sep-05 20:28 
Questionloading a com clientside. HELP!! Pin
femi ojemuyiwa1-Sep-05 7:04
femi ojemuyiwa1-Sep-05 7:04 
QuestionPasteSpecial into Word Pin
Rick Beideman1-Sep-05 6:33
Rick Beideman1-Sep-05 6:33 
QuestionRegex &quot;Unrecognized Escape Seq?&quot; Pin
...---...1-Sep-05 6:05
...---...1-Sep-05 6:05 
AnswerRe: Regex &quot;Unrecognized Escape Seq?&quot; Pin
S. Senthil Kumar1-Sep-05 6:14
S. Senthil Kumar1-Sep-05 6:14 
AnswerRe: Regex &quot;Unrecognized Escape Seq?&quot; Pin
Guffa1-Sep-05 6:21
Guffa1-Sep-05 6:21 

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.