| View previous topic :: View next topic |
| Author |
Message |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Thu Nov 01, 2007 10:05 pm Post subject: [C#] Question |
|
|
Why doesn't this code work?
| Code: | | txtMain.Text.Insert(txtMain.SelectionStart, DateTime.Now.ToString()); |
Edit: Sorry for being vague, it compiles alright, but it doesn't insert the current date/time when the code is executed.
_________________
| haxory' wrote: | can't VB do anything??
windows is programmed using VB right? correct me if im wrong.
so all things in windows you have like the start menu is a windows form too. |
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Thu Nov 01, 2007 10:12 pm Post subject: Re: [C#] Question |
|
|
| Code: | | txtMain.Text = txtMain.Text.Insert(txtMain.SelectionStart, DateTime.Now.ToString()); |
I don't know C#, but that is what I got after a google search.
|
|
| Back to top |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Thu Nov 01, 2007 10:15 pm Post subject: Re: [C#] Question |
|
|
| Flyte wrote: | | Code: | | txtMain.Text = txtMain.Text.Insert(txtMain.SelectionStart, DateTime.Now.ToString()); |
I don't know C#, but that is what I got after a google search. |
Thank you, it works... I couldn't find anything on google.
_________________
| haxory' wrote: | can't VB do anything??
windows is programmed using VB right? correct me if im wrong.
so all things in windows you have like the start menu is a windows form too. |
|
|
| Back to top |
|
 |
|