This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
Hi All.
I have two MainForms and one DetailForm. And that DetailForm I would like to open like editable form in one case and read only an other case in depend which MainForm call it. If is it possible how it to do?
Thanks.
You can set the IsEnabled property of the detail window to false, depending on the call. That way, all the edits are disabled
Bruno
Hi Bruno.
I will appreciate you if you have simple example with parent form that call read only child form.
private void CallDetailWindow(bool isReadOnly) { var detailWindow = new detailWindow(); detailWindow.IsEnabled = !isReadOnly; detailWindow.Show(); }