
26/07/2005, 10:42
|
| | Fecha de Ingreso: enero-2005 Ubicación: Benifaió (Valencia)
Mensajes: 319
Antigüedad: 20 años, 2 meses Puntos: 0 | |
Asi:
Código:
Dim form As New frmInicio
Dim w As Integer = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width
Dim h As Integer = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height
Dim original As New Drawing.Bitmap("rutadelaimagen.extension")
If w = 800 Then
Dim fondo As New System.Drawing.Bitmap(original, 799, 510)
Me.BackgroundImage = fondo
Else
Dim fondo As New System.Drawing.Bitmap(original, 1029, 690)
Me.BackgroundImage = fondo
End If
|