[]
You can add a background image to the C1TopicBar control using the BackgroundImage property. In this topic, you will learn to set this property using the Properties window and code.
Complete the following steps:
Your background image is added to the C1TopicBar control.
Complete the following steps:
Navigate to the Toolbox and double-click the C1TopicBar icon to add the C1TopicBar control to your form.
Double-click the empty portion of the form to open Code view. Notice that a Form_Load event handler has been added to Code view.
Set the background image by adding the following code (replacing C:\YourImage.jpg with your own path and image name) to the Form_Load event:
To write code in Visual Basic
c1TopicBar1.BackgroundImage = System.Drawing.Image.FromFile(“C:\YourImage.jpg”)
To write code in C#
c1TopicBar1.BackgroundImage = System.Drawing.Image.FromFile(@”C:\YourImage.jpg”);
Press F5 to build the project.
In this topic, you learned how to add a background image using the Properties window and code. The following image depicts a C1TopicBar control with a custom background image.