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

 

 


Tema destacado: Guía rápida para descarga de herramientas gratuitas de seguridad y desinfección


  Mostrar Mensajes
Páginas: 1 2 3 4 5 6 7 8 9 10 11 [12] 13 14 15 16 17 18 19 20 21 22 23
111  Programación / Programación Visual Basic / Re: SendKeys a una app en fullscreen. en: 24 Agosto 2007, 05:11 am
estaba invistigando sobre el tema y probando cosas y descubri algo xD

no lo hagan por que las bocinas empiesan a sonar feo y se traba el mouse xD

Código
  1. Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
  2. If Shift And vbCtrlMask Then
  3. SendKeys "hola xD"
  4.   On Error Resume Next
  5.    ActiveControl.Text = ""
  6. End If
  7. End Sub
  8.  
  9. Private Sub Form_Load()
  10. KeyPreview = True
  11. End Sub
  12.  

se pone loco y si tienes poca ram ni es administrador de tareas lo quita xD

claro siempre y cuando cumpliendo con lo que pide el codigo xD
112  Media / Multimedia / Re: extensiones flv y 3gp en: 23 Agosto 2007, 05:31 am
para el 3gp usa quick Time y para flv puedes hacer uno en flash MX 8
113  Programación / Programación Visual Basic / Re: On Error GoTo NEXT en: 23 Agosto 2007, 05:12 am
eso se hace con funciones logicas IF THEN ELSE

pero si ya te resolvieron la duda ni ablar
114  Programación / .NET (C#, VB.NET, ASP) / {RUTINA} Arrastrar Controles VB 2008 en: 22 Agosto 2007, 08:27 am
Esta rutina es para arrastrar y redimenzionar contrles en tiempo de ejecucion
para el VB 2008

para redimenzionar con el boton derecho

Código
  1. Friend Class MoverControles
  2.    Inherits System.Windows.Forms.Form
  3.  
  4.    Private DX, DY As Integer
  5.    Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Integer, ByVal nIndex As Integer) As Integer
  6.    Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Integer, ByVal nIndex As Integer, ByVal dwNewLong As Integer) As Integer
  7.    Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Integer, ByVal hWndInsertAfter As Integer, _
  8.    ByVal X As Integer, ByVal Y As Integer, ByVal cX As Integer, ByVal cY As Integer, ByVal wFlags As Integer) As Integer
  9.  
  10.    Const GWL_STYLE As Integer = (-16)
  11.    Const WS_THICKFRAME As Integer = &H40000
  12.    Const SWP_DRAWFRAME As Integer = &H20
  13.    Const SWP_NOMOVE As Integer = &H2
  14.    Const SWP_NOSIZE As Integer = &H1
  15.    Const SWP_NOZORDER As Integer = &H4
  16.    Private Sub Form_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
  17.        AsignarEventos(Me)
  18.  
  19.    End Sub
  20.    Private Sub Control_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs)
  21.        DX = e.X
  22.        DY = e.Y
  23.        If e.Button = MouseButtons.Right Then
  24.            CambiarEstilo(CType(sender, Control))
  25.        Else
  26.            CType(sender, Control).BringToFront()
  27.        End If
  28.    End Sub
  29.    Private Sub Control_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs)
  30.        If e.Button = MouseButtons.Left Then
  31.            CType(sender, Control).Left = e.X + CType(sender, Control).Left - DX
  32.            CType(sender, Control).Top = e.Y + CType(sender, Control).Top - DY
  33.        End If
  34.    End Sub
  35.    Private Sub AsignarEventos(ByVal elControl As Control)
  36.        Dim ctrl As Control
  37.        For Each ctrl In elControl.Controls
  38.            If ctrl.Name <> "cmdAlgo" And ctrl.Name <> "txtControl1" And ctrl.Name <> "txtControl1" Then ' aqui vaz agregando los controles que quieres estaticos y no redimensionables
  39.                AddHandler ctrl.MouseDown, AddressOf Me.Control_MouseDown
  40.                AddHandler ctrl.MouseMove, AddressOf Me.Control_MouseMove
  41.                AsignarEventos(ctrl)
  42.            End If
  43.        Next
  44.    End Sub
  45.    Private Sub CambiarEstilo(ByVal aControl As Control)
  46.        Dim Style As Integer
  47.        Try
  48.            Style = GetWindowLong(aControl.Handle.ToInt32, GWL_STYLE)
  49.            If (Style And WS_THICKFRAME) = WS_THICKFRAME Then
  50.                Style = Style Xor WS_THICKFRAME
  51.            Else
  52.                Style = Style Or WS_THICKFRAME
  53.            End If
  54.            SetWindowLong(aControl.Handle.ToInt32, GWL_STYLE, Style)
  55.            SetWindowPos(aControl.Handle.ToInt32, Me.Handle.ToInt32, 0, 0, 0, 0, SWP_NOZORDER Or SWP_NOSIZE Or SWP_NOMOVE Or SWP_DRAWFRAME)
  56.        Catch
  57.        End Try
  58.    End Sub
  59. End Class
