Tengo el siguiente codigo:
Asi llamo la clase y paso el nombre del form:
Código:
Esta es la funcion:Call inicio_de_tablero(Me.Name)
Código:
Me arroja el siguiente valor: Sub inicio_de_tablero(ByVal nombre As Form)
If Str(nombre.Name) = "tablero" Then
tablero.Width = Screen.PrimaryScreen.Bounds.Width
tablero.Height = Screen.PrimaryScreen.Bounds.Height
tablero.FormBorderStyle = FormBorderStyle.None
tablero.WindowState = System.Windows.Forms.FormWindowState.Maximized
End If
nombre.TopMost = True
End Sub
Error 1 Value of type 'String' cannot be converted to 'System.Windows.Forms.Form

