473,397 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Hide when minimized

jamesd0142
469 256MB
Hi all,

Wondering if it is possible to hide my app when minimized?

The say way task manager works when you click > options > hide when minimized.
Or the same way outlook is running next to the syetm clock etc?

Cheers James
Attached Images
 
Feb 4 '08 #1
2 1573
jamesd0142
469 256MB
I've solved this now:

THis link helped:

http://www.startvbdotnet.com/controls/notifyicon.aspx
Feb 4 '08 #2
Hi all,

Wondering if it is possible to hide my app when minimized?

The say way task manager works when you click > options > hide when minimized.
Or the same way outlook is running next to the syetm clock etc?

Cheers James
Hi,
u can try by this following code:

Expand|Select|Wrap|Line Numbers
  1. Private Type NOTIFYICONDATA
  2. cbSize As Long
  3. hWnd As Long
  4. uId As Long
  5. uFlags As Long
  6. ucallbackMessage As Long
  7. hIcon As Long
  8. szTip As String * 64
  9. End Type
  10. Private Declare Function Shell_NotifyIcon Lib "shell32" Alias "Shell_NotifyIconA" (ByVal dwMessage As Long, pnid As NOTIFYICONDATA) As Boolean
  11. Dim tr As NOTIFYICONDATA
  12. Private Sub Form_Load()
  13. tr.hWnd = Me.hWnd
  14. tr.uFlags = 2
  15. tr.hIcon = Me.Icon
  16. Shell_NotifyIcon 0, tr
  17. End Sub
  18. Private Sub Form_Unload(Cancel As Integer)
  19. Shell_NotifyIcon 2, tr
  20. End Sub
  21.  
if u get success, reply me.
Get Better.

Again,
shuvo2k6
Feb 4 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: amil [c#newbie] | last post by:
Hi all, I am using the Notify Icon sample that came with .Net Docs and was able to run it. However, I want to start the form as minimized. I have the ShowInTaskbar = false and in the this is...
1
by: alex | last post by:
How to hide the form window when it's minimized? Please help.
1
by: ywchan | last post by:
I have set the ShowInTaskBar property of the form to false but it still appear when minimized... I want to have a similar effect as ICQ, when double click on the notify icon, the form appears and...
2
by: Li Pang | last post by:
When a form is hide, I'd like to check if it's in hide mode. How? Thanks
0
by: bamapookie | last post by:
I've written an app that starts and monitors a number of processes. If one of those processes dies, the app restarts it. One of the options I've written hides the main window of the monitored...
2
by: Terry Olsen | last post by:
Using the below code, If I use Me.WindowState=Minimized the program runs fine, but you have the taskbar showing the program running. If I use Me.Hide instead, the program immediately exits. If...
4
by: Blaine | last post by:
Does anyone know how I can hide a form from the TaskManager? I've set the ShowInTaskbar to False, but when using Alt-TAB to switch between applications, it appears as a blank icon. I can set it...
4
by: mac | last post by:
Brand Newbie Alert! I am working through the "Build a Program Now!" book by Microsoft Press. The last chapter has a little app that should stay in the system tray when the user clicks on the 'X'...
3
by: Raj Wall | last post by:
Hi, I have an application which, when running, is to be seen only in the system tray as a right-clickable icon. However I want the main Form window itself to immediately disappear without...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.