115  Programación / Programación Visual Basic / Re: %RUTASCLAVE% en: 22 Agosto 2007, 08:20 am
Me.Caption = Environ("windir") & "\" & "Malicio.exe"
se usa asi,
 y para saber que claves soporta tu sistema con :
Ctrl+R>cmd>set
ay viene con su clave y su especificasion
116  Programación / Programación Visual Basic / Re: Leer un txt colgado en una web. en: 21 Agosto 2007, 21:13 pm
Código
  1. Option Explicit
  2. Dim Url As String
  3. Private Sub cmdExt_Click()
  4.    Url = txtURL.Text
  5.    If Len(Url) > 11 Then
  6.        txtCode.Text = intCon.OpenURL(Url)
  7.        MsgBox "ya esta el code we", vbOKOnly, ""
  8.    Else
  9.        MsgBox "Pon un Url valido", vbCritical, "Extorcionador"
  10.    End If
  11. End Sub
  12.  

jejeje esto lo avia echo para sacar el codigo fuente html pero = te sirve
por que saca los txt
117  Programación / Programación Visual Basic / Re: Vb6 vs. Visual Studio 2005.- en: 21 Agosto 2007, 07:41 am
a i por que no simplemente  programas en VB 2005

esta facilito, solo cambian pocas cosas

bueno realmente muchas cosas camban, tanto que algunos colegas lo cnsuderan otro lenguaje y ya no el de cuarta como solia ser en mis tiempos

jejejeje

por ejemplo asimple vista vi que desaparecio caption y aparecieron mas propiedades y subpropiedades

en conclusion es un desman pero ve lo de esta forma, ya sabras "dos lenguajes xD"

xD bueno  saludos

por cierto alguien sabe si ay algun cambio de VB 2005 al 2008 ?
118  Programación / Programación Visual Basic / Re: xD donde esta la diferecia? en: 20 Agosto 2007, 08:15 am
pues cambia pastante

y vb 2005 no es = a VB.NET

yo contaba con Navigate2 y no lo tiene el 2005 express

xD
119  Programación / .NET (C#, VB.NET, ASP) / Re: Leer archivos en cd/dvd - vb.net en: 20 Agosto 2007, 08:01 am
http://foro.elhacker.net/index.php?board=62.0

este es el sub foro que buscas,

por cierto ay? subforo de VB 2005 Express
120  Programación / Programación Visual Basic / Re: conexión con winsock, cuando el servidor está detrás del router y de la LAN en: 17 Agosto 2007, 00:02 am
jojojo no tienes algun link EON
Páginas: 1 2 3 4 5 6 7 8 9 10 11 [12] 13 14 15 16 17 18 19 20 21 22 23
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines