Can I use the Dialog form (ie. FarPoint.Win.Spread.Design.BorderEditor) in my apps?

Posted by: azatoth on 8 September 2017, 1:11 pm EST

  • Posted 8 September 2017, 1:11 pm EST

    Hi!

    I must write an excel-clone whit your controls.
    I want use form that you use in the SpreadDesigner app, ie. FarPoint.Win.Spread.Design.BorderEditor form class...
    Can I use this in my code?


    if I write this code:

    Dim be As New FarPoint.Win.Spread.Design.BorderEditor
    be.ShowDialog()

    when I press the OK button, my app throw a NullReferenceException... I think that this exception is throw because no cell reference is provided to this object...


    how can i provide the selected cell reference in this form?

    Thanks!

  • Replied 8 September 2017, 1:11 pm EST


    Add the
    FarPoint.Win.Spread.Design.DLL as a project reference.  I used this code in a
    button:



     
    FpSpread1.Focus()


           
    FpSpread1.Sheets(0).SetActiveCell(0, 0)


            Dim dlg As New
    FarPoint.Win.Spread.Design.BorderEditor(FpSpread1)


           
    dlg.ShowDialog()

  • Replied 8 September 2017, 1:11 pm EST

    thanks :D!
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels