Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
QuestionChange Monitor Resolution Pin
freshonlineMax30-Apr-06 23:13
freshonlineMax30-Apr-06 23:13 
AnswerRe: Change Monitor Resolution Pin
CWIZO1-May-06 0:06
CWIZO1-May-06 0:06 
GeneralRe: Change Monitor Resolution Pin
Dan Neely1-May-06 4:58
Dan Neely1-May-06 4:58 
AnswerRe: Change Monitor Resolution Pin
Eric Dahlvang1-May-06 3:37
Eric Dahlvang1-May-06 3:37 
QuestionControls and data-binding Pin
code_wiz30-Apr-06 23:10
code_wiz30-Apr-06 23:10 
Questioncall event from editbox Pin
il-gigi30-Apr-06 22:45
il-gigi30-Apr-06 22:45 
AnswerRe: call event from editbox Pin
CWIZO1-May-06 0:07
CWIZO1-May-06 0:07 
Questionproblems with panals Pin
Rmokkenstorm30-Apr-06 21:41
Rmokkenstorm30-Apr-06 21:41 
I have a problem.
On my form (mainform) is use a panal wich should load another form (form1)
now i placed the panal en he should load the form1 when the mainform loads.
but i get this error:

Top-level control cannot be added to a control.

i don't know what to do whit this error.

public partial class main : Form<br />
    {<br />
        Form1 from1;<br />
        public main()<br />
        {<br />
            InitializeComponent();<br />
        }<br />
<br />
        internal Form1 From1<br />
        {<br />
            get<br />
            {<br />
                if (this.from1 == null)<br />
                <br />
                {<br />
                    this.from1 = new Form1();<br />
                                                    <br />
                   this.panel1.Controls.Add(this.from1);                 <br />
                    this.from1.Dock = DockStyle.Fill;<br />
                }<br />
<br />
                return this.from1;<br />
            }<br />
        }<br />
<br />
        private void main_Load(System.Object sender, System.EventArgs e)<br />
        {<br />
            this.FFrom1();<br />
        }<br />
<br />
        <br />
internal void FFrom1()<br />
        {<br />
            this.From1.Visible = true;<br />
        }<br />


this is my code

i use visual C# 2005
and offcourse writing in C#

can anyone help me?
AnswerRe: problems with panals Pin
Robert Rohde30-Apr-06 21:50
Robert Rohde30-Apr-06 21:50 
GeneralRe: problems with panals Pin
Rmokkenstorm30-Apr-06 21:53
Rmokkenstorm30-Apr-06 21:53 
GeneralRe: problems with panals Pin
Robert Rohde30-Apr-06 22:06
Robert Rohde30-Apr-06 22:06 
GeneralRe: problems with panals Pin
Rmokkenstorm30-Apr-06 22:21
Rmokkenstorm30-Apr-06 22:21 
GeneralRe: problems with panals Pin
Robert Rohde30-Apr-06 22:25
Robert Rohde30-Apr-06 22:25 
GeneralRe: problems with panals Pin
Rmokkenstorm30-Apr-06 22:37
Rmokkenstorm30-Apr-06 22:37 
GeneralRe: problems with panals Pin
Robert Rohde1-May-06 2:48
Robert Rohde1-May-06 2:48 
Questionwindows application Pin
virz30-Apr-06 20:02
virz30-Apr-06 20:02 
AnswerRe: windows application Pin
_mubashir30-Apr-06 20:55
_mubashir30-Apr-06 20:55 
GeneralRe: windows application Pin
Colin Angus Mackay30-Apr-06 21:02
Colin Angus Mackay30-Apr-06 21:02 
GeneralRe: windows application Pin
_mubashir30-Apr-06 23:57
_mubashir30-Apr-06 23:57 
AnswerRe: windows application Pin
Colin Angus Mackay30-Apr-06 21:02
Colin Angus Mackay30-Apr-06 21:02 
QuestionNeed help....! Pin
samjlk30-Apr-06 19:53
samjlk30-Apr-06 19:53 
AnswerRe: Need help....! Pin
Robert Rohde30-Apr-06 21:52
Robert Rohde30-Apr-06 21:52 
GeneralRe: Need help....! Pin
samjlk30-Apr-06 22:32
samjlk30-Apr-06 22:32 
QuestionTwo Questions About Web UI Automation Pin
WaleedH30-Apr-06 19:31
WaleedH30-Apr-06 19:31 
QuestionProblem with Designer Serialization Pin
kamran6553630-Apr-06 16:57
kamran6553630-Apr-06 16:57 

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.