|
Nice! I'm going to remember that one
|
|
|
|
|
present, and according to data availble as packet by packet.
I want to read the html elements obtained and change the innertext of each html element. I am able to do all these.
The main thing is I want the changed text should be visible to user directly instead of original text which is obtained in packets.
How can I do this?
If I had to use threading, How can I do that?
or If I can user timers, how can I do this?
Say correct solution. If there are any examples, it would be so much helpful for me...
|
|
|
|
|
|
the //error? line needs to be in a class definition but not inside of a function
|
|
|
|
|
Hi There,
I am Using FFMpeg in my project and it was great going. I am struck in a position where I need to fetch the Time when a blank screen comes in between a video file. It will be great if you help me in this Issue.
Thanks & Regards
|
|
|
|
|
You're going to have to find a forum specific to the library you're using. What you're asking has nothing to do with C# or the .NET Framework at all.
|
|
|
|
|
hi everybody
i m using C# Application
i have a 'date' and 'days' columns in datagridview
now i want to findout the no. of days between two dates
how can i calculate
pls help me
date days
--------------------------------------------
1/11/2008 0
1/12/2008 30
3/12/2008 2
--------------------------------------------
modified on Monday, May 4, 2009 9:32 AM
|
|
|
|
|
Example :
DateTime d1 = new DateTime(2008, 1, 1);
DateTime d2 = new DateTime(2009, 1, 1);
TimeSpan ts = d2.Substract(d1);
ts.TotalDays <- is the value you want.
|
|
|
|
|
Hello,
I use dataadapter to fill datagrid (using datatable).
dataAdapter =
new SqlDataAdapter(selectcommand3, connectionstring);
But my sql query command is too long. because i receive an error that sqlexception was unhandled (incorrect syntax near '='). But when i write another much shorter sql query it works fine. What can i do to solve it?
|
|
|
|
|
Use stored procs
only two letters away from being an asset
|
|
|
|
|
|
You don't know what stored procedures are?
only two letters away from being an asset
|
|
|
|
|
|
Then go away and don't come back until you do.
only two letters away from being an asset
|
|
|
|
|
That depends on the query. It's not really that the query is too long, but probably that the DataAdapter will only work with queries that return data from a single table with a primary key.
|
|
|
|
|
michaelgr1 wrote: dataAdapter =
new SqlDataAdapter(selectcommand3, connectionstring);
Did you put one too many new lines after that = statement? at most the assignment should be the next line down, you shouldn't add any space between the 2 lines.
|
|
|
|
|
I am BATMAN wrote: at most the assignment should be the next line down
Not according to the language spec. You can have as many white space chars as you like including multiple newlines. I've just checked with a prog by adding multiple newlines - compiles without error.
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
|
|
|
|
|
if what you say in currect you can use @"" string style:
SqlCommand mySqlComm = new SqlCommand();
mySqlComm.CommandText = @"
type your string here
";
but I think your sql statement is incorrect. Copy your SqlCommandText and paste in in sql Query analyzer and test it. if it has not that error what you said it correct.
|
|
|
|
|
Hi!
My work mate have asked me to program a software which he could see when he started his computer and when he shuts the computer down.
He would like a to save this information in a text file.
I have no problem creating a Console Application to run when Windows was started using Windows auto start folder in the Start/Program-meny.
But the opposite, when Windows is closing down, I have no clue how to do.
Any ideas? I would prefer to have both functions in the same program, if that could be arranged easily.
/Mc_Topaz
|
|
|
|
|
create a service that writes a message when starting and stopping. The only probelm with this is if someone manually stops the service
|
|
|
|
|
Do do I create a service?
|
|
|
|
|
Easy - www.google.com and search for "windows services + c#" should give you enough references.
Excellence is doing ordinary things extraordinarily well.
|
|
|
|
|
Hi,
Windows will run a script at startup, shutdown, login and logoff so all you require is a very simple command file.
e.g.
@echo %DATE% %TIME% %1 >> v:\syslog.txt
to generate the output
04/05/2009 14:53:03.25 SHUTDOWN
04/05/2009 14:54:33.25 STARTUP
04/05/2009 14:55:11.79 LOGON
The group policy editor gpedit.msc allows assignment of a script and the parameter (%1) which in this example are the strings SHUTDOWN, STARTUP and LOGON.
Alan.
|
|
|
|
|
Hi!
My work mate have asked me to program a software which he could see when he started his computer and when he shuts the computer down.
He would like a to save this information in a text file.
I have no problem creating a Console Application to run when Windows was started using Windows auto start folder in the Start/Program-meny.
But the opposite, when Windows is closing down, I have no clue how to do.
Any ideas? I would prefer to have both functions in the same program, if that could be arranged easily.
/Mc_Topaz
|
|
|
|
|
Sorry for this double post
Bah... I can't spell today
|
|
|
|