MsgBoxStyle.Exclamation 48 Warning Message MsgBoxStyle.Information (Mambo hosting) 64 Information Message
Tuesday, December 26th, 2006MsgBoxStyle.Exclamation 48 Warning Message MsgBoxStyle.Information 64 Information Message Default Button Constants Constant Value Default button MsgBoxStyle.DefaultButton1 0 First button MsgBoxStyle.DefaultButton2 256 Second button MsgBoxStyle.DefaultButton3 512 Third button MsgBoxStyle.DefaultButton4 768 Fourth button Modality Constants Constant Value Modality MsgBoxStyle.ApplicationModal 0 Application MsgBoxStyle.SystemModal 4096 System Return Values The following intrinsic constants can be used to determine the action taken by the user and represent the value returned by the MsgBox function: Constant Value Button clicked MsgBoxResult.OK 1 OK MsgBoxResult.Cancel 2 Cancel (or Esc key pressed) MsgBoxResult.Abort 3 Abort MsgBoxResult.Retry 4 Retry MsgBoxResult.Ignore 5 Ignore MsgBoxResult.Yes 6 Yes MsgBoxResult.No 7 No If the MsgBox contains a Cancel button, the user can press the Esc key and the function’s return value will be that of the Cancel button. Programming Tips and Gotchas Application modality means that the user cannot access other parts of the application until a response to the message box has been given. In other words, the appearance of the message box prevents the application from performing other tasks or from interacting with the user other than through the message box. System modality used to mean that all applications were suspended until the message box was closed. However, with multitasking operating systems, such as Windows 95 and Windows NT, this is not the case. Basically, the message box is defined to be a “Topmost” window that is set to “Stay on Top,” which means that the user can switch to another application and use it without responding to the message box. But because the message box is the topmost window, it will be positioned on top of all other running applications. Unlike its InputBox counterpart, MsgBox cannot be positioned on the screen. It is always displayed in the center of the screen. If your application is to run out-of-process on a remote machine, you should remove all MsgBox functions since they will not be displayed to the user, but instead will appear on the monitor of the remote server! MsgBox should never be used in ASP.NET applications.
Quick Hint: If you are looking for best quality webspace to host and run your tomcat application check Vision tomcat hosting services