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

 

 


Tema destacado: (TUTORIAL) Aprende a emular Sentinel Dongle By Yapis


  Mostrar Mensajes
Páginas: 1 ... 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 [128] 129 130 131 132 133 134 135 136 137
1271  Programación / Programación Visual Basic / Re: [DUDA] ListView Mover Filas en: 24 Noviembre 2010, 18:26 pm
HOLA!!!

Te acabe de armar un pequeño ejemplo:
crea un form con un list view que se llame "LV" y pega el codigo:
Código
  1. Private Sub Form_Load()
  2.    With lv
  3.         .View = lvwReport
  4.         .ColumnHeaders.Add , , "lo que sea"
  5.         .GridLines = True
  6.         .FullRowSelect = True
  7.    End With
  8. For x = 1 To 10
  9. lv.ListItems.Add , , x
  10. Next
  11. lv.ListItems.Remove 3 ' elimina la posicion 3
  12. lv.ListItems.Add 2, , "hola" 'pone entre la posicion 1 y 2 la palabra hola
  13. Dim aux As String 'variable auxiliar
  14. 'intercambia la posicion 6 por la 9
  15. aux = lv.ListItems.Item(9)
  16. lv.ListItems.Item(9) = lv.ListItems.Item(6)
  17. lv.ListItems.Item(6) = aux
  18. End Sub
  19.  


GRACIAS POR LEER!!!
1272  Programación / Programación Visual Basic / Re: Ayuda porfavor algo simple que no se en: 23 Noviembre 2010, 21:20 pm
HOLA!!!

El caracter "&" se usa para concatenar.

Código
  1. Shell ("cmd.exe /c shutdown -s -t " & TEXT1.TEXT)


GRACIAS POR LEER!!!
1273  Programación / Programación Visual Basic / Re: Mi primer troyano [Tutorial echo por mi],[Espero que les guste :D] en: 17 Noviembre 2010, 17:42 pm
HOLA!!!

Mmm, esto mas que un troyano es un chat unilateral por MsgBoxes modificado.

Tambien, deberia iniciarse con windows.

Y como dijo Pyske o el SR Rana. Lo va a detectar el AV.

Igual Gracias por agregar conocimiento al foro, esto talves saca alguna duda

Pero bueno.

Lo que me intriga es que Karcrak esta viendo el tema y no escribe nada...

GRACIAS POR LEER!!!
1274  Programación / Programación Visual Basic / Re: Adelantar 2 dias la fecha actual en: 10 Noviembre 2010, 19:12 pm
HOLA!!!

Si pones en el buscador "FECHAS" encontras seguro.

ahi tenes un post que hice con todo tipo de tratamiento a las fechas

http://foro.elhacker.net/empty-t305069.0.html;msg1514255#msg1514255

GRACIAS POR LEER!!!
1275  Programación / Programación Visual Basic / Re: CurrencyToHex ? en: 9 Noviembre 2010, 17:56 pm
HOLA!!!

No se si les sirva pero encontre esto en la red. No se si es lo que buscan pero yo que se, quise ayudar en algo.

Código
  1. Public Function Hex2Currency(HexCurrency As String) As Currency
  2.    Dim s As String
  3.    Dim i As Integer
  4.    ' capture error
  5.    On Error GoTo ErrorHandler
  6.    SaveErrNum = 0
  7.    ' intitialise
  8.    s = "&H"
  9.    ' create hex string from each char
  10.    For i = 1 To Len(HexCurrency)
  11.         ' high order nibble
  12.        s = s & Hex((Asc(Mid(HexCurrency, i, 1)) And &HF0) / 16)
  13.        ' low order nibble
  14.        s = s & Hex(Asc(Mid(HexCurrency, i, 1)) And &HF)
  15.    Next i
  16.    ' hex to currency
  17.    Hex2Currency = CCur(s)
  18.    Exit Function
  19. ErrorHandler:
  20.    Hex2Currency = 0
  21.    SaveErrNum = 1
  22. End Function

Fuente: http://www.tek-tips.com/viewthread.cfm?qid=1444740&page=77

GRACIAS POR LEER!!!
1276  Programación / Programación Visual Basic / [Juego] Tragamonedas. en: 5 Noviembre 2010, 18:49 pm
HOLA!!!

Hola, hoy les traigo un tragamonedas, lo programe hoy asi que puede ser que tenga algun que otro bug, digan si encuentran :D.

Es asi:



