473,326 Members | 2,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Query regarding Transition Effects

Hi,
i have made a windows form in which there is a data grid which should
slide in when a button is clicked. Since i am new to .NET i haven't
been able to figure this out even after a lot of googling.
I found something about handles and Animate Window. Could someone
please explain that to me or guide me to a good link to explain all
that.
Thanks
Siddharth Jain

Nov 16 '05 #1
2 1620
Siddharth,

You can just call the AnimateWindow API, passing the handle to your
grid, and the transition effect for the slide. Here are the definitions you
need:

private const int AW_HOR_POSITIVE =0x00000001;

private const int AW_HOR_NEGATIVE =0x00000002;

private const int AW_VER_POSITIVE =0x00000004;

private const int AW_VER_NEGATIVE =0x00000008;

private const int AW_CENTER =0x00000010;

private const int AW_HIDE =0x00010000;

private const int AW_ACTIVATE =0x00020000;

private const int AW_SLIDE =0x00040000;

private const int AW_BLEND = 0x00080000;

[DllImport("user32.dll", SetLastError=true)]

private static extern bool AnimateWindow(

HandleRef hwnd,

[MarshalAs(UnmanagedType.U4)] int dwTime,

[MarshalAs(UnmanagedType.U4)] int dwFlags);

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Siddharth Jain" <si**************@rediffmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Hi,
i have made a windows form in which there is a data grid which should
slide in when a button is clicked. Since i am new to .NET i haven't
been able to figure this out even after a lot of googling.
I found something about handles and Animate Window. Could someone
please explain that to me or guide me to a good link to explain all
that.
Thanks
Siddharth Jain

Nov 16 '05 #2
Hello Nicholas,

What exactly is a handle?
How do I get the handle to the grid? I have not been able to figure
this out.

Thankyou
Siddharth

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Richard A. DeVenezia | last post by:
I hope this is the end of my present 'discovery' phase. I've learned alot about JavaScript in a short time and my head hurts. The following is what came out of all my questions and all the...
1
by: VMI | last post by:
I'm working on a screensaver and I want to be able to switch between images smoothly. Currently, it shows one image and after X seconds, it moves to the next pic. Is there any way I can add some...
5
by: kpp9c | last post by:
markov query I have noticed a couple markov implementations in python, but none quite seem to do what i would like. Most seem to do an analysis of some text and create a new text based on...
14
by: Gale | last post by:
I wrote a simple script for image rotation. now i need to have some transition effect betwean images in JS What do you suggest ? Thank you
2
by: | last post by:
Is it possible to use IE transition effects (e.g. progid:DXImageTransform.Microsoft.Fade(Duration=2)">) to smooth "classic" (IE non-ATLAS) datagrid paging? How do you wire up the transition effect...
3
by: Martini | last post by:
Hello all. I have quite disturbing situation where I am not happy about the way how SQL handles the query. Situation is related to using user function in INNER JOIN select. Although the problem...
1
by: jessegogo | last post by:
Hi there everybody. I must admit I am more of a designer than a programmer so I am looking to you for more help than I'm afraid I can return. If of course you have any questions about design...
4
by: Warrick Wilson | last post by:
I'm new to C# and I'm trying to get some "toy" programs running to get familliar with it. So I want to make a slideshow program that will display one image after another, and have some sort of...
13
by: prasadmpatil | last post by:
I am new STL programming. I have a query regarding vectors. If I am iterating over a vector using a iterator, but do some operations that modify the size of the vector. Will the iterator recognize...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.