473,399 Members | 3,106 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,399 software developers and data experts.

Controls disappearing from WinForm.

Hello, I have a form that contains the Browser control (via interop, of
course) among other things. The browser control is in a Panel control.
When I add other controls (such as splitter and some others), the
controls seem to randomly either disappear or move to different Panels,
etc... For instance, I've sized the browser to 100x100 and it will
resize itself to a much larger size. Then I'll add a splitter after
several trips to code and then to the forms designer, the splitter will
just disappear. Closer code inspection reveals that in the code that's
generated by the windows designer, the splitter control is removed from
the this.Controls.Add(...) statement. And the browser control simply
changes it's size (in code too).

What's going on? Has anyone experienced this?

Thanks
Nov 16 '05 #1
4 4448
Frank,

I've been having this problem for quite some time, and that's why I'm poking
around here -- looking for some answers.

Here's what I've been seeing. When I open VS and open my form, my controls
are there and all's well. When I hit F5 to run the app and then close it to
return to VS, I get numerous error messages in the task list that say "Member
not found." That's the first sign that it deleted my controls. If I close
VS without saving those changes, I can reopen VS and my controls will still
be there until the next time I debug the app from VS. But if I miss those
messages and save the changes, VS will have removed the ...Controls.Add(xxx)
from the generated code.

VERY FRUSTRATING and a real productivity killer.

I'm hoping someone will reply and tell us there are some hotfixes for this
one!

Good luck!
Vince
Nov 16 '05 #2
Several possibilities, I would suggest you confirm it happens on another
installation of VS. Also check that you haven't manually added your own code
to add buttons etc.. to VS generated region of code.

"Vince" <vi***@discussions.microsoft.com> wrote in message
news:2E**********************************@microsof t.com...
Frank,

I've been having this problem for quite some time, and that's why I'm
poking
around here -- looking for some answers.

Here's what I've been seeing. When I open VS and open my form, my
controls
are there and all's well. When I hit F5 to run the app and then close it
to
return to VS, I get numerous error messages in the task list that say
"Member
not found." That's the first sign that it deleted my controls. If I
close
VS without saving those changes, I can reopen VS and my controls will
still
be there until the next time I debug the app from VS. But if I miss those
messages and save the changes, VS will have removed the
...Controls.Add(xxx)
from the generated code.

VERY FRUSTRATING and a real productivity killer.

I'm hoping someone will reply and tell us there are some hotfixes for this
one!

Good luck!
Vince

Nov 16 '05 #3
Evan,

There are only 2 other developers here with me, but they both experience the
exact same thing and can reproduce the exact same scenario.

There's no manual code in the generated sections. We know to stay out of
there.

Thanks,
Vince
Nov 16 '05 #4
I figured out how to work around my problem! I read in a hotfix bulletin
that the "fixed" problem was isolated to C# and solutions that contain
multiple projects. Wel, I'm not going to port everything from C#, but I can
easily remove extra projects from my solution. When I removed all but the
main project, the controls stopped disappearing!

So obviously the hotfix that was supposed to fix this problem didn't fix it,
but the workaround takes care of it.

I hope this solution finds its way to others with this problem, and helps
them too, because WHAT A PAIN!

Thanks,
Vince
Nov 16 '05 #5

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

Similar topics

1
by: Yongseung Kim | last post by:
Hi, I would like to describe as clear as I can(sorry my english is quite limited) 1. I made a project with vb.net on english XP Pro (The project has a winform with several general controls...
2
by: neptune | last post by:
I built a form to access a query with a 2 field primary key. It should use 2 controls to find the unique record and display the other field values on the form. In the criteria section of the...
4
by: Steve | last post by:
Hi All, I've seen many postings regarding different situations where controls disappear but have never seen a decent solution. Here is the problem. I have a form onto which I am placing some...
2
by: Rachel Suddeth | last post by:
Here is my scenario: I have a few custom controls that I set up on a form and tested setting properties and appearances. Then I added a couple references to the project which add classes I need to...
8
by: Sunil Menon | last post by:
Dear All, We are developing applications in ASP.Net...in one of our applications we would like to use a GridControl...we have tried to use a Server-Side Grid control but found the speed to be an...
6
by: George Yefchak | last post by:
Hi folks, What's the latest news on the "disappearing controls" issue? I've seen a few posts over the last several months indicating that other people have the same problem, but I've seen...
2
by: Robert W. | last post by:
I'm building a small C# WinForms app that has two browser controls and one Windows Media Player control. Things generally are working fine but several times what has happened is that I'll load the...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
1
by: JDeats | last post by:
I have many labels that are disappearing from my form when the user resizes it, they seem to dissapear when certain width/height thresholds are exceeded. I have no code in place purposely trying...
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: 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
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
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...
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,...
0
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...

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.