Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Clear Chatbar Button?


Whackeddie99
 Share

Recommended Posts

Hey, I want to put a button by the end of my chatbar that says Clear, and when you click it, it clears all of the words/letters from the chatbar. I know that I could make a Button, make the label say Clear, and then make a custom button in paint or something to use for it, but I just need to know how I could make it work, what code do I need to put in the the click section. I don't know :/ please help!

Thanks in advance!
Link to comment
Share on other sites

@Beanie93:

> You mean you want to clear the main chatbox?
> Use
> ```
> txtChat.Text = ""
> ```
>
> If that's what you mean.

No, I mean to clear the textMyChat area, where you type what you want to send. But based on what you've showed me, I figured it out (I'm making newb progress!!!)

I put txtMyChat.Text = "" instead, and it works fine :D
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...