1
Visual Basic 6 / Re:Ucimage
« en: Diciembre 09, 2020, 09:53:14 am »
eso depende, si cargas una imagen PNG con transparencia, si, seria posible, pero en otros formatos lo dudo (JPG, BMP)
Esta sección te permite ver todos los posts escritos por este usuario. Ten en cuenta que sólo puedes ver los posts escritos en zonas a las que tienes acceso en este momento.
Dim Vr as Long
Vr=Shell(strDOScommand, vbHide)wkhtmltopdf.exe <path>\archivo.HTML <path>\archivo.PDF








'--Seccion APIs--
Private Declare Function DeleteObject Lib "Gdi32" (ByVal hObject As Long) As Long
Private Declare Function SetWindowRgn Lib "User32" (ByVal hwnd As Long, ByVal hRgn As Long, ByVal bRedraw As Long) As Long
Private Declare Function CreateRoundRectRgn Lib "Gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long, ByVal Y3 As Long) As Long
Private Declare Function RoundRect Lib "Gdi32" (ByVal hDC As Long, ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long, ByVal Y3 As Long) As Long
'--Sub crea Bordes--
Private Sub DrawBorders()
Dim Rgn As Long
With UserControl
Rgn = CreateRoundRectRgn(0, 0, .Width, .Height, 0, 0)
SetWindowRgn .hwnd, Rgn, True
DeleteObject Rgn
.DrawWidth = 2
.ForeColor = m_BorderColor
RoundRect .hDC, 0, 0, .ScaleWidth, .ScaleHeight, 0, 0
End With
End Sub
'--Propiedades UC--
Public Property Get BorderColor() As OLE_COLOR
BorderColor = m_BorderColor
End Property
Public Property Let BorderColor(ByVal NewBorderColor As OLE_COLOR)
m_BorderColor = NewBorderColor
PropertyChanged "BorderColor"
DrawBorders
End Property

Private Sub txtText1_Change()
With txtText1
.SelStart = Len(.Text)
.Text = StrConv(.Text, vbProperCase)
End With
End Sub
Private Sub txtbox_KeyPress(KeyAscii As Integer)
If KeyAscii = vbKeySpace Then
sPalabra = Split(txtbox.Text, " ")
txtbox.Text = ""
KeyAscii = 0
For i = LBound(sPalabra) To UBound(sPalabra)
Palabra = UCase$(Left$(sPalabra(i), 1)) & LCase$(Mid$(sPalabra(i), 2, Len(sPalabra(i))))
txtbox.Text = txtbox.Text & Palabra & " "
txtbox.SelStart = Len(txtbox.Text)
Next i
End If
End Sub