CrAzY hOuSe
Locos por la programación

octubre 1999 - .net

.net

Syndication

  • Centrar Formulario

    En la versiones anteriores a la 5, no existía la propiedad StartUpPosition para centrar el formulario. Y se usaba este código: Form1.Left = Screen.Width - Width 2 Form1.Top = Screen.Height - Height 2 Aunque hacerlo con Move resulta un 30% más rápido....
    Filed under: ,
  • Uso del ClipBoard (PortaPapeles)

    Copiar Texto: Clipboard.Clear ' Limpiamos el destino Clipboard.SetText Text1.SelText ' Copiamos el texto seleccionado Text1.SetFocus Pegar Texto: Text1.SelText = Clipboard.GetText() ' Pega el texto contenido en el ClipBoard Text1.SetFocus...
    Filed under: ,
MavericK
Powered by Community Server (Non-Commercial Edition), by Telligent Systems