Click here to Skip to main content
15,890,973 members
Home / Discussions / C#
   

C#

 
QuestionDropDownList1.SelectedIndex = -1 couldn't work ? Pin
lighting_blue7-Nov-04 21:44
lighting_blue7-Nov-04 21:44 
AnswerRe: DropDownList1.SelectedIndex = -1 couldn't work ? Pin
Valeria Bogdevich8-Nov-04 0:40
Valeria Bogdevich8-Nov-04 0:40 
AnswerRe: DropDownList1.SelectedIndex = -1 couldn't work ? Pin
Anonymous8-Nov-04 19:19
Anonymous8-Nov-04 19:19 
Generalpassing HDC of picturebox to VC++ dll from C# Pin
handle1237-Nov-04 21:26
handle1237-Nov-04 21:26 
GeneralRe: passing HDC of picturebox to VC++ dll from C# Pin
Corinna John7-Nov-04 22:08
Corinna John7-Nov-04 22:08 
GeneralRe: passing HDC of picturebox to VC++ dll from C# Pin
handle1238-Nov-04 2:53
handle1238-Nov-04 2:53 
GeneralRe: passing HDC of picturebox to VC++ dll from C# Pin
Corinna John8-Nov-04 3:39
Corinna John8-Nov-04 3:39 
GeneralRe: passing HDC of picturebox to VC++ dll from C# Pin
handle1238-Nov-04 4:28
handle1238-Nov-04 4:28 
I think i can use width and hieght of the picturebox.... i did the same but it is still not showing any image in picturebox... I am sending you the code snippet i have written.I am wiriting this code in the wndproc of the form ... I am not writing OnPaint()... ???

pictureBox1.Image = new Bitmap(pictureBox1.Height,pictureBox1.Width);
Image image = pictureBox1.Image;
gfx = Graphics.FromImage(image);
objFusion.m_hdc = gfx.GetHdc();

Int32 a = DrawLiveImage(objFusion.ConHandle,3,objFusion.m_hdc,ref rect);

if(a !=0)
{
MessageBox.Show(a.ToString());
}

gfx.ReleaseHdc(objFusion.m_hdc);
gfx.Dispose();

pictureBox1.Refresh();



here objFusion is the object where other VC++ dll calls are done and DVRDrawLiveImage is the function in a dll, this dll we are using to draw images in picture box which we are getting from Digital Video recorder.We get video image frames and we need to draw that in a picturebox.

Generaldatabase viewer Pin
jomargon7-Nov-04 20:17
jomargon7-Nov-04 20:17 
GeneralRe: database viewer Pin
leppie7-Nov-04 21:39
leppie7-Nov-04 21:39 
GeneralC# Windows app in MFC Pin
Member 169777-Nov-04 19:53
Member 169777-Nov-04 19:53 
Generalhelp with system beep Pin
tom_dx7-Nov-04 8:53
tom_dx7-Nov-04 8:53 
GeneralRe: help with system beep Pin
Colin Angus Mackay7-Nov-04 12:10
Colin Angus Mackay7-Nov-04 12:10 
GeneralRe: help with system beep Pin
tom_dx7-Nov-04 13:10
tom_dx7-Nov-04 13:10 
GeneralRe: help with system beep Pin
Anonymous8-Nov-04 19:30
Anonymous8-Nov-04 19:30 
GeneralRe: help with system beep Pin
tom_dx9-Nov-04 1:29
tom_dx9-Nov-04 1:29 
GeneralBinaryReader I/O Problem - File Address Pin
zuschauer7-Nov-04 8:22
zuschauer7-Nov-04 8:22 
GeneralRe: BinaryReader I/O Problem - File Address Pin
leppie7-Nov-04 9:22
leppie7-Nov-04 9:22 
GeneralRe: BinaryReader I/O Problem - File Address Pin
zuschauer7-Nov-04 9:48
zuschauer7-Nov-04 9:48 
GeneralRe: BinaryReader I/O Problem - File Address Pin
Phil J Pearson8-Nov-04 1:11
Phil J Pearson8-Nov-04 1:11 
GeneralRe: BinaryReader I/O Problem - File Address Pin
zuschauer8-Nov-04 4:09
zuschauer8-Nov-04 4:09 
Questionhow to make back space in ur richbox Pin
ahmed gabalawy7-Nov-04 4:55
ahmed gabalawy7-Nov-04 4:55 
AnswerRe: how to make back space in ur richbox Pin
Jay Shankar7-Nov-04 17:01
Jay Shankar7-Nov-04 17:01 
AnswerRe: how to make back space in ur richbox Pin
Jay Shankar7-Nov-04 17:09
Jay Shankar7-Nov-04 17:09 
AnswerRe: how to make back space in ur richbox Pin
Stefan Troschuetz7-Nov-04 21:34
Stefan Troschuetz7-Nov-04 21:34 

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.