|
hello every one,
I think Timer class is not accurate when measuring in miliseconds. I want to update a windows form control (e.g. Label ) with 1-minute count-down timer in milliseconds .if it is not applicable , every 10 milliseconds .
I think the problem in TimerTick method when incrementing and calculating minutes, it takes time plus the winform update time ??
I hop some one can help.
Thanks so mych in advance
All You Need Is A Good Friend
|
|
|
|
|
Why? Any why would a user want it?
|
|
|
|
|
in BasketBall scoring application. Last minute should be in milliseconds
All You Need Is A Good Friend
|
|
|
|
|
I doubt it. Probably not achievable anyway. You should read Luc's article...
|
|
|
|
|
you rang, my Lord?
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
|
|
|
|
|
Hi,
you may want to read my timers article (Timer surprises, and how to avoid them[^]) then. It does not mention StopWatch, as that wasn't around at that time.
my conclusion would be it is hard to get events at a frequency of 1kHz, however it is rather easy to get an accurate time using either StopWatch or a multimedia timer.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
|
|
|
|
|
|
DateTime.Now.miliseconds;
|
|
|
|
|
That's somewhat like measuring a length rounded to the whole meter, and then converting it to inches with 2 decimal places.
|
|
|
|
|
Indeed. Here[^]'s a little write-up similar to that.
|
|
|
|
|
I've encountered a baffling problem with images, and I'm hoping someone who has seen something similar might suggest what's going wrong.
I'm working with CMYK bitmaps (not RGB) and generating separate cyan, magenta, yellow, and black bitmaps for printing. I'm adding some markup to the black plane before the bitmaps are generated.
The problem is the black markup is appearing on all four planes, and where it does appear, only every 4th column is written. It's almost as if the black markup is being diluted over the four planes.
Now for the baffling part: It only happens on SOME machines. It works correctly MOST OF the time. I've only seen this malfunction on three machines.
I've tried copying the same .EXE and .DLLs and the results are consistent on each machine, i.e. it appears to be machine-specific, not file-specific. On two machines that have the same service pack (3) of Windows XP, one exhibits the problem, and one doesn't.
Has anyone seen any behavior like this before, or have any idea what's causing the inconsistent results? Thanks!
|
|
|
|
|
Hi Alan,
never heard such a thing, I find it quite intriguing indeed.
First thought was about undercolor removal, but then you said it is black you added.
Some questions:
- how do you observe this? by watching a color component bitmap on screen? or only by actually printing/plate making?
- the added text is pure black?
- what is the background color?
- what is the ImageFormat at the input, anything with lossy compression (e.g. JPEG)?
- if the black adition is H pixels high (or W pixels wide), are the color shadows also H pixels high (or W pixels wide, give or take 3 due to your "every 4th column" remark)?
- how solid/saturated are the colored shadows of your black additions? or is it mostly an outline effect?
(that would suggest your text got added with anti-aliasing, resulting in some gray pixels at the edge, and then maybe your font rendering logic differs on some machines.)
- assuming your input images are not CMYK, what are they? RGB? how many bits? and what code do you use for CMYK conversion? if that is part of a library, please check for version differences here.
- any chance you have dithering/screening code running *before* you do color separation?
- any chance I could see some of the images (in, out) myself?
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
|
|
|
|
|
Hi Luc,
The problem has been solved: The images that showed this phenomenon had a 5th, alpha channel, which was being used for White, so the pixel format was CMYKW. (Research on the use of extra channels is being done concurrently, and the three machines that showed the problem just happened to have images with extra channels.)
Thanks for your help!
Alan
|
|
|
|
|
No problem. Glad you managed to solve it.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
|
|
|
|
|
Hi there,
I am using asp.net default role/membership provider for my new website using login control. I have data stored in a remote sql database -aspbnetdb. I am using the default functionalities to check login status, create new user update, delete user/role etc. Everything works fine when i am run in the VS 2008 development. But when i deploy my website into IIS 6, my membership doesnt work. When i give the login credentials, my IIS completly ignore what i have given in my webform and i ended upgetting an error saying
System.Data.SqlClient.SqlException: Login failed for user 'domain\machinename$'. But i didnt give this id anywhere. Do i need to have a account in this id at the database.
This could be a easy fix, but i really dont know how to fix this.
Appreciate any help.
Thanks!!
|
|
|
|
|
|
Just trying to learn this stuff it is not a must but i seen Linq is very cool
Ok well i want to get titles from my existing dataset where they equal the text of a textbox so i was trying to do something like this using linq....
<pre>
var _data = from books in bookdbDataSet.Booklist
where title(textbox.text)
select title;
</pre>
then i wanted to make the binding source that of _data
so i thought something on the lines of
bindingnavigator.bindingsource.datasource = _data;
then calling the
bindingnavigator.bindingsource.filter some how another to show the results of the linq
is this even possible? And if so how would it be done cause linq looks pretty neat but I like the bindingnavigator filter option too
|
|
|
|
|
Go here:
http://msdn.microsoft.com/en-us/library/system.windows.forms.bindingnavigator.aspx[^]
It looks pretty cut and dried to me (the c# example is closer to the bottom of the page). Notice that the BindingSource is allocated, and then set in the form_Load() method.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Hello every one,
I need this urgentlly.
I want to write a C# application that run on the start up and automatically connect to a PC in my network showing its desktop (Just show it , no need for control.)
any one can help please ?!
All You Need Is A Good Friend
|
|
|
|
|
May be using Windows Remote Assistance that comes with windows live messenger can help. but I dont know how !
All You Need Is A Good Friend
|
|
|
|
|
Maybe you could use Desktop Sharing via RDP[^]?
I are Troll
|
|
|
|
|
I dont have Vista. I want a solution on windows XP
All You Need Is A Good Friend
|
|
|
|
|
Dr.DigiTaL wrote: I want a solution on windows XP
This[^] might work, I haven't tried it
I are Troll
|
|
|
|
|
i am implementing a graphical password authentication system. I need to provide a tolerance area around Mouse Click Positions on a picture box. Can anyone help.
|
|
|
|
|
Can you be a bit more specific about what you're trying to do, in particular what do you mean by a 'tolerance area'?
Regards,
Rob Philpott.
|
|
|
|