Beispiel #1
0
        private static void Interaction_MsgBox(bool useVbHost)
        {
            VbHost host = useVbHost ? new VbHost() : null;

            HostServices.VBHost = host;
            Interaction.MsgBox(Prompt: "Message", Buttons: MsgBoxStyle.OkCancel, Title: "Title");
        }
Beispiel #2
0
        private static void Interaction_InputBox(bool useVbHost)
        {
            VbHost host = useVbHost ? new VbHost() : null;

            HostServices.VBHost = host;
            Interaction.InputBox(Prompt: "Prompt", Title: "Title");
        }