|
All are Equal.....
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
If your application requires extremely fast file copies, you might consider storing your data in compressed form. This will use fewer bytes, thus speeding up your copies.
|
|
|
|
|
I am using vs 2003 with c#. I have a datagrid on my windows form. I want to display a checkbox with each record in datagrid how i can do this. second problem is that how I can recognize that which textbox in datagrid is checked and which or not.
Thanks in advance
|
|
|
|
|
I am certain there's an article on that here on CP.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
can you mentioned the related reference url sir.
Thanks
|
|
|
|
|
- look at the top of the page.
- now a little lower, right beneath the green bar, in the middle.
- it says "Search" and has a textbox next to it.
- Choose "Articles" from the list next to the textbox on the right.
- type in keywords in the textbox.
- Press the button "Go!" next to the listbox.
- wait
- Browse the results.
good luck
|
|
|
|
|
Thanks for such a good advice but I havn't found related article through search before your advice.
Thanks
|
|
|
|
|
I have simple project abaut serial port and I need to test it but i have only one computer .Is there any way to make a virtual serial port connection using one computer?
Ahmed hassan
|
|
|
|
|
|
Luc Pattyn wrote: here
I get a "Page not found" on that URL.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
|
|
|
|
|
Seems to have been moved, I corrected my previous message.
|
|
|
|
|
I am building a C# application which will read files, write to files, delete files from a remote computer on our network. I need to send login credentials to the remote computer and then I guess I can use \\compName\C$\whatever to read the file. I read that reading the file should be the same as reading it from a local machine.
How do I pass the credentials? Or if I am mistaken and the process of reading remote files is different then can you please tell me what the correct method is?
Thanks,
|
|
|
|
|
|
This code works, but it waits until the program is done running to display anything.
namespace Taynia_Updater
{
class Program
{
static void Main(string[] args)
{
System.Diagnostics.ProcessStartInfo sinf = new System.Diagnostics.ProcessStartInfo("cmd", "/c php taynia.php");
sinf.RedirectStandardOutput = true;
sinf.UseShellExecute = false;
sinf.CreateNoWindow = true;
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo = sinf;
p.Start();
string res = p.StandardOutput.ReadToEnd();
Console.WriteLine(res);
Console.ReadLine();
}
}
}
This is what i am trying to do (I am not familiar with C#, mostly php)
namespace Taynia_Updater
{
class Program
{
static void Main(string[] args)
{
System.Diagnostics.ProcessStartInfo sinf = new System.Diagnostics.ProcessStartInfo("cmd", "/c php taynia.php");
sinf.RedirectStandardOutput = true;
sinf.UseShellExecute = false;
sinf.CreateNoWindow = true;
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo = sinf;
p.Start();
while (Res = p.StandardOutput.Read())
{
Console.WriteLine(res);
}
Console.ReadLine();
}
}
}
Basically, I just want to be able to stream output of running a command, heck, even running the tree command on the C: drive, i'd like to watch it being done through C#, and not wait for it to be executed, then print it all out at once. Is this even possible?
|
|
|
|
|
I think you can use the event Exited in the Process class, so once the process
finishes you can get the output you want.
Sincerely Samer Abu Rabie
Note: Please remember to rate this post to help others whom reading it.
|
|
|
|
|
I know i can do that, but i dont want to wait for the process to end before i get the out put, i want to write it to the console as it comes. stream it...
|
|
|
|
|
Look at the OutputDataReceived event. IIRC it fires for every line it receives.
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
Hi,
yes you can capture stdout and stderr outputs from another process while it is still running, which gives
a much better user experience than performing a ReadToEnd() and wait until the process has exited.
The general solution requires two extra threads, basically identcial, one to handle stdout and one to handle stderr.
Each thread should loop and read its stream, and process it in any way you see fit.
Both threads should be terminated a few seconds AFTER your target process has exited, there still is data
in the stream when the process exits!
I got this to work easily on XP and Vista, but found it impossible coming up with code that would also run
fine on Win98 (that was on .NET 1.1 at the time).
|
|
|
|
|
Hi,
I wrote an application that able to connect another bluetooth device in .Net Framework 2.0 using bluetooth API, now I want to do this with .Net Compact Framework on my mobile device. That's the problem, When I'm Calling Bluetooth API like WSAStartup or using SizeOf or any other methods of Marshal class, it gives me NotSupportedException exception.
Please tell me how can i solve this problem.
Thank you.
DMASTER
|
|
|
|
|
Please do not cross post
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Now what do YOU think 'not supported' means ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi dear Christian,
I know what it means BROTHER , if you refer to MSDN you can see that, it's marked as supported on .net CF. But I don't know what's that exception reason, and why gives it to me?
Thanks for your reply.
|
|
|
|
|
Hi,
there are several WSA versions, not all of them are implemented on each platform.
This might help you.[^]
modified on Wednesday, December 3, 2008 4:15 AM
|
|
|
|
|
Hi Luc,
Ok, Let's suppose you're right. So what about Marshalling and methods of Marshal Class ?
|
|
|
|
|
Marshaling what? SizeOf what? something that is not supported maybe?
check the exact exception, note the line numbers, look at the source code, teach your IDE to display line numbers. Try to be as specific as you want the answers to be.
|
|
|
|