You need to overload the constructor of the IMWindow class to
accept all those parameters. Make sure that you call
InitializeComponent() in the constructor, too.
This will go in the IMWindow class (this is just an example, you
will obviously have to change the parameter names and types):
Public Overloads Sub New(client As Object, profile As Object, _
something As Something, somethingElse As SomethingElse, name As String)
InitializeComponent() ' Required
' Then store all the arguments in local variables here
End Sub