עבור לתוכן
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#

Featured Replies

פורסם

שלום יש לי כמה שאלות בC#:

1) אני מחפש פונקציה שתעבוד כמו getElementById של JS.

2) יש לי פונקציה (בwindow application) שכשאני לוחץ על כפתור היא מופעלת, ויש לי כמה כפתורים ולכל כפתור פונקציה משלו, האם יש דרך לעשות פונקציה שמזהה את הכפתור ששלח לה את הפונקציה וכך לעשות פונקציה אחת ולא כמה?

תודה, שרון

פורסם

אתה מקבל את הכפתור שלחצת עליו בארגומנט הראשון(object sender), בפונקציה של אירוע הלחיצה.

אתה פשוט צריך להגדיר את כל הDELEGATES שמציינים לחיצות להצביע על אותה פונקציה.

פורסם
  • מחבר

איך אני מוציא את שם האובייקט מתוך sender, לא מצאתי את זה...

פורסם

(Button)object

יתן לך את הלחצן שלחץ.

הOBJECT הוא האובייקט עצמו.

למשל, בזריקת האירוע, רשום:

OnMouseClick(this, mouse_click_args)

כאשר OnMouseClick הוא האירוע עצמו(אל תשכח שניתן לזרוק את האירוע רק מתוך האובייקט שהוא שייך אליו).

ארכיון

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

דיונים חדשים

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.