Ver Mensaje Individual
  #7 (permalink)  
Antiguo 18/09/2008, 10:50
Avatar de moradazo
moradazo
 
Fecha de Ingreso: julio-2008
Ubicación: [email protected]
Mensajes: 355
Antigüedad: 16 años, 10 meses
Puntos: 2
Respuesta: Visual Basic 2005: TextBox

Mira lo que hice:

textbox1.Size = New Size(textbox1.MinimumSize * form1.Size) / form1.MinimumSize

lo que esta subrayado es que visual me lo marca diciendome:
- Operator '*' is not defined for types 'System.Drawing.Size' and 'System.Drawing.Size'.
- 'Form1.Form1' cannot refer to itself through its default instance; use 'Me' instead.

Será que no puedo usar operaciones aritméticas en el programa?

tambien probe con:

textbox1.Width = ((textbox1.Width * Me.Width) / Me.Width)

Pero no se como decirle cuando es actual y cuando es inicial...

Gracias.