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

Issue with IDesignerSerializationService after paste fails

We have implemented our own IDE which is based on an example from Microsoft.

We have implemented the IDesignerSerializationService interface in our
application.

The following steps cause a problem:

a) Start the application and drag a group box control onto the form.
b) Add two labels to the form
c) Cut the group box to the clipboard
d) Add a tabcontrol
e) Paste onto the tabcontrol

An error is displayed which states “Cannot add component of type ‘GroupBox’
to container of type ‘TabControl’. This error is displayed because at this
point a tab page has not been added or selected.

However the underlying Microsoft classes have actually added the labels to
the DesignerHost collection (the GroupBox has not been added) and so when I
build or save this out the two labels are added to the saved file (but are
not actually added to the forms control collection).

This means that the saved code file contains redundant controls which I
would like to remove.

Does anyone understand why the deserialization process is adding these
controls to the DesignerHost even though the paste cannot be completed?

Please note that the same error occurs in 2003/2005 Visual Studio IDE but
the controls from the failed paste do not seem to be added to the generated
code.

Does anyone know the magic required to “clear” the controls in the failed
paste operation?

Regards

--
Ian H
Nov 7 '06 #1
0 1110

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

Similar topics

2
by: JP SIngh | last post by:
I am having problems inserting data into a simple table Insert into Forums (Title, PageUrl, ContractId) Values ('54249', 'test01.asp',54249) Microsoft OLE DB Provider for SQL Server error...
2
by: info | last post by:
I am pasting in a recordset from access to an excel sheet via VBA successfully. Then my routine copies a range of cells and pastes them into another range, this works fine every other time it...
2
by: Ben Rush | last post by:
Hello World, Okay, I have spent the day browsing the newsgroups and reading up on article after article concerning ViewState corruption and so forth, and I have a couple questions. We...
6
by: daveyand | last post by:
Hey Guys, I've stumped. I created a function that does various things to select boxes. Namely Get All selected indexes, populate array with these values
0
by: Nicholas Dreyer | last post by:
Operating System: Microsoft Windows Version 5.1 (Build 2600.xpsp_sp2_gdr.050301-1519 : Service Pack 2) Visual Basic: MIcrosoft Visual Basic 6.3 Version 9972 VBA: Retail 6.4.9972 Forms3:...
3
by: VirGin | last post by:
I am passing an object by reference to a function that is supposed to populate it with current data. Both the destination object and the source have nested std::lists, some branches of the lists...
4
by: Chris | last post by:
Hello all, Using g++ 3.3.1 on Linux ("Linux From Scratch") I have a data structure SCSIParams_t that I wish to print out, field-by-field. Rather than code a long line of the form std::cout <<...
0
by: santoshjsh | last post by:
hi everyone, i have two asp.net 2.0 projects. now i have to integrate both projects as one. the issue is "Sharing the session of one project with another project". this is a deployment...
2
by: srinivembu | last post by:
Hi, I have linked libcurl library (v7.19.6) statically with my C++ application. Using curl, we upload & download files to/from the window azure storage webservice using https. The download works...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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.