Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




How To Make Effect Fade In & Out To Form?


In window XP, When we do anything the application or something that we're selected is slowly fade from transparent to show or slowly disappear to transparent too.
Anyway, I just use this technic in my form.

Best Regards




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Form Fade In Effect
I was wondering if anyone could tell me how fade in a startup form.

Late
Puppetgrimm1

Custm Form With Fade Effect !!!!!
hi everyone

can i make custom shape form and apply fade effect on it to make it my splash screen ??? and if i can, can you please tell me how to do it?

very thanks in advance

How To Make When Mouse Over A Form The Effect Is Active, Else Deactive Effect?
how to make when mouse over a form the effect is active, else deactive effect?

How To Make A Form Fade Away?
I want to make a form fade away gradually
and another form appear gradually?
How can I do it? By Windows API?
Or another way?
You can eamil me at tln@hitcrc.hit.edu.cn
Thanks for your help.

How To Make A Form Fade Away?
I want to make a form fade away gradually
and another form appear gradually?
How can I do it? By Windows API?
Or another way?
You can eamil me at tln@hitcrc.hit.edu.cn
Thanks for your help.

Fade In Effect When Load
Hello, I need to make a code for my app, to fade in when it loads and then fade out when it unloads!

Or something similar to MSN's Messengers Fade in/out!
Can anyone help me?

How To Make Form Effect Like XP Style ?
When open anything in XP,Appearence is fade from transparent .
I want to make my form like that.

Best Regards

Fade In Fade Out Form ??
********** Thanks Chaps *************
Heya

Anyone got a link to anywhere or code that does this ?

Kindof like a tooltip that appears then fades out ?? (modelled on Outlook New Message kindof thing...)

Cheers

Chubby..

Can I Make Things Fade In?
Can i make things fade onto the form or do similar effects?

Make Half A Form Fade From White To Black And The Other Half All Black
I've been looking all over the place for a way to fade the top half of a form fade from white to black and the bottom half all black. I guess I'm really tired or something but I can't seem to do it. Can someone please give me the code to do this? Thanks

Putting A Picture In The Desktop And Make It Fade Out
Hi,

I want to put a transparent picture on the desktop and then fade it out.
Can anybody please help?

How To Make Mouseover Effect?
Dear Friends,

I wish to ask how to achieve the button appearance changing effect when the mouse is over a button.

As you can see in the VB IDE's component plalette, when the mouse is over a particular "button", the button appearance changes from flat to raised. I wish to know how can I do that.

The same can be found in IE' toolbar, when the mouse is over the "home" button, it goes from flat to a colourful raised button.

Any idea and code are much appreciated.
Thanks for your help.

Image1_MouseMove... How To Make A Mouseover Effect In Vb?
Hi!

I am working on an encryption program, and have rescently started a makeover in the GUI of the program.

The problem I encounter is that when I create a menu (like OfficeXP (Word)), with mouseover effects, I can't figure out how to make the 'over' image to dissapear when the mouse moves away from the image/object that is clickable. I have used images as buttons, not cmd's to create the real M$ feeling =)

This is the code I am currently using...


Code:
'Clear Mouse
Private Sub Image1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
imgClear.Picture = LoadPicture(App.Path & "clear01.jpg")
End Sub

'Clear MouseOver
Private Sub imgClear_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
imgClear.Picture = LoadPicture(App.Path & "clear02.jpg")
End Sub

'Clear MouseClick
Private Sub imgClear_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
imgClear.Picture = LoadPicture(App.Path & "clear03.jpg")
End Sub

If you don't understand my problem please let me know...

Summary:
I've tried to figure out some API method I could use, but None of them I have checked out does what I want. And what do I want? Well, a descent way to make a MouseOver effect in vb =)

On beforehand thanx!

How To Make Mouseover Effect On The Textbox?
hi guys!

 may i know how can i actually make a mouseover effect to my textbox?
meaning tat , when my arrow is click on the textbox the preset text will be gone.

SetTimer And KillTimer To Make Typewriter Effect?
HI,
how can I use these two functions to make a typewrtier effect? Anyone ever tried it?

How To Make Special Effect Using Line Tool In VB
please help me, how to make special effect in VB using line tool in VB, such as embossed, shunk....like in ms access line tool

please answer to my address musbali@hotmail.com

Thank you!!

please help me,,,how we can use line tool in VB so it could we can make special effect to it,,such as embosed, or shunk,,,please tell me to musbali@hotmail.com

