I want to know how to change the Tab Control style - c#

I'm playing around with C# and I'm using the TabControl, I would like to know how can I change the "looks" of the default tabcontrol from this:
to something "smoother" and nicer, something like this perhaps
How would I do this ?
at the moment I'm using Windows Forms Application

It's not possible to customize the tab control in Windows Forms Application.
You will have to create your own control..
Refer to here to get started

You can use Metroframework for changing style of tabs,buttons,progressbars and etc.

Related

How to create a custom button for Windows Store app?

I want to make a custom button in shape of a picture with C# for a Windows Store App?
Is there a way to do that from xaml? So far I've made a button and assigned a circle as a background image, but the problem is that even if I click outside the image the button works.
Also I do not believe that Image class has an event for click unfortunately.
I just recently implemented the WinRT XAML toolkit and it works wonder for me. It has an imagebutton control that might do what you want to do. http://winrtxamltoolkit.codeplex.com/
With the help of google: Walkthrough: Create a Button by Using XAML
You should have a look into Expression Blend. You can do all manualy in the XAML-Code but Blend is a huge help if you like to customize your project look and feel. Look at the MSDN-Examples.

How can I make the mainMenuStrip look glossy in a Windows forms application

I'm trying to make a nice looking UI with Windows Forms but the main problem I have is that the MenuStrip in Windows Forms looks flat. In WPF everything is shiny and pops out, how can I make it so that it looks like that? I tried using a gradient background image but the buttons stayed as blue rectangles. I am also willing to use an alternative control. Any ideas?
I forgot to mention, regarding alternative controls I am looking for something free and open-source.
My personal suggestion would be that you move from menustrips to "Office-like" menus / ribbons.
Please go through the following links / search through these sites
for more custom controls for winforms
Code Project
http://www.codeproject.com/Articles/12204/Flat-style-menu-bar-and-popup-menu-control-for-Win
Windows Ribbon for WinForms (Part 1-21)
http://www.codeproject.com/Articles/62412/Windows-Ribbon-for-WinForms-Part-1-Introduction
Code Plex
http://ribbon.codeplex.com
http://fluent.codeplex.com
http://windowsribbon.codeplex.com

Creating a Console like UI in Windows Forms

Hi I'm trying to create a console like interface using a richtextbox in WinForms using C#.
The reason why I am using a richtextbox is I want a few features such as selection,copy-paste that are not present in a normal console application.
I was wondering if it was possible to change the blinking cursor from the blinking "|" to a blinking "_"
Even if I could hide the original "|", I could then implement a functionality on the onchange event of the richtextbox to display the blinking, "_"
I also had another related question, but I don't know if I should put that here as well.
Also, if it will be easier to implement something like this using WPF, I'm willing to move.
You need to change your RichTextBox's caret. Take a look at this: Custom Caret for WinForms richtextbox
have a look at this Command Prompt Control
May be this one will suite for your need
http://www.codeproject.com/Articles/42490/Using-AvalonEdit-WPF-Text-Editor

How to custom tabcontrol like preference of Dropbox in Windows Form?

I want to custom tabcontrol in windows form like preference of Dropbox.
Please help me, thanks.
You shouldn't use winforms for this, have a look at WPF, you should be able to achieve this through creating your own style.
http://msdn.microsoft.com/en-us/library/ms754130.aspx
http://wpftutorial.net/Styles.html
You can use TabControl.ImageList property. You will be able to add images to each tab. But I'm not sure if you will be able to achieve exactly the same result as your screenshot shows. If not, and the result is not acceptable, you can use panels and picture boxes - you can hide/show each panel when user clicks appropriate picture box.
[Edit] You could also draw tabs on your own but it would require a lot of additional work.

Custom look for C# windows applications

I'm making C# windows application ("Windows Forms Application") with default components, but I need to change default look of the form and all items on it (buttons, etc.) from classic windows style, to custom. How can I achieve it?
For example make buttons round, add transparency to some objects, make other objects with different shape, and so on.
It doesn't have to be customizable, but I just need to change it from default to something else. Maybe there's some components or something else that I can use? Or maybe there's additional GUI library that I can download and add to the project?
You didn't provide us with many details on how you want to customize the form.
You can change colors used on the form by setting the BackColor and ForeColor properties.
You can also apply background image to the form and use the TransparencyKey property in order to create a form with an irregular shape. More information about this method can be found here: http://msdn.microsoft.com/en-us/library/6k15y9et.aspx
Doing this manually and trying to have something looking nice takes waaay too much time. For start, look at this thread:
Best Free Controls for .NET

Categories