עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[C#]בעיה בכתיבה למוסד נתונים בVS 2005

Featured Replies

פורסם

שלום

אני כותב תוכנה היא בודקת במוסד הנתונים אם המשתמש (שמזדהה עם ת.ז) עבר מבחן באותה תקופה או לא. במידה ולא עבר מקפיצה לו את המבחן ובמידה ועובר מעדכנת את תאריך ביצע המבחן.

עכשיו הכול עובד לי כמו שצריך חוץ מהחלק של עדכון הנתונים.

אני עובד לפי ההסברים פה- http://www.homeandlearn.co.uk/csharp/csharp_s12p1.html

הבעיה שלי שאני כותב בVS 2005 וכול פעם שאני מנסה לפתוח את המוסד נתונים קופצת לי הודעה "מוסד הנתינים אלי פגום תריץ כלי תיקון".

  System.Data.SqlServerCe.SqlCeConnection con;

private void welcome_Load(object sender, EventArgs e)
{
con = new System.Data.SqlServerCe.SqlCeConnection();
con.ConnectionString = "Data Source=C:\\Users\\yakir\\Desktop\\new\\TS-new - c#\\userDB.sdf";
con.Open();

con.Close();
}

השגיאה קופצת לי בשורה con.open

הדבר שמשגע אותי שאם אני רושם את אותם שורות בדיוק בVS 2010 הכול תקין ועובד טוב.

מה יכולה להיות הבעיה?(בבקשה לא לתת הצעות לרשום את הקוד בVS2010 כי אני לא יכול מבחינה טכנית).

תודה מראש

נערך על-ידי yakir8

  • 2 שבועות מאוחר יותר...
פורסם

נסה אולי להוסיפ STATIC ל CON

אולי @ לפני הסרינג יעזור ?

אולי הגירסה של DB חדשה ?

נערך על-ידי aviv00

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.