Click here to Skip to main content
15,904,822 members
Home / Discussions / C#
   

C#

 
GeneralRe: Programmatic LDAP Queries Pin
Heath Stewart20-May-04 8:08
protectorHeath Stewart20-May-04 8:08 
GeneralRe: Programmatic LDAP Queries Pin
MrEyes20-May-04 11:16
MrEyes20-May-04 11:16 
GeneralRe: Programmatic LDAP Queries Pin
Heath Stewart20-May-04 11:21
protectorHeath Stewart20-May-04 11:21 
GeneralRe: Programmatic LDAP Queries Pin
MrEyes21-May-04 4:38
MrEyes21-May-04 4:38 
GeneralRe: Programmatic LDAP Queries Pin
Heath Stewart21-May-04 4:50
protectorHeath Stewart21-May-04 4:50 
GeneralRe: Programmatic LDAP Queries Pin
MrEyes21-May-04 5:07
MrEyes21-May-04 5:07 
GeneralRe: Programmatic LDAP Queries Pin
Heath Stewart21-May-04 5:16
protectorHeath Stewart21-May-04 5:16 
GeneralCustom ToolBar Pin
BaShOr20-May-04 6:32
BaShOr20-May-04 6:32 
Hello,

I'm trying to write my own custom toolbar from scratch.
Now I've a problem: I created a class named coolToolBarButton which contains information about the button. Those buttons are grouped into a coolToolBarButtonCollection-Class.
I tried to add buttons to the toolbar via the designer, but it doesn't work. I clicked on the porperty field and the "coolToolBarButton Collection Editor" appeared. I was able to add some buttons, but then I clicked on the OK-Button and the buttons weren't added to the collection!
What's wrong?

Here's the code:

public class coolToolBarButton
{
private Image m_Image;

[DefaultValue(null),
System.ComponentModel.RefreshProperties(RefreshProperties.Repaint)]
public Image Image
{
get { return m_Image; }
set
{
m_Image = value;
}
}
}

public class coolToolBarButtonCollection : CollectionBase
{
public int Add(coolToolBarButton Button)
{
return List.Add(Button);
}

public void Insert(int index,coolToolBarButton Button)
{
List.Insert(index, Button);
}
public void Remove(coolToolBarButton Button)
{
List.Remove(Button);
}
public bool Contains(coolToolBarButton Button)
{
return List.Contains(Button);
}
public int IndexOf(coolToolBarButton Button)
{
return List.IndexOf(Button);
}
public void CopyTo(coolToolBarButton[] array, int index)
{
List.CopyTo(array, index);
}
public coolToolBarButton this[int index]
{
get { return (coolToolBarButton)List[index]; }
set { List[index] = value; }
}

}

///
/// Summary description for coolToolBar
///

public class coolToolBar : System.Windows.Forms.Control
{
///
/// Required designer variable.
///

private System.ComponentModel.Container components = null;
private coolToolBarButtonCollection m_ButtonCollection;

public coolToolBarButtonCollection Buttons
{
get { return m_ButtonCollection; }
set
{
m_ButtonCollection = value;
}
}

.......
GeneralRe: Custom ToolBar Pin
hbk72320-May-04 7:53
hbk72320-May-04 7:53 
GeneralRe: Custom ToolBar Pin
Heath Stewart20-May-04 8:07
protectorHeath Stewart20-May-04 8:07 
GeneralRe: Custom ToolBar Pin
BaShOr20-May-04 11:46
BaShOr20-May-04 11:46 
GeneralRe: Custom ToolBar Pin
BaShOr20-May-04 22:58
BaShOr20-May-04 22:58 
GeneralXML,XSD and Dataset's with c# Pin
Rhys__66620-May-04 6:18
Rhys__66620-May-04 6:18 
GeneralRe: XML,XSD and Dataset's with c# Pin
partyganger20-May-04 6:25
partyganger20-May-04 6:25 
GeneralSTCK to a DateTime Pin
seevse20-May-04 5:40
seevse20-May-04 5:40 
GeneralRe: STCK to a DateTime Pin
Heath Stewart20-May-04 5:55
protectorHeath Stewart20-May-04 5:55 
GeneralControl to Add thumbnailed icons to Pin
lethologica20-May-04 5:33
lethologica20-May-04 5:33 
GeneralRe: Control to Add thumbnailed icons to Pin
Heath Stewart20-May-04 5:42
protectorHeath Stewart20-May-04 5:42 
GeneralRe: Control to Add thumbnailed icons to Pin
lethologica20-May-04 10:35
lethologica20-May-04 10:35 
GeneralThis question falls between C# and Asp.net Pin
MeterMan20-May-04 5:21
MeterMan20-May-04 5:21 
GeneralRe: This question falls between C# and Asp.net Pin
Heath Stewart20-May-04 5:32
protectorHeath Stewart20-May-04 5:32 
Questionhow do i pass a parameter to Pin
robmays20-May-04 5:17
robmays20-May-04 5:17 
AnswerRe: how do i pass a parameter to Pin
Heath Stewart20-May-04 5:35
protectorHeath Stewart20-May-04 5:35 
GeneralRe: how do i pass a parameter to Pin
robmays20-May-04 7:38
robmays20-May-04 7:38 
GeneralSwitching Between Applications Pin
Harihara Subramanian20-May-04 5:10
Harihara Subramanian20-May-04 5: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.