예제 #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");
        }
예제 #2
0
        private static void Interaction_InputBox(bool useVbHost)
        {
            VbHost host = useVbHost ? new VbHost() : null;

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