Help with saving Textcolor in Grid

Posted by: Victor.m.charles.civ on 26 January 2021, 12:09 pm EST

    • Post Options:
    • Link

    Posted 26 January 2021, 12:09 pm EST

    Hello,

    I’m using the code below to change the text color on several Grids, but I reopen the application the color selected is not save. How do I make the change permanent?

    Using cd2 As New ColorDialog

    If cd2.ShowDialog = Windows.Forms.DialogResult.OK Then

    My.Settings.GridTextColor = cd2.Color

    My.Settings.Save())

    ApplySavedForeColorForGrid(C1TrueDBGrid3)

    ApplySavedForeColorForGrid(C1TrueDBGrid2)

    ApplySavedForeColorForGrid(C1TrueDBGrid1)

    End If

    End Using

    Thanks,

    Victor

  • Posted 27 January 2021, 3:10 am EST

    Hi,

    You need to apply the saved color again when the application is opened, you can use the Load event of the form and apply the saved color in its event handler. Please refer to the sample attached.

    If you have any questions, please let us know.

    Regards,

    Prabhat Sharma.

    TDBSaveColor.zip

  • Posted 27 January 2021, 7:49 pm EST

    Thank You.

Need extra support?

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

Learn More

Forum Channels