שלח תשובה

זירת השאלות

493
צפיות
0
תשובות

אפלייקציה ב- asp.net

,‏ 16 באוגוסט, 2004

אני רוצה לפתוח חלון של Browse איך עושים את זה הכי פשוט.

אני עשיתי את זה כך:



OpenFileDialog OpenFile = new OpenFileDialog();
            OpenFile.Filter = " Text files (*.txt)|*.txt|All files (*.*)|*.*";
            OpenFile.RestoreDirectory = true;
            OpenFile.ShowDialog();
            if (OpenFile.FileName != "")
                TxtPictureUrl.Text = OpenFile.FileName;


ומשום מה זה לא עובד זורק הודעת שגיעה כזאת:

It is invalid to show a modal dialog or form when the application is not running in UserInteractive mode. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application

תגיות:

0 תשובות

    שלח תשובה