473,396 Members | 1,982 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,396 software developers and data experts.

Taskvisible and NotifyIcon. Not supported. Why?

TaskVisible property not supported in VB.Net
Is there any WinAPI around this problem?

Why do you support NotifyIcon when you do not support TaskVisible property
in VB.Net? Your help says similar interface as Antivirus, this is not true.
Antivirus only shoes up in Task List when it is visible.

My app cannot be a service, because it needs to be User Specific.
Quickbooks will automatically launch my Application when it starts up.
User can launch my application and leave it on the system tray using
NotifyIcon, for dynamic comaprisons.
My applciation can dynamically launch Quickbooks when needed.

The purpose of the application is to Synchronize data between QB and an SQL
application. The secondary purpose is to provide analysis tools, data
comparisons, and batch updates.
Needless to say this application is quite powerfull and security is a prime
concern.
Data integrity is extremely important, a confused user or accidental
activations can be problematic.

I need to remove the applcation from the Task List. So that Alt-Tab will
not activate my application or Task switching. Can you offer any
suggestions or workarounds?

Thank You
Lewis

Jul 21 '05 #1
3 2871
Hello Lewis,

Thanks for your post. As I understand, you are looking for the replacement
of App.TaskVisible in VB .NET. I'd like to share the following information
with you:

1. As you know, there is no equivalent for the TaskVisible property in
Visual Basic .NET, because such tasks generally run at background. Please
refer to the following MSDN article:

TaskVisible Property Changes in Visual Basic .NET
http://msdn.microsoft.com/library/de...us/vbcon/html/
vbcontaskvisiblepropertychangesinvisualbasicnet.as p?frame=true

2. To work around the problem, I suggest that you can create two projects,
one is a Service, the other is a WinForm application. The Service is
responsible for background data manipulation say, synchronizing data
between QB and SQL, data comparison, batch updates, etc. While the WinForm
application provides the user interface only, it forwards the user commands
to Service and displays the result.

Does this help?

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #2
Yeah, but that is not a great solution. Services run for the computer. So
if another user logs on the domain at that computer then the user can batch
update QB & SQL, and analyze confidential data.

QB has to be able to launch the app automatically, but the app must access
QB so it can automatically launch QB auto login feature. Asking for
password at QB and my app level is a bit redundant and may occur repeatedly.

Telling my users that they must place a padlock on the computer is also a
bit much.

Why would anyone want a NotifyIcon in a Windows Application? Should be
removed from arsenal then.

Lewis
"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:ZT**************@cpmsftngxa07.phx.gbl...
Hello Lewis,

Thanks for your post. As I understand, you are looking for the replacement
of App.TaskVisible in VB .NET. I'd like to share the following information
with you:

1. As you know, there is no equivalent for the TaskVisible property in
Visual Basic .NET, because such tasks generally run at background. Please
refer to the following MSDN article:

TaskVisible Property Changes in Visual Basic .NET
http://msdn.microsoft.com/library/de...us/vbcon/html/ vbcontaskvisiblepropertychangesinvisualbasicnet.as p?frame=true

2. To work around the problem, I suggest that you can create two projects,
one is a Service, the other is a WinForm application. The Service is
responsible for background data manipulation say, synchronizing data
between QB and SQL, data comparison, batch updates, etc. While the WinForm
application provides the user interface only, it forwards the user commands to Service and displays the result.

Does this help?

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #3
You give up to quickly!!! I also posted in vb.enteprise. Note my reply
below:

I FIGURED IT OUT. Below you will find the code. Y0ou may want to post this
as a sample.
Note the lines in New, Load, and Menuitem Click are all neccessary.
Otherwise you ALT-TAB will start off, or form visible, or MenuItem Click
will not display it the first time.

Public Class Form1
Inherits System.Windows.Forms.Form

Public Sub New()
MyBase.New()

'This call is required by the Windows Form Designer.
InitializeComponent()

'Add any initialization after the InitializeComponent() call
Me.WindowState = FormWindowState.Minimized
Me.Visible = False
Me.Hide()
End Sub
Private Sub MenuItem1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem1.Click
Me.Show()
Me.WindowState = FormWindowState.Normal
Me.Visible = True
Me.ShowInTaskbar = True
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.Hide()
End Sub

