Click here to Skip to main content
15,887,944 members
Home / Discussions / C#
   

C#

 
Questionlive video receiving. Pin
Zafar24826-Sep-10 9:40
Zafar24826-Sep-10 9:40 
AnswerRe: live video receiving. Pin
DaveAuld26-Sep-10 10:23
professionalDaveAuld26-Sep-10 10:23 
GeneralRe: live video receiving. Pin
Zafar24826-Sep-10 21:39
Zafar24826-Sep-10 21:39 
QuestionConvert From Icon to Image [Solved] Pin
Saksida Bojan25-Sep-10 22:18
Saksida Bojan25-Sep-10 22:18 
AnswerRe: Convert From Icon to Image Pin
OriginalGriff25-Sep-10 22:48
mveOriginalGriff25-Sep-10 22:48 
GeneralRe: Convert From Icon to Image Pin
Saksida Bojan25-Sep-10 23:16
Saksida Bojan25-Sep-10 23:16 
GeneralRe: Convert From Icon to Image Pin
OriginalGriff25-Sep-10 23:46
mveOriginalGriff25-Sep-10 23:46 
GeneralRe: Convert From Icon to Image Pin
Saksida Bojan26-Sep-10 0:00
Saksida Bojan26-Sep-10 0:00 
I Thing i got a hand of it. I was pretty sure it was a type. But it is a control. I got confused with normal Image class.

it was the folowing code for solution

using ImageIcon = System.Drawing.Icon;

Extract Icon from exe and then converts
ImageIcon ico = ImageIcon.ExtractAssociatedIcon(dpi.LongFileName);
Bitmap bmp = ico.ToBitmap();
MemoryStream stream = new MemoryStream();
bmp.Save(stream, System.Drawing.Imaging.ImageFormat.Png);
BitmapImage bmpImage = new BitmapImage();
bmpImage.BeginInit();
stream.Seek(0, SeekOrigin.Begin);
bmpImage.StreamSource = stream;
bmpImage.EndInit();

dpi.FileIcon = new System.Windows.Controls.Image();
dpi.FileIcon.Source = bmpImage;

GeneralMessage Closed Pin
26-Sep-10 20:48
stancrm26-Sep-10 20:48 
GeneralRe: Convert From Icon to Image Pin
OriginalGriff26-Sep-10 21:11
mveOriginalGriff26-Sep-10 21:11 
GeneralRe: Convert From Icon to Image Pin
Roger Wright26-Sep-10 21:58
professionalRoger Wright26-Sep-10 21:58 
GeneralRe: Convert From Icon to Image Pin
Saksida Bojan27-Sep-10 1:09
Saksida Bojan27-Sep-10 1:09 
QuestionC# Trasnparrnt Control Pin
C.CoderCreator25-Sep-10 21:58
C.CoderCreator25-Sep-10 21:58 
AnswerRe: C# Trasnparrnt Control Pin
OriginalGriff25-Sep-10 22:46
mveOriginalGriff25-Sep-10 22:46 
GeneralRe: C# Trasnparrnt Control Pin
C.CoderCreator25-Sep-10 22:55
C.CoderCreator25-Sep-10 22:55 
GeneralRe: C# Trasnparrnt Control Pin
OriginalGriff25-Sep-10 22:59
mveOriginalGriff25-Sep-10 22:59 
GeneralRe: C# Trasnparrnt Control Pin
C.CoderCreator25-Sep-10 23:01
C.CoderCreator25-Sep-10 23:01 
GeneralRe: C# Trasnparrnt Control Pin
OriginalGriff25-Sep-10 23:08
mveOriginalGriff25-Sep-10 23:08 
QuestionHow to set alignments of form controls dynamically. Pin
priyamtheone25-Sep-10 20:02
priyamtheone25-Sep-10 20:02 
AnswerRe: How to set alignments of form controls dynamically. Pin
Mycroft Holmes25-Sep-10 23:46
professionalMycroft Holmes25-Sep-10 23:46 
AnswerRe: How to set alignments of form controls dynamically. Pin
priyamtheone29-Sep-10 3:26
priyamtheone29-Sep-10 3:26 
Questioncustom control problem in design time Pin
reza assar24-Sep-10 23:27
reza assar24-Sep-10 23:27 
AnswerRe: custom control problem in design time Pin
reza assar25-Sep-10 2:24
reza assar25-Sep-10 2:24 
AnswerRe: custom control problem in design time Pin
Gonzalo Cao26-Sep-10 22:36
Gonzalo Cao26-Sep-10 22:36 
GeneralRe: custom control problem in design time Pin
reza assar28-Sep-10 22:59
reza assar28-Sep-10 22:59 

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.