A custom "Close Button" that only closes a single window, and not the whole program?
Posted
How do I make it so a custom close button only closes my script hub window, and not the main window as well? I don't want to use the default windows close button.
Help pls and ty
I FIGURED IT OUT!
But...
|
|
|
V
Additionally, do any of you guys happen to know how I can make opening and closing animations for both my main form and my script hub?
I would deeply appreciate it!
OWNER OF GAYSPLOIT X
Also this person is a skid: https://www.roblox.com/users/671430987/profile
Replied
I don't know how to reprogram a custom close button, but if you can design your own close button you can use this code.
// replace button with the name of your button, for example if the name was close it would be close_Click
private void button_Click(object sender, EventArgs e)
{
this.Hide();
this.Close();
}
EDIT: Also this would fit better in the C# section (if you're using C#)
Cancel
Post
I know LUA and some C#
Â
and i own synapse x noob
Replied
this.Hide();
Cancel
Post
yes
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post