Click here to Skip to main content
16,009,112 members
Home / Discussions / C#
   

C#

 
GeneralRe: Global variable in C# Pin
Mike_V8-Apr-07 9:05
Mike_V8-Apr-07 9:05 
AnswerRe: Global variable in C# Pin
Not Active8-Apr-07 8:55
mentorNot Active8-Apr-07 8:55 
QuestionSslStream and X509Chain Pin
atanamir7-Apr-07 14:26
atanamir7-Apr-07 14:26 
Questionvirtual makeover Pin
samreengr87-Apr-07 10:43
samreengr87-Apr-07 10:43 
QuestionNavigation Control Pin
indyfromoz7-Apr-07 10:25
indyfromoz7-Apr-07 10:25 
QuestionAdding controls dynamically Pin
kkadir7-Apr-07 9:49
kkadir7-Apr-07 9:49 
AnswerRe: Adding controls dynamically Pin
J$7-Apr-07 9:56
J$7-Apr-07 9:56 
GeneralRe: Adding controls dynamically Pin
kkadir7-Apr-07 10:05
kkadir7-Apr-07 10:05 
I add the panels dynamically with :

<br />
Panel p = new Panel();<br />
p.Location = new Point(3, panel1.Controls[panel1.Controls.Count - 1].Location.Y + 28);<br />
            p.Size = new Size(262, 26);<br />
            p.BackColor = Color.Blue;<br />
            panel1.Controls.Add(p);<br />


The panels are added to panel1 with no problem. Everything is ok. Then I try to add 3 textboxes to the last panel.

<br />
.....<br />
for (int i = 0; i < 3; i++)<br />
            {<br />
                TextBox t = new TextBox();<br />
                addTEv(i, t);<br />
            }<br />
            <br />
            <br />
<br />
        }<br />
<br />
        private void addTEv(int i, TextBox t)<br />
        {<br />
            if (i == 0)<br />
                t.Location = new Point(3, panel1.Controls[panel1.Controls.Count - 1].Location.Y);<br />
            else if (i == 1)<br />
                t.Location = new Point(93, panel1.Controls[panel1.Controls.Count - 1].Location.Y);<br />
            else<br />
                t.Location = new Point(183, panel1.Controls[panel1.Controls.Count - 1].Location.Y);<br />
            <br />
            t.Size = new Size(75, 20);<br />
            t.BorderStyle = BorderStyle.FixedSingle;<br />
            t.BackColor = Color.White;      <br />
            panel1.Controls[panel1.Controls.Count - 1].Controls.Add(t);<br />
        }<br />


Thanks.

.:: Something is Wrong ::.

GeneralRe: Adding controls dynamically Pin
Luc Pattyn7-Apr-07 13:50
sitebuilderLuc Pattyn7-Apr-07 13:50 
GeneralRe: Adding controls dynamically Pin
phantanagu8-Apr-07 22:37
phantanagu8-Apr-07 22:37 
QuestionPaintdesktop Api with back buffer Pin
AndyBob7-Apr-07 9:38
AndyBob7-Apr-07 9:38 
AnswerRe: Paintdesktop Api with back buffer Pin
Hayder Marzouk7-Apr-07 14:44
Hayder Marzouk7-Apr-07 14:44 
GeneralRe: Paintdesktop Api with back buffer Pin
AndyBob8-Apr-07 8:58
AndyBob8-Apr-07 8:58 
QuestionWho knows how to change font in console? Pin
Zhendalf7-Apr-07 9:01
Zhendalf7-Apr-07 9:01 
AnswerRe: Who knows how to change font in console? Pin
Hayder Marzouk7-Apr-07 15:06
Hayder Marzouk7-Apr-07 15:06 
GeneralRe: Who knows how to change font in console? Pin
Zhendalf8-Apr-07 1:05
Zhendalf8-Apr-07 1:05 
QuestionData binding using checkbox Pin
coolzzzz7-Apr-07 8:10
coolzzzz7-Apr-07 8:10 
AnswerRe: Data binding using checkbox Pin
Hayder Marzouk7-Apr-07 14:55
Hayder Marzouk7-Apr-07 14:55 
QuestionHow can i write some COM server with C# language ? Pin
Yanshof7-Apr-07 6:48
Yanshof7-Apr-07 6:48 
AnswerRe: How can i write some COM server with C# language ? Pin
Sathesh Sakthivel7-Apr-07 7:24
Sathesh Sakthivel7-Apr-07 7:24 
GeneralThanks - but this example is about DLL com - I'm looking for something different Pin
Yanshof7-Apr-07 7:58
Yanshof7-Apr-07 7:58 
Questionhelp Pin
Kiethnt7-Apr-07 4:59
Kiethnt7-Apr-07 4:59 
QuestionHow to add animation to keep the user informed with the activities? Pin
Khoramdin7-Apr-07 3:39
Khoramdin7-Apr-07 3:39 
AnswerRe: How to add animation to keep the user informed with the activities? Pin
Pualee7-Apr-07 7:07
Pualee7-Apr-07 7:07 
GeneralRe: How to add animation to keep the user informed with the activities? Pin
Khoramdin7-Apr-07 9:28
Khoramdin7-Apr-07 9:28 

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.