Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

If textbox has a word then this happens

Code
if (textBox1.Text.Contains("Troll"))
{
   //Do Something
}
(Nov 22, 2014 08:20 PM)Aristocles Wrote:  If TextBox1.Text.Contains("Troll") Then
'do things here
End If

This is in the C# section, not the VB section.

Also format your code with the [code] tags :)
(Nov 22, 2014 08:22 PM)Jack_Soff Wrote:  Fuck i tried that but had it setup wrong thats why it wasnt working, thanks so much

No problem, have a nice night! 😁
(Dec 6, 2014 10:16 AM)Astek Wrote:  that would be used to code multiple commands onto one function, yes?
i have coded a different function for each command and want it to tell me when im typing something that isnt a command, sorry if this doesnt make sense or is stupid to you, im new to this, thanks for replying.

"You just dun goofed"

😏😏


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by Moon RockJul 22, 2016 07:53 AM 2 218 Jul 22, 2016 07:53 AM
Last Post: Moon Rock
[.NET] by ShadyShadowApr 26, 2014 06:30 PM 9 240 Apr 26, 2014 06:30 PM
Last Post: 0xDEAD10CC
[C] by monkey2008Oct 15, 2013 09:02 AM 4 115 Oct 15, 2013 09:02 AM
Last Post: pratap95