DialogResult

Sep 29, 2013 at 9:52 AM
Bonjour,
J'utilise la dernière version d'InfoBox, avec Visual Studio 8 Professionnel, sous Windows 8 Professionnel 64 bits, processeur x64
Avec DialogResult j'obtient des valeurs qui ne sont pas celles obtenues avec MessageBox.Show
Voici les valeurs obtenues
I__foBox__ / Messagebox.Show
ABANDONNER = 0/ 3
ANNULER = 1 /2
IGNORER = 2 /5
NON = 3 /7
OK = 5 /1
RESSAYER = 6 /4
OUI = 7 /6
USER1 = 8
USER2 = 9
Est-il possible de corriger cela ? Peut être avec une autre synthaxe ?
Cordialement

SC
Hello
I use the latest version of InfoBox, with Visual Studio 8 Professional on Windows 8 Professional 64-bit, x 64 processor
WithDialogResult I get values that are not those obtained with MessageBox.Show
Here are the values obtained
IfoBox / Messagebox.Show
ABANDONNER = 0/ 3
ANNULER = 1/ 2
IGNORER = 2/ 5
NON = 3 / 7
OK = 5 / 1
RESSAYER = 6/ 4
OUI = 7 / 6
USER1 = 8
USER2 = 9
Is it possible to fix this? Can be with a different syntax?
Kind regards
SC
Coordinator
Sep 29, 2013 at 4:45 PM
The underlying values of InformationBoxResult are meant to be the same as DialogResult.
The following code can help you convert from DialogResult to InformationBoxResult. It should be easy to create a method to do the opposite.
public static InformationBoxResult Parse(DialogResult value)
{
    return (InformationBoxResult)Enum.Parse(typeof(InformationBoxResult), value.ToString());
}
Sep 30, 2013 at 1:32 PM
Hello
I'm idiot! Must be used
Dim Reponse As InfoBox.InformationBoxResult
Not
Dim Reponse As MsgBoxResult
Kind regards
SC