i disable delete button when reception is login but this is not disable

private void Room_Load(object sender, EventArgs e)
        {
            if (Validate_Password.isadmin == true)
            {
                Add.Visible = true;
                update.Visible = true;
                Delete.Visible = true;
            }
            if (Validate_Password.isrecp == true)
            {
                Add.Visible = true;
                update.Visible = true;
                Delete.Visible = false;
            }

it is alwasys visisble in room form when reception is login |????

try using Delete.Enabled=false. It'll still be visible but it'll be grayed out and can't be used.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.