Click here to Skip to main content
15,907,233 members
Home / Discussions / C#
   

C#

 
QuestionTransparency with Windows buttons without flicker Pin
Andreas8820-Oct-06 13:57
Andreas8820-Oct-06 13:57 
QuestionHow to replace multiple spaces in a string to single space. Pin
jerry_pendergraft20-Oct-06 11:58
jerry_pendergraft20-Oct-06 11:58 
AnswerRe: How to replace multiple spaces in a string to single space. Pin
Guffa20-Oct-06 12:09
Guffa20-Oct-06 12:09 
GeneralRe: How to replace multiple spaces in a string to single space. Pin
jerry_pendergraft23-Oct-06 11:00
jerry_pendergraft23-Oct-06 11:00 
GeneralRe: How to replace multiple spaces in a string to single space. Pin
Dustin Metzgar23-Oct-06 11:18
Dustin Metzgar23-Oct-06 11:18 
QuestionCancelling current printing job from printer spool Pin
pnpfriend20-Oct-06 11:32
pnpfriend20-Oct-06 11:32 
QuestionShuffling elements in a control array... [modified] Pin
new_phoenix20-Oct-06 11:06
new_phoenix20-Oct-06 11:06 
AnswerRe: Shuffling elements in a control array... Pin
Stefan Troschuetz20-Oct-06 22:13
Stefan Troschuetz20-Oct-06 22:13 
The following should do what you want.
Control[] controlName = new Control[85];

private void Shuffle()
{
    ArrayList list = new ArrayList(this.controlName);
    Random rand = new Random();
    int j = 0;
    for (int i = 0; i < this.controlName.Length; i++)
    {
        j = rand.Next(list.Count);
        this.controlName[i] = (Control) list[j];
        list.RemoveAt(j);
    }
}



"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

www.troschuetz.de

QuestionRe: Here is a little compounding issue... Pin
new_phoenix21-Oct-06 4:36
new_phoenix21-Oct-06 4:36 
AnswerRe: Here is a little compounding issue... Pin
Stefan Troschuetz22-Oct-06 0:49
Stefan Troschuetz22-Oct-06 0:49 
Questioncontrol visible property????? Pin
Small Rat20-Oct-06 8:57
Small Rat20-Oct-06 8:57 
QuestionManipulating MP3 files Pin
Ross Petersen20-Oct-06 8:55
Ross Petersen20-Oct-06 8:55 
AnswerRe: Manipulating MP3 files Pin
David Knechtges20-Oct-06 9:20
David Knechtges20-Oct-06 9:20 
QuestionRandom Number Generator Pin
Belfast Child20-Oct-06 8:33
Belfast Child20-Oct-06 8:33 
AnswerRe: Random Number Generator Pin
eggsovereasy20-Oct-06 8:42
eggsovereasy20-Oct-06 8:42 
GeneralRe: Random Number Generator Pin
Belfast Child20-Oct-06 9:28
Belfast Child20-Oct-06 9:28 
GeneralRe: Random Number Generator Pin
Wjousts20-Oct-06 9:33
Wjousts20-Oct-06 9:33 
GeneralRe: Random Number Generator Pin
Belfast Child20-Oct-06 10:00
Belfast Child20-Oct-06 10:00 
GeneralRe: Random Number Generator Pin
Stefan Troschuetz20-Oct-06 21:54
Stefan Troschuetz20-Oct-06 21:54 
GeneralRe: Random Number Generator Pin
User 665820-Oct-06 9:49
User 665820-Oct-06 9:49 
GeneralRe: Random Number Generator Pin
Guffa20-Oct-06 12:14
Guffa20-Oct-06 12:14 
Questionhow to use progressbar for copying file ? Pin
hdv21220-Oct-06 6:13
hdv21220-Oct-06 6:13 
AnswerRe: how to use progressbar for copying file ? Pin
Vega0220-Oct-06 6:57
Vega0220-Oct-06 6:57 
GeneralRe: how to use progressbar for copying file ? Pin
hdv21220-Oct-06 8:00
hdv21220-Oct-06 8:00 
GeneralRe: how to use progressbar for copying file ? Pin
Christian Graus20-Oct-06 8:10
protectorChristian Graus20-Oct-06 8:10 

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.