Skip to main content

Hi!

I must set a Image like this in C#:

imageArtikel.Source = new BitmapImage(new Uri(Bild));

Have anyone done it before?


#SetIMAGESourcemanuelinWPF

Hi!

I must set a Image like this in C#:

imageArtikel.Source = new BitmapImage(new Uri(Bild));

Have anyone done it before?


#SetIMAGESourcemanuelinWPF

If you are looking for the COBOL syntax equivalent it would be:

  set imageArtike1::Source to new type BitmapImage(new type Uri(Bild))

Where Bild is a string containing the uri of the bitmap that you want to use.


Hi!

I must set a Image like this in C#:

imageArtikel.Source = new BitmapImage(new Uri(Bild));

Have anyone done it before?


#SetIMAGESourcemanuelinWPF

Thats it what I Need !


Hi!

I must set a Image like this in C#:

imageArtikel.Source = new BitmapImage(new Uri(Bild));

Have anyone done it before?


#SetIMAGESourcemanuelinWPF

In Visual COBOL, you don't actually need the "type" qualifier after the "new" operator - it's implicit.

So you can just use:

  set imageArtike1::Source to new BitmapImage(new Uri(Bild))