Click here to Skip to main content
15,886,788 members
Home / Discussions / C#
   

C#

 
QuestionHow to display a window form inside another form Pin
faad19-Feb-03 19:57
faad19-Feb-03 19:57 
AnswerRe: How to display a window form inside another form Pin
Chris Austin20-Feb-03 3:45
Chris Austin20-Feb-03 3:45 
GeneralRe: How to display a window form inside another form Pin
faad20-Feb-03 17:42
faad20-Feb-03 17:42 
GeneralRe: How to display a window form inside another form Pin
Chris Austin20-Feb-03 18:32
Chris Austin20-Feb-03 18:32 
GeneralThis is a dump question. Pin
Braincrash19-Feb-03 14:25
Braincrash19-Feb-03 14:25 
GeneralRe: This is a dump question. Pin
jtmtv1819-Feb-03 19:31
jtmtv1819-Feb-03 19:31 
GeneralRe: This is a dump question. Pin
Braincrash20-Feb-03 13:33
Braincrash20-Feb-03 13:33 
GeneralDesigner doesn't delete code Pin
crosenbury19-Feb-03 10:53
crosenbury19-Feb-03 10:53 
I have a component that uses DesignerSerializationVisibility to serialize collection items to code.

It works great for adding new items to the collection, and rending them as well.

I cannot seem to get them to delete from the code when the parent is deleted.

Example:
I have a variation of the ToolBar, where the button collection is my own extension of the ToolBarButton.

When I add a button, it adds the code to the code file, creating and setting the values.

When I go into the button collection, and remove the buttons manually, the code goes away.

But if I just delete the tool bar, without deleting the buttons, the code for the buttons remains.

Things I have tried:
1) Adding the buttons to the components list.
2) Using the dispose method to dispose of the buttons.
3) Using the dispose method to manually delete the objects from the collection.

The tool bar class extends ToolBar, the button class extends ToolBarButton, and the collection extends CollectionBase.

I have also tried adding the buttons to the base class, but the code is still not removed.

The control seems to work fine, it just won't get rid of the code in the designer. The objects are even being disposed, as the next button I create starts at 1 again, and causes duplicate code entry (which is how I found the problem.)

Any help would be greatly appreciated. Confused | :confused:

Chris Rosenbury
QuestionMove a Webbrowser to a new window? Pin
Bog19-Feb-03 7:53
Bog19-Feb-03 7:53 
AnswerRe: Move a Webbrowser to a new window? Pin
Stephane Rodriguez.19-Feb-03 11:07
Stephane Rodriguez.19-Feb-03 11:07 
GeneralRe: Move a Webbrowser to a new window? Pin
Bog20-Feb-03 6:55
Bog20-Feb-03 6:55 
GeneralSearching a C# String Pin
vlusardi19-Feb-03 7:29
vlusardi19-Feb-03 7:29 
GeneralRe: Searching a C# String Pin
Chris Austin19-Feb-03 8:19
Chris Austin19-Feb-03 8:19 
GeneralBefore Delete File Event Pin
nissiml19-Feb-03 7:11
nissiml19-Feb-03 7:11 
GeneralRe: Before Delete File Event Pin
Chris Austin20-Feb-03 3:51
Chris Austin20-Feb-03 3:51 
GeneralMaking GetObject work for LDAP Pin
Atul Kale19-Feb-03 7:00
Atul Kale19-Feb-03 7:00 
GeneralRe: Making GetObject work for LDAP Pin
Richard Deeming20-Feb-03 0:03
mveRichard Deeming20-Feb-03 0:03 
GeneralRe: Making GetObject work for LDAP Pin
Atul Kale20-Feb-03 20:23
Atul Kale20-Feb-03 20:23 
GeneralDisk Quotas C# Pin
daaaaave19-Feb-03 6:32
daaaaave19-Feb-03 6:32 
GeneralCrystal Reports newcomer and Visual Studio Pin
Braulio Dez19-Feb-03 6:07
Braulio Dez19-Feb-03 6:07 
QuestionHow can I save GDI drawings on a form to jpg or gif Files Pin
mosessaur19-Feb-03 5:35
mosessaur19-Feb-03 5:35 
AnswerRe: How can I save GDI drawings on a form to jpg or gif Files Pin
Aboelkhair20-Feb-03 12:45
Aboelkhair20-Feb-03 12:45 
GeneralHelp Please: ComboBox Control in WinForm Datagrid Control Pin
DionChen19-Feb-03 5:08
DionChen19-Feb-03 5:08 
Generalc# and win CE Pin
Roger Alsing19-Feb-03 2:55
Roger Alsing19-Feb-03 2:55 
GeneralRe: c# and win CE Pin
Stephane Rodriguez.19-Feb-03 3:10
Stephane Rodriguez.19-Feb-03 3:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.