Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
GeneralRe: Having a strange problem... Pin
leppie20-Aug-06 11:25
leppie20-Aug-06 11:25 
GeneralRe: Having a strange problem... Pin
Anthony Mushrow20-Aug-06 12:56
professionalAnthony Mushrow20-Aug-06 12:56 
GeneralRe: Having a strange problem... Pin
Anthony Mushrow20-Aug-06 12:59
professionalAnthony Mushrow20-Aug-06 12:59 
GeneralRe: Having a strange problem... [modified] Pin
beatles169220-Aug-06 20:09
beatles169220-Aug-06 20:09 
GeneralRe: Having a strange problem... Pin
Anthony Mushrow21-Aug-06 3:58
professionalAnthony Mushrow21-Aug-06 3:58 
GeneralRe: Having a strange problem... Pin
Anthony Mushrow21-Aug-06 5:54
professionalAnthony Mushrow21-Aug-06 5:54 
Questionhorizontal splitter Pin
balkang20-Aug-06 0:57
balkang20-Aug-06 0:57 
AnswerRe: horizontal splitter Pin
Nader Elshehabi20-Aug-06 1:13
Nader Elshehabi20-Aug-06 1:13 
Hello

I don't use VS2003 yet i think the splitter control should work fine for you -not the splitcontainer control-.

This code is copied from MSDN documentaion with some modifications to make the splitter horizontal as you asked:

private void CreateMySplitControls()
{
    // Create TreeView, ListView, and Splitter controls.
    TreeView treeView1 = new TreeView();
    ListView listView1 = new ListView();
    Splitter splitter1 = new Splitter();

    // Set the TreeView control to dock to the left side of the form.
    treeView1.Dock = DockStyle.Bottom;
    // Set the Splitter to dock to the left side of the TreeView control.
    splitter1.Dock = DockStyle.Bottom;
    // Set the minimum size the ListView control can be sized to.
    splitter1.MinExtra = 100;
    // Set the minimum size the TreeView control can be sized to.
    splitter1.MinSize = 75;
    // Set the ListView control to fill the remaining space on the form.
    listView1.Dock = DockStyle.Fill;
    // Add a TreeView and a ListView item to identify the controls on the form.
    treeView1.Nodes.Add("TreeView Node");
    listView1.Items.Add("ListView Item");

    // Add the controls in reverse order to the form to ensure proper location.
    this.Controls.AddRange(new Control[]{listView1, splitter1, treeView1});
}


So, you add a splitter, and dock the other control to bottom -or top-, then dock your splitter like it, and the other control that will be in the other pane should be docked as fill or as the opposite direction.

RegardsRose | [Rose]
GeneralRe: horizontal splitter Pin
balkang20-Aug-06 1:40
balkang20-Aug-06 1:40 
QuestionChekers game Pin
Shanak6919-Aug-06 23:01
Shanak6919-Aug-06 23:01 
AnswerRe: Chekers game Pin
Nader Elshehabi19-Aug-06 23:20
Nader Elshehabi19-Aug-06 23:20 
Questionlistview scrolling Pin
Green Fuze19-Aug-06 22:49
Green Fuze19-Aug-06 22:49 
AnswerRe: listview scrolling Pin
Nader Elshehabi19-Aug-06 23:25
Nader Elshehabi19-Aug-06 23:25 
GeneralRe: listview scrolling Pin
Green Fuze20-Aug-06 1:10
Green Fuze20-Aug-06 1:10 
QuestionOleDbCommand - Command Error Pin
Mike Jeferson19-Aug-06 22:23
Mike Jeferson19-Aug-06 22:23 
AnswerRe: OleDbCommand "Command Error" Pin
beatles169219-Aug-06 23:00
beatles169219-Aug-06 23:00 
GeneralRe: OleDbCommand "Command Error" [modified] Pin
Mike Jeferson19-Aug-06 23:17
Mike Jeferson19-Aug-06 23:17 
AnswerRe: OleDbCommand - Command Error Pin
Nader Elshehabi19-Aug-06 23:54
Nader Elshehabi19-Aug-06 23:54 
QuestionZooming Pin
Aslam Bari19-Aug-06 19:43
Aslam Bari19-Aug-06 19:43 
AnswerRe: Zooming Pin
Dave Kreskowiak19-Aug-06 20:43
mveDave Kreskowiak19-Aug-06 20:43 
QuestionHow to check if I am using VStudio 2003 or 2005 (or .net 1.1 or 2.0) in C# Pin
hongheo7619-Aug-06 18:41
hongheo7619-Aug-06 18:41 
AnswerRe: How to check if I am using VStudio 2003 or 2005 (or .net 1.1 or 2.0) in C# Pin
Dave Kreskowiak19-Aug-06 20:41
mveDave Kreskowiak19-Aug-06 20:41 
AnswerRe: How to check if I am using VStudio 2003 or 2005 (or .net 1.1 or 2.0) in C# Pin
Stefan Troschuetz19-Aug-06 22:33
Stefan Troschuetz19-Aug-06 22:33 
AnswerRe: How to check if I am using VStudio 2003 or 2005 (or .net 1.1 or 2.0) in C# Pin
Mircea Grelus20-Aug-06 1:14
Mircea Grelus20-Aug-06 1:14 
AnswerRe: How to check if I am using VStudio 2003 or 2005 (or .net 1.1 or 2.0) in C# Pin
Mircea Grelus20-Aug-06 1:20
Mircea Grelus20-Aug-06 1:20 

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.