|
Thanks navaneeth, but I think you mis-understood my question.
I want to know whether a process has finished executing, not to get the list of Processes.
I already know the name of the process to check.
|
|
|
|
|
Ohh, but if the executable finished executing, it won't be there in the list, right ?
|
|
|
|
|
WaitForExit() method waits until the process is exited (or else till timeout if specified)..If u want to check whether a process has exited then use
HasExited property
eg:
System.Diagnostics.Process p = System.Diagnostics.Process.GetCurrentProcess();
if(p.HasExited)
else
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
|
|
|
|
|
Hi,
i was wondering,
if a create an adaptor with a select statement containing a parameter of type datetime, is this parameter send to the server as a string in datetime format defined by the clients culture info?
select * from customer where [Lastupdate] = @CurrentDate<br />
or does it send the parameter to the SQL server and is there no problem with the datetime format.
(Usually i use stored procs and doesn't have this problem, but this is an exception for me)
thx
kurt
|
|
|
|
|
Hi all
How i can to invoke script code (JScript, VBScript dosn't mutter) in RunTime in C#.
Thank.
|
|
|
|
|
you can invoke them as a process .
|
|
|
|
|
if we implement ajax on windows application what will be the advantages for this
modified on Monday, May 26, 2008 3:21 AM
|
|
|
|
|
Ajax is for web applications to make it more faster and responsive
What is the scenirio you are thinking to implement it in windows apps ?
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
we can use xmlhttp object for requesting a web resource and have response data in windows application from web server
|
|
|
|
|
Ofcouse yes. But the reason why we do this is to avoid postbacks and make the web application more responsive. In case of windows application we dont require to do this.
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
in windows application we can provide more intraticve user interface and connect to web server without tcp?ip or other complex programming,
using Through ajax in windows application
|
|
|
|
|
in windows application we can provide more intraticve user interface and connect to web server without tcp?ip or other complex programming,
using Through ajax in windows application
|
|
|
|
|
Elesh wrote: if we implement ajax on windows application what are the advantages for this
there is no use of ajax in Windows application.
|
|
|
|
|
what make you think like that.....
You can play with window application as of your liking..
and there's no need of ajax in windows applications.
|
|
|
|
|
we can use xmlhttp object for requesting a web resource and have response data in windows application from web server
|
|
|
|
|
hi all,
I got problem on remove unrecognized escape sequence in richtextbox.
Actually i did program that write text from other text file into richtextbox.When text write into richtextbox,the output at richtextbox shows text "\par"(new line used in text editor).Now i need remove
this char..
So how to this kind of character..?
Pls help me..
Thank You.
%#&kmpYrlHSGYG5@#($_+!@!(*JASnjshdk,cm_0ashjhdbn@#$!48mkhfbchsh))^%#W%&@YW7wsdfjw789';'][]\`~JKJQ4$!@#~)-HSKS^&*1)JK12@#@$~!1`DFGkqp][]\]?Zas;EWRG%!@~)(^&BVAG
|
|
|
|
|
Try using :
richTextBox.Text = richTextBox.Text.Replace(@"\par", "");
|
|
|
|
|
Hi,
I have a seemingly simple and common requirement, and I can't seem to find a solution anywhere. A number of people have posted this question in other forums, and they never get an answer.
I have a custom control, which is an editing panel for a document. It draws text using Graphics.DrawString().
Now, say the user creates a textbox, fills it with some text in my editing panel, and sizes the box so it exactly fits the text. When the document is printed/previewed (using PrintDocument), and the exact same DrawString methods are used, the text is off a little bit, causing it to wrap differently. I've confirmed that MeasureString returns a slightly different value, depending on which Graphics object is passed in (the editing control or the PrintDocument).
The only difference between the two Graphics objects is the DPI. The control has 96x96 DPI, where the PrintDocumenth has 600x600. I set all the text rendering hint and all that to be the same. For one sample string I tried, MeasureString for the control returned 169, and MeasureString for the PrintDocument returned 173. That means that if the textbox is 169 pixels wide, it shows up fine on the editor control, but it will wrap on the PrintDocument.
How can I consistently print text to both mediums, so that the editor is truly WYSIWYG?
P.S. I've tried every font measurement with the same results (i.e. px, pt, em, etc)
|
|
|
|
|
mmGoDLiKe wrote: For one sample string I tried, MeasureString for the control returned 169, and MeasureString for the PrintDocument returned 173. That means that if the textbox is 169 pixels wide, it shows up fine on the editor control, but it will wrap on the PrintDocument.
MeasureString is not very reliable I have found, that's why I only support fixed width fonts in my IDE.
|
|
|
|
|
ya, unfortunately that is not a viable solution in this case - full font support is necessary.
|
|
|
|
|
Nobody knows how to produce consistent text output regardless of DPI?!?
|
|
|
|
|
For those interested - I finally figured this one out...it was quite a pain to nail down. Instead of printing directly to the 600dpi graphics object, you create a temporary image that is 96dpi (same as screen), but with the same resolution as the printer. You then do a ScaleTransform so that your text is scaled from the small screen resolution to the larger image resolution, and since the DPI is the same, the text measures up exactly the same way!
Then you simply take the temporary image and dump it into the print graphics object, and woohoo! WYSIWYG! (you have no idea how much dicking around it took to get it all perfect lol, so I'm pretty excited)
I might just have to write an article on this...although strangely enough, while trying to find an answer to this problem, I couldn't find ANYTHING on it...which makes me think there isn't too much demand for this sort of thing. Does nobody create WYSIWYG editors?? If you want me to write an article, post here and let me know!
|
|
|
|
|
HI,I am using a ListView control in a realtime data acquisition and I want last item to be always display at the bottom of the ListView. Do you know how can I do this? Thanks in advance.
_
|
|
|
|
|
I just found out. Its:
lastItem.EnsureVisible();
_
|
|
|
|
|
I want to create a program which takes Crystal Report path at runtime and convert it into PDF format.
Can someone help me?
|
|
|
|