[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

stanley

3/9/2002 10:36:00 AM

i create a C#mobileapp refer to an VB Example with the
url:
http://msdn.microsoft.com/vstudio/techinfo/articl...
/mobilewebforms.asp

following is some lines of the Example:
------------------------------------------------
Public Sub Command1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Command1.Click
Dim datetext As Date
datetext = TextBox1.Text
ActiveForm = Form2()
Calendar1.SelectedDate = datetext
Calendar1.VisibleDate = datetext
End Sub
------------------------------------------------
who can tell me the corresponding code in C#??
------------------------------------------------
private void Command1_Click(object sender,
System.EventArgs e)
{
///?????
}
1 Answer

Baccarin

3/9/2002 8:00:00 PM

0

Stanley,

This code works in ASP.NET, try to use in mobileapp:

DateTime dt;
dt = DateTime.Parse(TextBox1.Text);
Calendar1.SelectedDate = dt;
Calendar1.VisibleDate = dt;

I hope that helps you.

Baccarin.

"stanley" <sunyb@nlsde.buaa.edu.cn> escreveu na mensagem
news:159c01c1c74d$dfa0a160$a4e62ecf@tkmsftngxa06...
> i create a C#mobileapp refer to an VB Example with the
> url:
> http://msdn.microsoft.com/vstudio/techinfo/articl...
> /mobilewebforms.asp
>
> following is some lines of the Example:
> ------------------------------------------------
> Public Sub Command1_Click(ByVal sender As System.Object, _
> ByVal e As System.EventArgs) Handles Command1.Click
> Dim datetext As Date
> datetext = TextBox1.Text
> ActiveForm = Form2()
> Calendar1.SelectedDate = datetext
> Calendar1.VisibleDate = datetext
> End Sub
> ------------------------------------------------
> who can tell me the corresponding code in C#??
> ------------------------------------------------
> private void Command1_Click(object sender,
> System.EventArgs e)
> {
> ///?????
> }