我無(wú)法在我的 C# wpf 項(xiàng)目上發(fā)送消息,我已經(jīng)導(dǎo)入了所有組件,但現(xiàn)在收到此錯(cuò)誤MessageBoxButtons 出現(xiàn)錯(cuò)誤“無(wú)法將 system.windows.forms.messageboxbuttons 轉(zhuǎn)換為 system.windows.messageboxbuttons”using System.Windows;using System;using System.Windows.Controls;using System.Drawing;using System.Drawing.Imaging;using System.Security;using MessageBox = System.Windows.MessageBox;using System.Text.RegularExpressions;using System.IO;using System.Collections.Generic;using System.Windows.Forms; if (MessageBox.Show("test", "Confirm", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { // user clicked yes } else { // user clicked no }
無(wú)法將 system.windows.forms.messageboxbuttons 轉(zhuǎn)換為
慕蓋茨4494581
2023-05-13 15:54:50