Three Problems requires help!
-
Hello there! I have three problems :doh: while working on the application in Visual Studio 2005 in c#. 1st. i want to ask that i want to display the system date and time on my form but in the format like [month] [day] [year] and [time] but sepratly not like month/day/year as i want to save them sepratly in the database table fields not in the same field can any one help me how i can do it?:confused: 2nd. i want to set any form as start up form how can i do it? 3rd. i want to introduce the crystal report in my application please tell me wht the steps are there to follow ?
-
Hello there! I have three problems :doh: while working on the application in Visual Studio 2005 in c#. 1st. i want to ask that i want to display the system date and time on my form but in the format like [month] [day] [year] and [time] but sepratly not like month/day/year as i want to save them sepratly in the database table fields not in the same field can any one help me how i can do it?:confused: 2nd. i want to set any form as start up form how can i do it? 3rd. i want to introduce the crystal report in my application please tell me wht the steps are there to follow ?
- Use a Label? Then
label.Text=System.DateTime.Now.ToString ( "MM dd yyyy HH:mm" )
or some other format, look 'em up. 2) Add the exe to the user's Startup? 3) Invite your app and Crystal to a party, introduce them there.
- Use a Label? Then
-
- Use a Label? Then
label.Text=System.DateTime.Now.ToString ( "MM dd yyyy HH:mm" )
or some other format, look 'em up. 2) Add the exe to the user's Startup? 3) Invite your app and Crystal to a party, introduce them there.
3. Not recommended. I invited Crystal to a party once and I still haven't found my cat!
Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com
- Use a Label? Then
-
3. Not recommended. I invited Crystal to a party once and I still haven't found my cat!
Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com
But did you find hers? :-D
-
- Use a Label? Then
label.Text=System.DateTime.Now.ToString ( "MM dd yyyy HH:mm" )
or some other format, look 'em up. 2) Add the exe to the user's Startup? 3) Invite your app and Crystal to a party, introduce them there.
thanks alot for the response but i have tried this alot many times but i dont want to have the date time information in one label i want date in one label month in the seprate label so that i can save them in seprate attirbutes in the database. and please kindly eleborate yours reply for my problem 2 i did't get yours point....
- Use a Label? Then
-
thanks alot for the response but i have tried this alot many times but i dont want to have the date time information in one label i want date in one label month in the seprate label so that i can save them in seprate attirbutes in the database. and please kindly eleborate yours reply for my problem 2 i did't get yours point....
Seems wasteful. I'm not even sure what you mean in 2 -- do you mean you want the app to startup when a user logs in?
-
Seems wasteful. I'm not even sure what you mean in 2 -- do you mean you want the app to startup when a user logs in?
its not waste full becuase i want the date format in sperate labels becuase while working with the Inventory application sale portion i have a requirement to view the record of all sale in the spcified month so thats y month in seprate coloumn of SQL is must. And in 2nd point i want to put the winForm in start up becuase after creating each form i want to see its out look by running it.
-
its not waste full becuase i want the date format in sperate labels becuase while working with the Inventory application sale portion i have a requirement to view the record of all sale in the spcified month so thats y month in seprate coloumn of SQL is must. And in 2nd point i want to put the winForm in start up becuase after creating each form i want to see its out look by running it.
How it looks on screen has very little to do with how it's setup in the database. Oh, so that's what you mean. In the Solution Explorer, right-click a project, and select "Set as StartUp Project". But the project has to be an exe, not dll. And the form has to be the main form of that exe.
-
How it looks on screen has very little to do with how it's setup in the database. Oh, so that's what you mean. In the Solution Explorer, right-click a project, and select "Set as StartUp Project". But the project has to be an exe, not dll. And the form has to be the main form of that exe.
thank u very much i have sorted out the problem for start up can u please tell me that wht will i have to do put the date month and year seprate fields in the database ?
-
thank u very much i have sorted out the problem for start up can u please tell me that wht will i have to do put the date month and year seprate fields in the database ?
No I will not, it's a bad idea.