Code Comments
Programming Forum and web based access to our favorite programming groups.I am using vb.net
I have written my own usercontrol button.
I am writing a usercontrol toolbar using these buttons.
I have written a collection class (Button Collection) to contain these
buttons.
On my toolbar control I have this code:-
< DesignerSerializationVisibility(Designer
SerializationVisibility.Content), _
EditorAttribute(GetType(CollectionEditor
), GetType(UITypeEditor))> _
Public Property Buttons() as ButtonCollection
etc.
Now when I add the Toolbar Control to a new form, I see in then properties
window the Buttons collection and this allows me to add, remove buttons etc.
And they persist because you see on the host form the various Dim statements
etc.
BUT you don't see the MyToolBar.AddRange (New myButton() {etc...
Any ideas.
Post Follow-up to this messageAlmost everybody in this newsgroup is using VB6 or lower. While you may
get a stray answer to VB.NET (including VB2003 and VB2005 which has
dropped .NET from its name) questions here, you should ask them in
newsgroups devoted exclusively to .NET programming. Look for newsgroups
with either the word "dotnet" or "vsnet" in their name.
For the microsoft news server, try these newsgroups for Visual Basic
.NET related questions...
microsoft.public.dotnet.languages.vb
microsoft.public.dotnet.languages.vb.upgrade
microsoft.public.dotnet.languages.vb.controls
microsoft.public.dotnet.languages.vb.data
And these for more general .NET questions
microsoft.public.dotnet.general
microsoft.public.vsnet.general
Note: There are many other .NET newgroups (use the first three "fields"
from the last two as templates when searching for them), but the above
ones should get you started.
Rick - MVP
"Stuart Nathan" <Stuart.Nathan@btopenworld.com> wrote in message
news:d4t7t1$kj2$1@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com...
> I am using vb.net
>
> I have written my own usercontrol button.
> I am writing a usercontrol toolbar using these buttons.
> I have written a collection class (Button Collection) to contain these
> buttons.
> On my toolbar control I have this code:-
>
< DesignerSerializationVisibility(Designer
SerializationVisibility.Content
), _
> EditorAttribute(GetType(CollectionEditor
), GetType(UITypeEditor))> _
> Public Property Buttons() as ButtonCollection
> etc.
>
> Now when I add the Toolbar Control to a new form, I see in then
properties
> window the Buttons collection and this allows me to add, remove
buttons etc.
>
> And they persist because you see on the host form the various Dim
statements
> etc.
> BUT you don't see the MyToolBar.AddRange (New myButton() {etc...
>
> Any ideas.
>
>
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.