Click here to Skip to main content
15,909,440 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to use this code ? Pin
Xmen Real 22-Dec-07 3:58
professional Xmen Real 22-Dec-07 3:58 
AnswerRe: how to use this code ? Pin
Paul Conrad22-Dec-07 7:03
professionalPaul Conrad22-Dec-07 7:03 
GeneralMultiview in Winform app. Pin
arefkarimi21-Dec-07 22:41
arefkarimi21-Dec-07 22:41 
QuestionC# and Serial Ports Pin
Matti_P21-Dec-07 22:27
Matti_P21-Dec-07 22:27 
GeneralRe: C# and Serial Ports Pin
MickCurley22-Dec-07 1:40
MickCurley22-Dec-07 1:40 
GeneralRe: C# and Serial Ports Pin
Matti_P23-Dec-07 23:05
Matti_P23-Dec-07 23:05 
GeneralData GridView Pin
sindhutiwari21-Dec-07 21:38
sindhutiwari21-Dec-07 21:38 
GeneralVC# - How to draw a GIF animation on a picturebox control Pin
Shailesh Appukuttan21-Dec-07 17:02
Shailesh Appukuttan21-Dec-07 17:02 
I have a picturebox (imgViewer) which is displaying an image (a map). Now i want to display another image (a smaller one) on top of this image. But this smaller image is a GIF animation of a blinking siren.

But when i paint it on the picturebox, the overlapping of the two images is being displayed properly, but it comes as a static image with only the first frame of the animation being shown.

This is the code I am using:
<br />
private void btn_Path_Click(object sender, EventArgs e)<br />
{<br />
Bitmap path = new Bitmap(@"C:\Engg\Siren.JPG");<br />
Graphics graph = Graphics.FromImage( this.imgViewer.Image );<br />
graph.DrawImage(path, 0, 0);<br />
<br />
graph.Dispose();<br />
}<br />

(Thanks to CKnig for the code above)

How can i make the GIF animation properly display as I want the blinking effect. Thanks in advance!!
GeneralRe: VC# - How to draw a GIF animation on a picturebox control Pin
Christian Graus21-Dec-07 17:09
protectorChristian Graus21-Dec-07 17:09 
GeneralRe: VC# - How to draw a GIF animation on a picturebox control Pin
electriac23-Dec-07 3:47
electriac23-Dec-07 3:47 
GeneralRe: VC# - How to draw a GIF animation on a picturebox control Pin
Xmen Real 22-Dec-07 4:13
professional Xmen Real 22-Dec-07 4:13 
GeneralFiring Events in Static Methods Pin
aj.esler21-Dec-07 16:57
aj.esler21-Dec-07 16:57 
GeneralRe: Firing Events in Static Methods Pin
Kristian Sixhøj21-Dec-07 20:07
Kristian Sixhøj21-Dec-07 20:07 
GeneralRe: Firing Events in Static Methods Pin
Giorgi Dalakishvili22-Dec-07 4:38
mentorGiorgi Dalakishvili22-Dec-07 4:38 
GeneralLicensing for ASP.NET Pin
Member 183766121-Dec-07 15:28
Member 183766121-Dec-07 15:28 
GeneralRe: Licensing for ASP.NET Pin
Dave Kreskowiak21-Dec-07 15:50
mveDave Kreskowiak21-Dec-07 15:50 
GeneralRe: Licensing for ASP.NET Pin
Paul Conrad22-Dec-07 8:16
professionalPaul Conrad22-Dec-07 8:16 
GeneralRe: Licensing for ASP.NET Pin
Christian Graus21-Dec-07 17:11
protectorChristian Graus21-Dec-07 17:11 
GeneralRe: Licensing for ASP.NET Pin
Expert Coming21-Dec-07 21:03
Expert Coming21-Dec-07 21:03 
GeneralRe: Licensing for ASP.NET Pin
Paul Conrad22-Dec-07 8:18
professionalPaul Conrad22-Dec-07 8:18 
GeneralRe: Licensing for ASP.NET Pin
Jeffrey Walton22-Dec-07 9:15
Jeffrey Walton22-Dec-07 9:15 
GeneralCAB File Extraction Pin
Jeffrey Walton21-Dec-07 13:13
Jeffrey Walton21-Dec-07 13:13 
GeneralRe: CAB File Extraction Pin
Dave Kreskowiak21-Dec-07 14:41
mveDave Kreskowiak21-Dec-07 14:41 
GeneralRe: CAB File Extraction Pin
Jeffrey Walton22-Dec-07 9:11
Jeffrey Walton22-Dec-07 9:11 
GeneralRe: CAB File Extraction Pin
Dave Kreskowiak22-Dec-07 19:12
mveDave Kreskowiak22-Dec-07 19:12 

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.