Está en la página 1de 3

VERSION 5.00 Begin VB.

Form Form1 Caption = "Form1" ClientHeight = 8085 ClientLeft = 60 ClientTop = 420 ClientWidth = 10410 LinkTopic = "Form1" ScaleHeight = 8085 ScaleWidth = 10410 StartUpPosition = 3 'Windows Default Begin VB.TextBox Text4 Height = 285 Left = 5280 TabIndex = 12 Text = "Text4" Top = 4080 Width = 975 End Begin VB.TextBox Text3 Height = 285 Left = 5280 TabIndex = 11 Text = "Text3" Top = 3480 Width = 975 End Begin VB.TextBox Text2 Height = 285 Left = 5280 TabIndex = 10 Text = "Text2" Top = 2880 Width = 975 End Begin VB.HScrollBar HScroll3 Height = 255 Left = 1440 TabIndex = 9 Top = 4080 Width = 3375 End Begin VB.HScrollBar HScroll2 Height = 255 Left = 1440 TabIndex = 8 Top = 3480 Width = 3375 End Begin VB.HScrollBar HScroll1 Height = 255 Left = 1440 TabIndex = 7 Top = 2880 Width = 3375 End Begin VB.CommandButton Command1 Caption = "SALIR" Height = 495 Left = 4200

TabIndex Top Width

= = =

3 1920 1095

End Begin VB.OptionButton Option2 Caption = "TEXTO" Height = 255 Left = 2400 TabIndex = 2 Top = 2040 Width = 1215 End Begin VB.OptionButton Option1 Caption = "FONDO" Height = 255 Left = 600 TabIndex = 1 Top = 2040 Width = 1215 End Begin VB.TextBox Text1 Height = 1095 Left = 480 TabIndex = 0 Text = "INFORMTICA 1" Top = 480 Width = 4575 End Begin VB.Label Label3 Caption = "AZUL" Height = 255 Left = 360 TabIndex = 6 Top = 4080 Width = 615 End Begin VB.Label Label2 Caption = "VERDE" Height = 255 Left = 360 TabIndex = 5 Top = 3480 Width = 615 End Begin VB.Label Label1 Caption = "ROJO" Height = 255 Left = 360 TabIndex = 4 Top = 2880 Width = 615 End End Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Option Explicit Public Brojo, Bverde, Bazul As Integer

Public Frojo, Fverde, Fazul As Integer Private Sub cmdSalir_Click() End End Sub Private Sub Form_Load() Brojo = 0 Bverde = 0 Bazul = 0 Frojo = 255 Fverde = 255 Fazul = 255 IbICuadro.BankColor = RGB(Brojo, Bverde, Bazul) IbICuadro.BankColor = RGB(Frojo, Fverde, Fazul) End Sub Private Sub hsbColor_Change(Index As Integer) If optColor(0).Value = True Then IbICuadro.BankColor = RGB(hsbColor(0).Value, hbsColor(1).Value, hsbColor(2).Valu e) Dim i As Integer For i = 0 To 2 txtColor(i).Text = hsbColor(i).Value Next i Else IbICuadro.ForeColor = RGB(hsbColor(0).Value, hsbColor(1).Value, hsbColor(2).Valu e) For i = 0 To 2 txtColor(i).Text = hsbColor(i).Value Next i End If End Sub Private Sub optColor_Click(Index As Integer) If Index = 0 Then Frojo = hsbColor(0).Value Fverde = hsbColor(1).Value Fazul = hsbColor(2).Value hsbColor(0).Value = Brojo hsbColor(1).Value = Bverde hsbColor(2).Value = Bazul Else Brojo hsbColor(0).Value Bverde hsbColor(1).Value Bazul hsbColor(2).Value hsbColor(0).Value = Frojo hsbColor(1).Value = Fverde hsbColor(2).Value = Fazul End If End Sub

También podría gustarte