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

Tab Control Bug

When I use the Tab Pages Collection editor, invoked from the Properties of a
TabControl, I try to shuffle the order of the pages around, and it does not
work. I had to go into the "Windows Forms Designer generated code" and edit
the order manually.

In addition, there was a project where I made some changes to the events in
the Windows Forms Designer region, and every time I compiled the code, my
changes were somehow undone, and the compile failed. Very annoying.

Will Microsoft please fix its IDE?
Nov 15 '05 #1
2 1291
Laszlo,

Can you post a small project which shows how the designer isn't working
when you try and shuffle the order of the pages around.

As for the second part, you are actually warned against changing code in
the Windows Forms Designer region, so that is not really a bug. What are
you changing in that region?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Laszlo Szijarto" <ls*******@nospam.mrdoc.cc> wrote in message
news:bn**********@sulawesi-fi.lerc.nasa.gov...
When I use the Tab Pages Collection editor, invoked from the Properties of a TabControl, I try to shuffle the order of the pages around, and it does not work. I had to go into the "Windows Forms Designer generated code" and edit the order manually.

In addition, there was a project where I made some changes to the events in the Windows Forms Designer region, and every time I compiled the code, my
changes were somehow undone, and the compile failed. Very annoying.

Will Microsoft please fix its IDE?

Nov 15 '05 #2
Hi, Nicholas,

Thank you for the response. Sorry it took me so long to get back.
Can you post a small project which shows how the designer isn't working when you try and shuffle the order of the pages around.

I don't have a small project right now to post. I can't duplicate the bug.
I simply had a TabControl with 5 Tab Pages. I wanted the change the order
of the Tab Pages. So I went to the Tab Page Collection property in the
TabControl, opened it up, and moved the pages using the Up and Down Arrows.
It said that they were in the order I wanted. And they appeared in the
correct order in Design View. But, when I started my app (Debug), they were
still in the old order. If I stopped the app and looked at the Designer,
they were back in the right order. I went into the Windows Forms Designer
region, move the order of the "Add(..)" methods around manually, then
everything was as I wanted it.

I noticed a similar thing when I was using Reflection. I had a class which
had quite a number of members that I was recursing through. At one point, I
added a few members to that class and changed the order of members around.
But, when I iterated through the class members using reflection, things were
still in the old order and the new members had not been added. FINALLY, I
went and blew away all the subfolders in my project directory -- keeping
only the source -- recompiled, and THEN things were correct.

It's almost as if something isn't being recompiled, maybe a problem with
JIT.

As for the second part, you are actually warned against changing code in the Windows Forms Designer region, so that is not really a bug. What are
you changing in that region?


Well, I am forced to enter that region sometimes. If, for example, I remove
an Event Handler from my code (change my mind), the code crashes upon my
next compile attempt, because the IDE doesn't remove where it adds that
particular event-handler to some object. OK, so I manually remove it from
the Designer region, save all, recompile, and all's well. Then I go back in
to my main source code, make a couple other (seemingly unrelated) changes,
recompile and that original event handler addition operator (the += thing)
mysteriously reappears. IDE did that about 10 times, and then, for some
unknown reason, stopped doing it.

Very weird.

Thank you,
Laszlo
Nov 15 '05 #3

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

Similar topics

6
by: Bruce Rusk | last post by:
I'm using Stephen Lebans' RTF2 control in a report, and have discovered what may be a slight bug in it. I have a lot of non-Western language (Chinese) text in my RTF field, and such records get...
6
by: martin | last post by:
Hi, I am a web page and a web user control. My web user control is placed in my web page using the following directive <%@ Register TagPrefix="uc1" TagName="Header"...
2
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
20
by: Guadala Harry | last post by:
In an ASCX, I have a Literal control into which I inject a at runtime. litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID); This works great as long as the contains just...
5
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact...
2
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is...
4
by: gsb58 | last post by:
Hi! On a form I have a calendar. The form is rezised to 1024x768 (Don't worry - this is a training case) when loaded. Now I want to center the calendar on the form so that its edges are...
5
by: paul.hester | last post by:
Hi all, I have a custom control with an overridden Render method. Inside this method I'm rendering each control in its collection using their RenderControl method. However, I'm running into a...
14
by: Rolf Welskes | last post by:
Hello, I have an ObjectDataSource which has as business-object a simple array of strings. No problem. I have an own (custom) control to which I give the DataSourceId and in the custom-control...
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...
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
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?
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
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
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,...

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.