Home Forums WinForms controls Xceed Grid for WinForms Porblem using LicenseKey for DataGrid

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #12695 |

    Placed DataGrid control on form. Now I should set its license key in order to make the build work:

    Private Sub frmData_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    ‘Xceed.Grid.Licenser.LicenseKey = “GRD11-*****-*****-****”
    ‘GridControl1.LicenseKey = “GRD11–*****-*****-****”

    ‘I’m trying to set LicenseKey by one of 2 methods above (copied from “Component Licenser”) – nothing works!

    End Sub

    So, the application throws me a license error when I try to run sucessful (!) build . What’s wrong? Do I use LicenseKey property in right place in the project?

    By the way, examples from Xceed site where DataGrid is created at runtime (not placed on form) work fine. It seems the problem is only with control on form.

    Imported from legacy forums. Posted by Bob2000 (had 4335 views)

    User (Old forums)
    Member
    Post count: 23064

    In c# I put the code in the initialiser block, and all is fine.

    public ViewCategory(int Roster2View)
    {
    // This call is required by the Windows.Forms Form Designer.
    InitializeComponent();
    Licenser.LicenseKey = “GRD11-******* etc”;
    }

    Hope this is helpful.

    Imported from legacy forums. Posted by MikeB (had 311 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi, buddy. I need VB.NET solution.

    Imported from legacy forums. Posted by Bob2000 (had 332 views)

    User (Old forums)
    Member
    Post count: 23064

    put your code in the public sub new, before the call to InitializeComponent, not in form load.

    Imported from legacy forums. Posted by Louis (had 301 views)

    User (Old forums)
    Member
    Post count: 23064

    Thank you, seems to be working!

    Imported from legacy forums. Posted by Bob2000 (had 5317 views)

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.