Click here to Skip to main content
15,906,708 members
Home / Discussions / C#
   

C#

 
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 
Cheers Guys.
Figured it out.
Here's a test on a click button for anyone else interested

public int GetRandomInt(int[] array, int length) <br />
        {<br />
            Random ranNum = new Random();<br />
            return array[ranNum.Next(0, length)]; <br />
        }<br />
<br />
private void button1_Click(object sender, EventArgs e)<br />
        {<br />
            int [] intArray;<br />
            intArray = new int[3] {123, 321, 666};<br />
            int randumNum = GetRandomInt(intArray, 3);<br />
            randomLabel.Text = (randumNum.ToString());<br />
        }

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 
GeneralRe: how to use progressbar for copying file ? Pin
Vega0220-Oct-06 8:11
Vega0220-Oct-06 8:11 
QuestionHelp Pin
jluis_hdezg20-Oct-06 6:08
jluis_hdezg20-Oct-06 6:08 
AnswerRe: Help Pin
Vega0220-Oct-06 7:00
Vega0220-Oct-06 7:00 
QuestionUSB HID POS Pin
Kenny O'Dell20-Oct-06 6:03
Kenny O'Dell20-Oct-06 6:03 
AnswerRe: USB HID POS Pin
eggie520-Oct-06 21:16
eggie520-Oct-06 21:16 
GeneralRe: USB HID POS Pin
Kenny O'Dell23-Oct-06 5:59
Kenny O'Dell23-Oct-06 5:59 
Questionfoxpro general field type and c# byte[] Pin
mcgahanfl20-Oct-06 5:56
mcgahanfl20-Oct-06 5:56 
QuestionSplitContainer Pin
alpha_1020-Oct-06 5:54
alpha_1020-Oct-06 5:54 
AnswerRe: SplitContainer Pin
salysle20-Oct-06 17:07
salysle20-Oct-06 17:07 
QuestionRe: SplitContainer [modified] Pin
alpha_1022-Oct-06 21:24
alpha_1022-Oct-06 21:24 

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.