473,396 Members | 2,013 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.

Best way to check things in background in MDI window

Tom
I have an MDI application in VB.NET. The main MDI window has a status
bar, and menu bar. Child MDI windows are opened via the menu on the
main MDI window.

Now, what I want to do is add code to the main MDI window so that,
every 'xxx' amount of minutes, it goes out and checks a database for
some information. Based on that info, it will update some panels on the
status bar. What is the best way to accomplish this, while still
leaving the MDI child windows running at peak efficiency? I know I
could just drop a timer onto the main MDI window, and set that to the
appropriate number of seconds; however, I don't know what effect
(performance wise) that would have on the other child MDI window
processing... Would it be better to use a delegate, or thread for this?
Which way would be the most efficient? Or is the easier way (i.e. a
timer) just a good?

Thanks.

Chimp (Tom)
--

Sep 8 '06 #1
1 1146
I would assume a Time is easier. ( i am unsure what a delegate is ( still
new to vb ),
but Timer vs Thread, Timer wins in my opinion in this case )

You still need to check ur data every so many minutes - a timer does that
for you

A timer runs in its own thread,

So basically by you creating your own thread and have its own "internal
timer" somehow to check
your database every so many minutes - you have just reprogrammed the timer.

M.

"Tom" <to*@nospam.comwrote in message
news:er**************@TK2MSFTNGP04.phx.gbl...
>I have an MDI application in VB.NET. The main MDI window has a status
bar, and menu bar. Child MDI windows are opened via the menu on the
main MDI window.

Now, what I want to do is add code to the main MDI window so that,
every 'xxx' amount of minutes, it goes out and checks a database for
some information. Based on that info, it will update some panels on the
status bar. What is the best way to accomplish this, while still
leaving the MDI child windows running at peak efficiency? I know I
could just drop a timer onto the main MDI window, and set that to the
appropriate number of seconds; however, I don't know what effect
(performance wise) that would have on the other child MDI window
processing... Would it be better to use a delegate, or thread for this?
Which way would be the most efficient? Or is the easier way (i.e. a
timer) just a good?

Thanks.

Chimp (Tom)
--

Sep 8 '06 #2

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

Similar topics

131
by: Peter Foti | last post by:
Simple question... which is better to use for defining font sizes and why? px and em seem to be the leading candidates. I know what the general answer is going to be, but I'm hoping to ultimately...
145
by: Mark Johnson | last post by:
Oddly enough, I found it difficult, using Google, to find a list of best-of sites based on the quality of their css packages. So I'd ask. Does anyone know of particularly good sites which are in...
4
by: Mimo Zus | last post by:
I'm hoping that someone can explain what's going on; better yet provide a workaround. I'm designing a centered CSS site based on a 550 pixel wide vertical background image. Onto this background...
3
by: Peter Williams | last post by:
Hi All, I want to write some javascript for a html page which does the following. Imagine that the page contains a table with 2 columns and 3 rows, e.g.: +---+---+ | A | B | +---+---+
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
1
by: Chris Uwins | last post by:
Hi there, i know theres a number of ways I can achieve this but want to know the best, (but still quite simple). Up until a year ago I never used Access but have designed a few databases for...
25
by: pamelafluente | last post by:
Hi Guys, I have the following HTML code which is doing a GET to a page, say MyUrl.aspx : <body> <form name="form1" method="get" action="MyUrl.aspx" id="form1"> <input type="hidden"...
6
by: seb | last post by:
Hi, I am using pygtk for the first times. I am wondering what would be the best "pattern" to interface pygtk with a thread. The thread is collecting informations (over the network for...
3
by: fahrenheit | last post by:
Our client has asked that we things up so that the user must fill out a short form with some basic information if they want to access a number of PDFs on their website, once per session (please...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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
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
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...

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.