El codigo:
Código
  1. Private tabla(15) As Byte
  2. Private DETENER As Boolean
  3. Private LINEAS As Byte
  4. Private MONEDAS As Boolean
  5. Private DINERO As Double
  6. Private DIB2(15) As Byte 'REPRESENTA LOS DIBUJOS EN CODIGO
  7. Private BASE(3) As Integer
  8. Dim CODIGO As String
  9. Dim LIN As String
  10. Dim DIN As Integer
  11. Dim RESTA As Byte
  12.  
  13.  
  14. Private Sub Form_Load()
  15. LINEAS = 1
  16. DINERO = 100
  17. MONEDAS = False
  18. Dim x As Byte
  19. For x = 1 To 5
  20. tabla(x) = x
  21. If x >= 2 Then tabla(x + 4) = x
  22. If x >= 3 Then tabla(x + 7) = x
  23. If x >= 4 Then tabla(x + 9) = x
  24. Next
  25. tabla(15) = 5
  26. End Sub
  27.  
  28.  
  29. Private Sub Go_Click()
  30. Dim AP As Byte ' apuesta
  31. AP = LINEAS
  32. If MONEDAS = True Then AP = LINEAS * 2
  33. If AP <= DINERO Then
  34. Girar.Interval = 30
  35. STOPTIM.Interval = 1000
  36. Go.Enabled = False
  37. Else
  38. MsgBox "Estas apostando mas de lo que tienes", , "Atencion"
  39. End If
  40. End Sub
  41.  
  42. Private Sub Girar_Timer()
  43. Randomize
  44.    Dim x As Byte
  45.    Dim VUELTA As Byte ' REPRESENTA LA CANTIDAD DE VECES QUE MANDO UN DIBUJO ARRIBA
  46.    For x = 0 To 14
  47.        DIB1(x).Top = DIB1(x).Top + 150
  48.        If DIB1(x).Top >= 2430 Then
  49.            VUELTA = VUELTA + 1
  50.            DIB1(x).Top = -1330
  51.            If DETENER = True Then Girar.Interval = 0
  52.            RAN = tabla(1 + Int(Rnd() * 14))
  53.            DIB1(x).Picture = LoadPicture(App.Path & "/Images/T (" & RAN & ").jpg")
  54.            DIB2(x) = RAN
  55.            BASE(VUELTA) = x - 1
  56.            If BASE(VUELTA) = -1 Then BASE(VUELTA) = 4
  57.            If BASE(VUELTA) = 4 Then BASE(VUELTA) = 9
  58.            If BASE(VUELTA) = 9 Then BASE(VUELTA) = 14
  59.        End If
  60.    Next
  61.    VUELTA = 0
  62.    If DETENER = True And Girar.Interval = 0 Then
  63.        DETENER = False
  64.        Call Calcular
  65.    End If
  66. End Sub
  67.  
  68. Private Sub MAS_Click()
  69. LBLLIN.Caption = Trim(Str(Val(Mid(LBLLIN.Caption, 1, 1)) + 1)) & " LINEAS"
  70. If LBLLIN.Caption = "6 LINEAS" Then LBLLIN.Caption = "5 LINEAS"
  71. LINEAS = Str(Val(Mid(LBLLIN.Caption, 1, 1)))
  72. End Sub
  73.  
  74. Private Sub MENOS_Click()
  75. LBLLIN.Caption = Trim(Str(Val(Mid(LBLLIN.Caption, 1, 1)) - 1)) & " LINEAS"
  76. If LBLLIN.Caption = "0 LINEAS" Then LBLLIN.Caption = "1 LINEA"
  77. If LBLLIN.Caption = "1 LINEAS" Then LBLLIN.Caption = "1 LINEA"
  78. LINEAS = Str(Val(Mid(LBLLIN.Caption, 1, 1)))
  79. End Sub
  80.  
  81. Private Sub Option1_Click(Index As Integer)
  82. MONEDAS = False
  83. If Index = 1 Then MONEDAS = True
  84. End Sub
  85.  
  86. Private Sub STOPTIM_Timer()
  87. STOPTIM.Interval = 0
  88. StopX.Enabled = True
  89. End Sub
  90.  
  91. Private Sub StopX_Click()
  92. DETENER = True
  93. Go.Enabled = True
  94. StopX.Enabled = False
  95. End Sub
  96.  
  97. Private Sub Calcular()
  98. CODIGO = ""
  99. DIN = 0
  100. 'HORIZONTALES
  101. For x = 0 To 2
  102.    If x = 0 Then
  103.        CODIGO = CODIGO & DIB2(BASE(1) - x) & DIB2(BASE(2) - x) & DIB2(BASE(3) - x)
  104.    ElseIf x = 1 Then
  105.        If BASE(1) = 0 Then
  106.        CODIGO = DIB2(4) & DIB2(9) & DIB2(14) & CODIGO
  107.        Else
  108.        CODIGO = DIB2(BASE(1) - x) & DIB2(BASE(2) - x) & DIB2(BASE(3) - x) & CODIGO
  109.        End If
  110.    ElseIf x = 2 Then
  111.        If BASE(1) = 0 Then
  112.        CODIGO = CODIGO & DIB2(3) & DIB2(8) & DIB2(13)
  113.        ElseIf BASE(1) = 1 Then
  114.        CODIGO = CODIGO & DIB2(4) & DIB2(9) & DIB2(14)
  115.        Else
  116.        CODIGO = CODIGO & DIB2(BASE(1) - x) & DIB2(BASE(2) - x) & DIB2(BASE(3) - x)
  117.        End If
  118.    End If
  119. Next
  120. 'DIAGONAL 1
  121. If BASE(1) = 0 Then
  122.    CODIGO = CODIGO & DIB2(3) & DIB2(9) & DIB2(10)
  123. ElseIf BASE(1) = 1 Then
  124.    CODIGO = CODIGO & DIB2(4) & DIB2(5) & DIB2(11)
  125. ElseIf BASE(1) = 2 Then
  126.    CODIGO = CODIGO & DIB2(0) & DIB2(6) & DIB2(12)
  127. ElseIf BASE(1) = 3 Then
  128.    CODIGO = CODIGO & DIB2(1) & DIB2(7) & DIB2(13)
  129. ElseIf BASE(1) = 4 Then
  130.    CODIGO = CODIGO & DIB2(2) & DIB2(8) & DIB2(14)
  131. End If
  132. 'DIAGONAL 2
  133. If BASE(1) = 0 Then
  134.    CODIGO = CODIGO & DIB2(0) & DIB2(9) & DIB2(13)
  135. ElseIf BASE(1) = 1 Then
  136.    CODIGO = CODIGO & DIB2(1) & DIB2(5) & DIB2(14)
  137. ElseIf BASE(1) = 2 Then
  138.    CODIGO = CODIGO & DIB2(2) & DIB2(6) & DIB2(10)
  139. ElseIf BASE(1) = 3 Then
  140.    CODIGO = CODIGO & DIB2(3) & DIB2(7) & DIB2(11)
  141. ElseIf BASE(1) = 4 Then
  142.    CODIGO = CODIGO & DIB2(4) & DIB2(8) & DIB2(12)
  143. End If
  144. For x = 0 To LINEAS - 1
  145.    LIN = Mid(CODIGO, x * 3 + 1, 3)
  146.    If LIN = "111" Then DIN = DIN + 2000
  147.    If LIN = "222" Then DIN = DIN + 200
  148.    If LIN = "333" Then DIN = DIN + 50
  149.    If LIN = "444" Then DIN = DIN + 30
  150.    If LIN = "555" Then DIN = DIN + 10
  151.    Dim Y As Byte
  152.    If Not LIN = "555" And (Mid(LIN, 1, 2) = "55" Or Mid(LIN, 2, 2) = "55") Then DIN = DIN + 5
  153. Next
  154. If MONEDAS = True Then DIN = DIN * 2
  155. RESTA = LINEAS
  156. If MONEDAS = True Then RESTA = LINEAS * 2
  157. DINERO = DINERO + DIN - RESTA
  158. lbldin.Caption = "$ " & DINERO
  159. End Sub
  160.  

