473,405 Members | 2,445 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,405 software developers and data experts.

vb.net system tray app - slow response time when viewing form

dk
Any idea why the response time is slow when running
a system tray app when viewing the properties form?
There is one primary loop and a timer control which
executes every 3minutes. Is having the Primary loop the
problem?

tia,
dk
'Primary loop
Do While Me.mbRunning
With Me.tryIcon
If RTrim(strstatus$) = "" Then strstatus$
= "The first refresh interval is cycling, please stand by"
.Text = strstatus$
.ContextMenu = Me.mnuOptions
End With
Dim temppathstring As String = AppPath()
Dim tempconfigfile As New configfile
(temppathstring + "\triggerwatch.config")
System.Threading.Thread.Sleep
(tempconfigfile.GetAppSetting("spinratekey") * 100)
Application.DoEvents()
If tempconfigfile.GetAppSetting
("animateiconkey") = "true" Then
Me.AnimateIcon()
Else
Me.DoNotAnimateIcon()
End If
temppathstring = Nothing
tempconfigfile = Nothing
Loop
Nov 20 '05 #1
1 2565
On Tue, 21 Oct 2003 06:55:50 -0700, dk wrote:
Any idea why the response time is slow when running
a system tray app when viewing the properties form?
There is one primary loop and a timer control which
executes every 3minutes. Is having the Primary loop the
problem?

tia,
dk
'Primary loop
Do While Me.mbRunning
With Me.tryIcon
If RTrim(strstatus$) = "" Then strstatus$
= "The first refresh interval is cycling, please stand by"
.Text = strstatus$
.ContextMenu = Me.mnuOptions
End With
Dim temppathstring As String = AppPath()
Dim tempconfigfile As New configfile
(temppathstring + "\triggerwatch.config")
System.Threading.Thread.Sleep
(tempconfigfile.GetAppSetting("spinratekey") * 100)
Application.DoEvents()
If tempconfigfile.GetAppSetting
("animateiconkey") = "true" Then
Me.AnimateIcon()
Else
Me.DoNotAnimateIcon()
End If
temppathstring = Nothing
tempconfigfile = Nothing
Loop


I'm not sure what the purpose of the loop is. Is it to cause the tray icon
to be animated? That could easily be accomplished with a timer, and
probably more efficiently as well. A tight loop can certainly cause slow
response time, but without knowing more about your application, it's
difficult to tell.

What is "Me"? Does that refer a form? A component?

I think some more information about the structure of your app would be
helpful.
--
Chris

To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address.
Nov 20 '05 #2

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

Similar topics

0
by: Stefan Engstr?m | last post by:
My mysql is responding strangely to a select when I try to ask for particular columns instead of everything. Here is an example which is querying a database of a few thousand elements in each...
2
by: ericlangland | last post by:
Hi, I have a small managed code application (windows forms) that executes on startup and immidiatly minimizes to the system tray. It launches and shows the form when I double click it's small...
2
by: Roseanne | last post by:
We are experiencing very slow response time in our web app. We run IIS 6 - windows 2003. I ran iisstate. Here's what I got. Any ideas?? Opened log file 'F:\iisstate\output\IISState-812.log'...
6
by: DaveOnSEN | last post by:
Every time I make any .NET framework based webservice consumer I have the same problem: The first call my application makes to consume a webservice takes about 15 seconds. Subsequent calls are...
3
by: Patrick Dugan | last post by:
I am using VS2005 (vb) and I have a program that starts when Windows boots up. Occasionally the icon that should appear in the system tray does not show up. The program is still running in memory...
0
by: gomzi | last post by:
Hi, I would like to know as to how one could effectively reduce the response time when using paging in gridview. i.e. I am basically interested in knowing as to how to implement custom paging for...
2
by: TBOOTS | last post by:
We developed a db to support some data entry work and reporting. The work is done in US, Europe, & Asia. When we rolled out the db, it worked fine in the US, but Asia & Europe took an hour to open...
22
by: rottmanj | last post by:
I am working on an app that I need to minimize/close to the system tray. More or less I have the minimize to the system tray working, save caveat. When it is minimized the application still...
4
by: goozak | last post by:
Hello, I'm working on a web application using Apache (2.0.55), PHP (5.2.8) & SQL Server 2008 Express (using the Microsoft provided php extension php_sqlsrv_52_ts_vc6.dll) and I have a speed...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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,...
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.