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

C#

 
GeneralRe: How to set the font of the ToolTipText , such as ToolStripItem.ToolTipText (winform) Pin
MidwestLimey31-Mar-08 12:50
professionalMidwestLimey31-Mar-08 12:50 
GeneralRe: How to set the font of the ToolTipText , such as ToolStripItem.ToolTipText (winform) Pin
wyc_xiaoben31-Mar-08 16:57
wyc_xiaoben31-Mar-08 16:57 
GeneralRe: How to set the font of the ToolTipText , such as ToolStripItem.ToolTipText (winform) Pin
MidwestLimey1-Apr-08 5:36
professionalMidwestLimey1-Apr-08 5:36 
GeneralRe: How to set the font of the ToolTipText , such as ToolStripItem.ToolTipText (winform) Pin
wyc_xiaoben2-Apr-08 22:21
wyc_xiaoben2-Apr-08 22:21 
QuestionBackend application posting data to web server.. Pin
ptr2void30-Mar-08 20:23
ptr2void30-Mar-08 20:23 
GeneralRe: Backend application posting data to web server.. Pin
Vimalsoft(Pty) Ltd31-Mar-08 1:08
professionalVimalsoft(Pty) Ltd31-Mar-08 1:08 
GeneralArray of bool as dictoinary value Pin
Mc_Topaz30-Mar-08 20:04
Mc_Topaz30-Mar-08 20:04 
GeneralRe: Array of bool as dictoinary value Pin
Vikram A Punathambekar30-Mar-08 21:38
Vikram A Punathambekar30-Mar-08 21:38 
What error are you getting? Compile time? Run time? "Errors" isn't very helpful, you know.

Anyway, this works for me:
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;

namespace CollectionDictionary
{
	class Program
	{
		static void Main(string[] args)
		{
			bool[] array1 = new bool[10];
			bool[] array2 = new bool[10];
			FillBools(array1);
			Thread.Sleep(1000);
			FillBools(array2);
			PrintBools(array1);
			PrintBools(array2);

			Dictionary<int, bool[]=""> dict = new Dictionary<int, bool[]="">();
			dict[1] = array1;
			dict[2] = array2;

			PrintBools(dict[1]);
			PrintBools(dict[2]);
		}

		private static void FillBools(bool[] array)
		{
			Random r = new Random((int)DateTime.Now.Ticks);
			for (int i = 0; i < array.Length; i++)
			{
				array[i] = r.Next() % 2 == 0 ? true : false;
			}
		}

		private static void PrintBools(bool[] array)
		{
			foreach(bool b in array)
			{
				Console.Write(b + ", ");
			}
			Console.WriteLine();
		}
	}
}</int,></int,>


Cheers,
Vikram.

GeneralRe: Array of bool as dictoinary value Pin
Guffa30-Mar-08 22:18
Guffa30-Mar-08 22:18 
GeneralRe: Array of bool as dictoinary value Pin
Mc_Topaz30-Mar-08 22:59
Mc_Topaz30-Mar-08 22:59 
GeneralRe: Array of bool as dictoinary value Pin
J4amieC30-Mar-08 23:16
J4amieC30-Mar-08 23:16 
GeneralRe: Array of bool as dictoinary value Pin
Mc_Topaz30-Mar-08 23:24
Mc_Topaz30-Mar-08 23:24 
GeneralImage Binirize Pin
mikefl30-Mar-08 19:58
mikefl30-Mar-08 19:58 
GeneralRe: Image Binirize Pin
Pete O'Hanlon30-Mar-08 21:50
mvePete O'Hanlon30-Mar-08 21:50 
GeneralRe: Image Binirize Pin
mikefl31-Mar-08 15:36
mikefl31-Mar-08 15:36 
GeneralRe: Image Binirize Pin
blackjack215030-Mar-08 22:31
blackjack215030-Mar-08 22:31 
GeneralRe: Image Binirize Pin
mikefl31-Mar-08 15:37
mikefl31-Mar-08 15:37 
GeneralRe: Image Binirize Pin
blackjack21501-Apr-08 23:05
blackjack21501-Apr-08 23:05 
QuestionService Installer Issue... Pin
Super Lloyd30-Mar-08 19:19
Super Lloyd30-Mar-08 19:19 
GeneralRe: Service Installer Issue... Pin
C1AllenS30-Mar-08 19:45
C1AllenS30-Mar-08 19:45 
GeneralRe: Service Installer Issue... Pin
Super Lloyd30-Mar-08 19:50
Super Lloyd30-Mar-08 19:50 
QuestionHow to make a SetupProgram Pin
jason_mf30-Mar-08 17:08
jason_mf30-Mar-08 17:08 
AnswerRe: How to make a SetupProgram Pin
Super Lloyd30-Mar-08 19:32
Super Lloyd30-Mar-08 19:32 
QuestionCreate and send Message digest to Web Service [date encrypt with Priavte key ] Pin
mpavas30-Mar-08 17:07
mpavas30-Mar-08 17:07 
QuestionVideo Editing and Creation in C# Pin
tigerpowereg30-Mar-08 16:57
tigerpowereg30-Mar-08 16:57 

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.