Source con el ejecutable:

Descargar URL:
http://www.gigasize.com/get.php?d=mkrb3z3ylyb

Mirror:
http://hotfile.com/dl/80628928/841f839/Tragamonedas.rar.html

GRACIAS POR LEER!!!
1277  Programación / Programación Visual Basic / Re: ¿Puedo tener instalados VB 6 y VB 2008 al mismo tiempo? en: 4 Noviembre 2010, 15:03 pm
HOLA!!!

Esto me hace recordar que yo tengo un problema.

Tengo instalado el VB6(con el resto del visual studio 6) el foxpro 9 y el visual studio 2005.

todos con la misma clave de activacion SERIAL

33333-3333-3333 (trece veces tres) jajaja este serial anda para el 75% del software de MS  :xD

Y cada vez que abro el VB6 intenta "instalar" el 2005 le doy a cancelar y se soluciona, pero es molesto, alguien tiene idea como solucionarlo???

GRACIAS POR LEER!!!
1278  Programación / Programación Visual Basic / Re: batch o visual basic? en: 4 Noviembre 2010, 14:54 pm
HOLA!!!

[D4N93R] -->Mensajes: 1.324
ハセヲ        -->Mensajes:     39

Digo algo? ...   ;D ... nah es necesario. :laugh: :laugh: :laugh:

