Click here to Skip to main content
15,893,190 members
Home / Discussions / C#
   

C#

 
GeneralRe: Null error when adding custom control Pin
Kentamanos8-Jan-04 9:19
Kentamanos8-Jan-04 9:19 
GeneralRe: Null error when adding custom control Pin
Christian Graus8-Jan-04 9:29
protectorChristian Graus8-Jan-04 9:29 
GeneralRe: Null error when adding custom control Pin
KingTermite8-Jan-04 9:50
KingTermite8-Jan-04 9:50 
GeneralRe: Null error when adding custom control Pin
Christian Graus8-Jan-04 9:52
protectorChristian Graus8-Jan-04 9:52 
GeneralRe: Null error when adding custom control Pin
KingTermite8-Jan-04 10:49
KingTermite8-Jan-04 10:49 
QuestionHow to use PING utility in my program Pin
HAHAHA_NEXT8-Jan-04 8:34
HAHAHA_NEXT8-Jan-04 8:34 
AnswerRe: How to use PING utility in my program Pin
Kentamanos8-Jan-04 9:18
Kentamanos8-Jan-04 9:18 
GeneralGDI grab handles and mouse move Pin
Miles Roberts8-Jan-04 7:10
Miles Roberts8-Jan-04 7:10 
GeneralRe: GDI grab handles and mouse move Pin
Heath Stewart8-Jan-04 7:36
protectorHeath Stewart8-Jan-04 7:36 
GeneralRe: GDI grab handles and mouse move Pin
leppie8-Jan-04 8:13
leppie8-Jan-04 8:13 
GeneralDO NOT HELP THIS PERSON WITH HIS HOMEWORK! Pin
leppie8-Jan-04 9:47
leppie8-Jan-04 9:47 
GeneralNon-rectangular Windows :: the 24-bit issue [advanced] Pin
nibmike8-Jan-04 7:07
nibmike8-Jan-04 7:07 
GeneralRe: Non-rectangular Windows :: the 24-bit issue [advanced] Pin
Heath Stewart8-Jan-04 7:29
protectorHeath Stewart8-Jan-04 7:29 
GeneralRe: Non-rectangular Windows :: the 24-bit issue [advanced] Pin
leppie8-Jan-04 8:17
leppie8-Jan-04 8:17 
GeneralGenerating strings that are matched by a regex Pin
bnieland8-Jan-04 6:34
bnieland8-Jan-04 6:34 
GeneralRe: Generating strings that are matched by a regex Pin
Kentamanos8-Jan-04 6:58
Kentamanos8-Jan-04 6:58 
GeneralRe: Generating strings that are matched by a regex Pin
leppie8-Jan-04 7:04
leppie8-Jan-04 7:04 
GeneralRe: Generating strings that are matched by a regex Pin
bnieland8-Jan-04 7:25
bnieland8-Jan-04 7:25 
GeneralMicrosoft Animation Control Pin
obelisk298-Jan-04 4:13
obelisk298-Jan-04 4:13 
GeneralRe: Microsoft Animation Control Pin
Niels Penneman8-Jan-04 6:19
Niels Penneman8-Jan-04 6:19 
GeneralRe: Microsoft Animation Control Pin
Heath Stewart8-Jan-04 6:23
protectorHeath Stewart8-Jan-04 6:23 
FYI, most controls in the .NET Base Class Library (BCL) are just wrappers for the Windows Common Controls or - in some cases (like with the WebBrowser control in .NET 2.0) - are just out-of-the-box COM interop classes. You could try searching CodeProject or google the 'net for examples, but most likely these will just encapsulate native functionality anyway. The beauty of .NET is that you don't have to create everything from scratch.

You might also check out the Managed DirectX class at http://msdn.microsoft.com/directx[^]. Implementing this is non-trivial so be sure to read the documentation. There's also a couple articles here on CP, though the ones I've seen don't deal with animation besides sprites (sequence of static images).

If you need the status animation to play immediately, one alternative might be to instantiate the control and load the animation when the class that uses it is initialized, making sure that the animation is in the stopped state. When you need to show it, make the control visible and start the animation. When finished, stop the animation and hide the control and don't dispose it if you'll need it again. You'll get a faster response this way and the user will see immediately that something is going on. Of course, don't forget to set the wait cursor for further affect (and to stop processing mouse messages) using Cursor.Current = Cursors.WaitCursor. Don't forget to set it to the default again when done. Just my $0.02 to add to the user experience.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Microsoft Animation Control Pin
obelisk298-Jan-04 10:45
obelisk298-Jan-04 10:45 
GeneralInheriting from DirectX problem ! Pin
pahluwalia8-Jan-04 2:49
pahluwalia8-Jan-04 2:49 
GeneralRe: Inheriting from DirectX problem ! Pin
obelisk298-Jan-04 4:17
obelisk298-Jan-04 4:17 
GeneralRe: Inheriting from DirectX problem ! Pin
pahluwalia8-Jan-04 5:51
pahluwalia8-Jan-04 5:51 

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.