Advertisement

05.03.2008 at 08:43PM PDT, ID: 23374518
[x]
Attachment Details

Visual c# click butom then show current date

Asked by teera in Visual Studio 2008, Microsoft Visual C#.Net

Error      1      Only assignment, call, increment, decrement, and new object expressions can be used as a statement      C:\Documents and Settings\INTEL\My Documents\Visual Studio 2008\Projects\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs      21      13      WindowsFormsApplication1


how can I click button1 then  monthCalendar1   to show todayStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
 
namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
 
        private void button1_Click(object sender, EventArgs e)
        {
            monthCalendar1.ShowToday ;
        }
 
        private void monthCalendar1_DateChanged(object sender, DateRangeEventArgs e)
        {
          
        }
    }
}
[+][-]05.03.2008 at 09:19PM PDT, ID: 21494559

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio 2008, Microsoft Visual C#.Net
Sign Up Now!
Solution Provided By: Hendo1973
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628