Code Monkey home page Code Monkey logo

krypton's Introduction

Effective C#

Learn and keep up to date on all things C# by checking out my YouTube channel Effective C#

Krypton Suite of .NET WinForms Controls

The Krypton Suite of .NET WinForms controls are now freely available for use in personal or commerical projects.

I developed and sold them from my company Component Factory from 2006 until 2014, when the lack of sales meant selling the controls was no longer viable. So I decided to make them open source so that .NET developers had a good set of free controls to use in their projects. Full source code for all the controls and components is included along with Visual Studio projects and solution files.

Getting Started

Bin directory contains already compiled copies of all the example projects and the Krypton assemblies, so I recommend you start by running the Krypton Explorer application in this directory. It lists all the controls along with example applications used to show them in operation.

Documentation

Help directory contains a KryptonHelp.chm file that can be double clicked to open the documentation. I recommend you read this before developing using the Krypton controls.

Using with Visual Studio

  • Start Visual Studio and create/open your Windows Forms project
  • Open the main Form of your application and show the Toolbox
  • Right click the Toolbox and Add Tab, give it the name Krypton
  • Right click inside the new tab and select Choose items
  • Click Browse and go to the Bin directory, and select all the ComponentFactory.Krypton... assemblies
  • Select OK and now you have them all in the Toolbox!

Source

Source directory contains the full source code that you can view, modify and directly compile. The Krypton Components sub-directory contains all the actual controls, the other directories are for the myriad example projects.

Krypton Toolkit

49 basic controls with full and consistent theming.

Krypton Ribbon

Office style ribbon control.

Krypton Docking

Drag and drop just like Visual Studio.

Krypton Navigator

A TabControl but so much better.

Krypton Workspace

Organize the client area of your application.

krypton's People

Contributors

componentfactory avatar datagram7 avatar gliwka avatar saleyn avatar wagnerp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

krypton's Issues

Device context handle not released

Hello,

i get sometimes an exception when the system is suspendend or hibernated:

System.InvalidOperationException: The object is currently in use elsewhere..
bei System.Drawing.Graphics.GetHdc()
bei System.Drawing.BufferedGraphics.RenderInternal(HandleRef refTargetDC, BufferedGraphics buffer)
bei System.Drawing.BufferedGraphics.Render()
bei System.Windows.Forms.Control.WmPaint(Message& m)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.PropertyGridInternal.PropertyGridView.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

which may link to some not released device context handle. It occurs very sporadically.

Regards
Martin

How about the license now?

I know it's a great component. Now is that open source for all user and no any limit? or still a commercial product we need to pay?

Documentation?

First, let me say this is a really awesome toolkit! Thanks for making it available.

Is documentation available in PDF or online.... or better, able to be installed into VS2015? I have found the CAB file that contains the mshc file but don't know how to use it. Is there a corresponding manifest file somewhere? Any help will be appreciated!

Publish to Nuget

Hi there! Great project, used it for years in a project. Thanks for the effort and opening to OSS.

Question: Would you agree/accept a pull request for a build pipeline (AppVeyor) for a/several nuget packages?

What should be defined:

  • which artifacts to consolidate into separate nuget packages
  • create develop branch to separate
  • automatic versioning convention/definition
  • automatic release notes at build time

Alternatively official releases could be built and published here on nuget.
I think the discoverability and usability would be much greater.

Help file not working.

Hi.

After open a chm help file, I cant see the pages content. I see white blank page on all of the topics. I use Windows 10 Professional.

2017-03-10 15_32_08-poczta

2017-03-10 15_31_41-poczta

Please help me to resolve this problem.

Best Regards
Bartłomiej Ekiert

KryptonForm not work

Hello Phil,

First of all I would like to thank you for making this amazing tool available to developers.

I'm having trouble using it, I've been trying for 5 days and I can not do it.

Could you kindly help me and everyone who has not been able to make KryptonForm work to use the tools so far?

thx

Need a Krypton TabControl based on Windows Forms TabControl.

Hi.

I need insert TabControl to a Form, but the design of them is not accepted. The Windows Forms TabControl can't change color for tabs.

Can you add TabControl control to this library based on Windows Form Control and extend it to cooperate with Krypton themes?

