|
i hear that when OS want terminate an application send a kill signal to it.
now if handle this signal in our app then can restart our application in termination time of old application time.
And now HOW TO HANDLE THIS SIGNAL ?
I Want Learn
|
|
|
|
|
As far as I know... Windows will politely ask the application to close, and perhaps you can ignore that request, but if the application doesn't doesn't close in response to the request, then Windows will attempt to kill the process, and there is no way to stop that.
As for how to ignore the request, you can probably handle that in the FormClosing event handler.
|
|
|
|
|
hi.
I have a maskedTextBox which is going to accept date from user.
it's format is (00/00/0000) or (Short Date)
and i am using system.datetime.parse() to validate it.
by defult it accepts (mm/dd/yyyy)
how can I change it to (dd/mm/yyyy)?
Regards
|
|
|
|
|
Use:
DateTime result = DateTime.ParseExact(inputDateTimeAsString, "dd/MM/yyyy",
System.Globalization.CultureInfo.CurrentCultureInfo);
Hope this helps!
-Jeff
|
|
|
|
|
Hi there,
i want to set opacity of picturebox like form,
i know its a very common question, and i searched on lots of sites but didnt find any good answer
can some tell how or any article about it?
thanks
Becoming Programmer...
|
|
|
|
|
I don't think you can, I think you need to draw the image yourself and use the ImageAttributes class to set the opacity.
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 )
|
|
|
|
|
HI
I'm using propertygrid to display my class properties in it. My code is just Like:
public partial class AddressType
{
.......
.......
}
public partial class Person {
private AddressType homeAddressField;
public AddressType HomeAddress
{
get {
return this.homeAddressField;
}
set {
this.homeAddressField = value;
}
}
}
PropertyGrid just shows the Person Having field HomeAddress. But I can't expand HomeAddress to see AddressType (which is also a class and have actual address properties).
I used ExpandableObjectConverter just like:
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ExpandableObjectConverter))]
public partial class AddressType
{
.......
.......
}
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ExpandableObjectConverter))]
public partial class Person {
private AddressType homeAddressField;
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ExpandableObjectConverter))]
public AddressType HomeAddress
{
get {
return this.homeAddressField;
}
set {
this.homeAddressField = value;
}
}
}
still It has no change......
Please help me how can I tell propertygrid to expand when one class contains another class object.
Tanveer Rashid
|
|
|
|
|
Hey this is my first post in this forum i wish if you can help me
i have downloaded 2 C# application from API forum but the point that i need to put this 2 software together to be as one program that have all the features of each one
in other words
i have 2 programs one of them has MDI features and the other on has many filters i want to add the MDI one to the filters or the opposite in order to use the features of both (MDI and filters)
in one program only to be able to use all the features of Each program within one program
thank alot
http://www.zshare.net/download/530787161f225e/[^]
the total size of the file is 100 Kbyte
-- modified at 21:16 Saturday 1st December, 2007
|
|
|
|
|
Your question is far too vague. Is there something specific you need help with?
/ravi
|
|
|
|
|
ok I modified the problem’s narrative
|
|
|
|
|
Huh? Please rephrase your question a bit better. Makes no sense.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
ok i have 2 programs one of them has MDI features and the other on has many filters i want to add the MDI one to the filters or the opposite in order to use the features of both (MDI and filters)
in one program only to be able to use all the features of Each program within one program
i hope that make a sense
|
|
|
|
|
mymo_h wrote: i hope that make a sense
Yes, it does.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Compile them both as a dlls, then build an application that loads those 2 dlls. If you need help with these steps, ask specific questions as possible.
|
|
|
|
|
Hello everyone,
I have an array which holds ASCII codes. How can I convert this to characters that I read?!
Thank you very much and have a great weekend.
Khoramdin
|
|
|
|
|
Just cast the value as a char:
char letter = array[0];
You can set a char using a letter 'a' , an int 52 , or a hex value 0x00
Of course you'll want some kind of loop to do that, and use an array of chars. Infact, there may be something in the string class, i'll go look now.
-- modified at 18:47 Saturday 1st December, 2007
Aha, i knew that encoder class was somewhere:
string myText = System.Text.ASCIIEncoding.ASCII.GetString(array);
My current favourite word is: PIE!
I have changed my name to my regular internet alias. But don't let the 'Genius' part fool you, you don't know what 'SK' stands for.
-The Undefeated
|
|
|
|
|
|
PIEBALDconsult wrote: they kinda hide it
It's fun finding little things like that.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
It's best when someone writes an article explaining their new super-fast method for doing something just to be told, "just use a System.Something".
|
|
|
|
|
I'm writing a small program. When the program runs it displays the license terms. It's about 2 pages long. How would I store that in the program? Like in a string array? I don't want to have any other files other than the executable itself. I'm working in Visual Studio 2005 (C#).
|
|
|
|
|
You could store it as a string resource.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Well call me an idiot. That idea came to me while I was asking the question, but didn't actually try it.
|
|
|
|
|
Hello,
I am a bit new at this, but I have an active x control that has been converted to stdole.IPictureDisp, and I am trying to convert it to an image or bit map to display on the form. I thought the Axhost.GetPicturefromIPicture might be able to do it. But I am unable to get it to work. Would anyone have some examples?
Thank-you,
Kim
|
|
|
|
|
Hi,
i have an array of bytes i need to convert to a Korean string but i don't know how. I tried
char[] chars_array = System.Text.Encoding.GetEncoding(949).GetString(bytes_array).ToCharArray();<br />
korean_string = new String(char_array);
but it ends with square and ! ? characters.
Any idea
|
|
|
|
|
Where does the array of bytes come from? Have you tried different encodings, like UTF-8 or UTF-16?
|
|
|
|