473,480 Members | 2,271 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Timer Event on Windows 98

I wrote a program which includes a timer event in it but if my program
executes on windows 98 the timer event is not running is something like
that possible
Thanks
Nov 16 '05 #1
9 1239
Hi Tolga,

If I understand you correctly and you want to limit the timer to operating
systems other than Windows 98, then you can find the information you need
in

Environment.OSVersion

If you detect Windows 98, disable or just not enable the timer.
Windows 98 is PlatformID.Win32Windows with a Version of 4.xxx
On Mon, 14 Mar 2005 13:04:46 +0200, Tolga Tanriverdi
<to***@sylveria.gen.tr> wrote:
I wrote a program which includes a timer event in it but if my program
executes on windows 98 the timer event is not running is something like
that possible
Thanks


--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #2
> Morten Wennevikwrote:
Hi Tolga,

If I understand you correctly and you want to limit the timer to operating systems other than Windows 98, then you can find the information you need in

Environment.OSVersion

If you detect Windows 98, disable or just not enable the timer.
Windows 98 is PlatformID.Win32Windows with a Version of 4.xxx
On Mon, 14 Mar 2005 13:04:46 +0200, Tolga Tanriverdi
<to***@sylveria.gen.tr> wrote:

I wrote a program which includes a timer event in it but if my program executes on windows 98 the timer event is not running is something like that possible
Thanks

--
Happy Coding!
Morten Wennevik [C# MVP][/quote:74f4ac3ae6]

No you understand me wrong my program's timer event is not working on
windows 98
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 16 '05 #3
I think i found the problem in my program after execution its becoming
a invisible(visible = false) and checking every process by a timer
event but in windows 98 if i make my executable invisible its closing
its process too how can i prevent this
Thanks
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 16 '05 #4
Does anyone have any idea why my program is not running on windows 98

can it be because of i compiled the program in windows xp?
Any help would be usefulll
Thanks
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 16 '05 #5
Dakkar,

I don't know any problem about that, however when you want answer, I think
than you than first have to tell what Timer you are using, there are 3 in
dotNet

Forms.Timer
Threading.Timer
System.Timer

Cor
Nov 16 '05 #6
can it be something about this
I have a process control line like this
Process[] proc = Process.GetProcesses();
int count = 0;
for (int i = 0; i < proc.Length; i++)
{
if
(proc[i].ProcessName.Equals("control98"))
{
count++;
}

}
but in windows xp its showing the executable's name in taskmanager but
in windows 98 its showing the programs title
Do i have to change the lineof
[code:1:07c0f2c5ce]
if (proc[i].ProcessName.Equals("Programs
Title"))
[/code:1:07c0f2c5ce]

I couldnt solve it?
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 16 '05 #7
Its System.Windows.Forms.Timer

and it is like this

System.Windows.Forms.Timer clock = new Timer();
clock.Interval = 2000;
clock.Start();
clock.Tick += new EventHandler(uocfgafter);

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 16 '05 #8
Dakkar,

The problem is that this is for most people not simple testable.
(You cannot debug it, it is every time create a program, deinstall, install
and run).

That you have probably to do yourself.

Cor
Nov 16 '05 #9
Yes i found the problem by tracing and deleting every line of my
program but i couldnt find the solution
In windows 98 you cannot call a process with its name
like(Process.GetProcessByName(procesname)
I dont know how but it has a different control mechanism does anyone
know anything about how can i control it?
Thanks
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 16 '05 #10

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

Similar topics

7
2127
by: Grahmmer | last post by:
I have a few timers that are added to a form at runtime. I can handle the event fine, but I cannot identify which timer fired. Is there a way to do this? Timer Creation: -------------...
4
11081
by: Liverpool fan | last post by:
I have a windows application written using VB .NET that encompasses a countdown timer modal dialog. The timer is a System.Timers.Timer with an interval of 1 second. AutoReset is not set so accepts...
5
12164
by: Tony Gravagno | last post by:
I have a class that instantiates two Timer objects that fire at different intervals. My class can be instantiated within a Windows Form or from a Windows Service. Actions performed by one of the...
16
3225
by: Peter Oliphant | last post by:
Note that although this involves SAPI, it is more a question about Timers and event handlers. I wrote a Speech Recognize handler (SAPI), and put some code in it to enable a Timer. It would not...
3
3846
by: Steve | last post by:
Hi All I am using VB.net 2008 and use timer controls within my applications Question Does the code in a Timer control.tick event run on a different thread to the main Application thread (UI...
0
6911
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
7050
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
7091
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...
1
6743
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
5344
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
2999
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...
0
2988
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
564
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
185
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...

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.