Best Regards
Bartłomiej Ekiert

Inherit KryptonRibbonTab

Hi,

i have 5 KryptonRibbonTab (Tab1 - Tab5). Is it possible that Tab2-Tab5 inerhits from Tab1?

How do we recompile in Visual Studio

Hi,

I'm trying to convert the entire suite to use the .NET 4.7 Framework instead of the .NET 2.0 version. However I'm receiving errors in reference to the gacutil.exe -a command. Can anyone assist with this?

KryptonDockableWorkspace: WorkspaceCellEventArgs add parameter Cancel

I did not find how to disable the Close button in KryptonDockableWorkspace
In this situation, it seems to me that such a standard method will be useful:
VB.NET code:

Private Sub kryptonDockableWorkspace1_WorkspaceCellRemoved(sender As Object, e As WorkspaceCellEventArgs) Handles kryptonDockableWorkspace1.WorkspaceCellRemoved
    e.Cancel = True
End Sub

Well, or then let me disable this button type:

   Dim w As KryptonDockingWorkspace = kryptonDockingManager1.ManageWorkspace(kryptonDockableWorkspace1)
   w.CloseButton.Visible = False

or

   Dim ctrl = page.Controls
   ctrl.CloseButton.Visible = False

But it's better, of course, to put this in:

   Dim p As New KryptonPage()
   p.Controls.CloseButton.Visivble = False

To reflect one window had a Close button and others either did not have access, or did not display it at all ...

Well, or something in this concept

Thank you in advance!

Design time bug

Identified bug whereby controls do not appear on the form, instead they appear on the area where the timer, background worker, dialog controls appear. Did try gacutil with no success. See screenshot attached for visual detail.

krypton bug

Did have a deep look at the source code for the toolkit, but couldn't find anything glaring at me.

VS2015 and Windows 10

I used the same install procedure in the readme.md on Windows 10 exactly like I did on another computer with Windows 7 but can't get the controls to work in the Designer.

The problem is if I try to put a visual control (e.g. CheckButton) on a form it shows up on the bottom under the form as a non-visual component.

Anyone using the Krypton Toolkit under Windows 10?

Is it possible to keep chrome enabled and prevent the custom style of the base palette?

We use the Office 2010 Palette for our Krypton controls. Moving forward, we want to use the standard windows frame. This can easily be done by disabling chrome, however the ribbon has extra space between it and the top of the window. I notice that the ribbon examples has standard window frames with chrome enabled. I couldn't figure out how it is done in the example. Any guidance would be appreciated.

KryptonPanel Paint Event not working

As title says, not working.

I even tried creating a CKryptonPanel inheriting from KryptonPanel in an OnPaint and it STILL did not work.

Is this a bug or something or am I somehow doing something wrong?

My current OnPaint has the following lines in it.
SetStyle(ControlStyles.DoubleBuffer, true);
SetStyle(ControlStyles.ResizeRedraw, true);
SetStyle(ControlStyles.Selectable, true);
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
SetStyle(ControlStyles.UserPaint, true);

Normal .net Framework Panel.Paint works fine, but I want to use KCF since they have more customization options.

KryptonDockingManager, how to disable tabbed view?

I have a window with a KryptonDockingManager andI can add pages on it, I want to disable (in some cases) the ability to float and dock to sides the pages, I know how to avoid floating, but I don´t know how to avoid docking to sides.

Thanks.

Activex

Good evening,

I would need the ocx versions of the dll.
Is it possible ?

Many thanks
Luigi

Using KryptonForm

Hello there,

I'm having a little difficulty with my Krypton installation.

I've managed to install the Krypton Components into the GAC as per the instructions - the controls all work as expected, no problems there. I remember the old Krypton installer put a Krypton Form template into the New Project dialog, but this obviously doesn't happen now.

How would I go about changing the default form style from the Windows look to the Krypton look? I'd like my project to look uniform, and having the default Windows style ruins the effect for obvious reasons!

I understand from the help file that one must inherit from KryptonForm as opposed to Form. I see from other Krypton projects I have found that the MainForm is found in ComponentFactory.Krypton.Toolkit.KryptonForm, but I just can't work out how to load it!

Any help with this would be much appreciated - it is highly frustrating!

