ProgramasVb6
  Foro
 
=> ¿No se ha registrado todavía?

BIENVENIDOS, AQUI PUEDEN COMENTAR ACERCA DE MUCHAS COSAS, Xd, BUENO, TAMBIEN PUEDEN HACER PREGUNTAS COMO ¿COMO FUNCIONA EL TEXTBOX? ENTRE OTRAS COSAS. COMENTEN. ATTE: PVB6 (administrador general

Foro - Barra de Progreso con Porcentaje

Se encuentra aqui:
Foro => Preguntas referentes a Visual Basic => Barra de Progreso con Porcentaje

<-Volver

 1 

Siguiente->


Vb62023 (Visitante)
11-07-2023 16:02 (UTC)[citar]
En un formulario agregar:

un PictureBox y un CommandButton

poner en la propiedad drawmode del picturebox en 6 - invert


pegar el siguiente codigo en el formulario



Sub PerCnt(iNewValue As Integer)

If iNewValue > 100 Or iNewValue < 0 Then

Beep

Exit Sub

End If

Picture1.Cls

Picture1.FontSize = 12

Picture1.ScaleMode = 0

Picture1.ScaleWidth = 100

Picture1.ScaleHeight = 10

Picture1.CurrentY = 2

Picture1.CurrentX = Picture1.ScaleWidth / 2 - (Picture1.ScaleWidth / 15)

Picture1.Print Str(iNewValue) & "%"

Picture1.Line (0, 0)-(iNewValue, Picture1.ScaleHeight), Picture1.FillColor, BF

End Sub



Private Sub Command1_Click()



PerCnt CInt(70) ' Remplazar 70 por el porcentaje que se quiere mostrar

End Sub



Respuesta:

Tu nombre de usuario:

 Color de texto:

 Tamaño de letra:
Cerrar tags



Temas totales: 12
Entradas totales: 11
Usuarios totales: 4
En este momento conectados (usuarios registrados): Nadie crying smiley
 
  ProgramasVb Copyright. 2011-2012 All Right Reserved  
 
Este sitio web fue creado de forma gratuita con PaginaWebGratis.es. ¿Quieres también tu sitio web propio?
Registrarse gratis