Private Sub Form1_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Me.WindowState = FormWindowState.Minimized
Me.Hide()
End Sub
End Class
Lewis
"Peter Huang" <v-******@online.microsoft.com> wrote in message
news:Zv**************@cpmsftngxa07.phx.gbl...
Hi Lewis,

Thanks for your quick reply.

To prevent the appliation was activated by using Alt-Tab, I think you may
simply set its to hide, so that it will be elimitated from the Task List,
which will achieve. You may hide the form by click a button, if you wants
to do it by click the minimized button, you may need to override the
winproc and handle the message yourself.
Private Sub MenuItem1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem1.Click
Me.WindowState = FormWindowState.Normal
Me.Show()
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.Hide()
End Sub

Public Class MyForm
Inherits System.Windows.Forms.Form
Public Const WM_SYSCOMMAND = &H112
Public Const SC_MINIMIZE = &HF020
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message) If m.Msg = WM_SYSCOMMAND And m.WParam.ToInt32 = SC_MINIMIZE Then
Me.Hide()
Me.WindowState = FormWindowState.Minimized
Return
End If
MyBase.WndProc(m)
End Sub
End Class

You may try my suggestion and let me know the result.
Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:ZT**************@cpmsftngxa07.phx.gbl... Hello Lewis,

Thanks for your post. As I understand, you are looking for the replacement
of App.TaskVisible in VB .NET. I'd like to share the following information
with you:

1. As you know, there is no equivalent for the TaskVisible property in
Visual Basic .NET, because such tasks generally run at background. Please
refer to the following MSDN article:

TaskVisible Property Changes in Visual Basic .NET
http://msdn.microsoft.com/library/de...us/vbcon/html/ vbcontaskvisiblepropertychangesinvisualbasicnet.as p?frame=true

2. To work around the problem, I suggest that you can create two projects,
one is a Service, the other is a WinForm application. The Service is
responsible for background data manipulation say, synchronizing data
between QB and SQL, data comparison, batch updates, etc. While the WinForm
application provides the user interface only, it forwards the user commands to Service and displays the result.

Does this help?

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Phil Galey | last post by:
VB.NET 2002 on Windows 2000 SP 3 When I start my program, the NotifyIcon appears in the tray, as it should. However, when I close the program, the NotifyIcon remains until I hover over it with...
0
by: petterl | last post by:
I have tried to find the error in the code below but I always get " An unhandled exception of type 'System.NullReferenceException' occurred in Unknown Module. Additional information: Object...
2
by: Bishop | last post by:
Is there a way to do the VB6 "App.TaskVisible = False" in VB.NET 2003?
2
by: Rob Mayo | last post by:
OK, maybe this is my opinion, maybe these are bugs. Given the folowing: I have a NotifyIcon on my Form, a Context menu associated with the NotifyIcon, and a MenuItem on the ContextMenu set as...
1
by: Artur Kowalski | last post by:
I have a NotifyIcon in my Windows Service project and I am trying to add a ContextMenu to this NotifyIcon or use some of the mouse events. Everything isn't working. I think so base class of the...
3
by: Glen | last post by:
Can anyone tell me if there is a workable method to get the mouse cursor position on the screen or the NotifyIcon position? I need to display a context menu for the NotifyIcon when clicked and I'd...
2
by: Derrick | last post by:
I've been working on an application which has a NotifyIcon (system tray icon), and a corresponding ContextMenu. I want to be able to update this menu dynamically. However, when I make changes to...
3
by: LWoodIS | last post by:
TaskVisible property not supported in VB.Net Is there any WinAPI around this problem? Why do you support NotifyIcon when you do not support TaskVisible property in VB.Net? Your help says...
1
by: \Ji Zhou [MSFT]\ | last post by:
Hello Jason, Thanks for using Microsoft Newsgroup Support Service, my name is Ji Zhou and I will be working on this issue with you. I have tried to but cannot reproduce your issue on my side....
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.