Kind regards,
~Ed

Installing in VS 2013 or Later - How To

Hi, I thought i would write this to help people install and use the Krypton Suite within Visual Studio 2013 and Later.

  1. Download Krypton Suite
    https://github.com/ComponentFactory/Krypton/tree/2013

  2. Unzip to a location on your HDD. Navigate to the "Bin" folder and create a new folder "controls VS 2013". copy all 6 Krypton dll files to the new folder, Note: Only copy DLL's from Bin Folder.

Krypton.Design.dll
Krypton.Docking.dll
Krypton.Navigator.dll
Krypton.Ribbon.dll
Krypton.Toolkit.dll
Krypton.Workspace.dll

  1. Create a new folder in programs folder -
    C:\Program Files (x86)\Component Factory\Krypton Toolkit 4.5.0\Bin

  2. Copy the dll folder you created earlier into the "Bin" folder,
    C:\Program Files (x86)\Component Factory\Krypton Toolkit 4.5.0\Bin\controls VS 2013\

  3. goto: Start >> All Programs >> Visual Studio 2013 >> Visual Studio Tools
    right click "Developer Command Prompt for VS2013" run as Administrator.

  4. change directory as follows (note: edit the SDK version folder to what you have installed, this
    example uses " \v8.1A\ "as seen below.)

    paste in command window
    cd C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\

  5. Paste the following one at a time then press enter. This will register the components in the
    Assembly Folder. You will be notified the assembly has been successfully installed.

gacutil.exe -i "C:\Program Files (x86)\Component Factory\Krypton Toolkit 4.5.0\Bin\controls VS 2013\ComponentFactory.Krypton.Design.dll"
gacutil.exe -i "C:\Program Files (x86)\Component Factory\Krypton Toolkit 4.5.0\Bin\controls VS 2013\ComponentFactory.Krypton.Docking.dll"
gacutil.exe -i "C:\Program Files (x86)\Component Factory\Krypton Toolkit 4.5.0\Bin\controls VS 2013\ComponentFactory.Krypton.Navigator.dll"
gacutil.exe -i "C:\Program Files (x86)\Component Factory\Krypton Toolkit 4.5.0\Bin\controls VS 2013\ComponentFactory.Krypton.Ribbon.dll"
gacutil.exe -i "C:\Program Files (x86)\Component Factory\Krypton Toolkit 4.5.0\Bin\controls VS 2013\ComponentFactory.Krypton.Toolkit.dll"
gacutil.exe -i "C:\Program Files (x86)\Component Factory\Krypton Toolkit 4.5.0\Bin\controls VS 2013\ComponentFactory.Krypton.Workspace.dll"

  1. Once installed, Reboot computer.

  2. Open Visual Studio 2013 or later in Administrator mode.
    a. Create a new Windows Form Project.
    b. add new tab in ToolBox menu > Krypton Suite
    c. right click and select "Choose Items"
    d. In the Choose Items Dialog box, select .Net Framework Components. Select Browse Button >
    Navigate to your Folder in the directory you created:

     C:\Program Files (x86)\Component Factory\Krypton Toolkit 4.5.0\Bin\controls VS 2013\
    

    e. select all Krypton dll files, select open to import, Visual Studio will show an error dialog box, select
    ok, Visual Studio will show another dialog box prompting that the components are installed but
    they are Hidden in the ToolBox Menu, select ok.

  3. right click your Project and select Properties, select Application > Target Framework,
    select .Net Framework 4.0 or Higher, click save, then save your Project. Go to ToolBox Menu
    and now you can use the Krypton Suite Components.

Tested on Visual Studio 2013 and 2015 MSDN Subscriber Versions.

:)

KryptonDockingManager and Selected Page

Hello!
I am using KryptonDockingManager.
I added one page to workspace and one page with docking.bottom
kryptonDockingManager.AddToWorkspace("Workspace", new[] {NewGraph()});
kryptonDockingManager.AddDockspace("Control", DockingEdge.Bottom, new[] {NewGraph()});
NewGraph() is method which creates KryptonPage with some content. When form is showing, user can select one page or another to work with it.
Is there anyway to determine programmatically which page is active (selected, focused, etc..) now?

Cue Banner

