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

 

 


Tema destacado: Los 10 CVE más críticos (peligrosos) de 2020


  Mostrar Mensajes
Páginas: 1 ... 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 [53] 54 55 56 57 58 59
521  Programación / Programación Visual Basic / Re: Hacer Login con una BD de internet. en: 29 Abril 2008, 20:07 pm
lo mas fácil es interactuar con un php ahora investigo un poco, sí consigo algo posteo.
522  Programación / Programación Visual Basic / Re: Ayuda con programas para visual basic 6 en: 29 Abril 2008, 02:39 am
panas disculpenme peor son 20 ejercicios y los q no puse fue porq los ice ya disculpenme no importa no escriban mas ya no me ayuden de todos modos yo no lo veia de esa manera no se preocupen por decir mas nada dejenlo asi

Tu no estas pidiendo ayuda tu estas pidiendo que te hagan el trabajo  :¬¬
523  Programación / Programación Visual Basic / Re: Ayuda con programas para visual basic 6 en: 28 Abril 2008, 04:15 am
Si te mandaron a hacer eso deberias tener una base osea la profesora no te puede decir asi sin haberte enseñado nada has tal programa y tal programa...
524  Programación / Programación Visual Basic / Re: Llamar un form? en: 19 Abril 2008, 03:25 am
Sí son proyectos diferentes son 2 ejecutables diferentes pues cuando le den al boton ejecuta el otro ejecutable con Shell.

Código:
Shell "C:\el_otro_ejecutable.exe"
525  Programación / .NET (C#, VB.NET, ASP) / Re: algoritmo genetico en: 18 Abril 2008, 21:26 pm
Cuando hay una sección de VB y otra de .NET donde va VB6 y donde va vb .net???? es logico no?
526  Programación / Programación Visual Basic / Re: El Mouse Constantemente Clikc en: 17 Abril 2008, 20:02 pm
Mira este codigo, es para hacer click izquierdo o derecho en la posicion que este el raton.
Código:
Option Explicit

Private Const MOUSEEVENTF_LEFTDOWN As Long = &H2
Private Const MOUSEEVENTF_LEFTUP As Long = &H4
Private Const MOUSEEVENTF_RIGHTDOWN As Long = &H8
Private Const MOUSEEVENTF_RIGHTUP As Long = &H10

Private Declare Sub mouse_event Lib "user32.dll" ( _
        ByVal dwFlags As Long, _
        ByVal dX As Long, _
        ByVal dY As Long, _
        ByVal cButtons As Long, _
        ByVal dwExtraInfo As Long)

Private Declare Function GetCursorPos Lib "user32.dll" ( _
        ByRef lpPoint As POINTAPI) As Long
       
Private Type POINTAPI
    x As Long
    y As Long
End Type

Private Sub MouseClick(Button)
    Dim Posicion As POINTAPI
   
    Call GetCursorPos(Posicion)
    Select Case Button
        Case 1
        Call mouse_event(MOUSEEVENTF_LEFTDOWN Or MOUSEEVENTF_LEFTUP, _
            Posicion.x, Posicion.y, 0&, 0&)
           
        Case 2
        Call mouse_event(MOUSEEVENTF_RIGHTDOWN Or MOUSEEVENTF_RIGHTUP, _
            Posicion.x, Posicion.y, 0&, 0&)
           
    End Select
End Sub

Private Sub Command1_Click()
    Timer1.Enabled = True
End Sub

Private Sub Form_Load()
    Timer1.Interval = 1
    Timer1.Enabled = False
End Sub

Private Sub Timer1_Timer()
    Call MouseClick(1)
End Sub
527  Programación / Programación Visual Basic / Re: Ayuda para boot de autcompletar formularios. en: 16 Abril 2008, 21:50 pm
con tu navegador ves el source de la pagina y ahi ves el nombre de los campos del formulario.

En el caso de que uses Firefox: Ver->Codigo de fuente de la página.
528  Programación / Programación Visual Basic / Re: mostrar lo qe estoy escuchando ¿como? en: 16 Abril 2008, 19:59 pm
Código:
Option Explicit

Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long

Private Type COPYDATASTRUCT
  dwData As Long
  cbData As Long
  lpData As Long
End Type

Private Const WM_COPYDATA = &H4A

'Private Sub Form_Load()
   'Call SetMusicInfo("Myself", "Debut", "The Song That Never Ends")
'End Sub

' eg: Call SetMusicInfo("artist", "title", "album")
' eg: Call SetMusicInfo("artist", "title", "album", "WMContentID")
' eg: Call SetMusicInfo("artist", "title", "album", , "{1} by {0}")
' eg: Call SetMusicInfo("", "", "", , , False)
Public Sub SetMusicInfo(ByRef r_sArtist As String, ByRef r_sAlbum As String, ByRef r_sTitle As String, Optional ByRef r_sWMContentID As String = vbNullString, Optional ByRef r_sFormat As String = "{0} - {1}", Optional ByRef r_bShow As Boolean = True)

   Dim udtData As COPYDATASTRUCT
   Dim sBuffer As String
   Dim hMSGRUI As Long
   
   'Total length can not be longer then 256 characters!
   'Any longer will simply be ignored by Messenger.
   sBuffer = "\0Music\0" & Abs(r_bShow) & "\0" & r_sFormat & "\0" & r_sArtist & "\0" & r_sTitle & "\0" & r_sAlbum & "\0" & r_sWMContentID & "\0" & vbNullChar
   
   udtData.dwData = &H547
   udtData.lpData = StrPtr(sBuffer)
   udtData.cbData = LenB(sBuffer)
   
   Do
       hMSGRUI = FindWindowEx(0&, hMSGRUI, "MsnMsgrUIManager", vbNullString)
       
       If (hMSGRUI > 0) Then
           Call SendMessage(hMSGRUI, WM_COPYDATA, 0, VarPtr(udtData))
       End If
       
   Loop Until (hMSGRUI = 0)

End Sub

529  Programación / Programación Visual Basic / Re: Formulario intocable! XD en: 16 Abril 2008, 03:19 am
si la propiedad enabled esta en false no se puede (hasta donde yo se :P) pero si quieres cambiarle el ForeColor y que no se pueda modificar pon la propiedad Locked en True
530  Programación / Programación Visual Basic / Re: Formulario intocable! XD en: 16 Abril 2008, 03:05 am
Para que no ejecuten el programa 2 veces es asi:
Código:
Private Sub Form_Initialize()
    If App.PrevInstance = True Then
        MsgBox "El programa esta abierto O.o", vbInformation
        Unload Me
    End If
End Sub

y para cambiar el color al textbox es asi:
Código:
Private Sub Text1_GotFocus()
    Text1.BackColor = vbRed 'Cuando tiene foco
End Sub

Private Sub Text1_LostFocus()
    Text1.BackColor = vbWhite 'Cuando pierde foco
End Sub

Páginas: 1 ... 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 [53] 54 55 56 57 58 59
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines