473,379 Members | 1,386 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,379 software developers and data experts.

Frm Visual Effect on Exit VB5.0

Hi:

I have a procedure written in Visual Basic 4.0 that causes the window to
reduce in size and width until it is totally gone. It sort of "melts" to
the lower right and then is gone. The code is:

Sub ExitByClick
Dim I As Integer
Dim I As Long

I = Screen.TwipsPerPixelX

While Me.Height > 100
Me.Move Me.Left + I, Me.Top + I, Me.Width - (I * 5), Me.Height - (I *
5)
Wend

Unload Me
End Sub

It works fine in VB 4.0.

I put it in VB 5.0 and it is really messed up. The form has a label on it
that seems to melt and then the form unloads... looks kinda lousy. However,
if I put a lineunder the Me.Move statement (MsgBox "hi"), then it works
OK...except the message box pops up, I have to answer it and it pops again
and again and again until the form is gone. I watch the form behind the
message box and it is working correctly.

I've tried to "fool" it by putting a 'delay' in (a For Next Loop), but that
has no effect, but to slow the melting label down.

Does anyone know why this is happening in VB 5.0 and doesn't in 4.0 (the
language pertaining to the procedure is the same in both)? Is there a
"work around" that I might use?

Thanks for any assistance.

JP
Jul 17 '05 #1
0 2817

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

Similar topics

0
by: Phillip Wu | last post by:
Hi, I am starting the Word application in Visual Basic. I want my Visual Basic routine to be called when the user closes the document in Word. I am expecting that when the user closes...
1
by: Joe Abou Jaoude | last post by:
I was asked to do the folowing visual effect, and I was wondering if someone knows how to. To view the visual effect , go to this link: http://v4.windowsupdate.microsoft.com/en/default.asp...
6
by: Reinhard Lehner | last post by:
Hi there! I spent the last week trying to fix this problem - I am always getting an error when trying to run an application (WinForms or PPC) out of Visual Studio IDE: 'Error while trying to...
2
by: Ralph | last post by:
I used to have Visual Basic .net std. 2003 installed on WinXP SP1A. But I found it too hard to upgrade WinXP to SP2. Now, I do have WinXP SP2 installed, but I am having problems installing...
3
by: dave | last post by:
ISBN 1-861000-88-X I'm confused about these references to the usage of recursion pertaining to example Ex6_08A: On page 236 in the last sentence of the 3rd paragraph "Since any set of...
140
by: Oliver Brausch | last post by:
Hello, have you ever heard about this MS-visual c compiler bug? look at the small prog: static int x=0; int bit32() { return ++x; }
2
by: Keith Doyle | last post by:
I'm curious if setvbuf behavior is known to be undefined with regards to effects it may have on the file pointer. I've found that the following code works different on AIX 4.3.3 xlc and FreeBSD...
31
by: alex.gman | last post by:
Is it me, or does VC++ 2005 produce much better code than GCC? (about twofold difference in the release configuration vs -O3) Has anyone done a comprehensive study?
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
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...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.