Windows Forms Application C# Style - c#

I am developing a Windows Form Application in Visual Studio 2008 (C#)
And I want to add Style to the items.
I have been investigating a few ideas about it but I have not found an example about how to do it. Is it really possible?
My app looks like:
But I really want to add more style in buttons, textboxs and other items I have:
My boss insists on using Visual Studio 2008.

To do this without purchasing anything else, you could create your own custom button and text box controls, either from scratch or as controls derived from the existing windows forms controls and then overriding OnPaint etc. Take a look at what's been done here:
http://dotnetrix.co.uk/button.htm
You could also investigate third party options.
Or, use WPF if that's a possibility as others have said. I'd push for WPF! If there's an existing WinForms Code base you can always host WPF Elements in WinForms. See:
Walkthrough: Hosting a Windows Presentation Foundation Control in Windows Forms

IF you wana to use Winforms than you have to buy this one for example:
http://devcomponents.com/
You have to bind the new assemblies in your application that is not a lot of work!
But better way do that with WPF
http://wpftutorial.net/DataGrid.html

Related

Using Controls and Components of Visual Studio in my application

I'm currently trying to find out, if (also legally) I can use the components of Visual Studio in my applications. I don't mean the controls that are delivered to create my application, like a Button.
I mean the PropertyGrid, the Text Editor, etc, that VS also uses internally in the VS application itself.
The PropertyGrid would be especially interesting because the old winforms PropertyGrid can only be used with WindowsFormsHost, but using the old technolgy is also causing troubles when using windows with transparency, etc.
My questions are:
Am I allowed to do it?
Can you please provide me with an example of how to do that?

Integrate WinForms project into WPF

I've been working on a project for some time, and it requires alphablended non rectangular forms...
which in a little research I found can be easily done in WPF. So I decided to port my project from WinForms to WPF.
There are a few complications like a reference DLL based on WinForms I've been using doesn't work under WPF; it doesn't even show in the designer toolbox. I already tried loading it into the toolbox by right clicking and selecting Choose Items.., but it does not show there either.
I have never worked on WPF before, but it looks so promising for my requirements.
So is there anything I could do to integrate my project into WPF?
There is a control named 'WindowsFormsHost' in WPF. You can find it in toolbox. Drag it on the form and then you can use windows controls and user controls on it.
Hope this information will help.

C# Control Name

I have two questions.
I am usinq Devexpress Winforms
What is the name of control of the
Visual studio toolbox.I wanna add a
control list like visual studi
toolbox.What is the name?
How can I add the flow chart to my
c# project?
For Dev Express, I would perhaps try something like the XtraNavBar:
Windows Side Bar Control
For a flow chart, I don't think Dev Express has a C# winforms flow chart right now.
See comments from Dev Express
#Deneme, The style of control that you see as the Visual Studio Toolbox is called 'an accordion control'. There is not one in the standard forms toolset, but it is not too difficult to build your own out of buttons & panels, and you can tailor it to your own needs and situation.
As for your second question about adding a flow chart, I am not aware of a single tool that you can drag and drop on to a form and set your users loose, but again, it should not be too difficult for you to create panels & buttons to create your own. Depending your needs you may be able to use some pieces of the Office Developers Toolkit to help you get there.

WPF form displaying as winform

Sorry this is probably a really silly question but I am developing a WPF form on a Windows 7 machine with VS2010 yet when running the application the form still looks like a standard WinForms window.
I am assuming that it requires an extra component installed on the system to be displayed as shown in the designer?
PS: To be more specific what I am referring to is basically the outline and border.
No, what you are experiencing is totally normal. Unless you have altered the default style of your controls, your application will be drawn using windows default look and feel.
That border is just for design purposes. But you could add your own Border to recreate it during runtime.

Dockable autohiding panel control for Windows Forms

I'm creating a Windows Forms application and I'd like to have a similar look and feel to SQL Server's Management Studio, i.e. a nice autohiding and dockable panel on the left.
A similar control is Visual Studio's "Toolbox".
What sort of control is Management Studio's Object Explorer? And where can I get one? I'm using .NET 3.5 on the Windows Forms project.
Thanks
-Matt
The Base Class Library doesn't provide this type of control. You can do some things to make windows that looking like those (changing the borderstyle) or having docking panels, but the autohide/movable docking/etc capabilities are beyond those of the BCL.
Many third party solutions are available for purchase, though.
Here are five fairly common ones:
Devexpress XtraBars
Telerik RadDock
Actipro UIStudio Docking
Infragistics WinDockManager
Janus UIPanelManager
Here's an open source version I've found to be really good.
http://sourceforge.net/projects/dockpanelsuite/

Categories