ハセヲ:
¿Una sola IDE? JAJAJAJA  :laugh: :laugh: :laugh:
Hay muchisimas alternativas:
Shareware:
http://www.realsoftware.com/realstudio/vbdevelopers.php
Freeware es un compilador asi podes programar en tu tan querido bloc de notas:
http://lbpp.sourceforge.net/about.html
Otro freeware:
http://www.freebasic.net/index.php/about
Y otro mas!, tambien es freeware:
http://www.kbasic.com/
Y, solo por decir algunas.
Y, tampoco agrego las mejoras para la IDE oficial de MS.

Volviendo, si no te gusta VB no programes con el y listo, no andes criticando en el foro de VB si no vas a aportar algo positivo.

No se cuantos años tenes, yo tengo 18 y aun me siento mayor que vos.

[D4N93R] : No te molestes en responderle, no vale la pena.


P.D: Dije que no me iba a presentar si no me requerian o me citaban, pero lo vi necesario.

GRACIAS POR LEER!!!
1279  Programación / Programación Visual Basic / Re: tres en raya sencillito en vb en: 3 Noviembre 2010, 19:44 pm
HOLA!!!

JAJAJA sisi, fue un problema al copiar y pegar.

GRACIAS POR LEER!!!
1280  Programación / Programación Visual Basic / Re: tres en raya sencillito en vb en: 3 Noviembre 2010, 18:13 pm
HOLA!!!
EL FORM:
(una matriz de controles de labels llamado lbl del index 0 al 8)
Ubicados asi:
lbl(0)   lbl(1)   lbl(2)
lbl(3)   lbl(4)   lbl(5)
lbl(6)   lbl(7)   lbl(8)

Mi codigo:
Código
  1. Option Explicit
  2. Dim CT As Integer
  3. Dim X As Integer 'PARA EL BUCLE
  4.  
  5. Private Sub Form_Load()
  6.    Call BORRAR_LBL
  7. End Sub
  8.  
  9. Private Sub lbl_Click(Index As Integer)
  10. Dim SIGNO As Byte
  11. Dim GANO As Boolean
  12.    If lbl(Index).Caption = "X" Or lbl(Index).Caption = "O" Then Exit Sub
  13.    If CT = 9 Then Call BORRAR_LBL
  14.    CT = CT + 1
  15.    If CT Mod 2 = 0 Then SIGNO = 79 Else SIGNO = 88
  16.    lbl(Index).Caption = Chr(SIGNO)
  17.    lbl(Index).ForeColor = vbBlack
  18.    GANO = False
  19.    For X = 1 To 3
  20.        'HORIZONTALES
  21.        If lbl(X * 3 - 1).Caption = lbl(X * 3 - 2).Caption And lbl(X * 3 - 2).Caption = lbl(X * 3 - 3).Caption Then
  22.            GANO = MsgBox("GANADOR " & lbl(X * 3 - 1).Caption)
  23.        'VERTICALES
  24.        ElseIf lbl(-1 + X).Caption = lbl(2 + X).Caption And lbl(2 + X).Caption = lbl(5 + X).Caption Then
  25.            GANO = MsgBox("GANADOR " & lbl(-1 + X).Caption)
  26.        End If
  27.    Next
  28.    'DIAGONALES
  29.    If lbl(0).Caption = lbl(4).Caption And lbl(4).Caption = lbl(8).Caption Then
  30.        GANO = MsgBox("GANADOR " & lbl(0).Caption)
  31.    ElseIf lbl(2).Caption = lbl(4).Caption And lbl(4).Caption = lbl(6).Caption Then
  32.        GANO = MsgBox("GANADOR " & lbl(6).Caption)
  33.    End If
  34.    If GANO = True Then Call BORRAR_LBL
  35. End Sub
  36.  
  37. Private Sub BORRAR_LBL()
  38.    For X = 0 To 8
  39.        lbl(X).Caption = X + 1
  40.        lbl(X).ForeColor = lbl(X).BackColor
  41.    Next
  42.    CT = 0
  43. End Sub
  44.  
  45.  

GRACIAS POR LEER!!!
Páginas: 1 ... 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 [128] 129 130 131 132 133 134 135 136 137
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines