for this case:A bit confusing question, but you can uncheck a screen component from the Enable property in the disigner. As a result, the component in question turns gray when the program runs. You can also turn this feature on or off via the program code. If you want to prevent the gray color of a disabled property, you can also add a test in the routine as to whether or not you should respond to the user action.
Sub add_Click
searchPanel.Visible = True
mainToolBar.Enabled = False
mainPanel.Enabled = False
End Sub
I think that, i couldn't say my goal and purpose right.Well its all a matter of purpose and means, but also in that order. The chance that we accidentally edge the goal of what exactly you want to achieve, given the extensive amount of possibilities, is not so great. The better you formulate what and why you want to achieve something, the better we can help you with which means (the solutions) you can achieve this.