Form Fade In
im using transparencity the problem is when i use it the menu's wont work normal with fade ...

Code:
Private Sub Timer2_Timer()
If nr = 255 Then
Timer2.Enabled = False
Else
nr = nr + 5
Ret = GetWindowLong(Me.hWnd, GWL_EXSTYLE)
Ret = Ret Or WS_EX_LAYERED
SetWindowLong Me.hWnd, GWL_EXSTYLE, Ret
SetLayeredWindowAttributes Me.hWnd, 0, nr, LWA_ALPHA
'i need something here to set the form back to 100% normal or to disable the SetLayeredWindowAttributes
End If
End Sub

Fade Form
Hi,

How can I make a splash form fade in and out? I posted this message in the API section because that would most likely be what I need.

Thanks,
Patrick.

Fade A Form In/out
How can I fade my form in on load, and fade it out on unload?

Fade In Form
Anyone know how to make a "FADE-IN" effect to load a form?

Fade In/out Of A Form
This is a very nice way of entrance for a form. There is a function made in Java, but I want to know if there is a way of making this happent in VB.
Or else, how about writing some others animation stuff for other controls?

Form Fade-In...
Hi guys,
How can I make my form fade-in each time it loads up?
Can someone give me a source code?

The fade-in should be a fade in that you can see the background until the form is fully loaded just like in ActiveSplash.


Thanks!

Form Fade In/out
Hi
I have a program with an introductory splash screen and a program close
screen. Each form appears ok but is there any way to apply a fade in/out
effect to each form? (Using VB6)

Fade Form Out
Hello Community!

I am trying to fade out my opening form when the ok button is pressed. This form is nothing more than a "splash" screen, only it waits for user action (click OK).


Thanks!



Regards from TEXAS, where EVERYTHING is bigger! :-)

How To Make A Effect In Word Like Application.inputbox In Excel
i want to make a userform like a inputbox in word, it's like the command application.inputbox in excel, but it get the text you select , not a address.

Effect Sound & Make Some Config With System Mutilmedia
Hi all my friend
I wanna to make a app to play mutilmedia file (wav, mp3,midi). My problem is how I make the effect of sound and show the animation with it when i play a file ,like Windows Media Player 7.0 . Can I make them with VB code ? or which site I can fine the solution ? Thanks a lot

Fade In/out Picture Box On A Form
howdies all,
ive been searching for the past week a way to fade in and out a picturebox on a form, but without any joy

Basically i am using the picture box as a frame to hold a textbox, and i want the picturebox to fade in (including the textbox) when i click a buton. Then fade out (again, with the textbox) with another click of the button.

The only solution i have found is to create a form, that has the control on and is same size etc, which is positioned in the same position on the other (original) form. Then fade the form in etc. However, from testing, it causing the form to flicker

So has anyone got any ideas how this can be done?

cheers all for any help/ideas,
Dom

Fade Form To Black
Is there a way to smoothly fade my form and the lines drawn on it to black? (or another color, for that matter). The form is very large (the size of the screen.) Any help would be appreciated.

Visual Basic Form Fade In/out Help Plz.
Hello VB community!

What is the most basic code for fading a form in and out?

I searched the web and found two sites with decent sample code for this but they both included quite a bit of extra features which seems to be a bit confusing. Basicly I just need someone to show me the basics of fading a form in and/or out.

Okay... I ready to be bedazzeled!

Coders! Start your engines!

3...
2...
1...
(BANG)
POST!

P.S.
Thanks

Form Fade Out Code (needs Fixing)
I wrote some code to fade in and fade out forms (Win2K+ only). The fade in works great, but the when fade out starts the client area of the form flashes black momentarily, before fading out normally.

Can anyone help me fix this?

Alpha Blending / Fade In Fade Out
Hi

Would anyone be able to tell me of an easy way to get fast fade in fade out
in VB6? I need a method that can fade a whole screen very smoothly and it
would be nice if it is compatible with XP.

I have looked at the FOX alphablending functions but they are no good for
the very big pictures, any other ideas.

Thanks very much
Jon

Need Conditional Statement For Form Fade In/Out With SetLayeredWindowAttributes
Hi all,

As discussed here:
http://www.xtremevbtalk.com/show...ight=form+fade

The SetLayeredWindowAttributes will only work with win2k and xp ( my first hand experience so far ).

Windows 95 shows the following error as soon as I execute my .exe:

