Forum > Coding >

Please help

Posts: 17

Threads: 4

Joined: Jun, 2018

Reputation: 0

Posted

How can I change opacity with checkbox ?
I want it to be 90% while checked and 100% whle not
Please help
  • 0

Posts: 212

Threads: 42

Joined: May, 2018

Reputation: 0

Replied

So first you have to do the if statement.

click on the checkbox and then type

if (YourCheckMarkName.Checked)
            {
                this.Opacity = 90;
            }
            else
            {
                this.Opacity = 1;
            }
        }
  • 0

Posts: 17

Threads: 4

Joined: Jun, 2018

Reputation: 0

Replied

im using material skin and its not working
  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )