Timer Event on Windows 98

  • Thread starter Thread starter Tolga Tanriverdi
  • Start date Start date
T

Tolga Tanriverdi

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
 
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
 
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

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
 
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
 
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
 
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
 
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);
 
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.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.ProcessName.Equals("Programs
Title"))
[/code:1:07c0f2c5ce]

I couldnt solve it?
 
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
 
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
 
Back
Top