|
|
I was fighting a similar issue yesterday night...
There is a memory leak happening. every time you create a curson, there is new object being created. Checkout in TaskManager... Number of GDIobjects and UserObjects go to a damn high.
check out this tutorial:
http://www.switchonthecode.com/tutorials/csharp-tutorial-how-to-use-custom-cursors[^]
In the comments, User: Aerdanel has sorted the memory leaks. Use the same method for your custom cursor.
Som
|
|
|
|
|
did you remove the message?
|
|
|
|
|
How to open tooltip in the bellow of textbox(I mean any control)?
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:50am.
|
|
|
|
|
Thanks!
the site you sent has problem!
I want this for windows application?
So Help!
|
|
|
|
|
How to right to left the text in tooltip ?
my code is
ToolTip tpl = new ToolTip();
tpl.IsBalloon = true;
tpl.ToolTipIcon = ToolTipIcon.Error;
tpl.ToolTipTitle = "آيا رمز عبور خود را فراموش كرده ايد؟";
tpl.Show(" \n لطفاً دوباره امتحان نماييد. \n از كوچك و بزرگ بودن حروف رمز عبور مطمئن شويد.", txt, txt.Left-40, txt.Top-20, 3000);
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:50am.
|
|
|
|
|
This site has problems!
How to right-to-left the tooltip !
|
|
|
|
|
Hi my friends. I was working on one of my application in C# and i was using the following code
MessageBox.Show("Are you sure", "Confirm", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
after this line of code it comes a messagebox which says "Are you sure" ... and Yes and No buttons ... but I wanted to know which button was pressed ... .. i.e If the user presses yes ... I want to delete some thing from Database ... If not continue as it is ..... Can any body tell me how to operate on this question.
Thank you
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:53am.
|
|
|
|
|
stancrm wrote: if (result == DialogResult.Yes)
//... do something here
else if(result == DialogResult.No)
//... do something here
I have been trying zis a lot and a lot ... but i didnt use ... this one ..
stancrm wrote: DialogResult result = MessageBox.Show("Are you sure", "Confirm", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
So tnx a lot ma man ...
|
|
|
|
|
This is more tidy I guess.
if(MessageBox.Show("Are you sure", "Confirm", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
{
}
else
{
}
|
|
|
|
|
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]
|
|
|
|