How to use RCM theming Library for C# Winform Application - c#

I have Downloaded the RCM Library from http://www.codeproject.com/KB/cs/RCM.aspx but i don't know how to add the controls that it provides to c# toolbox or how to use the custom form it provides.Guys Plz Help me Out.

One of the solutions can be derive every control you need with your own class inside your project . After rebuild you SHOULD see them in toolbox.

Related

How can I use RichEdit20W Control in c# windows application?

Can someone help me with how to use RichEdit20W control in C# desktop application? I have a sample of how to use it in VC++ but I do not know how to implement in C#.
You create an empty WindowsForms project, open the Toolbox and type 'Rich' into its search box. It will find 'RichTextBox'. You double-click it, to put it onto the form. Then you set its properties, as appropriate.
When you run the application, and then use SpyXX on it, you will see, that the control is using the class 'WindowsForms10.RichEdit20W.app.0.141b42a_r13_ad1', which is a wrapper for the class you wanted.

Inheriting Existing ActiveX Control

I am currently working with a 3rd party ActiveX Control (an editor for topographical data distributed by Cadcorp SIS). I have to do some fairly complex stuff with it in a VB.NET (framework 4) program and am finding that the API that comes with the control is quite limited.
As of now I have made a custom control which houses the control and acts as a wrapper for it to allow me to extend the API, which works fine, but What I would really like to do it give the control more events so that I can monitor what is going on with the data more closely.
I'm not sure how to go about doing this though...
I tried inheriting from the control and I can extend it just fine, but I can't figure out how to reuse it after that. Is there some way I can inherit the control and get it to appear in the toolbox so I can just drop it onto a form? Or do I have to load it programatically? If so, how can I do it?
Any pointers, examples, tutorials or alternative ideas as to how to do this kind of thing would be welcome.
If you are not seeing your control class in toolbox it doesn’t mean that you can’t use it just modify code from your form's designer to use your inherited class
Or
You can drag-and-drop your assembly (dll) from Windows Explorer to the
toolbox in VS.NET. Or you can right click on the toolbox in VS.NET and
choose Add/Remove items. Is this what you are looking for?
Also
<ToolBoxItem(True), ToolboxBitmap("MyNamespace.MyClass.bmp")> _
Public Class MyClass

Is there any DataGridView Like control in MFC

I want to create a Database application in MFC by using VS 2010 and i want to know is there any [.NET Winforms] DataGridView Like control in MFC.
You can check this link to see how you can create MFC control from WinForms Control. Also here is the discussion about the issue.
As far as I know there is no built in solution from Microsoft. You will need to roll your own. There are some pre-built solutions but I have never tried them.
https://www.google.com/search?q=MFC+datagrid&aq=f&oq=MFC+datagrid

Create own toolbox element in VS 2012 .Net-Framework 4 (c#)

is there any possibility to create your own button as toolbox element (for other projects) in Visual Studio 2012 (version 11.0.50727.1)?
I just need a button (like the button from iTunes) for another project. (Tutorials are also welcome).
WPF
Since this ended up being Wpf, I believe the easist way to go would be to create a WpfControlLibrary that is used for UserControls that way it would be easier for you to customize the look and feel of your Button. It can also be added to your ToolBox by right clicking on your ToolBox and Selecting Choose Items then Select WpfComponents and Browse to your Dll.
See these Links:
http://msdn.microsoft.com/en-us/subscriptions/bb514641.aspx
What is the difference between a User Control Library and a Custom Control Library?
http://msdn.microsoft.com/en-us/library/system.windows.controls.usercontrol.aspx
You will need to create a custom control for your button and compile it into a separate dll. Then add this control from this dll to the toolbox.
See for example here: http://dhavalupadhyaya.wordpress.com/2008/07/20/how-to-add-custom-control-in-visual-studio-toolbox/
I'm assuming you are talking about a WPF button. If it's for one extra project, you are perhaps best off creating a button style in a seperate XAML resource file and reusing that file in the second project. If you need to create a reusable control to the extent that you need a button for it in the VS toolbox, then see here: http://msdn.microsoft.com/en-us/library/ee712573.aspx

Writing Control in Windows phone

I am trying to create a new Control (Let us for now forget about UserControl or CustomControl).
I open a Windows phone Application project in vs2010 and then add a new item Windows phone Control Library and then I use it in my phone application.
Everything works fine. Now if I want to create a windows phone control to be used in another application how should I be going about it? New application means a separate new solution.
Phone Application1 -> Have my own control inside the solution and hence I am able to use it.
How can I use this same control in another new solution?
I am not sure if this has been answered before. Does any solution already exist?
Cavet:
I tried creating a new Windows phone Class Library in a vs2010 instance but it didn't work because it didn't had a xaml form. When I tried to manually include it and write the logic it build successfully but now even if I include the dll of this project I don't get the control in the toolbox. This process does not make much sense to me as I am creating a class library and not a control but still wanted to give it a try.
To show controls from your assembly in the toolbox, you should do design-time assembly. You can look at these articles for the beginning:
Link2
Link1
It's not easy and perhaps you can live without that if your control assembly is not a commercial product. To use any control from other assembly in application:
add project reference to your control assembly
include xmlns namespace attribute corresponding to your assembly to any page of your application. Just start typing 'xmlns=' near other xmlns definitions in the page header and VS intellisense will show you the list of available namespaces. Choose the needed one and then set namespace alias to use on the page. It should look something like xmlns:myNamespace="clr-namespace:MyAssembly.Namespace.;assembly=MyAssembly"
insert control from your assembly into page using xaml editor
now you should be able to see your control in xaml designer and edit its properties from the property grid
.
I am not sure if the above mentioned method would solve the case, because as far as I have seen it is not possible to create a Windows Phone Control Library in VS2010. So this is what I did..
Created a Windows Phone Control Library and write my own custom control.
Build the project.
Back to Vs2010, added the reference to the control in the app in which I wish to use.
As simple as that. I don't know why it was initially a little bit confusing (perhaps I would have got confused with the binding and stuff). Anyways its quite simple though. Thank you for the reply.

Categories

Resources