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

text editor עם סימון מילות מפתח ב #C

Featured Replies

פורסם

אני כותב text editor שמיועד לעריכה של קבצים גדולים שיכולים להגיע ליותר מ2500 שורות.

אני משתמש כמובן בstringbuilder ואז מציג את התוכן שלו לתוך textbox.

עכשיו אני רוצה לצבוע מילות מפתח שמורות בטקסט בצבע.

הדרך שמצאתי היא להשתמש בselection כלומר לעשות select לטקסט נבחר ואז לשנות את הפרופרטי selectioncolor.

אלא מה הפרופרטי הזה קיים רק בrichtextbox ולא בtextbox.

ניסיתי והכל עובד כמו שצריך חוץ מהעובדה שהביצועים של richtextbox פשוט איומים.

אז.. אני לא יודע מה לעשות?

מצאתי באינטרנט כמה המלצות על הקוד הזה http://www.codedblog.com/2007/09/17/owner-drawing-a-windowsforms-textbox/

אבל זה נראה מסובח וממש לא טבעי(עבורי), האם אני באמת צריך להגיע זה?

פורסם
  • מחבר

מישהו יכול לעזור?

ארכיון

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

דיונים חדשים

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.