custom Controll als DLL

  • VB.NET

Es gibt 14 Antworten in diesem Thema. Der letzte Beitrag () ist von Schamash.

    custom Controll als DLL

    Hallo zusammen ich hab da ein Problem.

    Ich hab mir ein TabControl zusammengestellt das einige Zusatzfunktionen hat.
    Ich hab eine neue Klassenbibliothek erstellt und mir so eine .dll geschaffen.

    Leider kann ich diese nicht in mein Toolbox einfügen.

    Es kommt immer zu folgender Fehlermeldung:

    Was mache ich falsch?

    Edit:
    Projekt angefügt.
    Bilder
    • Fehler.jpg

      76,04 kB, 484×202, 134 mal angesehen
    Dateien
    • odcTabControl.dll

      (21,5 kB, 117 mal heruntergeladen, zuletzt: )
    • odcTabControl.zip

      (47,16 kB, 92 mal heruntergeladen, zuletzt: )
    There is no CLOUD - just other people's computers

    Q: Why do JAVA developers wear glasses?
    A: Because they can't C#

    Daily prayer:
    "Dear Lord, grand me the strength not to kill any stupid people today and please grant me the ability to punch them in the face over standard TCP/IP."

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „Schamash“ ()

    Poste mal die Quellen / das Projekt der DLL.
    Falls Du diesen Code kopierst, achte auf die C&P-Bremse.
    Jede einzelne Zeile Deines Programms, die Du nicht explizit getestet hast, ist falsch :!:
    Ein guter .NET-Snippetkonverter (der ist verfügbar).
    Programmierfragen über PN / Konversation werden ignoriert!
    @RodFromGermany
    Das Problem ist doch eindeutig, oder?

    Sonst ist nichts mehr in der .dll

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „nafets3646“ ()

    Was müsste denn noch in der .dll sein?
    Ich hab bisher mein custom Controlls immer als Klasse im Projekt erstellt und dann konnte ich sie verwenden.

    Ich wollte die jetzt als dll. speichern damit ich sie "schneller" hinzufügen kann.
    There is no CLOUD - just other people's computers

    Q: Why do JAVA developers wear glasses?
    A: Because they can't C#

    Daily prayer:
    "Dear Lord, grand me the strength not to kill any stupid people today and please grant me the ability to punch them in the face over standard TCP/IP."
    @nafets3646: Seh ich leider nicht.
    Kann es sein, dass Du mich verwechselt hast?
    @Schamash:
    Kann es sein, dass Du vergessen hast, da,, was zugreifbar sein soll, als Public zu deklarieren?
    Falls Du diesen Code kopierst, achte auf die C&P-Bremse.
    Jede einzelne Zeile Deines Programms, die Du nicht explizit getestet hast, ist falsch :!:
    Ein guter .NET-Snippetkonverter (der ist verfügbar).
    Programmierfragen über PN / Konversation werden ignoriert!
    @RodFromGermany

    glaube nicht.

    Wenn ich die .vb in ein WinForms Projekt einbinde kann ich das Control auch ganz normal nutzen.
    Aber wie schon geschrieben würde ich gerne meine .vb CustomControls in .dll's haben.
    There is no CLOUD - just other people's computers

    Q: Why do JAVA developers wear glasses?
    A: Because they can't C#

    Daily prayer:
    "Dear Lord, grand me the strength not to kill any stupid people today and please grant me the ability to punch them in the face over standard TCP/IP."

    nafets3646 schrieb:

    Die .vb-Datei gehört nicht in die Ressourcen sondern einfach als Klasse hinein.

    Hab mal ein Mini-Tutorial erstellt, das hilft vielleicht.
    Bilder
    • Schritt 1.png

      69,54 kB, 993×698, 159 mal angesehen
    • Schritt 2.png

      67,32 kB, 1.920×1.040, 125 mal angesehen
    • Schritt 3.png

      69,1 kB, 1.920×1.040, 121 mal angesehen
    @nafets3646

    genau das hab ich doch gemacht.

    edit. Ich weiß nicht woher du das mit den Ressourcen hast aber da wollte ich das nie einbinden. Sondern in die Toolbox
    There is no CLOUD - just other people's computers

    Q: Why do JAVA developers wear glasses?
    A: Because they can't C#

    Daily prayer:
    "Dear Lord, grand me the strength not to kill any stupid people today and please grant me the ability to punch them in the face over standard TCP/IP."

    Schamash schrieb:

    glaube nicht.
    Glaube nicht, Wisse.
    Ich sehe nix in Deiner DLL.
    Falls Du diesen Code kopierst, achte auf die C&P-Bremse.
    Jede einzelne Zeile Deines Programms, die Du nicht explizit getestet hast, ist falsch :!:
    Ein guter .NET-Snippetkonverter (der ist verfügbar).
    Programmierfragen über PN / Konversation werden ignoriert!
    Ich hab das Projekt im ersten Post angefügt.

    Ich finde keinen Punkt der Public sein müsste es aber nicht ist.
    There is no CLOUD - just other people's computers

    Q: Why do JAVA developers wear glasses?
    A: Because they can't C#

    Daily prayer:
    "Dear Lord, grand me the strength not to kill any stupid people today and please grant me the ability to punch them in the face over standard TCP/IP."
    @nafets3646
    Ahh ich glaube ich weiß wie dein Missverständnis zustande kommt.

    Ich hab bei "Buildvorgang" - "Eingebettete Ressource" verwendet.

    Was müsste ich hier korrekterweise einstellen?
    There is no CLOUD - just other people's computers

    Q: Why do JAVA developers wear glasses?
    A: Because they can't C#

    Daily prayer:
    "Dear Lord, grand me the strength not to kill any stupid people today and please grant me the ability to punch them in the face over standard TCP/IP."
    Ahhh Super!

    Jetzt geht es.
    There is no CLOUD - just other people's computers

    Q: Why do JAVA developers wear glasses?
    A: Because they can't C#

    Daily prayer:
    "Dear Lord, grand me the strength not to kill any stupid people today and please grant me the ability to punch them in the face over standard TCP/IP."