How to use C s date control

Updated on technology 2024-05-12
4 answers
  1. Anonymous users2024-02-10

    The date controls commonly used in C are the DateTimePicker and the MonthCalendar control, the former can only be used for one date, and the latter can choose the start date and end date, but the former is easier to use.

    The following describes how to use the DateTimePicker control.

    Tools Raw materials.

    microsoft visual studio 2010

    Method Step 1

    Open Microsoft Visual Studio 2010 and create a new program named Date Control.

    Place appropriate controls on the blank window of the new program interface: including, a textbox control to display the operation process;

    3 textbox controls for displaying the content of the date selected by the user.

    Find the DateTimePicker in the Toolbox and double-click to join the interface.

    Adjust the position of the DateTimePicker control.

    Click the DateTimePicker control and find ValueChanged in the properties

    Double-click to enter the ** interface.

    Separately displayed; The year in the display date;

    Months in the display date;

    Displays the day in the date;

    Output in logs.

    Generate an exe file for testing.

    Click the date control to display the following date menus to choose from.

    If you select May 1, 2014, you can see the prompts in the corresponding text box and in the log.

  2. Anonymous users2024-02-09

    What are you going to do with him?

  3. Anonymous users2024-02-08

    Your question is vague, like asking a question about how to use a computer.

    Provides you with a simple way to use the DateTimePicker control

  4. Anonymous users2024-02-07

    In the case of WinForm, the date is simply sent as follows:

    1) Create a new "Windows Forms application".

    2) Drag the DateTimePicker from the toolbox into Form1; Then drag a label from the toolbox

    3) On form1, select the date control and press F4. Then double-click on valuechanged

    4) In the background.

    5) Run.

Related questions
11 answers2024-05-12

Can you be more clear.

10 answers2024-05-12

checked is used to determine whether checkbox or checkboxlist is selected by true or false. >>>More

5 answers2024-05-12

mark it...

Sun Xin's tutorial seems to have it above。。。 >>>More

7 answers2024-05-12

The button does not have a doubleclick event.

eventhandler(button1_doubleclick);With this method, the double-click event is not triggered when double-clicked, but rather a double-click event. >>>More

14 answers2024-05-12

Not everyone** has this prompt, right?,Generally, there will be a prompt in the case of entering a password or needing a special **device, etc.,This is for security, etc.,Some of the controls that come with the site itself,You installed it once.,As long as you don't uninstall it.,Next time it won't prompt again.。