المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Button Click event help



C# Programming
08-13-2009, 07:00 PM
Hi ,

I have 2 buttons on the form, SAVE and PRINT .. I want the user to click on the SAVE button first to save the current record and then print it. Now.. my question is.... if the user clicks first on the PRINT button before clicking on the SAVE button.....I want to alert the user using MessageBox etc.... upon click..that the record needs to be save first(by clicking on the save button) etc... how can i achive this....

(I have done the enable and disable operations by it was not accepted by the client .... ie on from_load ,,, disable print and enable save ....and on save_click enable print)



thanks,