|
Okay that seems like that would work but I'm still not sure how I'd enforce 2 decimals.
|
|
|
|
|
k....
Do this....
DataGridView:>>Properties:>>Edit Columns::>Appearence::>DefualtCellStyle::>Format::>FormatType::>Numeric::>Decimal Places::>2
|
|
|
|
|
Thanks Najmal that worked.
|
|
|
|
|
|
|
|
I have no idea what it is that you're asking, but I *think* you're asking how to take an image that is itself distorted and undistort it. A picture box won't do that. If you want to DISTORT the image, by changing it's aspect ratio, then just draw it into a new bitmap of the required size using one of the DrawImage overloads on the Graphics class. That's easy.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I want to know how can I rename the [Main Report] tab on the Crystal Report Viewer to whatever name I want?
|
|
|
|
|
I want to know how can I remove the [Main Report] tab from the Crystal Report Viewer?
|
|
|
|
|
hellu... i got this codes from microsoft to capture when a key is pressed... i have modified to disable the task manager being called but it dowsnt work.... sohuld i have to tweak the code more.. plz help me..
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
const int WM_KEYDOWN = 0x100;
const int WM_SYSKEYDOWN = 0x104;
if ((msg.Msg == WM_KEYDOWN) || (msg.Msg == WM_SYSKEYDOWN))
{
switch (keyData)
{
//looking for the task manager combination
case Keys.Control|Keys.Alt|Keys.Delete:
MessageBox.Show("task manager called.");
break;
}
}
return base.ProcessCmdKey(ref msg, keyData);
}
|
|
|
|
|
This question has been asked *several* times, and I can't see any reason for disabling the task manager. I don't think the end-user would be too pleased if their task manager got disabled.
Why would you wanna do this?
Kristian Sixhoej
|
|
|
|
|
hey you pple out threre.... i am not a hacker of some kind u think.... i am making a client program for the lab monitoring system where the student is given with a login screen and if the task manager is avaliable he would end my application so i was asking....and i have found way for disabling the task manager by capturing or by global hooking .... thans...
|
|
|
|
|
If you really need to disable Task Manager for some legitimate reason, it's usually done using group policy. And that again is defined by the administrator.
|
|
|
|
|
Your code won't work. And, you're only attempting to stop one method of launching TaskManager. Other methods include launching it from the Ctrl-Alt-Del screen, starting it from a CMD prompt, starting it from the Start/Run box, writing a small script to launch it, ... and so on...
In short, you shouldn't even be trying to do this in a legitimate application.
|
|
|
|
|
You can't capture the key combination alt+control+delete. It's handled by the system and never reaches your application.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
hey you pple out threre.... i am not a hacker of some kind u think.... i am making a client program for the lab monitoring system where the student is given with a login screen and if the task manager is avaliable he would end my application so i was asking....and i have found way for disabling the task manager by capturing or by global hooking .... thans...
|
|
|
|
|
As we keep saying, disabling the task manager is done by group policy, if the lab doesn't want students to have access, they need to set this up, your code can't do it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I just thought, would a policy stop TSKILL from the command line?
My current favourite word is: Delicious!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
A policy can also ban access to the command line, can't it ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Of course
My current favourite word is: Delicious!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
I didn't say anything at all about what I think that you are or not are. I only pointed out that it's impossible to capture the alt+control+delete key combination. What ever you are or not are, doesn't change this fact.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
how about using this for disabling the taskman..... impossible is nothin
System.IO.File.Open("taskmgr.exe", FileMode.Open, FileAccess.ReadWrite, FileShare.None);
|
|
|
|
|
How does opening it disable it ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
modify the fileshare to grant total acess,,,
|
|
|
|
|
It seems to me that you're kind of dense. As has been said, the ONLY way to totally block access, is with group policies. I can think of lots of other things you could try, but none of them are fool proof. So long as the student is not locked down on the PC, they will find a way around what you're trying to do. Such as, writing a program that finds the process and kills it, or using the command line to kill it ( as someone else said ).
If this is homework, then stop going in circles, your teacher should know that what you're trying to do won't work. If it's a paid job, then tell the people you are robbing that they are just stupid enough to deserve to be working with you.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|