1
Answer

Default accept / cancel form buttons!!!!!

Photo of Boblysan

Boblysan

20y
3.6k
1
Ok, I am hoping this is an easy one. I have a form with 7 buttons on it. The buttons perform various functions such as loading other forms, etc. I purposely DO NOT want to have a default accept / cancel button associated with this form at any time. I am noticing that when you click any of the buttons, the button last clicked becomes the default "accept" button for the form. How can I stop this behavior??? Please help. Bob

Answers (1)

0
Photo of Dipen Lama
NA 331 195.9k 18y
Use Place holder control to place the user control dynamically.
Here is some lines:

    string userControlName = "UserControl1.ascx"; 
 
    Control control1 ;
    control1 = LoadControl( userControlName );
    placeHolderControl1.Controls.Clear();
    placeHolderControl1.Controls.Add( control1 );