|Real Software Forums
|Page 1 of 1|
|Author:||sinner [ Sat Sep 22, 2012 11:16 am ]|
|Post subject:||Custom MessageDialog|
I wanted to share a simple method to save space in your project by adding a custom message dialog then having to rewrite the whole messagedialog Function for each time u want to use it your application!
Hope you enjoy
1. make a global method called MessageDialog in your APP class
Sub MessageDialog(Title As String, Message As String , Explanation As String , GraphicIcon As Integer , ActionCaption As String ="OK" , CancelCaption As String ="Cancel", CancelButton As Boolean)
2. Call it anywhere you like in your app
App.MessageDialog(App.ExecutableFile.Name,"Error: Testing Msg....","Msg Tested",1,"","", False)
|Author:||Bob Keeney [ Tue Sep 25, 2012 4:52 pm ]|
|Post subject:||Re: Custom MessageDialog|
We use something similar but just make it a global function so there's no need to put the 'app' in front of it.
|Page 1 of 1||All times are UTC - 5 hours|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group