|
|
harold aptroot wrote: What does that mean?
The correct answer: LIQUID NITROGEN[^]
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
one way is to use AjaxControlToolkit (in web application)
modified on Thursday, June 25, 2009 8:20 AM
|
|
|
|
|
How do you get this answer from the question posted? Do you have some form of mind-reading skills?
|
|
|
|
|
Serv-dee wrote: how to make application forms lookable?
Switch the monitor on. If it's off, it's not lookable.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Just adding to Pete's reply,
If the monitor is on, the eyes must be kept open too. Having the monitor on and the eyes closed will still make the forms not lookable! Additionally, the monitor must be installed on the correct direction (the display panel facing the user). Also, any number of reasonably large and opaque objects in between the eyes and the monitor can make the forms not lookable.
This looks like one of those 'tough' questions to me.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I don't think serv-dee likes being mocked. What a shame because I've got a whole lot of mocking that I have to get in before years end, and I'm behind schedule.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I think that with the little information available in the query, the answers given were pretty reasonable and logical. If we are being disliked for that, we cannot help it.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi All ,
I would like to to have my two variables date1 and date2 to return the following format in Asp.net.
Date1=20090625124000 and date2=20090625133900
Date1 and date2 have a diffrence on one hour in between.
How can i build date1 and date2
Thank you in advance.
|
|
|
|
|
DateTime date1 = new DateTime(2009, 6, 25, 12, 40, 0);
DateTime date2 = new DateTime(2009, 6, 25, 13, 39, 0);
string date1Str = date1.ToString("yyyyMMddHHmmss");
string date2Str = date2.ToString("yyyyMMddHHmmss");
|
|
|
|
|
string _date1 = DateTime.Now.ToString("yyyyMMddHHmmss");
DateTime _dateNew = new DateTime(DateTime.Now.Year,
DateTime.Now.Month,
DateTime.Now.Day,
DateTime.Now.Hour - 1,
DateTime.Now.Minute - 1,
DateTime.Now.Second);
string _date2 = _dateNew.ToString("yyyyMMddHHmmss");
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.
|
|
|
|
|
Hi,
How i can integrates my application with the active directory and autenticate the user & pass.
Thanks
|
|
|
|
|
|
Hi!
In a simple game I'm creating, I need to trigger some methods when one of the arrow keys are pressed as well as the space key.
I'm using this code in the form to receive the keyboard inputs:
protected override void OnKeyDown(KeyEventArgs e)
{
base.OnKeyDown(e);
if (e.KeyCode == Keys.Up && e.KeyCode == Keys.Space)
MessageBox.Show("UP & SPACE");
}
Nothing happens when I run the code. The OnKeyDown event don't seem to handle this condition at all.
How shall I solve this problem?
|
|
|
|
|
If you look at the documentation, (or even just try it and look at what you get) I think you will see that you get a OnKeyDown event for each key. No, not together. Seperately. One after the other.
Just how did you think e.KeyCode was going to equal two different values? Rewrite your code as
if (e.KeyCode == 1 && e.KeyCode == 2)
and you might get the point?
I am posting this to Coding horrors as a warning to all other students.
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
|
|
|
|
|
Really good answer, thanks Even if you didn't offer any solution
I have never thought that e.KeyCode never could return two or more keyboard inputs 
|
|
|
|
|
So far as I know, you can only use:
"Shift / Ctrl / Alt" + Key
But not Space and Up.
|
|
|
|
|
Yes, I know how Shift/Alt/Ctrl + key.
Back to my question, is there any solution for this at all?
|
|
|
|
|
Because you get a separate event for each key pressed if you want to do custom combinations you need to set your own flags for each key of interest in the key down events and clear them in the key up events.
It is a truth universally acknowledged that a zombie in possession of brains must be in want of more brains.
-- Pride and Prejudice and Zombies
|
|
|
|
|
I figured out a solution based on your answer, thanks!
|
|
|
|
|
can anyone please tell me how to get the printer Job status using PJL command.I used the following command
sendString = String.Format("\x1B%-12345X@PJL \r\n @PJL JOB NAME = \"MyJob\" START = 1 \r\n PJL USTATUS JOB = ON \r\n @PJL INFO USTATUS \r\n @PJL ENTER LANGUAGE = PCL \r\n\x1B E . . . . PCL Job . . . . \x1B E\x1B%-12345X@PJL \r\n @PJL EOJ NAME = \"MyJob\" \r\n \x1B%-12345X\r\n");
Is this command appropriate?How to create JOB name or ID ?here I am giving my own name(MYJob)and job id shud b generated by printer or we have to give it while printing the document?Please help me to know the printer job status.
|
|
|
|
|
hello all,
is there any idea to do that, pls? i only found out drag and drop file to listbox control.
thanks in advance,
kyi kyi
|
|
|
|
|
Hello
I have to build an application which checks if a document is still availiable on a specific path. This application is used on our intranet. Html sites are no problem but how can I check, if a file on a Share exits? e.g. \\Server01\share$\test.doc
It should be possible to differ if the share is unavailiable or if the user hasn't enough rights to access.
Are there any opensource solutions for this problem or with which method can i solve my problem?
thanks for your help!
best reagrds
succo
|
|
|
|
|
Would System.IO.File.Exists() not do the job?
You could then catch any FileNotFound or AccessDenied exceptions?
|
|
|
|
|
Look into storing and using the UNC path[^].
Never underestimate the power of human stupidity
RAH
|
|
|
|