MaterialSkin icon indicating copy to clipboard operation
MaterialSkin copied to clipboard

Style messes up on using delegates

Open crimson-med opened this issue 7 years ago • 1 comments

I am running some threads on the side of the main thread to search for files with GetFiles() and I want to show the paths of scanned files so I have a simple delegate:

  Delegate Sub SetLabelTextInvoker(ByVal TextToDisplay As String)
    Public Sub SetLabelText(ByVal TextToDisplay As String)
        If MaterialLabel1.InvokeRequired Then
            MaterialLabel1.Invoke(New SetLabelTextInvoker(AddressOf SetLabelText), New Object() {TextToDisplay})
        Else
            MaterialLabel1.Text = TextToDisplay
        End If
    End Sub

Example of the render after a while: render

crimson-med avatar Jun 13 '17 09:06 crimson-med

This project heavily relies on the Paint event. I think you should force the form to redraw by invalidating.

hadi77ir avatar Nov 06 '17 23:11 hadi77ir