Re: Komponente umhängen

From: Thomas Wendt (no.spam.thomaswendt_at_gmx.de)
Date: 03/25/04


Date: Thu, 25 Mar 2004 14:30:06 +0100


"Hubert Holler" <haiflosse@gmx.net> schrieb im Newsbeitrag
news:4062d56e$0$21724$91cee783@newsreader01.highway.telekom.at...
> Ich verwende in einem VB6.0 Programm eine Komponente die ich gerne auf
eine
> andere Komponente umändern möchte.
> Wenn ich aber die andere Komponente anklicke bekomme ich folgende Meldung:
> -------------
> Name steht in Konflikt mit vorhandenem Modul, Projekt oder vorhandener
> Objektbibliothek.
> -----------
>
> Ist es irgendwie möglich die andere Komponente auszuwählen, ohne alle
> Objekte der Komponente aus den Formularen vorher zu entfernen.
>
Hallo Hubert

Wenn ich dich richtig verstanden habe möchtest du als Beispiel folgendes
machen:

Du hast auf deiner Form das ProgressBar von den Microsoft Windows Common
Controls 5.0 und möchtest das ProgressBar von den Microsoft Windows Common
Controls 6.0 verwenden.
Und das ohne das du das ProgressBar aus den Microsoft Windows Common
Controls von deiner Form entfernen must.

In der IDE ist das nicht Möglich. Du musst in der IDE erst das ProgressBar
aus den Microsoft Common Controls 5.0 entfernen und dann das ProgressBar aus
den Microsoft Common Controls 6.0 setzen.

Oder du machst folgendes Beispiel:

Neues Projekt. Auf dieser Form mal drei oder nach belieben ProgressBars aus
den Microsoft Common Controls 5.0 setzen.

Speicher nun dein Projekt ab und beende es.
Rufe deine Form1.frm Datei in einem Editor deiner Wahl auf.

Jetzt suchst du nach dem String ComctlLib.ProgressBar der ist für die
ProgressBar aus den Microsoft Common Controls 5.0 und ersetzt diesen durch
MSComctlLib.ProgressBar. Das machst du für alle Strings.

Danach speicherst du die Datei ab und rufst dein VB-Projekt auf.

In der Form Form1.frm sind nun alle ProgressBars aus den Microsoft Common
Controls 5.0 durch die ProgressBars aus den Microsoft Common Controls 6.0
erstezt.

Wenn du jetzt den Verweis (Strg+T) der Microsoft Common Controls 5.0
entfernst bekommst du auch keine Fehlermeldung mehr.

Du musst wissen welchen Namen die alte und welchen die neue Komponente hat.
Wenn du es nicht weist, dann füge zur alten Komponente die neue Komponente
auf den Form hinzu.

Zu finden ist dann so etwas:
ComctlLib.ProgressBar ProgressBar1 (aus den MS Common Controls 5.0) oder
Begin MSComctlLib.ProgressBar ProgressBar2 (aus den MS Common Controls 6.0)

Ich hoffe das wars was du wissen wolltest.

Gruß
Thomas



Relevant Pages

  • Re: CPropertySheet/Page
    ... data structure Just went back and looked at my ... this common parent. ... where "CParent" stands for whatever your parent window is. ... are snatched out of the controls and stored in these variables, and in an OnSetActive, ...
    (microsoft.public.vc.mfc)
  • Re: What is "wall heat"?
    ... also be very popular in S California, where central air is not as common ... and controls. ... Some oldest ones did not have a thermostat at all-- just ...
    (alt.home.repair)
  • Re: store external javascript files in aspnet_client subfolder
    ... store common javascript files and other include common files. ... use of this folder by including their own subfolder under ... storing common .js files for use in custom web controls, ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: GinaStub Development for Windows XP(not getting XP Themes)...
    ... For purposes of my response I assume you're talking about getting common ... controls to assume the look of whatever Theme is ... screen-unlock mechanism), I had to do the follow to enable themes on my ... > Iam developing GINA Stub in Windows XP to support Fingerprint ...
    (microsoft.public.platformsdk.security)
  • Re: Benutzerdefinierte Typ nicht definiert
    ... Nee, schon klar, also nicht, warum ein bestimmtes ActiveX oder Common ... Standard-Controls zu verwenden und die Common Controls ... Gruss - Peter ...
    (microsoft.public.de.access)