|
The resolutiion of the original image is much higher than that it'll be displayed in page coordinate.
It's possible to make it clear in page coordinate, any way?
Thanks very much.
|
|
|
|
|
how about Graphics.ScaleTransform (Single, Single)?
|
|
|
|
|
and ... Graphics.SmoothingMode = HighQuality ?
|
|
|
|
|
|
|
Hi All,
I have a TableLayoutPanel on a form and I want to let the user drag and drop objects on to it. I need to find out on which cell the dragged object has been dropped. is there any way to do it?
Thanks a lot
Aref
|
|
|
|
|
Hi there,
What I would do is to create inside each cell a full-docked control, like an empty label, then on the TableLayoutPanel DragDrop event I'd get the cell by the position of the control:
private void tableLayoutPanel1_DragDrop(object sender, DragEventArgs e)
{
Point p = tableLayoutPanel1.PointToClient(new Point(e.X, e.Y));
Control c = tableLayoutPanel1.GetChildAtPoint(p);
TableLayoutPanelCellPosition cellPos =
tableLayoutPanel1.GetCellPosition(c);
}
Try it, it's working.
The cell that gets the drop is reprisented by cellPos.Row and cellPos.Column
Hope that help.
Danny
|
|
|
|
|
Hello danny,
What is the relevance of creating a full docked control as you have explained. It will be great if you could spare some time to explain.
Thanks,
CPM
|
|
|
|
|
... because this code works only if there is some control at clicked position.
tableLayoutPanel1.GetChildAtPoint(p) ... would return null without the full docked control at the background.
modified 16-May-21 21:01pm.
|
|
|
|
|
Hello,
how can I create a littel process that listen to the
windows security when we enter the username and password?
I created a process that listen to all keyboard clicking
but it doesnt catch the security windows window (you know, when the
computer lock or something)
thanx.
|
|
|
|
|
If you can give me one, just one proof that this would be something beneficial to others for reasons that are NOT selfish then I'll help.
But I tell you, it's going to be VERY hard, because what you are trying to write is Spyware. Malware is not acceptable by good and decent devs.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
"There is no wealth like knowledge, no poverty like ignorance." Ali ibn Abi Talib
"Animadvertistine, ubicumque stes, fumum recta in faciem ferri?"
|
|
|
|
|
I'm really hoping that this is some kind of joke question. Because you really shouldn't have any reason to need this. And if you have a reason, then there is a much better alternative.
My current favourite word is: Bauble!
-SK Genius
|
|
|
|
|
There is absolutely no justifiable reason for needing to write this type of software.
|
|
|
|
|
O.K
really I'm not trying to get anyone password.
my reason is that I'm an administrator at my company
and we have a few computers with password for the employee
that we send to our customers but they have a kind of a window lock
when they enter a incorrect password and the windows lock it self
after 3 attempts .our employee swear us that they enter the password correct and we cant find the reason for all the locks.
it cost us a lot of money all those day the cant work beacuse the computer
lock it self. we want to find out if they entered the correct password
before the computer lock.
hope its a good reason.
thanx
|
|
|
|
|
Wouldn't you be able to tell from event log for the evident?
It's no good reason for that.
|
|
|
|
|
what event log can tell me?
i cant see there the incorrect password.
Even more, i don't need to see the password !!!
only the incorrect password , by that i can tell if they really
enter an incorrect password.
thank you.
|
|
|
|
|
I think it is the one under "Security" that you want.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
How about asking the question "Do you have the Caps Lock on?"
Alternatively image the computer with it's administrative login, then when you come to give the computer to customers load the original image back on.
There is no reason for needing to know other people's passwords.
The whole purpose of security is just that "security".
This means that nobody else knows your passwords and that way an accounting trail can be followed if needed and the appropriate people held responsible for their actions.
Also giving customers computers that your own employees have been using for email, documents etc is another security breach.
You always pass failure on the way to success.
|
|
|
|
|
believe me GuyThiebaut we tried everything!!!!
numlock,capslock, changing the password to only numbers.
|
|
|
|
|
I get that alot where I work and it always comes down to the user not entering the correct password for the domain that they picked.
|
|
|
|
|
believe me it ain't a domain issue.
|
|
|
|
|
I have a GIF animation which i want to paint in a picturebox. I know that a picturebox is capable of displaying GIF animations when you preload them in the designer etc (i have tried it). But I want to paint it (DrawImage it) on the picturebox control at runtime (I dont want to assign an image directly as it wont work for my project). Is there any way apart from using a timer to alternate between the various images of the animation. Thanks for all the help!!
|
|
|
|
|
Wow - that's news to me. I've never seen a picturebox play an animated gif and I know there are CP articles on how to get one to play in c#.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Nope, just checked, animates gif in both .Net 1.1, and 2.0. I we never knew...
My current favourite word is: Bauble!
-SK Genius
|
|
|
|
|
Anyway, had you looked, im sure you would have found:
System.Drawing.ImageAnimator.Animate(Image, onFrameChanged);
and
System.Drawing.ImageAnimator.UpdateFrames(Image);
Animate will use the animations of timing, and call you Frame Chenged event handler (in this case called 'onFrameChanged'), when its time for the next frame.
And UpdateFrames will just move on to the next frame, regardless of the time.
Google them to find out exactly how they work.
My current favourite word is: Bauble!
-SK Genius
|
|
|
|