By default, the color of the C1SplitContainer border is determined by its visual style; however, you can change the color of that border using the BorderColor property. In this topic, you will learn how to set the BorderColor property in design view and in code.
Complete the following steps:
Complete the following steps:
Visual Basic
Visual Basic |
Copy Code
|
---|---|
Imports C1.Win.C1SplitContainer |
To write code in C#
C# |
Copy Code
|
---|---|
using C1.Win.C1SplitContainer; |
Visual Basic
Visual Basic |
Copy Code
|
---|---|
Private Sub Form1_Load(sender As Object, e As EventArgs) 'create new splitcontainer Dim split As New C1SplitContainer() 'set splitcontainer border color to black split.BorderColor = Color.Black 'add the splitcontainer Controls.Add(split) End Sub |
To write code in C#
C# |
Copy Code
|
---|---|
private void Form1_Load(object sender, EventArgs e) { //create new splitcontainer C1SplitContainer split = new C1SplitContainer(); //set splitcontainer border color to black split.BorderColor = Color.Black; //add the splitcontainer Controls.Add(split); } |
The image below shows the C1SplitContainer with a black border.