elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado:


  Mostrar Mensajes
Páginas: 1 ... 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 [40] 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 ... 75
391  Programación / Programación Visual Basic / Re: Agregar al registro tipo Binary? en: 3 Agosto 2008, 21:45 pm
http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=63220&lngWId=1
392  Programación / Programación Visual Basic / Re: Agregar al registro tipo Binary? en: 3 Agosto 2008, 10:59 am
Busca la clase Lightning en PSC que tiene todo
393  Programación / Programación Visual Basic / Re: Crear una librería de tipos en: 2 Agosto 2008, 17:59 pm
La libreria la poes hacer con el notepad si queres, para compilarla necesitas midl.exe que viene con visual studio. Busca que hay manueles por todos lados
394  Programación / Programación Visual Basic / Re: Usar compilador de vb en: 2 Agosto 2008, 13:50 pm
NO hay API para eso :S

Pero podes llamarlo asi si no me equivoco

Código:
[RUTA DEL VB] & " /make " & Chr(34) &  [SOUCE FILE] & Chr$(34) & " " & Chr$(34) & [DEST FILE] & Chr$(34)
395  Programación / Programación Visual Basic / Re: Código que lea .txt en: 2 Agosto 2008, 13:39 pm
Código
  1. Option Explicit
  2. Private Sub Form_Load()
  3.    Dim sText As String
  4.  
  5.    sText = "a" & vbCrLf & "b" '// Esto seria el contenido del archivo
  6.  
  7.    Dim vItem  As Variant
  8.  
  9.    For Each vItem In Split(sText, vbCrLf)
  10.        List1.AddItem vItem
  11.    Next
  12. End Sub
  13.  
  14.  
396  Programación / Programación Visual Basic / Re: Colocar UserControl en el borde superior de un form en: 2 Agosto 2008, 00:43 am
Como ya te dijieron, pone la propiedad Alignable en True y si queres que por defecto valla arriba pones asi.

Código:

Private Sub UserControl_InitProperties()
    UserControl.Extender.Align = vbAlignTop
End Sub

397  Programación / Programación Visual Basic / Re: posicion del cursor en: 1 Agosto 2008, 15:19 pm
Bueno ya te dije que mires el programa de LeandroA
398  Programación / Programación Visual Basic / Re: posicion del cursor en: 1 Agosto 2008, 15:05 pm
Seria bueno que busques..

GetCursorPos
WindowFromPoint
GetClassName
399  Programación / Programación Visual Basic / Re: posicion del cursor en: 1 Agosto 2008, 14:22 pm
Mira el programa de LeandroA AntiKeyLogger, ahi tenes la respuesta
400  Programación / Programación Visual Basic / Re: juntar dos archivos en: 1 Agosto 2008, 14:16 pm
Mira aca te de un ejemplo super simple para empaquetar archivos, lo arme en 5 min asi que no pretendas nada super, pero como base esta bien.

Código
  1. Option Explicit
  2.  
  3. Private Sub Form_Load()
  4.    Dim pbg As New PropertyBag
  5.  
  6.    SaveFile App.Path & "\text1.txt", StrConv("Test File 1", vbFromUnicode)
  7.    SaveFile App.Path & "\text2.txt", StrConv("Test File 2", vbFromUnicode)
  8.  
  9.    pbg.WriteProperty "File1", GetFile(App.Path & "\text1.txt")
  10.    pbg.WriteProperty "File2", GetFile(App.Path & "\text2.txt")
  11.  
  12.    Kill App.Path & "\text1.txt"
  13.    Kill App.Path & "\text2.txt"
  14.  
  15.    SaveFile App.Path & "\Pack.dat", pbg.Contents
  16.  
  17.    Set pbg = Nothing
  18.    Set pbg = New PropertyBag
  19.  
  20.    pbg.Contents = GetFile(App.Path & "\Pack.dat")
  21.  
  22.    SaveFile App.Path & "\text1.txt", pbg.ReadProperty("File1")
  23.    SaveFile App.Path & "\text2.txt", pbg.ReadProperty("File2")
  24.  
  25.    Kill App.Path & "\Pack.dat"
  26. End Sub
  27.  
  28. Private Function GetFile(sFile As String) As Byte()
  29.    Dim iFile As Long
  30.  
  31.    iFile = FreeFile
  32.    Open sFile For Binary Access Read As iFile
  33.    ReDim GetFile(LOF(iFile) - 1)
  34.    Get iFile, , GetFile
  35.    Close iFile
  36. End Function
  37.  
  38. Private Sub SaveFile(sFile As String, bvData() As Byte)
  39.    Dim iFile As Long
  40.  
  41.    iFile = FreeFile
  42.    Open sFile For Binary Access Write As iFile
  43.    Put iFile, , bvData
  44.    Close iFile
  45. End Sub
  46.  
Páginas: 1 ... 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 [40] 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 ... 75
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines