-
Notifications
You must be signed in to change notification settings - Fork 225
Open
Labels
VB -> C#Specific to VB -> C# conversionSpecific to VB -> C# conversion
Description
VB.Net input code
MsgBoxResult MsgBoxRet;
...
MsgBoxRet = MsgBox(sMLS, MsgBoxStyle.Question Or MsgBoxStyle.YesNo, Application.ProductName.ToString())
...
if (MsgBoxRet == MsgBoxResult.Yes)
Erroneous output
MsgBoxRet = Interaction.MsgBox(sMLS, MsgBoxStyle.Question | MsgBoxStyle.YesNo, Application.ProductName.ToString());
Expected output
DialogResult MsgBoxRet;
...
MsgBoxRet = MessageBox.Show(sMLS, Application.ProductName, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
...
if(MsgBoxRet == DialogResult.Yes)
...
Details
- Product in use: VS extension / Microsoft Visual Studio Professional 2022 (2) (64-Bit)
- Version in use: 9.2.6.0 / 17.12.4
Metadata
Metadata
Assignees
Labels
VB -> C#Specific to VB -> C# conversionSpecific to VB -> C# conversion