¿Cómo programar Label?
' Visual Basic 6.0
Private Sub MakeTransparent()
Label1.BackStyle = vbTransparent
End Sub
¿Cómo programar commandbutton?
' Visual Basic 6.0
' Set the first button to respond to the Enter key.
Command1.Default = True
' Set the second button to respond to the Esc key.
Command2.Cancel = True
¿Cómo programar textbox?
' Visual Basic 6.0
Private Sub Form_Load ()
Text1.Text = "Two of the peak human experiences"
Text1.Text = Text1.Text & " are good food and classical music."
End Sub
Private Sub Form_Click ()
Dim Search, Where
' Get search string from user.
Search = InputBox("Enter text to be found:")
' Find string in text.
Where = InStr(Text1.Text, Search)
If Where Then
Text1.SetFocus
Text1.SelStart = Where - 1
Text1.SelLength = Len(Search)
Else
MsgBox "String not found."
End If
End Sub
¿Cómo programar optionbutton?
' Visual Basic 6.0
' The Click event is only fired when the Value is True
Private Sub Option1_Click()
MsgBox "Option1 was clicked"
End Sub
Private Sub Option2_Click()
MsgBox "Option2 was clicked"
End Sub
¿Cómo programar picturebox
' Visual Basic 6.0
Picture1.Picture = LoadPicture(App.Path & "somepicture.jpg")
¿Cómo programar frame
1. Private Sub Command1_Click()
2. ' -- Cambiar el caption
3. Frame1.Caption = "Texto del Frame"
4. End Sub

Cómo programar label

  • 1.
    ¿Cómo programar Label? 'Visual Basic 6.0 Private Sub MakeTransparent() Label1.BackStyle = vbTransparent End Sub ¿Cómo programar commandbutton? ' Visual Basic 6.0 ' Set the first button to respond to the Enter key. Command1.Default = True ' Set the second button to respond to the Esc key. Command2.Cancel = True ¿Cómo programar textbox? ' Visual Basic 6.0 Private Sub Form_Load () Text1.Text = "Two of the peak human experiences" Text1.Text = Text1.Text & " are good food and classical music." End Sub Private Sub Form_Click () Dim Search, Where ' Get search string from user. Search = InputBox("Enter text to be found:") ' Find string in text. Where = InStr(Text1.Text, Search) If Where Then Text1.SetFocus Text1.SelStart = Where - 1 Text1.SelLength = Len(Search) Else MsgBox "String not found." End If End Sub ¿Cómo programar optionbutton? ' Visual Basic 6.0 ' The Click event is only fired when the Value is True Private Sub Option1_Click() MsgBox "Option1 was clicked" End Sub Private Sub Option2_Click() MsgBox "Option2 was clicked"
  • 2.
    End Sub ¿Cómo programarpicturebox ' Visual Basic 6.0 Picture1.Picture = LoadPicture(App.Path & "somepicture.jpg") ¿Cómo programar frame 1. Private Sub Command1_Click() 2. ' -- Cambiar el caption 3. Frame1.Caption = "Texto del Frame" 4. End Sub