I am really bored today, and just for no reason, I wrote this code. It has no real purpose, but it would look cool for a splash screen or something.
VB Code:
'the "magical" sub... lol
Public Sub GrowShrink(MaxWidth As Long, MaxHeight As Long, MinWidth As Long, MinHeight As Long, GrowSpeed As Integer, ShrinkSpeed As Integer, frm As Form)
Originally posted by Lord_Rat Maybe you could incorporate my fade form code (see sig)
Holy shiat! That's a nice piece of code. I am assuming that doesn't work on Windows 9x though, or does it? If you feel you can add your fade code to what I have, then go right ahead.
Originally posted by MidgetsBro Oops! I just noticed that it says directly in your sig that it only works on Win2K/XP. *smacks himself for being so stupid*
But it doesn't kill programs on other OS's. That's OK I do dumb stuff also.
Need to re-register ASP.NET?
C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i
(Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)
Originally posted by Lord_Rat Maybe you could incorporate my fade form code (see sig)
Lord_Rat I made a few mods to your code. Have a look and let me know what your thoughts are. If you like pop it in you signature for download. Thanks for the code I plan to use it in a current Project.
Quotes:
"I am getting better then you guys.." NoteMe, on his leet english skills.
"And I am going to meat her again later on tonight." NoteMe "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
"my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
Posts
3,051
Damn it!! I was going to do that!
Ah well, great minds think alike i guess
Quotes:
"I am getting better then you guys.." NoteMe, on his leet english skills.
"And I am going to meat her again later on tonight." NoteMe "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
"my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
Lord_Rat I made a few mods to your code. Have a look and let me know what your thoughts are. If you like pop it in you signature for download. Thanks for the code I plan to use it in a current Project.
Jason
I'm glad people like it!
As for the code change you made. It may be the 'right' way to do it (the fade), but I'm not sure that all future versions will handle the code the same way or that they won't come out with Windows FH or somethin. I made it detect whether the fade worked right or not and act accordingly. Again, yours is probably more correct and I'm divided as to which method is more appropriate.
Could we have some more opinons, please!!
Need to re-register ASP.NET?
C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i
(Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)
Looking at your code more, I see that you made it operate without a timer.
The problem with this is that the user is unable to interact with the form until it is fully faded in or out.
On a fast system, this is not really a problem, but on slower systems, the form might take a little longer to fade in and to require the user to wait while processing does not seem to be the way to go.
Once again, I am thankful for your modifications and your insight, however, I do not feel that I wish to implement the code in the manner in which you did.
In remaining fair, however, I will offer BOTH files from now on in my sig and the second fade form will keep your name in it.
Need to re-register ASP.NET?
C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i
(Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)