Click here to Skip to main content
15,885,309 members
Home / Discussions / C#
   

C#

 
QuestionCreate pie chart in c# Pin
annmarypaul16-Jul-10 13:47
annmarypaul16-Jul-10 13:47 
AnswerRe: Create pie chart in c# Pin
Dr.Walt Fair, PE16-Jul-10 14:11
professionalDr.Walt Fair, PE16-Jul-10 14:11 
AnswerRe: Create pie chart in c# Pin
JF201516-Jul-10 23:00
JF201516-Jul-10 23:00 
GeneralRe: Create pie chart in c# Pin
annmarypaul18-Jul-10 6:39
annmarypaul18-Jul-10 6:39 
GeneralRe: Create pie chart in c# Pin
JF201518-Jul-10 19:31
JF201518-Jul-10 19:31 
QuestionC# version of C++ code Pin
gordon305616-Jul-10 10:02
gordon305616-Jul-10 10:02 
GeneralRe: C# version of C++ code [modified] Pin
harold aptroot16-Jul-10 10:31
harold aptroot16-Jul-10 10:31 
AnswerRe: C# version of C++ code Pin
Dave Doknjas16-Jul-10 10:52
Dave Doknjas16-Jul-10 10:52 
<pre>RandomNumbers.Seed((int) time (0));
int x;
int y;
int z;
int[] nums = new int[50];

for (x = 1 ; x < 50 ; x++)
nums [x] = x;

for (x = 1 ; x < 50 ; x++)
{
y = (RandomNumbers.NextNumber() % 49) + 1;
z = nums[x];
nums[x] = nums [y];
nums [y] = z;
}
//----------------------------------------------------------------------------------------
// Copyright © 2006 - 2010 Tangible Software Solutions Inc.
// This class can be used by anyone provided that the copyright notice remains intact.
//
// This class provides the ability to simulate the behavior of the C/C++ functions for
// generating random numbers, using the .NET Framework System.Random class.
// 'rand' converts to the parameterless overload of NextNumber
// 'random' converts to the single-parameter overload of NextNumber
// 'randomize' converts to the parameterless overload of Seed
// 'srand' converts to the single-parameter overload of Seed
//----------------------------------------------------------------------------------------
internal static class RandomNumbers
{
private static System.Random r;

internal static int NextNumber()
{
if (r == null)
Seed();

return r.Next();
}

internal static int NextNumber(int ceiling)
{
if (r == null)
Seed();

return r.Next(ceiling);
}

internal static void Seed()
{
r = new System.Random();
}

internal static void Seed(int seed)
{
r = new System.Random(seed);
}
}</pre>

David Anton
Convert between VB, C#, C++, & Java
www.tangiblesoftwaresolutions.com
QuestionDisable Checkboxes for Treeview Node Pin
Cracked-Down16-Jul-10 4:00
Cracked-Down16-Jul-10 4:00 
AnswerRe: Disable Checkboxes for Treeview Node Pin
Peace ON16-Jul-10 19:02
Peace ON16-Jul-10 19:02 
QuestionName of a derived Form Pin
Flo123416-Jul-10 3:32
Flo123416-Jul-10 3:32 
AnswerRe: Name of a derived Form Pin
Peace ON16-Jul-10 3:47
Peace ON16-Jul-10 3:47 
GeneralRe: Name of a derived Form - OTish Pin
DaveyM6916-Jul-10 12:03
professionalDaveyM6916-Jul-10 12:03 
GeneralRe: Name of a derived Form - OTish Pin
Peace ON16-Jul-10 19:05
Peace ON16-Jul-10 19:05 
AnswerRe: Name of a derived Form Pin
Luc Pattyn16-Jul-10 3:51
sitebuilderLuc Pattyn16-Jul-10 3:51 
AnswerRe: Name of a derived Form Pin
PIEBALDconsult16-Jul-10 5:01
mvePIEBALDconsult16-Jul-10 5:01 
AnswerRe: Name of a derived Form Pin
T M Gray16-Jul-10 6:23
T M Gray16-Jul-10 6:23 
GeneralRe: Name of a derived Form Pin
Flo123422-Jul-10 23:57
Flo123422-Jul-10 23:57 
QuestionChangelog tools for Visual C# Pin
grmihel216-Jul-10 3:18
grmihel216-Jul-10 3:18 
AnswerRe: Changelog tools for Visual C# Pin
Peace ON16-Jul-10 3:25
Peace ON16-Jul-10 3:25 
QuestionMail Extract App Pin
NDBUK16-Jul-10 3:16
NDBUK16-Jul-10 3:16 
AnswerRe: Mail Extract App Pin
Bernhard Hiller16-Jul-10 5:39
Bernhard Hiller16-Jul-10 5:39 
QuestionSkype multiple user auto login Pin
Etienne_12316-Jul-10 2:25
Etienne_12316-Jul-10 2:25 
AnswerRe: Skype multiple user auto login Pin
Peace ON16-Jul-10 2:35
Peace ON16-Jul-10 2:35 
QuestionSingle sign on with access token Pin
Etienne_12316-Jul-10 1:21
Etienne_12316-Jul-10 1: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.