Run-Time error 453
Can't find DLL entry point SetLayeredWindowAttributes in user32.

Could someone please tell me what the conditional statement is for declaring dlls ONLY if the operating system is win2k or xp?

Hopefully something like

#If winxp or win2k then
'Transparancy API's
Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hWnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
Private Declare Function UpdateLayeredWindow Lib "user32" (ByVal hWnd As Long, ByVal hdcDst As Long, pptDst As Any, psize As Any, ByVal hdcSrc As Long, pptSrc As Any, crKey As Long, ByVal pblend As Long, ByVal dwFlags As Long) As Long
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
#end if

Any help would be appreciated....

Two Questions (Form Back Ground And How To Fade Label Forecolor)
Hi, I have been looking for some kind of a control to insert a background picture for my form but I have not been able to do it yet. I have seen people doing it before. Also I need to know to fade a label forecolor!

Thanks for helping

VB6 Form Effect
Hi guys,

Could anybody help me to do something like:

On the form_load, the form will be on center of the screen then it will move to 45 degre to the top right corner of the screen, when it reach the corner the form will be unload.

I really need help about this
Thanks guy

Form Effect
anyone know where i can get some code that will let me form open and min and close like the programs in OSX ( twist and slide in) ???

Continuours Form Effect In VB
Does anyone know how to get the 'Continuous Form' effect in VB6 that you can do in Microsoft Access?

Thank you,
Heidi

Gray Effect Behind Form
Hello..
I am very interesting to make a gray effect behind my form just like WinXP when it shows shutdown confirmation.

http://img451.imageshack.us/img451/6...ayxp4hx.th.png

May anyone knows how to make this possible? Please...

Thank you so much for help..

Best regards,
--maox--

Form's ZOOM Effect
Is it possible for a Form to have a Zoom effect?
If it does, can the objects within it will have the same effect?

Any help is very much appreciated.

thanks.

Help - Configuration Form Effect!
I Have a Configuration form for my Battle.net binary chat bot. When the Form loads, I Want all the Textboxes to Have ********* In place of the Letters/Numbers, But when you click on them, They Become Normlal, Is there anyway to do this WITHOUT Replacing the text? My friend said Something about Got Focus, and Lost Focus or something...

p.s. Thanks in advance ;D

Form Effect Help(Labels)
Hi i want to have my Label move up and down like a hidden drop down menu can anyone help me with this ?

