|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
New Dialog ResultI am trying to design a custom messagebox type form that has Yes to All
and a No to All buttons in addition to Yes, No and Cancel. I would like to return which button was clicked using the standard system dialog result. But there are no dialog result values for Yes to All and No to All. Is it possible to add items to this enumertion? Suggest creating your own ENUM and returning the result from that.
-- Show quoteHide quoteDennis in Houston "za***@construction-imaging.com" wrote: > I am trying to design a custom messagebox type form that has Yes to All > and a No to All buttons in addition to Yes, No and Cancel. I would like > to return which button was clicked using the standard system dialog > result. But there are no dialog result values for Yes to All and No to > All. Is it possible to add items to this enumertion? > > > All. Is it possible to add items to this enumertion? A one word answer would be "No". I don't know if this is the best method,but this is how I did it in a similar situation : In the Dialog Form : -------------------- Dim MyResult as TheResult Public Enum TheResult As Integer Yes No YesToAll NoToAll End Enum Private Sub frmDialog_Closing(...) ' Conditions here MyResult = TheResult.YesToAll : HTH,: End Sub Regards, Cerebrus.
Splitting a large string variable into lines <= 70 chars
Custom size paper problem Can you emulate an ActiveX exe in .NET BindingList: How to implement Find? XML Commenting Saving Rich Text to a SQL Database Sending Mail via MAPI - VB .NET 2005 Obtaining complete User List Adding images to image folder in vb.net Interview Questions Feb 24, 2006 |
|||||||||||||||||||||||