Click here to Skip to main content
15,921,212 members
Home / Discussions / C#
   

C#

 
GeneralRe: DLL Pin
Snowjim22-May-04 9:36
Snowjim22-May-04 9:36 
QuestionHow to create Installer that user can checked item he wannt to install (I have more 59 item whether user will install. Pin
god4k20-May-04 9:55
god4k20-May-04 9:55 
AnswerRe: How to create Installer that user can checked item he wannt to install (I have more 59 item whether user will install. Pin
Heath Stewart20-May-04 10:09
protectorHeath Stewart20-May-04 10:09 
GeneralRe: How to create Installer that user can checked item he wannt to install (I have more 59 item whether user will install. Pin
god4k20-May-04 23:52
god4k20-May-04 23:52 
GeneralRe: How to create Installer that user can checked item he wannt to install (I have more 59 item whether user will install. Pin
Heath Stewart21-May-04 3:33
protectorHeath Stewart21-May-04 3:33 
GeneralListBox with ComboBox embedded Pin
yipan20-May-04 9:44
yipan20-May-04 9:44 
GeneralRe: ListBox with ComboBox embedded Pin
Heath Stewart20-May-04 10:05
protectorHeath Stewart20-May-04 10:05 
GeneralRe: ListBox with ComboBox embedded Pin
Anonymous20-May-04 21:02
Anonymous20-May-04 21:02 
GeneralProgrammatic LDAP Queries Pin
MrEyes20-May-04 6:36
MrEyes20-May-04 6:36 
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 

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.