Hope some1 here knows why I am missing these properties....
If I take a look at http://msdn.microsoft.com/en-us/library/system.windows.controls.richtextbox.aspx
this definitly shows a property called VerticalContenAlignment - IntelliSense doesn't propose this property and if I just type it, the compiler also rejects it.... The Project is runnign on .NET 4 so it should confirm to the above link where it says these are the .NET 4 characteristics...
Any idea why I am missing these properties?
Thanks for any help!!!
-EDIT: Ok I guess I have the reason:
The link above lists properties for System.Windows.Controls.Richtextbox, I have a System.Windows.Forms.Richtextbox ...How can I combine this now thoug? any why are there 2 different ones? Sorry if its a stupid question - I'm just not getting it right now...
The new component you would like to use is for WPF projects, the standard RichTextBox for Windows forms is another control and you cannot mix them. Either you do not use the new property and you live with what the Windows Forms component offers you or you use a third party component to achieve what you need.
Related
Ive been working on a C# project for a while now and I fell it needs change its look.
I have found a UI kit that I really like, which can be seen below:
http://medialoot.com/item/transparent-ui-kit/
Does anyone know how to do this?
Thanks
EDIT: Im using WinForms
EDIT2: Maybe I should convert over to WPF? Is this doable?
You can subclass most common controls and draw their appearance yourself. However, unless for novelty applications I doubt your users will thank you for doing so.
Your example is a library of controls. For you to have an appearance such as that you'll have to create or acquire a similar library of controls and replace all your controls in your project to get that appearance.
If you want to update colors (background, foreground, etc.) and such you can make a class that recurses through controls and sets the settings using reflection and a switch statement to process each control. Then just run this on each form before you show it. One word of caution about this, some controls don't respect your changes and get overridden with themes from the OS (datetimerpicker being the biggest culprit). You'll also need to consider whether your users will appreciate the extra work put in for color/appearance changes.
If you don't have very good design skill and have a good know how about creating such templates, its better to buy them.
And C# is just a language. You're looking to create templates and skins for either for ASP.NET website/application or for windows forms.
Have a look at DevExpress Skins
If you can afford it.
How does Visual Studio and other similar programs display a form in their IDE?
Is it possible to achieve the same or a similar effect using C# or VB.NET?
Please see the picture below to get what I mean.
If you are talking about hosting a Winforms editor in your code, it is entirely possible and is actually built in to the .NET framework!
The Essence is the IDesignerHost interface. The whole system is complicated, but can be done (I have done it in production code for runtime layout configuration editing). There is a sample of code from Microsoft here.
I'm sure if you search fir 'IDesignerHost' you'll find enough reference material to figure it out.
Are you speaking about UI creating tools?
Refer to http://www.icsharpcode.net/opensource/sd/ - SharpDevelop for deep dive. It's open sourse, so you'll be able to find out more details.
I believe what you want is a multiple document interface (MDI) see http://msdn.microsoft.com/en-us/library/ms973874.aspx for more info.
I need to create an interface similar to this mock-up (sorry, drawing is not my thing). It was impossible for me to create " the component" in the second column, the one with the link-buttons and and the formatted text. Is there any way to do this or some third-party component to do something similar?
The mock-up
This should be easily possible using Template Field (this is assuming that you are talking about ASP.NET application)
I think that you're looking into the DataRepeater control
It is part of the VIsual Basic Power ToolPack but it is a .net control so it will work from C# as well.
Here is a detailed video showing an example of almost exactly what you're trying to accomplish.
http://windowsclient.net/learn/video.aspx?v=30534
I'm new to C# and I've been trying to design my own program for a while now. I came a across a control named Property Grid, it suits me perfectly and aftering Googling, I managed to find how to split up the various properties into catagories using attritubtes.
But I cannot find any information on adding sub-catagories to another catagory. Can anyone shed light on this subject? Thank you.
The PropertyGrid control doesn't support "nested" categories. Is there something in particular that you're trying to do (e.g. another application that you've seem which implements the functionality that you're trying to achieve) and maybe we can steer you in the right direction...
I am trying to create a winForms user control. But I want would like a User control that - when placed on the form -- doesn't take any form space. Instead, it lodges itself nicely below like OpenFileDialog does.
First, what kind of user-created thing is this? Is it still called a "user control"? If not, that may explain why all of my searches are in vain. Secondly, what object do I need to start with to create something like this?
A gentle shove in the right direction would be VERY appreciated.
Thanks.
--Jerry
Controls that appear in the "component tray", like the Windows Forms Timer control, inherit from Component.
To create one with some automatic boilerplate code, right-click on a project and click Add... | Component
I believe you're talking about creating a Component.
Okay... I KNEW that... I feel an inch tall now.
I would love to retract the question and hide my stupidity, but I think I'll leave it up for everyone else who may be asking the same question and just need a gentle reminder, too.
Thanks for the whack on the noggin!!