Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
Visual Basic 6 - Ridurre un Soft a IconTray e poterlo riaprire
Forum - Visual Basic 6 - Ridurre un Soft a IconTray e poterlo riaprire - Pagina 4

Pagine: [ 1 2 3 4 ] Precedente | Prossimo
Avatar
GrG (Member)
Guru^2


Messaggi: 3430
Iscritto: 21/08/2007

Segnala al moderatore
Postato alle 19:45
Venerdì, 11/09/2009
prova a sostituire dal mio progr di esempio questa parte:
Codice sorgente - presumibilmente VB.NET

  1. Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  2. Dim Msg As Long
  3. Msg = X / Screen.TwipsPerPixelX
  4. If Msg = WM_RCLICK Then
  5. form1.popupmenu form2.NomeMenu 'devi creare un form2 con il menu
  6. End If
  7. End Sub



con questa:
Codice sorgente - presumibilmente VB.NET

  1. Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  2. Dim Msg As Long
  3. Msg = X / Screen.TwipsPerPixelX
  4. If Msg = WM_LDBCLICK Then 'click tasto sinistro
  5. Call RemoveFromTray
  6. Form1.WindowState = vbNormal
  7. Form1.Show
  8. End If
  9. End Sub


PM Quote
Avatar
fusebyte (Normal User)
Expert


Messaggi: 332
Iscritto: 24/12/2008

Segnala al moderatore
Postato alle 19:57
Venerdì, 11/09/2009
Si,effettivamente ora il tuo funziona.

PM Quote
Avatar
GrG (Member)
Guru^2


Messaggi: 3430
Iscritto: 21/08/2007

Segnala al moderatore
Postato alle 20:14
Venerdì, 11/09/2009
:k::k::k::k:

PM Quote
Avatar
fusebyte (Normal User)
Expert


Messaggi: 332
Iscritto: 24/12/2008

Segnala al moderatore
Postato alle 22:16
Venerdì, 11/09/2009
Provo a fare delle modifiche al mio codice,basandomi sul tuo.
Vediamo se risolvo.

Ciao

Ultima modifica effettuata da fusebyte il 11/09/2009 alle 22:20
PM Quote
Pagine: [ 1 2 3 4 ] Precedente | Prossimo