Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Images in C# Express 2005

[es] :: .NET :: .NET Desktop razvoj :: Images in C# Express 2005

[ Pregleda: 3500 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

Cracker
Beograd

Član broj: 40086
Poruke: 198
*.ADSL.neobee.net.



+6 Profil

icon Images in C# Express 200520.09.2006. u 02:47 - pre 214 meseci
Kako da nateram program da sliku porse.jpg povlaci iz svojih resursa a ne iz foldera My Documents?
Probao sam sa da stavim "Vezba.Properties.Resources.porse.jpg" ali nije uspelo.

Car[0].Make = "Porse";
Car[0].Model = "Carerra";
Car[0].CarYear = 1998;
Car[0].Doors = 3;
Car[0].CarPicture = "C:\\Documents and Settings\\Pedja\\My Documents\\Visual Studio 2005\\Projects\\Vezba\\porse.jpg";

Ful kod moze da se nadje ovde http://www.functionx.com/vcsharp/applications/carinventory.htm
 
Odgovor na temu

negyxo
Aleksandar Perkuchin

Član broj: 29751
Poruke: 898
*.sksyu.net.



+171 Profil

icon Re: Images in C# Express 200520.09.2006. u 06:55 - pre 214 meseci
Pa upravo tako kao sto si napisao. Ali bez tacke. Sto ce ti vratiti objekat tipa Bitmap ukoliko si dodao u resurs sliku kao image resurs. Posle ces koristiti u kodu

Code:

somePictureBox.Image = Vezba.Properties.Resources.porse;
 
Odgovor na temu

[es] :: .NET :: .NET Desktop razvoj :: Images in C# Express 2005

[ Pregleda: 3500 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.