Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/01/2009, 20:43
Yinc
 
Fecha de Ingreso: diciembre-2008
Ubicación: localhost
Mensajes: 232
Antigüedad: 15 años, 5 meses
Puntos: 3
Respuesta: pasar el nombre del form como una variable

Código:
    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
Tienes la variable tipo form, no le puedes asignar el nombre del form a una variable así... Debes asignarle el form completamente de esta forma

Código:
Call inicio_de_tablero(Me)
Y listo!