Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

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.

VS 2005: Attribute eines Usercontroles im Designer per Editor bearbeiten

Empfohlene Antworten

Veröffentlicht

Ich hab ein Usercontrol das verschiedene Attribute besitzt.

Unter anderem auch ein


public ListItemCollection Items
[/PHP]

der die Einträge in einer Combobox in dem Usercontrol zurückgeben bzw. setzen soll.

Jetzt möchte ich wenn ich das Usercontrol im Designer auf eine Seite ziehe (ist ein ASP Projekt) und in den Properties dieses Attribute bearbeite dort einen Button haben über den sich der ListItem Collection Editor öffnet.

Also genauso wie wenn ich im Designer direkt die ComboBox anklicke und die Items bearbeite.

Nur wie mache ich das?

  • Autor

Kann doch nicht sein das das noch niemand gemacht hat oder?

Ich hab jetzt lauter Beispiele im Internet gefunden wo es in folgender Art gelöst wurde, bei mir bewirkt das aber gar nichts :(


[Browsable(true),
Editor(typeof(System.ComponentModel.Design.CollectionEditor),
typeof(System.Drawing.Design.UITypeEditor))]
public ListItemCollection PlanTypes
[/PHP]

Existiert für PlanTypes eine Get und Set - Mehtode??

Beispiel:

public ListItemCollection m_PlanTypes;

public ListItemCollection PlanTypes

{

get { return m_PlanTypes; }

set { m_PlanTypes = value; }

}

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.