Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Three Problems requires help!

Three Problems requires help!

Scheduled Pinned Locked Moved C#
csharpquestiondatabasevisual-studiohelp
10 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Smashing_Blizzard
    wrote on last edited by
    #1

    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 ?

    P 1 Reply Last reply
    0
    • S Smashing_Blizzard

      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 ?

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2
      1. 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.
      T S 2 Replies Last reply
      0
      • P PIEBALDconsult
        1. 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.
        T Offline
        T Offline
        TJoe
        wrote on last edited by
        #3

        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

        P 1 Reply Last reply
        0
        • T TJoe

          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

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          But did you find hers? :-D

          1 Reply Last reply
          0
          • P PIEBALDconsult
            1. 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.
            S Offline
            S Offline
            Smashing_Blizzard
            wrote on last edited by
            #5

            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....

            P 1 Reply Last reply
            0
            • S Smashing_Blizzard

              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....

              P Offline
              P Offline
              PIEBALDconsult
              wrote on last edited by
              #6

              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?

              S 1 Reply Last reply
              0
              • P PIEBALDconsult

                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?

                S Offline
                S Offline
                Smashing_Blizzard
                wrote on last edited by
                #7

                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.

                P 1 Reply Last reply
                0
                • S Smashing_Blizzard

                  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.

                  P Offline
                  P Offline
                  PIEBALDconsult
                  wrote on last edited by
                  #8

                  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.

                  S 1 Reply Last reply
                  0
                  • P PIEBALDconsult

                    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.

                    S Offline
                    S Offline
                    Smashing_Blizzard
                    wrote on last edited by
                    #9

                    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 ?

                    P 1 Reply Last reply
                    0
                    • S Smashing_Blizzard

                      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 ?

                      P Offline
                      P Offline
                      PIEBALDconsult
                      wrote on last edited by
                      #10

                      No I will not, it's a bad idea.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups