Skip to content

Example SplitContainer code contains errors #1228

@sminhinnick

Description

@sminhinnick

Hi,

In the page's code example I think splitContainer2 should be splitContainer1, in the following code:

// Set properties of first SplitContainer control.  
splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;  
splitContainer2.TabIndex = 1;  
splitContainer2.SplitterWidth = 4;  
splitContainer2.SplitterDistance = 150;  
splitContainer2.Orientation = Orientation.Horizontal;  
splitContainer2.Panel1.Controls.Add(this.listView1);  
splitContainer2.Panel1.Controls.Add(this.richTextBox1);  

Please make the correction, thanks.

Regards,
Stephen Minhinnick
Auckland, New Zealand


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions