PDA

View Full Version : C # Help


-Ivan-
01-05-2004, 19:40
Devo inserire delle immagini in un programma in c# in una picture box ma mi da un eccezzione.
Devo utilizzare un certo tipo di formati?
Oppure le immagini devono essere in qualche modo implementate nel progetto.
Io utilizzo la versione free e magari puo essere che abbia dei limiti di questo tipo?

Mazza2
01-05-2004, 19:51
private System.Windows.Forms.PictureBox pic;

private Bitmap bit;



this.pic = new System.Windows.Forms.PictureBox();


this.bit = new Bitmap(path);

this.pic.Image = ((System.Drawing.Image)(bit));

-Ivan-
01-05-2004, 19:57
Ti amo.:D
Anche se in alcune istruzioni non ci ho capito una......Mazza, cmq ora provo grazie.

-Ivan-
01-05-2004, 20:06
private Bitmap bit;
[/QUOTE]

Questa istruzione sarebbe la dichiarazione di una variabile di tipo Bitmap?
Mi dice che non puo essere trovato.
Devo includere qualche libreria particolare?

Mazza2
02-05-2004, 23:43
Originariamente inviato da -Ivan-
private Bitmap bit;


Questa istruzione sarebbe la dichiarazione di una variabile di tipo Bitmap?
Mi dice che non puo essere trovato.
Devo includere qualche libreria particolare? [/QUOTE]


using System.Drawing;



mettici questo,.., ora dovrebbe andare... io uso pero' Visual Sutdio .NET 2003,,. non conosco il tuo tool ma se hai il framework 1.1 dovrebe andare...

Hardware Upgrade Forum Database Error
Database Error Database error
The Hardware Upgrade Forum database has encountered a problem.

Please try the following:
  • Load the page again by clicking the Refresh button in your web browser.
  • Open the www.hwupgrade.it home page, then try to open another page.
  • Click the Back button to try another link.
The www.hwupgrade.it forum technical staff have been notified of the error, though you may contact them if the problem persists.
 
We apologise for any inconvenience.