Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Let me explain my query in detail...I am making a browser in windows. i have a set of button and a web browser control placed on a MDI Form. These buttons and controls are disabled on Parent form load. When the form loads I have another for (a child form) Login. Now the issue is here..I want to enable all the controls on the Parent form on successful login. Can anyone help me asap.
Posted
Comments
milindaSnow 20-Mar-14 4:28am    
Just a clue here... There is a concept of Owner and OwnedForm in MDIParent and Child Forms, just check whether they can be used..
Those are properties of forms.
regards
BillWoodruff 20-Mar-14 8:46am    
If you use the MDI architecture, a Form whose MDIParent is set (i.e., a child Form) cannot have its Owner property set: those are mutually exclusive "states." You can use a Form in an MDI app which has its Owner set to the Main Form, however, although I would not recommend such a design.
BillWoodruff 20-Mar-14 8:44am    
I think you are making a serious mistake in your design: MDI is not meant to have any Controls on the MDI Form itself. Yes, you can drag-drop Controls onto the MDI Form, but any child Forms you create will always be "under" them in the z-order, and you will get a visual mess !

MDI is a deprecated architecture, and I'd encourage you ... if you can ... to switch to using something like a TabControl on a Main Form, where each TabPage in the TabControl can be one web-page ... or use some other design-model.
VipinKumar Maurya 20-Mar-14 9:03am    
@Bill, Thanks for your reply and suggestions.

1 solution

SQL
System.Web.UI.UpdatePanel u = (UpdatePanel)((ContentPlaceHolder)((MasterPage)SenderPageName.Master).FindControl("ContentPlaceHolder1")).FindControl("PanelName");



Use This Syntax To Find Control On Master Page.
 
Share this answer
 
Comments
VipinKumar Maurya 20-Mar-14 9:00am    
I have specified Its a windows form. But thanks for your response

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900