|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Bannato
Iscritto dal: Oct 2002
Città: Caraibi
Messaggi: 1081
|
AIUTO SCUOLA!
RAGAZZI mi potete aiutare...
devo spiegare il comando notifyicon con visual basic.net con relativo esempio!!!!!! GRAZIE ![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Nov 2000
Messaggi: 279
|
!
Non è sufficiente ciò che dice l'SDK??
__________________
In un arco di tempo abbastanza lungo l'indice di sopravvivenza di ognuno scende a zero |
![]() |
![]() |
![]() |
#3 |
Bannato
Iscritto dal: Oct 2002
Città: Caraibi
Messaggi: 1081
|
L'SDK???
Datemi anke una dritta, un nome di un sito....
|
![]() |
![]() |
![]() |
#4 |
Senior Member
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
|
Ti consiglio di scaricarti API-Guide...
Codice:
'Download the full source+pictures+... at http://www.allapi.net/php/redirect/redirect.php?action=download&id=38 Private Type NOTIFYICONDATA cbSize As Long hWnd As Long uId As Long uFlags As Long ucallbackMessage As Long hIcon As Long szTip As String * 64 End Type Private Const NIM_ADD = &H0 Private Const NIM_MODIFY = &H1 Private Const NIM_DELETE = &H2 Private Const NIF_MESSAGE = &H1 Private Const NIF_ICON = &H2 Private Const NIF_TIP = &H4 Private Const WM_LBUTTONDBLCLK = &H203 Private Const WM_LBUTTONDOWN = &H201 Private Const WM_RBUTTONUP = &H205 Private Declare Function Shell_NotifyIcon Lib "shell32" Alias "Shell_NotifyIconA" (ByVal dwMessage As Long, pnid As NOTIFYICONDATA) As Boolean Dim TrayI As NOTIFYICONDATA Private Sub Form_Load() TrayI.cbSize = Len(TrayI) 'Set the window's handle (this will be used to hook the specified window) TrayI.hWnd = pichook.hWnd 'Application-defined identifier of the taskbar icon TrayI.uId = 1& 'Set the flags TrayI.uFlags = NIF_ICON Or NIF_TIP Or NIF_MESSAGE 'Set the callback message TrayI.ucallbackMessage = WM_LBUTTONDOWN 'Set the picture (must be an icon!) TrayI.hIcon = imgIcon(2).Picture 'Set the tooltiptext TrayI.szTip = "Recent" & Chr$(0) 'Create the icon Shell_NotifyIcon NIM_ADD, TrayI Me.Hide End Sub Private Sub Form_Unload(Cancel As Integer) 'remove the icon TrayI.cbSize = Len(TrayI) TrayI.hWnd = pichook.hWnd TrayI.uId = 1& Shell_NotifyIcon NIM_DELETE, TrayI End End Sub Private Sub mnuPop_Click(Index As Integer) Select Case Index Case 0 MsgBox "KPD-Team 1998" + Chr$(13) + "URL: http://www.allapi.net/" + Chr$(13) + "E-Mail: KPDTeam@Allapi.net", vbInformation + vbOKOnly Case 2 Unload Me End Select End Sub Private Sub pichook_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) Msg = X / Screen.TwipsPerPixelX If Msg = WM_LBUTTONDBLCLK Then 'Left button double click mnuPop_Click 0 ElseIf Msg = WM_RBUTTONUP Then 'Right button click Me.PopupMenu mnuPopUp End If End Sub Private Sub Timer1_Timer() Static Tek As Integer 'Animate the icon Me.Icon = imgIcon(Tek).Picture TrayI.hIcon = imgIcon(Tek).Picture Tek = Tek + 1 If Tek = 3 Then Tek = 0 Shell_NotifyIcon NIM_MODIFY, TrayI End Sub |
![]() |
![]() |
![]() |
#5 |
Senior Member
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
|
Che pa@@e 'sto .Net... Non avevo visto che era per .Net...
|
![]() |
![]() |
![]() |
#6 |
Member
Iscritto dal: Oct 2002
Città: Magica ROMA!!!
Messaggi: 85
|
Sei sicuro che non intendi dire la notifyicon Class o il notifyicon Constructor?
Cmq... ********************** Icons in the status area are short cuts to processes that are running in the background of a computer, such as a virus protection program or a volume control. These processes do not come with their own user interfaces. NotifyIcon provides a way to program in this functionality. Icon defines the icon that appears in the status area. Pop-up menus for an icon are addressed with ContextMenu. Text assigns ToolTip text. In order for the icon to show up in the status area, Visible must be set to true. ***************** |
![]() |
![]() |
![]() |
#7 |
Bannato
Iscritto dal: Oct 2002
Città: Caraibi
Messaggi: 1081
|
Grazie a tutti!
Non c'ho capito molto...alla fine ho fatto un mini programmino per vedere le potenzialità...
Visto ke da poco sono entrato nel mondo di Vb.net volevo kiedervi un possibile manuale online (magari ITA)!!!!!! GRAZIE ANCORA!!!! |
![]() |
![]() |
![]() |
#8 |
Member
Iscritto dal: Oct 2002
Città: Magica ROMA!!!
Messaggi: 85
|
I manuali on line di Vb.Net sono quasi tutti poco validi...
Comprati un buon testo in libreria ;-) Ciao |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 20:59.