Click here to Skip to main content
15,886,519 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Inheriting from DirectX problem ! Pin
Kentamanos8-Jan-04 5:52
Kentamanos8-Jan-04 5:52 
GeneralRe: Inheriting from DirectX problem ! Pin
leppie8-Jan-04 6:13
leppie8-Jan-04 6:13 
GeneralRe: Inheriting from DirectX problem ! Pin
Heath Stewart8-Jan-04 6:14
protectorHeath Stewart8-Jan-04 6:14 
GeneralRe: Inheriting from DirectX problem ! Pin
Kentamanos8-Jan-04 6:24
Kentamanos8-Jan-04 6:24 
GeneralRe: Inheriting from DirectX problem ! Pin
leppie8-Jan-04 7:33
leppie8-Jan-04 7:33 
GeneralRe: Inheriting from DirectX problem ! Pin
leppie8-Jan-04 8:14
leppie8-Jan-04 8:14 
GeneralRe: Inheriting from DirectX problem ! Pin
pahluwalia8-Jan-04 8:02
pahluwalia8-Jan-04 8:02 
GeneralRe: Inheriting from DirectX problem ! Pin
Kentamanos8-Jan-04 9:03
Kentamanos8-Jan-04 9:03 
GeneralRe: Inheriting from DirectX problem ! Pin
pahluwalia9-Jan-04 2:45
pahluwalia9-Jan-04 2:45 
GeneralMultiple table data in dataGrid Pin
Hayat8-Jan-04 2:41
Hayat8-Jan-04 2:41 
GeneralRe: Multiple table data in dataGrid Pin
Mazdak8-Jan-04 3:18
Mazdak8-Jan-04 3:18 
GeneralRe: Multiple table data in dataGrid Pin
Heath Stewart8-Jan-04 6:04
protectorHeath Stewart8-Jan-04 6:04 
GeneralInexplicable errors on forms. Pin
Martin Cross8-Jan-04 0:39
Martin Cross8-Jan-04 0: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.