For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > April 2005 > My own toolpanel









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author My own toolpanel
Stuart Nathan

2005-04-29, 3:55 pm

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.


Rick Rothstein

2005-04-29, 3:55 pm

Almost 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.
>
>


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com