Click here to Skip to main content
15,904,652 members
Home / Discussions / C#
   

C#

 
GeneralRe: Am I doing this right..... Pin
glennPattonWork311-Jun-12 4:29
professionalglennPattonWork311-Jun-12 4:29 
GeneralMessage Removed Pin
11-Jun-12 4:33
professionalN_tro_P11-Jun-12 4:33 
GeneralRe: Am I doing this right..... Pin
glennPattonWork311-Jun-12 4:36
professionalglennPattonWork311-Jun-12 4:36 
GeneralMessage Removed Pin
11-Jun-12 4:38
professionalN_tro_P11-Jun-12 4:38 
GeneralRe: Am I doing this right..... Pin
glennPattonWork311-Jun-12 4:40
professionalglennPattonWork311-Jun-12 4:40 
AnswerRe: Am I doing this right..... Pin
BobJanova11-Jun-12 5:56
BobJanova11-Jun-12 5:56 
GeneralRe: Am I doing this right..... Pin
glennPattonWork311-Jun-12 6:00
professionalglennPattonWork311-Jun-12 6:00 
Questionping from Windows-Mobile in C# Pin
goldsoft10-Jun-12 22:30
goldsoft10-Jun-12 22:30 
AnswerRe: ping from Windows-Mobile in C# Pin
Pete O'Hanlon10-Jun-12 22:42
mvePete O'Hanlon10-Jun-12 22:42 
QuestionTaking voice input in C# in Visual Studio Pin
Namus Adhikari10-Jun-12 20:40
Namus Adhikari10-Jun-12 20:40 
AnswerRe: Taking voice input in C# in Visual Studio Pin
Abhinav S10-Jun-12 20:46
Abhinav S10-Jun-12 20:46 
QuestionC# windows forms sent data to a link and preview them with PHP on IE or Safari etc. Pin
Vvelawras10-Jun-12 9:24
Vvelawras10-Jun-12 9:24 
AnswerRe: C# windows forms sent data to a link and preview them with PHP on IE or Safari etc. Pin
Abhinav S10-Jun-12 17:20
Abhinav S10-Jun-12 17:20 
GeneralRe: C# windows forms sent data to a link and preview them with PHP on IE or Safari etc. Pin
Vvelawras10-Jun-12 21:58
Vvelawras10-Jun-12 21:58 
AnswerRe: C# windows forms sent data to a link and preview them with PHP on IE or Safari etc. Pin
BobJanova10-Jun-12 22:58
BobJanova10-Jun-12 22:58 
GeneralRe: C# windows forms sent data to a link and preview them with PHP on IE or Safari etc. Pin
Vvelawras10-Jun-12 23:04
Vvelawras10-Jun-12 23:04 
GeneralRe: C# windows forms sent data to a link and preview them with PHP on IE or Safari etc. Pin
BobJanova11-Jun-12 5:54
BobJanova11-Jun-12 5:54 
QuestionReceive post values from Windows form app C# with php Pin
Vvelawras10-Jun-12 9:18
Vvelawras10-Jun-12 9:18 
QuestionEnable multiple textboxes one by one on button click Pin
Saidrex10-Jun-12 6:17
Saidrex10-Jun-12 6:17 
AnswerRe: Enable multiple textboxes one by one on button click Pin
Richard Andrew x6410-Jun-12 7:11
professionalRichard Andrew x6410-Jun-12 7:11 
GeneralRe: Enable multiple textboxes one by one on button click Pin
Saidrex10-Jun-12 8:01
Saidrex10-Jun-12 8:01 
AnswerRe: Enable multiple textboxes one by one on button click Pin
DaveyM6910-Jun-12 10:13
professionalDaveyM6910-Jun-12 10:13 
GeneralRe: Enable multiple textboxes one by one on button click Pin
Saidrex10-Jun-12 11:37
Saidrex10-Jun-12 11:37 
Tried both examples, they don't work with my program, maybe i'm doing something wrong. When i click button nothing happens.

C#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace datori_konf
{
    public partial class datoru_konf : Form
    {
private Queue<TextBox> textBoxes;
 
        public datoru_konf()
        {
            InitializeComponent();
            textBoxes = new Queue<TextBox>(new TextBox[]{
               prog1,
               prog2,
               prog3,
               prog4,
               prog5,
               prog6,
               prog7,
               prog8,
               prog9,
               prog10,
               prog11,
               prog12,
               prog13,
               prog14,
               prog15,
               prog16,
               prog17,
               prog18,
               prog19,
               prog20
            });
        }

private void button4_Click(object sender, EventArgs e)
        {
            this.Close();
        }

private void button2_Click(object sender, EventArgs e)
        {
            Form2 form = new Form2();
            form.ShowDialog();
        }
private void button1_Click(object sender, EventArgs e)
        {
            textBoxes.Dequeue().Enabled = true;
            button1.Enabled = textBoxes.Count > 0;
        }

    }
}

GeneralRe: Enable multiple textboxes one by one on button click Pin
BobJanova10-Jun-12 22:50
BobJanova10-Jun-12 22:50 
GeneralRe: Enable multiple textboxes one by one on button click Pin
Saidrex10-Jun-12 23:07
Saidrex10-Jun-12 23:07 

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.