|
I usually use a dataview to populate my data controls when I need sorting. You can then use and columns you wish in the sort string. When an item is changed refresh the dataview
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
But in a dataview I can't use an object with it's own intelligence ( own timer, properties etc)
|
|
|
|
|
How about using a SortedList, and when changing an item you remove it and insert it again?
|
|
|
|
|
I've thought about it, but I was more looking for a self ordering object/ list. The data can has something like a delay which will be handled by an internal timing function and when the timer expires the object state is changed and it should go up the list and get it's new place
|
|
|
|
|
It seems like a simple binary tree would satisfy your requirements.
|
|
|
|
|
Hi Friend's
Good Morning
I want Copy File Faster Than windows Explorer. it can be Possible Please Help me
Thanks
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
C:\> copy file.ext destination
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
I am not getting your Point Sir.
Basically i am using IO class for copy file but it equal to Explorer Copy.
i want copy fast than explorer copy.
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Piyush Vardhan Singh wrote: I am not getting your Point Sir.
You were not very clear
Piyush Vardhan Singh wrote: Basically i am using IO class for copy file but it equal to Explorer Copy.
Much better You could try reading the file into a (large) byte[] and copy it to it's new location, however, I doubt it will be much faster, if not slower. Best will be to try various combination's.
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
It would never occur to me that there is an alternative to using the IO class, except possibly a dos call. I have used a read/write scenario before but that is to clean up the file rather than move it.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
My experience had been that executing the CMD copy or xcopy commands can be much faster than using Explorer. Sometimes twice as fast!
|
|
|
|
|
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?
|
|
|
|