Click here to Skip to main content
15,907,906 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: application which works like google talk... Pin
Mycroft Holmes12-Dec-08 22:44
professionalMycroft Holmes12-Dec-08 22:44 
GeneralRe: application which works like google talk... Pin
code_collector12-Dec-08 23:47
code_collector12-Dec-08 23:47 
GeneralRe: application which works like google talk... Pin
Smithers-Jones13-Dec-08 7:49
Smithers-Jones13-Dec-08 7:49 
AnswerRe: application which sign in the user just like any messenger... Pin
Christian Graus13-Dec-08 12:16
protectorChristian Graus13-Dec-08 12:16 
GeneralRe: application which sign in the user just like any messenger... Pin
Paul Conrad13-Dec-08 17:33
professionalPaul Conrad13-Dec-08 17:33 
QuestionForm Fade Into View Pin
Member 187680312-Dec-08 22:07
Member 187680312-Dec-08 22:07 
AnswerRe: Form Fade Into View Pin
LloydA11113-Dec-08 7:41
LloydA11113-Dec-08 7:41 
AnswerRe: Form Fade Into View Pin
Richard Andrew x6413-Dec-08 11:04
professionalRichard Andrew x6413-Dec-08 11:04 
The same function, AnimateWindow will fade a window into view as well.

Just remove the "winHide" constant from your function call, and it will assume you are trying to SHOW the window instead of HIDE it.



Please read the following function documentation from MSDN:

AnimateWindow Function

--------------------------------------------------------------------------------

The AnimateWindow function enables you to produce special effects when showing or hiding windows. There are four types of animation: roll, slide, collapse or expand, and alpha-blended fade.

Syntax

BOOL AnimateWindow( HWND hwnd,
DWORD dwTime,
DWORD dwFlags
);
Parameters

hwnd
[in] Handle to the window to animate. The calling thread must own this window.
dwTime
[in] Specifies how long it takes to play the animation, in milliseconds. Typically, an animation takes 200 milliseconds to play.
dwFlags
[in] Specifies the type of animation. This parameter can be one or more of the following values. Note that, by default, these flags take effect when showing a window. To take effect when hiding a window, use AW_HIDE and a logical OR operator with the appropriate flags.
AW_SLIDE
Uses slide animation. By default, roll animation is used. This flag is ignored when used with AW_CENTER.
AW_ACTIVATE
Activates the window. Do not use this value with AW_HIDE.
AW_BLEND
Uses a fade effect. This flag can be used only if hwnd is a top-level window.
AW_HIDE
Hides the window. By default, the window is shown.
AW_CENTER
Makes the window appear to collapse inward if AW_HIDE is used or expand outward if the AW_HIDE is not used. The various direction flags have no effect.
AW_HOR_POSITIVE
Animates the window from left to right. This flag can be used with roll or slide animation. It is ignored when used with AW_CENTER or AW_BLEND.
AW_HOR_NEGATIVE
Animates the window from right to left. This flag can be used with roll or slide animation. It is ignored when used with AW_CENTER or AW_BLEND.
AW_VER_POSITIVE
Animates the window from top to bottom. This flag can be used with roll or slide animation. It is ignored when used with AW_CENTER or AW_BLEND.
AW_VER_NEGATIVE
Animates the window from bottom to top. This flag can be used with roll or slide animation. It is ignored when used with AW_CENTER or AW_BLEND.
Return Value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. The function will fail in the following situations:

If the window uses the window region. Windows XP: This does not cause the function to fail.
If the window is already visible and you are trying to show the window.
If the window is already hidden and you are trying to hide the window.
If there is no direction specified for the slide or roll animation.
When trying to animate a child window with AW_BLEND.
If the thread does not own the window. Note that, in this case, AnimateWindow fails but GetLastError returns ERROR_SUCCESS.
To get extended error information, call the GetLastError function.




Remarks

To show or hide a window without special effects, use ShowWindow.

When using slide or roll animation, you must specify the direction. It can be either AW_HOR_POSITIVE, AW_HOR_NEGATIVE, AW_VER_POSITIVE, or AW_VER_NEGATIVE.

You can combine AW_HOR_POSITIVE or AW_HOR_NEGATIVE with AW_VER_POSITIVE or AW_VER_NEGATIVE to animate a window diagonally.

The window procedures for the window and its child windows should handle any WM_PRINT or WM_PRINTCLIENT messages. Dialog boxes, controls, and common controls already handle WM_PRINTCLIENT. The default window procedure already handles WM_PRINT.

If a child window is displayed partially clipped, when it is animated it will have holes where it is clipped.

AnimateWindow supports RTL windows.

Avoid animating a window that has a drop shadow because it produces visually distracting, jerky animations.
QuestionHow to open an existing excel programmatically using vb.net Pin
samsonx12-Dec-08 21:51
samsonx12-Dec-08 21:51 
GeneralRe: How to open an existing excel programmatically using vb.net Pin
Mycroft Holmes12-Dec-08 22:41
professionalMycroft Holmes12-Dec-08 22:41 
AnswerRe: How to open an existing excel programmatically using vb.net Pin
dan!sh 12-Dec-08 23:04
professional dan!sh 12-Dec-08 23:04 
GeneralRe: How to open an existing excel programmatically using vb.net Pin
samsonx12-Dec-08 23:12
samsonx12-Dec-08 23:12 
Questionprinting in visual basic Pin
fernan_des12-Dec-08 21:37
fernan_des12-Dec-08 21:37 
AnswerRe: printing in visual basic Pin
Nanda_MR12-Dec-08 21:45
Nanda_MR12-Dec-08 21:45 
GeneralRe: printing in visual basic Pin
fernan_des12-Dec-08 21:54
fernan_des12-Dec-08 21:54 
GeneralRe: printing in visual basic Pin
Nanda_MR14-Dec-08 18:39
Nanda_MR14-Dec-08 18:39 
GeneralRe: printing in visual basic Pin
fernan_des14-Dec-08 20:50
fernan_des14-Dec-08 20:50 
AnswerRe: printing in visual basic Pin
Nanda_MR14-Dec-08 21:39
Nanda_MR14-Dec-08 21:39 
GeneralRe: printing in visual basic Pin
fernan_des14-Dec-08 21:50
fernan_des14-Dec-08 21:50 
QuestionThe specified e-mail address is currently not supported Pin
jhyn12-Dec-08 20:26
jhyn12-Dec-08 20:26 
AnswerRe: The specified e-mail address is currently not supported Pin
Mycroft Holmes12-Dec-08 22:49
professionalMycroft Holmes12-Dec-08 22:49 
GeneralRe: The specified e-mail address is currently not supported Pin
dan!sh 12-Dec-08 23:19
professional dan!sh 12-Dec-08 23:19 
GeneralRe: The specified e-mail address is currently not supported Pin
jhyn12-Dec-08 23:38
jhyn12-Dec-08 23:38 
GeneralRe: The specified e-mail address is currently not supported Pin
Dave Kreskowiak13-Dec-08 5:56
mveDave Kreskowiak13-Dec-08 5:56 
GeneralRe: The specified e-mail address is currently not supported Pin
jhyn13-Dec-08 20:51
jhyn13-Dec-08 20: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.