Click here to Skip to main content
15,909,829 members
Home / Discussions / C#
   

C#

 
QuestionTaborder for Dynamically-Created Controls Pin
danielhasdibs23-Sep-08 5:29
danielhasdibs23-Sep-08 5:29 
AnswerRe: Taborder for Dynamically-Created Controls Pin
J4amieC23-Sep-08 6:03
J4amieC23-Sep-08 6:03 
GeneralRe: Taborder for Dynamically-Created Controls Pin
danielhasdibs23-Sep-08 6:05
danielhasdibs23-Sep-08 6:05 
AnswerRe: Taborder for Dynamically-Created Controls Pin
teejayem23-Sep-08 6:20
teejayem23-Sep-08 6:20 
GeneralRe: Taborder for Dynamically-Created Controls Pin
danielhasdibs23-Sep-08 6:25
danielhasdibs23-Sep-08 6:25 
GeneralRe: Taborder for Dynamically-Created Controls Pin
teejayem23-Sep-08 6:30
teejayem23-Sep-08 6:30 
GeneralRe: Taborder for Dynamically-Created Controls Pin
danielhasdibs23-Sep-08 6:35
danielhasdibs23-Sep-08 6:35 
AnswerRe: Taborder for Dynamically-Created Controls Pin
I Believe In GOD23-Sep-08 6:33
I Believe In GOD23-Sep-08 6:33 
Please Try this Code , it's about buttons Control , but it think you will understand my idea ......



public partial class Form1 : Form<br />
    {<br />
<br />
        public Button sb;<br />
        public Form1()<br />
        {<br />
            InitializeComponent();<br />
        }<br />
<br />
        private void Form1_Load(object sender, EventArgs e)<br />
        {<br />
<br />
                for (int x = 0; x < 10; x++)<br />
                {<br />
                    sb = new Button();<br />
                    sb.Size = new Size(17, 17);<br />
                    sb.Location = new Point(x * 17, 10);<br />
                    sb.Tag = (x).ToString();<br />
                    sb.Visible = true;<br />
                    sb.Click += new EventHandler(sb_Click);<br />
                    Controls.Add(sb);<br />
<br />
                }<br />
<br />
            this.Size = new Size(176, (12 * 17) + 7);<br />
        }<br />
<br />
<br />
        private void sb_Click(object sender, System.EventArgs e)<br />
        {<br />
            Button sb = sender as Button;<br />
            this.Text = sb.Tag.ToString();<br />
 <br />
        }


I know nothing , I know nothing ...

AnswerRe: Taborder for Dynamically-Created Controls Pin
danielhasdibs23-Sep-08 6:52
danielhasdibs23-Sep-08 6:52 
QuestionChanging Word save directory in C# Pin
Dave Aitch23-Sep-08 4:30
professionalDave Aitch23-Sep-08 4:30 
AnswerRe: Changing Word save directory in C# Pin
selcuks23-Sep-08 4:34
selcuks23-Sep-08 4:34 
GeneralRe: Changing Word save directory in C# Pin
Dave Aitch23-Sep-08 5:03
professionalDave Aitch23-Sep-08 5:03 
QuestionControls parent is null in call back procedure when control is reloaded Pin
Chazzysb23-Sep-08 4:01
Chazzysb23-Sep-08 4:01 
AnswerRe: Controls parent is null in call back procedure when control is reloaded Pin
Wendelius23-Sep-08 8:44
mentorWendelius23-Sep-08 8:44 
QuestionSorting on Datagridview removes values from Image column en removes row.height [modified] Pin
ddecoy23-Sep-08 3:37
ddecoy23-Sep-08 3:37 
AnswerRe: Sorting on Datagridview removes values from Image column en removes row.height Pin
ddecoy23-Sep-08 5:02
ddecoy23-Sep-08 5:02 
QuestionConverting C++ COM to C# Pin
LeonardLay23-Sep-08 3:32
LeonardLay23-Sep-08 3:32 
AnswerRe: Converting C++ COM to C# Pin
cpkilekofp25-Sep-08 3:00
cpkilekofp25-Sep-08 3:00 
Question64 bit WMI Pin
arkiboys23-Sep-08 3:17
arkiboys23-Sep-08 3:17 
JokeRe: 64 bit WMI Pin
Giorgi Dalakishvili23-Sep-08 3:38
mentorGiorgi Dalakishvili23-Sep-08 3:38 
GeneralRe: 64 bit WMI Pin
arkiboys23-Sep-08 4:06
arkiboys23-Sep-08 4:06 
GeneralRe: 64 bit WMI Pin
Giorgi Dalakishvili23-Sep-08 4:10
mentorGiorgi Dalakishvili23-Sep-08 4:10 
GeneralRe: 64 bit WMI Pin
arkiboys23-Sep-08 4:13
arkiboys23-Sep-08 4:13 
GeneralRe: 64 bit WMI Pin
#realJSOP23-Sep-08 23:28
professional#realJSOP23-Sep-08 23:28 
GeneralRe: 64 bit WMI Pin
cpkilekofp24-Sep-08 7:05
cpkilekofp24-Sep-08 7:05 

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.