elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.
 
Inicio Ayuda Ingresar Registrarse
12 Octubre 2008, 07:54  



  Mostrar Mensajes
Páginas: 1 2 3 4 5 6 7 8 9 10 11 12 [13] 14 15 16 17
181  Programación / Programación VB / Re: Trabajar con lista aleatoriamente en: 02 Mayo 2008, 23:09
Bueno... yo lo haria asi:

Código:
Option Explicit

Private Sub Command1_Click()
Dim Equipos As Variant

Equipos = Array("Barcelona", "Milan", "Chelsea", "Real Madrid")

Randomize

Label1.Caption = Equipos(Int(Rnd * (UBound(Equipos) + 1)))
End Sub


Es Dim Equipos() As variant

creo recordar o si queres un numero definido Dim Equipos(1 To 200) As Variant

hace tiempo q no programo en VB asi q no estoy seguro XD

En este caso no es necesario poner () bueno creo yo... porque lo probe y funciono bien.
182  Programación / Programación VB / Re: Trabajar con lista aleatoriamente en: 02 Mayo 2008, 21:31
Bueno... yo lo haria asi:

Código:
Option Explicit

Private Sub Command1_Click()
Dim Equipos As Variant

Equipos = Array("Barcelona", "Milan", "Chelsea", "Real Madrid")

Randomize

Label1.Caption = Equipos(Int(Rnd * (UBound(Equipos) + 1)))
End Sub

183  Programación / Programación VB / Re: Jacesis TV 2008 [by Jacesis13] en: 02 Mayo 2008, 20:56
echo con Visual Basic 6.0 por un xabal de 13 años jejejeej)

1. Creo que a nadie le importa tu edad.
2. No seas tan presumido por tu edad.

No te lo tomes a mal.
184  Programación / Programación VB / Re: limitar "Y" pocicion en pantalla en: 01 Mayo 2008, 04:22
ni idea,a mi me la deja subir hasta arriba de todo,hasta que se oculta casi toda la titlebar...

a mi no me deja subir todo... tiene un limite que no puedes subir mas la ventana.
185  Programación / Programación VB / Re: Hacer Login con una BD de internet. en: 30 Abril 2008, 20:33
te hice un ejemplo con el control Inet.

http://rapidshare.com/files/111564203/LOGINNN.rar.html
186  Programación / Programación VB / Re: Duda: MSN + saber inicio y cierre de sesion en: 30 Abril 2008, 20:12
es dificil que logres hacer cosas con el MSN sin el API
187  Programación / Programación VB / Re: Hacer Login con una BD de internet. en: 29 Abril 2008, 20:07
lo mas fácil es interactuar con un php ahora investigo un poco, sí consigo algo posteo.
188  Programación / Programación VB / Re: Ayuda con programas para visual basic 6 en: 29 Abril 2008, 02:39
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  :¬¬
189  Programación / Programación VB / Re: Ayuda con programas para visual basic 6 en: 28 Abril 2008, 04:15
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...
190  Programación / Programación VB / Re: Llamar un form? en: 19 Abril 2008, 03:25
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"
191  Programación / .NET / Re: algoritmo genetico en: 18 Abril 2008, 21:26
Cuando hay una sección de VB y otra de .NET donde va VB6 y donde va vb .net???? es logico no?
192  Programación / Programación VB / Re: El Mouse Constantemente Clikc en: 17 Abril 2008, 20:02
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
193  Programación / Programación VB / Re: Ayuda para boot de autcompletar formularios. en: 16 Abril 2008, 21:50
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.
194  Programación / Programación VB / Re: mostrar lo qe estoy escuchando ¿como? en: 16 Abril 2008, 19:59
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

195  Programación / Programación VB / Re: Formulario intocable! XD en: 16 Abril 2008, 03:19
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
Páginas: 1 2 3 4 5 6 7 8 9 10 11 12 [13] 14 15 16 17






Consolas     La Web de Goku     MilW0rm     MundoDivx

Hispabyte     Truzone     TodoReviews     ZonaPhotoshop

hard-h2o modding    Foros de ayuda    Yashira.org    Videojuegos    indetectables.net   

Noticias Informatica    Seguridad Informática    ADSL    Foros en español    eNYe Sec

Todas las webs afiliadas están libres de publicidad engañosa.

Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC
Free counter and web stats