|
If you have a report running for an hour you definitely don't want to be waiting for it to return! Yes, using the asynchronous database classes directly, and passing a callback to be called when the report is complete, might be a better way forward.
|
|
|
|
|
But in which class do I define the delegate?
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
Wherever you're making the database calls (probably in the main form).
|
|
|
|
|
No in the Concrete classes
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
Hey Guys,
I am trying to develop a software which will keep track of time and date that someone worked for a week.
So obviously it should be in some sort of DataGrid format with option to select data and time.
I am curious to know whether there's any sample code on this that i can use.
If not, some help on how to use or sample code about DaatGrid and how that could be changed to have columns for data and time.
Thanks in advance.
|
|
|
|
|
You might find this[^] helpful.
|
|
|
|
|
That one is for a website.
I am thinking about something using C# Win Forms. A desktop application runnning
on Windows.
|
|
|
|
|
I think just about every beginning developer thinks about writing a time management application. There are plenty of examples because most of them think theirs is the best thing ever and want to share their exceptional work. There are also a plethora of examples of using DataGrid, you just have to do a simple search.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: just about every beginning developer thinks about writing a time management
application
True. But since we're lousy at time management, we never complete one.
Will Rogers never met me.
|
|
|
|
|
How to convert with DateTime.ToString() method given date to yyyy\MM\dd format?
e.g. "2011\06\17"
I would not like to use String.Format(@"{0:D4}\{1:D2}\{2:D2}")
Чесноков
|
|
|
|
|
|
DateTime.ToString(@"yyyy\MM\dd");
|
|
|
|
|
Eraser_stp wrote: DateTime.ToString(@"yyyy\MM\dd");
This code will not work.
If you have this string date = DateTime.Now.ToString(@"yyyy\MM\dd"); again wrong format because you will get this result 2011M6d17
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.cacttus.com
|
|
|
|
|
My bad. Thanks for pointing and correct answer.
|
|
|
|
|
You can try this string dateformat = DateTime.Now.ToString(@"yyyy\\MM\\dd").Replace("\\",@"\");
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.cacttus.com
|
|
|
|
|
The .Replace is bothering me because "\\" is the same as @"\".
Maybe you meant @"\\" instead of "\\".
|
|
|
|
|
I released that isn't necessary to use Replace so just using @"yyyy\\MM\\dd" will give correct format 2011\06\17
Thanks for correcting me
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.cacttus.com
modified on Friday, June 17, 2011 6:07 AM
|
|
|
|
|
yes, thanks, that one works
Чесноков
|
|
|
|
|
No problem.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.cacttus.com
|
|
|
|
|
|
Thanks
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.cacttus.com
|
|
|
|
|
|
Good article
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.cacttus.com
|
|
|
|
|
I'm having a mind blank right now, and I have googled for the answer, I can seem to come up with it.
as an example;
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\mydatabase.mdb;User Id=admin;Password=;
The source "database" will stay the same, the location may change. I think I did it on a project where it was "*\new folder\mydatabase.mdb" for the source, but I can't think of it off hand (nor find).
Anyone come across this? Is this the correct forum?
Thanks.
/////////////////
Groucho Marx
Those are my principles, if you don't like them… I have others.
|
|
|
|
|
Try this .\new folder\mydatabase.mdb
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.cacttus.com
|
|
|
|