Notifications
Clear all

[Closed] Add dotnet control to flowpanel without ui lock?

How can I add a Dotnet control to my flowpanellayout control async without locking the ui?
When I create a backgroundworker in maxscript and try to make it adding controls to the panel it will throw an error, that this thread can not do this.

1 Reply
 lo1

The general way of doing it is to use Invoke or BeginInvoke

https://msdn.microsoft.com/en-us/library/system.windows.forms.control.invoke(v=vs.110).aspx

I don’t have a maxscript example on hand though