473,661 Members | 2,502 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Threadin g.Thread.Sleep
(tempconfigfile .GetAppSetting( "spinrateke y") * 100)
Application.DoE vents()
If tempconfigfile. GetAppSetting
("animateiconke y") = "true" Then
Me.AnimateIcon( )
Else
Me.DoNotAnimate Icon()
End If
temppathstring = Nothing
tempconfigfile = Nothing
Loop
Nov 20 '05 #1
1 2578
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.Threadin g.Thread.Sleep
(tempconfigfile .GetAppSetting( "spinrateke y") * 100)
Application.DoE vents()
If tempconfigfile. GetAppSetting
("animateiconke y") = "true" Then
Me.AnimateIcon( )
Else
Me.DoNotAnimate Icon()
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
1542
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 table. This query works well and responds in less than a second: select * from measure as m1, measure as m2, pairs as p where m1.geneid=p.geneid and m1.exp=p.exp1 and m2.geneid=p.geneid and m2.exp=p.exp2 order by p.geneid
2
3912
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 icon in the system tray. So far so good. I'd like for the app to maximize outside of the system tray when the Windows + ? combination keys are selected. It seems that I can catch keystrokes when the form is showing but when minimized(Hide()) it in...
2
19577
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' *********************** Starting new log output
6
14476
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 very fast. What is happening during this initial delay, and is there anything I can do to fix this so my applications start up quickly? For example, typically the first call to consuming a webservice is some sort of 'login / authenticate'...
3
7922
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 but the tray icon is not there. If I start the program after Windows has booted up the icon shows every time. I am assuming that the reason is due to the icon being created before the system tray is loaded/running. I have used a timer with...
0
999
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 reducing the response time. Thanks, Gomzi.
2
1600
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 the db and 20 min to go through the data entry process, which should take 2-3 minutes. When we approach our IT group for support, they advised... "unfortunately Access is not a "tool" that lends itself to usage across the WAN. There is no...
22
17643
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 appears in the task bar. Is there a way to remove the application from the task bar? Here is my current code for minimize. private void Form1_Resize(object sender, System.EventArgs e) { if (FormWindowState.Minimized ==...
4
4145
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 problem with SQL Server Express. On my development machine, everything works fine. But when I setup other computers, the SQL Express takes much longer to respond. My development machine is a 3GHz Core2 Duo with 1.96 GB RAM and one of my test machine...
0
8343
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8545
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7364
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6185
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5653
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4179
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1986
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1743
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.