Cannot Call Openfiledialog through button on Tabcontrol
Hi All,
I am having an issue where, if I call an openfiledialog.showdialog() through a button(created using designer from toolbox) which is present on a tabpage of a tabcontrol, then it fails with the error Attempted to read or write protected memory. The call to the filedialog works fine if i drag the button from the tabpage to the main form.
Could someone please advise if there is a correct or an incorrect way of adding control to a tabpage?
|