Click here to Skip to main content
15,917,862 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Windows forms application popup dialog? Pin
Mattzimmerer18-Mar-10 12:03
Mattzimmerer18-Mar-10 12:03 
GeneralRe: Windows forms application popup dialog? Pin
Saiyed Alam18-Mar-10 19:23
Saiyed Alam18-Mar-10 19:23 
GeneralRe: Windows forms application popup dialog? Pin
Mattzimmerer19-Mar-10 7:53
Mattzimmerer19-Mar-10 7:53 
GeneralRe: Windows forms application popup dialog? Pin
darkelv18-Mar-10 22:00
darkelv18-Mar-10 22:00 
GeneralRe: Windows forms application popup dialog? Pin
Mattzimmerer19-Mar-10 7:47
Mattzimmerer19-Mar-10 7:47 
QuestionCreate UserControl DependencyProperty of which value can be chosen in dropdown list (as combo box) Pin
vongocviet18-Mar-10 6:45
vongocviet18-Mar-10 6:45 
AnswerRe: Create UserControl DependencyProperty of which value can be chosen in dropdown list (as combo box) Pin
Super Lloyd18-Mar-10 11:16
Super Lloyd18-Mar-10 11:16 
QuestionHow to display Northwind Product Image? Pin
Gene Arnold17-Mar-10 9:00
Gene Arnold17-Mar-10 9:00 
I have a webservice that returns data from the NW database....

product.ProductPic = (byte[])reader.GetValue(8);

On the client that is requesting the data I have code like this....

Byte[] bImage = Product.ProductPic;
System.Windows.Media.Imaging.BitmapImage bmpImage = new System.Windows.Media.Imaging.BitmapImage();
bmpImage.SetSource(new MemoryStream(bImage));
imgProduct.Source = bmpImage;

When I try to run this I get the following error...

System.Exception: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

From what I have read this could mean that the image is saved in a unsupported format for Silverlight. How can I know what type of image is stored in the database? Can I convert this some how?
AnswerRe: How to display Northwind Product Image? Pin
fred_17-Mar-10 9:42
fred_17-Mar-10 9:42 
QuestionHow can i add a User Control to another User Control?? Pin
urooj_mahmood17-Mar-10 3:34
urooj_mahmood17-Mar-10 3:34 
AnswerRe: How can i add a User Control to another User Control?? Pin
Abhinav S18-Mar-10 0:30
Abhinav S18-Mar-10 0:30 
AnswerRe: How can i add a User Control to another User Control?? Pin
Kunal Chowdhury «IN»23-Mar-10 7:31
professionalKunal Chowdhury «IN»23-Mar-10 7:31 
QuestionSilverlight map control localized to india Pin
p_mnj17-Mar-10 2:59
p_mnj17-Mar-10 2:59 
Questionhow do use multiple grid in UserControl??? Pin
urooj_mahmood16-Mar-10 0:47
urooj_mahmood16-Mar-10 0:47 
AnswerRe: how do use multiple grid in UserControl??? Pin
Abhinav S16-Mar-10 0:58
Abhinav S16-Mar-10 0:58 
AnswerRe: how do use multiple grid in UserControl??? Pin
Pete O'Hanlon16-Mar-10 1:53
mvePete O'Hanlon16-Mar-10 1:53 
QuestionGet binding of control in datagridtemplatecolumn Pin
klauswiesel15-Mar-10 22:51
klauswiesel15-Mar-10 22:51 
AnswerRe: Get binding of control in datagridtemplatecolumn Pin
Super Lloyd16-Mar-10 12:45
Super Lloyd16-Mar-10 12:45 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
klauswiesel16-Mar-10 22:04
klauswiesel16-Mar-10 22:04 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
Super Lloyd17-Mar-10 1:40
Super Lloyd17-Mar-10 1:40 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
klauswiesel17-Mar-10 2:12
klauswiesel17-Mar-10 2:12 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
Super Lloyd17-Mar-10 2:55
Super Lloyd17-Mar-10 2:55 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
klauswiesel17-Mar-10 3:38
klauswiesel17-Mar-10 3:38 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
Super Lloyd17-Mar-10 12:21
Super Lloyd17-Mar-10 12:21 
GeneralRe: Get binding of control in datagridtemplatecolumn Pin
klauswiesel18-Mar-10 9:39
klauswiesel18-Mar-10 9:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.