Setting cue banner does not work for the KryptonTextbox

The Mouse Events are not working for some Controls

The MouseEnter, MouseLeave and MouseHover events do not work for the KryptonTextBox and KryptonComboBox. I think the problem is due to the unhandled internal nested controls.

I solved the issue with the KryptonTextBox by using the following simple trick, however i couldn't find the way around for the KryptonComboBox

myTextBox.Controls[0].MouseEnter += myTextBox_MouseEnter;
myTextBox.Controls[0].MouseLeave += myTextBox_MouseLeave;

MultiLine Property

Looks like "MultiLine" property doesn't work with all Krypton controls.
scr

Or maybe im doing something wrong?

Showing popups

Is there a easy way to show popups? for example, clicking a button and then show a popup with controls inside.

kryptonDockableWorkspace

Hi, tell me how to add a new tab if kryptonDockableWorkspace1 is in UserControl, and the control button in another UserControl? And all this is inserted into the form

System.NotSupportedException: ReadOnly controls collection

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NotSupportedException: ReadOnly controls collection
at ComponentFactory.Krypton.Toolkit.KryptonReadOnlyControls.Add(Control value)
at cse.Forms.frmAssignRoute.InitializeComponent()
at cse.Forms.frmAssignRoute..ctor()
at cse.Forms.frmMdimain.routeEditorToolStripMenuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

High DPI support

I've just noticed that using a high DPI monitor some controls doesn't scale well (both in IDE preview and once running), e.g. the KryptonCheckbox. Anyone has an idea about how to fix this behavior?

See image for reference: image

Krypton DataGridView Krypton ContextMenu?

Krypton ContextMenu is awesome, but I can't attach it to a krypton DataGridView, because the KryptonContextMenu option isn't there, only the ContextMenu. Can I use a krypton ContextMenu with a kryton DataGridView?

Thanks!

Button Text

Is there a way that we can change the KryptonButton font property?

Combobox

Hi,

is there way to show a tooltip over a combobox when text does not fit?

Regards
Martin

krypton suite install licence

Dear Sir/Madam
After one month working with your great components, now every time I open my project it ask for licence key.
Please help me solve this problem.

Best Regards

Item Templates

Just a quick question, now that I have got the toolkit working, does the source code contain the item templates that were in the commercial product?

KryptonTreeView: DoubleClick event does nothing

After changing a regular TreeView to a KryptonTreeView, the double click event no longer works. The event handler is still assigned correctly:

this.uiNavigatorTreeView.DoubleClick += new System.EventHandler(this.uiNavigatorTreeView_DoubleClick);
private void uiNavigatorTreeView_DoubleClick(object sender, EventArgs e)
        {
            OpenSelectedItem();
        }

Some controls suddenly disappear

Hi! First of all, this is not a license issue, because I can drop controls on forms and they show up properly.

I was migrating some user controls to krypton components, and suddenly, all krypton text boxes have disappeared from the user control. They show up inside the combobox selector inside properties, and the designer code is present, but they don't show up neither in design time, nor debug time.

Some idea? Thanks!

Krypton Ribbon Tab Click not working properly

I have a Ribbon Tab that works correctly, but the click on tabs is not working as expected.

When I click one tab, I have to click another control before I can click another tab. If I don't do this, the tab control apears as if it were not clickable, it doesn't react graphically to the mouse hovering. I only use the selectedtabchanged event to know which tab was clicked.

Thanks!

Krypton Form not working

Hey,
after two Years i will start to develop again und want to use Krypton Ribbon with C# und VS2013.
After a time i get the dll working with this Guide https://github.com/ComponentFactory/Krypton/issues/16.
Thanks a lot for this, i´m still learning and this Guide was great for me.

Now i added my Testproject an KryptonManager, KryptonCheckbox and KryptonRibbon.
Until this time the Project is working.

I added References to Design.dll // Toolkit.dll // Ribbon.dll.
references

Now i want to use "KryptonForm"
At the Moment i change "Form1 : Form" to "Form1 : KryptonForm"
and "using ComponentFactory.Krypton.Toolkit;" it i´sn´t posibble to start the Projekt

code

error

Can anybody help me what to do?

Thanks

Greetings
Daniel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.