"mB" <(E-Mail Removed)> ha scritto nel messaggio
> I have an idea on how to be able to pass those parameters, where the parms
> have the appropriate types, such as:
> Public Function Startup(ByVal Prompt As String, ByVal Buttons As
> Microsoft.visualbasic.MsgBoxStyle, Optional ByVal Title As Object =
Nothing)
> As Microsoft.visualbasic.MsgBoxResult
I remember to you that you are writing .Net, not VB6.
Microsoft.VisualBasic namespace is no longer supported: see and
MessageBoxButtons, MessageBoxIcons and DialogResult instead.
Also the Optional keyword is deprecated and CLR un-compliant: consider to do
some function overload instead.
For your msgbox, a label can be your caption and a panel your border (if you
really want a floating window... but if you use the PPC in an industrial
environment I would use a BIG fullscreen window).
For buttons I would pass a string array with the captions *I* want to see
and as DialogResult would return -1 (cancel) or 0 to (buttons.Length - 1) to
know what button was pressed.
Fabio
--
NeoDataType :
http://www.neodatatype.net