|
System.IO.Path.GetFileNameWithoutExtension
and
System.IO.File.Move
|
|
|
|
|
Hello,
I'm trying to make my form blink when it's minimaze or not in focus (like in MSN),
when some event fired.
Is there any option of doing it with C#?
Thanks
modified on Monday, July 27, 2009 12:40 PM
|
|
|
|
|
Have a look at this[^]. Especially the link within to this[^]
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
|
Hi,i can't understand how to get it work only when the window is minimaze,
and a new line or lines added to the kistbox...
Someone can help me here?
|
|
|
|
|
|
No,
He need to fired the TextChaned event (i think).
|
|
|
|
|
If anyone knows or has codegenerator that will create:
public interface IMyInterface
{
IAsyncResult BeginMyMethod(int param,AsyncCallback callback,object state);
int EndMyMethod(IAsyncResult result);
}
from
public interface IMyInterface
{
int MyMethod(int param);
}
I`ve found only java version of it.
|
|
|
|
|
|
I am want to create a simple windows application,it's some options for i want to add.
If u run the application, At the time Task Manager,Esc,windows keys are disabled.how to do?
|
|
|
|
|
Member 4235601 wrote: If u run the application, At the time Task Manager,Esc,windows keys are disabled.how to do?
Why would anybody do that?
The only application which would like do this is some kind of malware.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
When your application running, create one separate thread which will continiously checking for process "Taskmgr.exe", if found then kill the process .
Why are you trying to do this ?
|
|
|
|
|
You could have your application shut the computer down. Only downside with that is none of the keys will do anything after that
Of course, that's not a serious solution, but it's about as serious as I see your requirements. What valid reason would you have to disable the functions you have asked for?
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
In your registry at
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
System
set DisableTaskMgr value to 1
first you have to create a key in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
named: "System" with a subkey(REG_DWORD) named "DisableTaskMgr" with value set to 1
|
|
|
|
|
This value will be overwritten when policies refresh. It's not a permanent solution to the problem.
|
|
|
|
|
Given the speculations about intentions of OP, I think the solution better be temporary
|
|
|
|
|
I wasn't commenting on the orignal post, but ont he wisdom of poking values into the Policies subkey.
|
|
|
|
|
Will the user want you to do that?
Would you want someone to write an application that does that to your computer?
|
|
|
|
|
agree with Blikkies
but in normal case we do not do that.. may be you want to do it for learning purpose.
|
|
|
|
|
So, you're basically thinking of writing a virus, that will require the .NET framework to be installed!
Imagine an error your "virus" might show:
"Badass.exe needs the .NET framework 3.0 to be installed. Please install the .NET framework and try again."
At least use the right tool for the right job.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Rajesh R Subramanian wrote: "Badass.exe needs the .NET framework 3.0 to be installed. Please install the .NET framework and try infect your PC again."
FTFY
197+Mb virus! Thats got to be some kind of record!
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Please read the forum guideline if you have questions.
|
|
|
|
|
Hello,
In my application i am having a datagridview.
And in that datagridview one of the column is textbox.
I like to validate the textbox so that only numbers to be entered into
the textbox.
And on clicking the button a dialog box with error messesge to be
displayed if any other is entered into the textbox beyond the number.
plz, help me in doing this......
Thanks in advance
|
|
|
|
|
Handle the CellValidating or CellValidated events of the DataGridView .
Look them up on MSDN for examples.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|