Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
QuestionReally need your help(someting aobut the directions which shoule I choose!!) Pin
wanlim08172-Nov-06 4:50
wanlim08172-Nov-06 4:50 
AnswerRe: Really need your help(someting aobut the directions which shoule I choose!!) Pin
Amar Chaudhary2-Nov-06 5:14
Amar Chaudhary2-Nov-06 5:14 
AnswerRe: Really need your help(someting aobut the directions which shoule I choose!!) Pin
Christian Graus2-Nov-06 12:56
protectorChristian Graus2-Nov-06 12:56 
AnswerRe: Really need your help(someting aobut the directions which shoule I choose!!) Pin
jlwarlow2-Nov-06 22:13
jlwarlow2-Nov-06 22:13 
QuestionRepeat Value Pin
mm3102-Nov-06 3:39
mm3102-Nov-06 3:39 
AnswerRe: Repeat Value Pin
Guffa2-Nov-06 4:20
Guffa2-Nov-06 4:20 
AnswerRe: Repeat Value Pin
Pradeep C2-Nov-06 13:46
Pradeep C2-Nov-06 13:46 
QuestionTo focus or not to focus Pin
barbiomalefico2-Nov-06 2:26
barbiomalefico2-Nov-06 2:26 
Hi,
I have write a simple application only to understand the Select command, but it doesn't work well.
In my application i have 3 button. When I click button 1 i disable button 1 and 2. When I click on button3 i reanable button 1 and 2 and want to select button 1 again.
The code (without the designer part) i wrote is the following:

<br />
using System;<br />
using System.Collections.Generic;<br />
using System.ComponentModel;<br />
using System.Data;<br />
using System.Drawing;<br />
using System.Text;<br />
using System.Windows.Forms;<br />
<br />
namespace WindowsApplication1<br />
{<br />
    public partial class Form1 : Form<br />
    {<br />
        public Form1()<br />
        {<br />
            InitializeComponent();<br />
        }<br />
<br />
        private void button1_Click(object sender, EventArgs e)<br />
        {<br />
            button1.Enabled = false;<br />
            button2.Enabled = false;<br />
        }<br />
<br />
        private void button3_Click(object sender, EventArgs e)<br />
        {<br />
            button1.Enabled = true;<br />
            button2.Enabled = true;<br />
            button1.Select();<br />
        }<br />
    }<br />
}<br />


What should i do to solve this problem?

Best Regards
Ciao
Rudy Barbieri
AnswerRe: To focus or not to focus Pin
stancrm2-Nov-06 2:50
stancrm2-Nov-06 2:50 
GeneralRe: To focus or not to focus Pin
Tamimi - Code2-Nov-06 3:39
Tamimi - Code2-Nov-06 3:39 
AnswerRe: To focus or not to focus Pin
Saqib Mehmood2-Nov-06 2:56
Saqib Mehmood2-Nov-06 2:56 
Questionsimple grafics problem Pin
rzvme2-Nov-06 2:07
rzvme2-Nov-06 2:07 
AnswerRe: simple grafics problem Pin
V.2-Nov-06 3:09
professionalV.2-Nov-06 3:09 
AnswerRe: simple grafics problem Pin
J4amieC2-Nov-06 3:45
J4amieC2-Nov-06 3:45 
GeneralRe: simple grafics problem Pin
rzvme2-Nov-06 20:50
rzvme2-Nov-06 20:50 
QuestionIs this a bug in .NET 2.0? Pin
adfgh752-Nov-06 2:02
adfgh752-Nov-06 2:02 
AnswerRe: Is this a bug in .NET 2.0? Pin
sam#2-Nov-06 2:35
sam#2-Nov-06 2:35 
AnswerRe: Is this a bug in .NET 2.0? Pin
Michael P Butler2-Nov-06 2:53
Michael P Butler2-Nov-06 2:53 
GeneralRe: Is this a bug in .NET 2.0? Pin
adfgh752-Nov-06 3:54
adfgh752-Nov-06 3:54 
Questionif statement Pin
fmardani2-Nov-06 1:57
fmardani2-Nov-06 1:57 
AnswerRe: if statement Pin
sam#2-Nov-06 2:16
sam#2-Nov-06 2:16 
AnswerRe: if statement Pin
J4amieC2-Nov-06 2:20
J4amieC2-Nov-06 2:20 
GeneralRe: if statement Pin
eggsovereasy2-Nov-06 3:30
eggsovereasy2-Nov-06 3:30 
GeneralRe: if statement Pin
J4amieC2-Nov-06 3:39
J4amieC2-Nov-06 3:39 
GeneralRe: if statement Pin
Andrew Rissing2-Nov-06 3:43
Andrew Rissing2-Nov-06 3:43 

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.