Hi folks, my code uses Matlab as a COM server and has matlab plot some data in a figure, which is opened up in a new window named 'Figure 1' normally. After it's done plotting I hope to give focus back to the form that calls the sub that execute the matlab commands. I've tried to add two lines after the sub call
but when it's done plotting the matlab figure is still on top of my form. I wonder what else could do the trick? any suggestions?Code:PassDataNPlot() Me.BringToFront() Me.Focus()