( so when the mouse is over the bar it moves down and when the mouse is out it scroll back up to hide under the tool bar ?

Roll Up Form Effect
Hi!

I'm using a sub like this to Roll Up a form:

Public Sub RollUp(f As Form)
Dim Y As Long
For Y = f.height To 0 Step -180
f.height = Y
DoEvents
Next
End Sub

but the form rolls up very slow.

Is there any other way to do this much faster and or smoother.


Thanx.

Whats The Best Way To Add 3D Effect To Form?
I have made a small form, which uses API (CreatePolygonRgn) into a rectangle with on end taller than the other.....

the form doesn't have any border property, so how can I get a raised 3D effect on my form..

I'm looking for really cool looking stuff, but Im trying to keep my whole compiled exe and files to below 1.3MB

Thanks for your ideas,

Gradient Effect To Form
How to give gradient effect to the form?

Pass the Start and End Colors as Parameters.

Animation Effect In Gif Is Not Working When Used In The Form
Hi,

I created a gif file with Animation Effect through Adobe ImageReady, the Animation Effect in the Gif is working fine when i open the Gif file through InternetExplorer. But the Animation Effect in the Gif is not working when i assign the picture to the Form's picture property or PictureBox in my VB Project. Is is possible to assign a Gif with animation effect to the Form or not. Kindly reply about this.

Thankyou,
Chock.

Animation Effect In Gif Is Not Working When Used In The Form
Hi,

I created a gif file with Animation Effect through Adobe ImageReady, the Animation Effect in the Gif is working fine when i open the Gif file through InternetExplorer. But the Animation Effect in the Gif is not working when i assign the picture to the Form's picture property or PictureBox in my VB Project. Is is possible to assign a Gif with animation effect to the Form or not. Kindly reply about this.

Thankyou,
Chock.

Super Cool Form Effect!
Drag several controls(any control, labels, command buttons, textboxes,
picture boxes, etc) onto the form, then paste this code onto your form.
You'll see some uber cool effects!

VB Code:
'(C) Copyright jian2587 2005. Use freely but give credit! :)Private Sub Form_Load()RotateControlsEnd Sub Private Sub RotateControls(Optional ByVal msTime As Single = 3)Dim lLeft() As LongDim lTop() As LongDim sngDegree() As SingleDim sngDistance() As LongDim sngStepX() As SingleDim sngStepY() As SingleDim CtrlCount As LongDim i As LongDim Ctrl As ControlDim cX As LongDim cY As LongDim Pi As DoubleDim DegRad As SingleDim RadDeg As SingleDim t As SingleDim X As Single, Y As SingleDim w As SingleDim c As LongDim lStep As LongDim sngStepDeg As Single CtrlCount = Me.Controls.CountReDim lLeft(CtrlCount)ReDim lTop(CtrlCount)ReDim sngDegree(CtrlCount)ReDim sngDistance(CtrlCount)ReDim sngStepX(CtrlCount)ReDim sngStepY(CtrlCount) 'Initialize variablesPi = 3.141593DegRad = Pi / 180RadDeg = 180 / PiMe.ShowMe.AutoRedraw = Truew = 0.1lStep = 100sngStepDeg = 5 'Get center X and center YcX = Me.Width 2cY = Me.Height 2 'Save each control's original position, degree and distance from centerFor i = 0 To CtrlCount - 1    lLeft(i) = Me.Controls(i).Left    lTop(i) = Me.Controls(i).Top    sngDegree(i) = CSng(Atn((lTop(i) - cY) / (lLeft(i) - cX)) * RadDeg)    sngDistance(i) = CLng(Sqr(((lTop(i) - cY) ^ 2) + ((lLeft(i) - cX) ^ 2)))Next 'Show timet = Timer + msTimeDo Until Timer >= t    Me.Cls    PSet (cX, cY), 0    For i = 0 To CtrlCount - 1        Set Ctrl = Me.Controls(i)        'We increment the degree bit by bit        sngDegree(i) = (sngDegree(i) + sngStepDeg) Mod 360        'Calculate the correct position given the degree and distance        X = Cos(sngDegree(i) * DegRad) * sngDistance(i) + cX        Y = Sin(sngDegree(i) * DegRad) * sngDistance(i) + cY        'Move them        Ctrl.Move X, Y        Ctrl.Refresh        'Connect the control to the center with a line        'Me.Line -(X, Y), 0        Me.Line (cX, cY)-(X, Y), 65280 'RGB(Int(Rnd * 255), Int(Rnd * 255), Int(Rnd * 255))    Next    Me.Refresh    w = Timer + 0.01    Do Until Timer >= w        DoEvents    LoopLoop 'Get the gradual increase of each controlFor i = 0 To CtrlCount - 1    Set Ctrl = Me.Controls(i)    sngStepX(i) = (lLeft(i) - Ctrl.Left) / lStep '(msTime / 2)    sngStepY(i) = (lTop(i) - Ctrl.Top) / lStep '(msTime / 2)Next 'Return each control to their original position graduallyFor c = 1 To lStep    Me.Cls    For i = 0 To CtrlCount - 1        Set Ctrl = Me.Controls(i)        X = Ctrl.Left + sngStepX(i)        Y = Ctrl.Top + sngStepY(i)        Ctrl.Move X, Y        Ctrl.Refresh        Me.Line (cX, cY)-(X, Y), 0    Next    Me.Refresh    w = Timer + 0.01 '(msTime / 2 / lStep)    Do Until Timer >= w        DoEvents    LoopNext For i = 0 To CtrlCount - 1    Set Ctrl = Me.Controls(i)    Ctrl.Move lLeft(i), lTop(i)NextSet Ctrl = NothingMe.ClsEnd Sub

Animation Effect In Gif Is Not Working When Used In The Form
 Hi,
  
   I created a gif file with Animation Effect through Adobe ImageReady, the Animation Effect in the Gif is working fine when i open the Gif file through InternetExplorer. But the Animation Effect in the Gif is not working when i assign the picture to the Form's picture property or PictureBox in my VB Project. Is is possible to assign a Gif with animation effect to the Form or not. Kindly reply about this.

Thankyou,
Chock.    

Urgent:Form Effect Code Needed
hi
i need the code for the form effect
those effect are like ms-powerpoint
i really need this code
can anyone please help me
thank you

shingo

Copyright 2005-08 www.BigResource.com, All rights reserved