473,473 Members | 2,248 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

VB2005: Controls not appearing on form

I have a form where when you click on a button a new form appears.
However the controls on the new form appear as blanked out regions on
the form until I click on them and suddenly they appear. I haven't seen
this before but am a bit of a newbie with VB 2005 so does anybody know
why this is happening?
--
______ ___ __
/_ __/_ __/ _ )_______ ___ _/ /_____ ____
/ / / // / _ / __/ -_) _ `/ '_/ -_) __/
/_/ \_, /____/_/ \__/\_,_/_/\_\\__/_/
/___/

There are 10 types of people in this world; those who understand the
binary numbering system and those who don't.

There's no place like 127.0.0.1.

ASCII a silly question, get a silly ANSI.
Jul 24 '06 #1
3 1015
"TyBreaker" <ty*********@SPAMhotmail.comschrieb:
>I have a form where when you click on a button a new form appears.
However the controls on the new form appear as blanked out regions on
the form until I click on them and suddenly they appear. I haven't seen
this before but am a bit of a newbie with VB 2005 so does anybody know
why this is happening?
Which code are you using to show the form?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Jul 24 '06 #2
Herfried K. Wagner [MVP] wrote:
"TyBreaker" <ty*********@SPAMhotmail.comschrieb:
>I have a form where when you click on a button a new form appears.
However the controls on the new form appear as blanked out regions on
the form until I click on them and suddenly they appear. I haven't
seen this before but am a bit of a newbie with VB 2005 so does anybody
know why this is happening?

Which code are you using to show the form?
newForm.Show

The form does appear but just not rendered properly. I've been hunting
through the properties of the form to see if there's anything set that
might be related but I haven't had any luck.

Not sure if it is related but my main form is an appbar and when you
click on one of the buttons on the appbar, the new form appears. Is the
fact that the main form is an appbar causing this oddity in the child
form? I did have to use APIs to make the appbar function properly so
perhaps it's affecting the other form?

--
______ ___ __
/_ __/_ __/ _ )_______ ___ _/ /_____ ____
/ / / // / _ / __/ -_) _ `/ '_/ -_) __/
/_/ \_, /____/_/ \__/\_,_/_/\_\\__/_/
/___/

There are 10 types of people in this world; those who understand the
binary numbering system and those who don't.

There's no place like 127.0.0.1.

ASCII a silly question, get a silly ANSI.
Jul 24 '06 #3
TyBreaker wrote:
I have a form where when you click on a button a new form appears.
However the controls on the new form appear as blanked out regions on
the form until I click on them and suddenly they appear. I haven't seen
this before but am a bit of a newbie with VB 2005 so does anybody know
why this is happening?
Well I finally figured this out although can't say I understand why. My
main form was set to TopMost whereas the spawned form was not. For some
reason this caused the controls within the spawned form to appear
transparent on initial rendering. If you clicked on them or simply
moved the spawned form, they then appeared correctly. Bug? Who cares,
it's fixed now.

--
______ ___ __
/_ __/_ __/ _ )_______ ___ _/ /_____ ____
/ / / // / _ / __/ -_) _ `/ '_/ -_) __/
/_/ \_, /____/_/ \__/\_,_/_/\_\\__/_/
/___/

There are 10 types of people in this world; those who understand the
binary numbering system and those who don't.

There's no place like 127.0.0.1.

ASCII a silly question, get a silly ANSI.
Jul 29 '06 #4

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

Similar topics

1
by: Greg | last post by:
I have a custom control called PageBanner which is compiled into a DLL and then put into the toolbox. It shows like I would expect it to in the toolbox, and I can drag and drop it onto a form. ...
0
by: Frnak McKenney | last post by:
I'm running into problems with VisualStudio.NET2003 and Windows Forms inheritance. It _feels_ like a bug, but it could just as well be a misunderstanding on my part regarding how the VS Designer...
22
by: Mr Newbie | last post by:
I was thinking about developing a workflow application yesterday and was musing over the different approaches than one could take in restricting specific actions on a ticket( Form ) at any said...
0
by: gene kelley | last post by:
I'm migrating/rewriting one of my VB6 apps to VB2005. In the process, I'm trying to avoid using third party activex controls used in the VB6 project. One of the third party controls in the VB6...
1
by: Joe | last post by:
I am trying to get information on controls on my multi form Visual Basic 2005 project. Any time I type such things as "? frmMyForm1.visible" in the immediate window after I pause the program, I...
5
by: Kevin | last post by:
I have a Windows form with several Frame controls containing Textboxes, Comboboxes, Buttons, etc. The Enabled property on the Frames are set to False and the user can't edit any of the Textboxes...
9
by: bz | last post by:
the vb.upgrade group is dead. I think I will post this here instead. Hi, I ran the Upgrade Wizard to upgrade my VB6 project to VB2005 Express Edition. I got 140 errors and 170 warnings. ...
1
by: Jeffrey Christiansen | last post by:
I wanted to add a toggle button to a VB2005 form to be used for a simple Windows Application (i.e. compiled to a "*.exe"), so I added the ActiveX Microsoft Forms Object toggle button, however I...
2
by: =?Utf-8?B?R3JlZw==?= | last post by:
I have the following code the dynamically adds a specific number of controls. for x as integer = 1 to 10 Dim btn as Windows.Forms.Button = New Windows.Forms.Button btn.Name = "btn" & x btn.Text...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.