Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[C#] Question

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Pseudo Xero
I post too much
Reputation: 0

Joined: 16 Feb 2007
Posts: 2607

PostPosted: Thu Nov 01, 2007 10:05 pm    Post subject: [C#] Question Reply with quote

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
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Thu Nov 01, 2007 10:12 pm    Post subject: Re: [C#] Question Reply with quote

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
View user's profile Send private message
Pseudo Xero
I post too much
Reputation: 0

Joined: 16 Feb 2007
Posts: 2607

PostPosted: Thu Nov 01, 2007 10:15 pm    Post subject: Re: [C#] Question Reply with quote

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. Razz

_________________
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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites