Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Prism [Prism] Picturebox im Compact Framework (https://www.delphipraxis.net/133549-%5Bprism%5D-picturebox-im-compact-framework.html)

Tonic1024 4. Mai 2009 14:45


[Prism] Picturebox im Compact Framework
 
Hallo...

Ich arbeite mich grad in .NET ein. Jetzt wollte ich über einen auf dem PDA viel zu winzigen Scrollbar ein Panel legen und dort große Pfeiltasten, also Schaltflächen für rauf und runter, drauf platzieren. Doch immer wenn ich eine PictureBox auf meiner Form habe startet die Anwendung nicht sondern bricht mit der Fehlermeldung ab, dass ein
Zitat:

InvalidCastException in InitializeComponent()
aufgetreten sei. Nehme ich die picturebox wieder herunter klappts. Dieser Fehler tritt auf zwei PDAs auf. einer hat CF3.5 und eines ds CF2.0. An meinem PC gehts, da ist aber auch so ziemlich alles an Frameworks drauf installiert was es gibt.


Hoffe jemand hat ne Idee...

Gruß,

Toni

mkinzler 4. Mai 2009 14:46

Re: [Prism] Picturebox im Compact Framework
 
Dieses Control scheint nicht Teil des CF zu sein

Christian S. 4. Mai 2009 14:50

Re: [Prism] Picturebox im Compact Framework
 
Hallo!

Du solltest eine CF-Anwendung in Prism auch unter Nutzung des entsprechenden CF-Frameworks kompilieren. Wie das geht steht hier unter "Preparation".

Grüße
Christian

Phoenix 4. Mai 2009 14:54

Re: [Prism] Picturebox im Compact Framework
 
1.) Die Picturebox ist Teil des CF und
2.) behebt das nicht das Problem.

Es scheint an nicht 100% korrekt generierten InitializeComponent code zu liegen.

Schau Dir mal diesen Thread an: http://community.sharpdevelop.net/forums/t/5388.aspx
Mit diesen beschriebenen Änderungen am generierten Code sollte es gehen.

Tonic1024 4. Mai 2009 15:58

Re: [Prism] Picturebox im Compact Framework
 
Danke Phoenix. Stehe - wieder einmal - in deiner Schuld.

Klappt hervorragend.

Phoenix 4. Mai 2009 16:08

Re: [Prism] Picturebox im Compact Framework
 
Kein Problem, dafür sind wir da ;-)


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:54 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz