Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.aspnet.mobile
code.vb->c# ????
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)
> {
> ///?????
> }
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
code.vb->c# ????
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password