Click here to Skip to main content
15,886,963 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Labels Pin
Gerry Schmitz28-Nov-16 7:00
mveGerry Schmitz28-Nov-16 7:00 
GeneralRe: C# Labels Pin
Pavlex428-Nov-16 7:14
Pavlex428-Nov-16 7:14 
GeneralRe: C# Labels Pin
Gerry Schmitz28-Nov-16 7:24
mveGerry Schmitz28-Nov-16 7:24 
GeneralRe: C# Labels Pin
Pavlex428-Nov-16 8:03
Pavlex428-Nov-16 8:03 
GeneralRe: C# Labels Pin
Gerry Schmitz28-Nov-16 8:29
mveGerry Schmitz28-Nov-16 8:29 
GeneralRe: C# Labels Pin
Pavlex428-Nov-16 8:54
Pavlex428-Nov-16 8:54 
GeneralRe: C# Labels Pin
Gerry Schmitz28-Nov-16 10:23
mveGerry Schmitz28-Nov-16 10:23 
GeneralRe: C# Labels Pin
Pavlex428-Nov-16 10:36
Pavlex428-Nov-16 10:36 
I fixed all problems,program is now working!!!
C#
int i;
        string[] slova = new string[12];
        Random rand = new Random();
        private void button1_Click(object sender, EventArgs e)
        {
            timer1.Start();
            Label[] label = new Label[] { label2,label3, label4, label5, label6, label7, label8, label9, label10, label11, label12,label13 };
            for (int i = 0; i < 12; i++)
                slova[i] = label[i].Text;
 
            if (!button1.Enabled)
                return;
            if (button1.Text == "Start")
            {
                i = 0;
                timer1.Enabled = true;
                button1.Text = "Stop";
                button1.Enabled = true;
            }
            else
            {
                label[i].Text = slova[i];
                i = i + 1;
                if (i == 12)
                {
                    textBox1.Enabled = true;
                    button1.Enabled = false;
                    button1.Text = "Start";
                    timer1.Enabled = false;
                    //Vreme.Enabled = true;
                    textBox1.Focus();
                }
            }
        }
 
        private void timer1_Tick(object sender, EventArgs e)
        {
            char[] letters = new char[30] { 'A', 'Б', 'В', 'Г', 'Д', 'Ђ', 'Е', 'Ж', 'З', 'И', 'Ј', 'К', 'Л', 'Љ', 'М', 'Н', 'Њ', 'О', 'П', 'Р', 'С', 'Т', 'Ћ', 'У', 'Ф', 'Х', 'Ц', 'Ч', 'Џ', 'Ш' };
            Label[] label = new Label[] { label2,label3, label4, label5, label6, label7, label8, label9, label10, label11, label12, label13 };
 
            string randomString = "";
                randomString += letters[rand.Next(0, 30)].ToString();
                label[i].Text = randomString;
 
        }


Whether it can be made to computer take a word from database shuffle it and every time button is clicked it show letters on each textbox separatly???
GeneralRe: C# Labels Pin
Gerry Schmitz28-Nov-16 10:59
mveGerry Schmitz28-Nov-16 10:59 
GeneralRe: C# Labels Pin
Pavlex429-Nov-16 5:51
Pavlex429-Nov-16 5:51 
GeneralRe: C# Labels Pin
Gerry Schmitz29-Nov-16 6:01
mveGerry Schmitz29-Nov-16 6:01 
GeneralRe: C# Labels Pin
Pavlex429-Nov-16 6:05
Pavlex429-Nov-16 6:05 
GeneralRe: C# Labels Pin
Gerry Schmitz29-Nov-16 6:55
mveGerry Schmitz29-Nov-16 6:55 
Questionquery group and Sum number has got Conditional ? Pin
Member 245846726-Nov-16 23:26
Member 245846726-Nov-16 23:26 
AnswerRe: query group and Sum number has got Conditional ? Pin
OriginalGriff27-Nov-16 0:40
mveOriginalGriff27-Nov-16 0:40 
AnswerRe: query group and Sum number has got Conditional ? Pin
Wendelius27-Nov-16 1:09
mentorWendelius27-Nov-16 1:09 
GeneralRe: query group and Sum number has got Conditional ? Pin
Member 245846727-Nov-16 16:46
Member 245846727-Nov-16 16:46 
QuestionHow to set the password in setup file in c# Pin
Member 1287006524-Nov-16 22:49
Member 1287006524-Nov-16 22:49 
AnswerRe: How to set the password in setup file in c# Pin
Richard MacCutchan24-Nov-16 22:54
mveRichard MacCutchan24-Nov-16 22:54 
QuestionHow to get the filename of a button's background image Pin
Member 1283227724-Nov-16 19:50
Member 1283227724-Nov-16 19:50 
AnswerRe: How to get the filename of a button's background image Pin
Richard MacCutchan24-Nov-16 21:44
mveRichard MacCutchan24-Nov-16 21:44 
QuestionCan't save to text file with visual c# universal app. Pin
ken7624-Nov-16 9:49
ken7624-Nov-16 9:49 
AnswerRe: Can't save to text file with visual c# universal app. Pin
Midi_Mick24-Nov-16 14:49
professionalMidi_Mick24-Nov-16 14:49 
QuestionAre there someone for helping me.(Huffman İmage Compression with c#) Pin
Rıza Berkay Ayçelebi24-Nov-16 7:11
Rıza Berkay Ayçelebi24-Nov-16 7:11 
AnswerRe: Are there someone for helping me.(Huffman İmage Compression with c#) Pin
Dave Kreskowiak24-Nov-16 7:21
mveDave Kreskowiak24-Nov-16 7: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.