473,396 Members | 2,021 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,396 software developers and data experts.

Form not displaying correctly

I have a class that provides functionality that is around my application.

One function it provides is a "PleaseWait" method, which displays a popup please wait form.

This works as a pair of functions as follows:

Dim _frmPleasewait As frmPleasewait
Public Sub PleaseWait(ByVal Text As String)
_frmPleasewait = New frmPleaseWait(Text)
_frmPleasewait.Show()
End Sub
Public Sub PleaseWaitClear()
_frmPleasewait.Hide()
_frmPleasewait.Dispose()
End Sub
the frmPleaseWait is added to this class and is simple form with a label on it. The New constructor takes a parameter which it sets the label.text equal to.

It is used in other forms in code such as.

Dim cls as new class
cls.pleasewait("Please wait whilst processing")
....
....
....
cls.PleaseWaitClear.
What happens is that the pleasewait form pops up correctly, but the label box is completely transparent (ie you can see the form underneath through it!!!).

Any ideas what I could have done wrong???

Thanks in advance
Simon
Nov 26 '05 #1
4 1274
Simon Verona wrote:
What happens is that the pleasewait form pops up correctly, but the
label box is completely transparent (ie you can see the form
underneath through it!!!).


Have you set the TransparencyKey property of your form? If you have, any
colours on the form will be completely transparent as you describe, and will
show the windows behind as if there was a hole in the form.

If that is the problem, you can clear it by right-clicking the
TransparencyKey property in the Properties window and selecting Reset.

--

(O)enone
Nov 26 '05 #2
"Simon Verona" <no****@nomail.zzz> schrieb
I have a class that provides functionality that is around my
application.

One function it provides is a "PleaseWait" method, which displays a
popup please wait form.

This works as a pair of functions as follows:

Dim _frmPleasewait As frmPleasewait
Public Sub PleaseWait(ByVal Text As String)
_frmPleasewait = New frmPleaseWait(Text)
_frmPleasewait.Show()
End Sub
Public Sub PleaseWaitClear()
_frmPleasewait.Hide()
_frmPleasewait.Dispose()
End Sub
the frmPleaseWait is added to this class and is simple form with a
label on it. The New constructor takes a parameter which it sets
the label.text equal to.

It is used in other forms in code such as.

Dim cls as new class
cls.pleasewait("Please wait whilst processing")
...
...
...
cls.PleaseWaitClear.
What happens is that the pleasewait form pops up correctly, but the
label box is completely transparent (ie you can see the form
underneath through it!!!).

Any ideas what I could have done wrong???

You are doing this:
....
....
....
Therefore the label does not have the time to paint itself. Solution: After

_frmPleasewait.Show()
add
_frmPleasewait.Refresh
Armin
Nov 26 '05 #3
I've checked this and the TransparencyKey property looks ok...

Any other thoughts?

Thanks
Simon
"Oenone" <oe****@nowhere.com> wrote in message
news:SR****************@newsfe1-win.ntli.net...
Simon Verona wrote:
What happens is that the pleasewait form pops up correctly, but the
label box is completely transparent (ie you can see the form
underneath through it!!!).


Have you set the TransparencyKey property of your form? If you have, any
colours on the form will be completely transparent as you describe, and
will show the windows behind as if there was a hole in the form.

If that is the problem, you can clear it by right-clicking the
TransparencyKey property in the Properties window and selecting Reset.

--

(O)enone

Nov 26 '05 #4
That worked fine thanks Armin... I should have thought of that one myself!

Simon
"Armin Zingler" <az*******@freenet.de> wrote in message
news:ee**************@TK2MSFTNGP12.phx.gbl...
"Simon Verona" <no****@nomail.zzz> schrieb
I have a class that provides functionality that is around my
application.

One function it provides is a "PleaseWait" method, which displays a
popup please wait form.

This works as a pair of functions as follows:

Dim _frmPleasewait As frmPleasewait
Public Sub PleaseWait(ByVal Text As String)
_frmPleasewait = New frmPleaseWait(Text)
_frmPleasewait.Show()
End Sub
Public Sub PleaseWaitClear()
_frmPleasewait.Hide()
_frmPleasewait.Dispose()
End Sub
the frmPleaseWait is added to this class and is simple form with a
label on it. The New constructor takes a parameter which it sets
the label.text equal to.

It is used in other forms in code such as.

Dim cls as new class
cls.pleasewait("Please wait whilst processing")
...
...
...
cls.PleaseWaitClear.
What happens is that the pleasewait form pops up correctly, but the
label box is completely transparent (ie you can see the form
underneath through it!!!).

Any ideas what I could have done wrong???

You are doing this:
...
...
...
Therefore the label does not have the time to paint itself. Solution:
After

_frmPleasewait.Show()
add
_frmPleasewait.Refresh
Armin

Nov 27 '05 #5

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

Similar topics

1
by: Orest Kinasevych | last post by:
Okay, I made sense of the earlier suggestions and realized I was on the right track -- I appreciate the feedback which got me to this point. The suggestions posted here indeed worked and...
3
by: Kevin Baker | last post by:
Hi Everyone, I have a form with two fields, Title and Path. I'm also using the pdf.ocx and have a OLE object in my form. In code for "On Current" I have the following: On Error Resume Next...
3
by: Robin S. | last post by:
I tried to ask this question several days ago, but I didn't explain my application correctly. Basically I want to have one record from table "A" and I want to display, say, 5 records from table...
0
by: Ellen Manning | last post by:
I've got an A2K form with a subform based on a query. This query has a checkbox and an amount field and returns records if checkbox is checked. I Dsum the amount field and display on the main...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
3
by: duncan | last post by:
I have a text box on a web form here is the HTML for it :- <asp:textbox id="winPts" style="LEFT: 170px; POSITION: absolute; TOP: 80px" runat="server" Width="24px" maxlength="2"></asp:textbox> ...
3
by: rdc2732 | last post by:
I have a form with 10 numeric input fields (envision two rows and five columns). There is a column at the right for a total of each of the fields on each row. There is also a row with a...
2
by: whitc26 | last post by:
Let me preface: I'm a novice, and have no programming experience. I have created an access database and have a few tables in it. I have created a form called "clients" This form opens up and...
1
by: tomlebold | last post by:
Having problems displaying query results from combo boxes on a sub form, which is on the same form that is used to select criteria. This has always worked form me when displaying query results on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.