Click here to Skip to main content
15,915,611 members
Home / Discussions / C#
   

C#

 
GeneralRe: Disabling splash screen Pin
Mazdak17-Mar-04 23:03
Mazdak17-Mar-04 23:03 
GeneralRe: Disabling splash screen Pin
Heath Stewart18-Mar-04 4:33
protectorHeath Stewart18-Mar-04 4:33 
GeneralRe: Disabling splash screen Pin
Jeremy Kimball18-Mar-04 7:36
Jeremy Kimball18-Mar-04 7:36 
Generalchecking the running processes Pin
SatyaDY17-Mar-04 22:34
SatyaDY17-Mar-04 22:34 
GeneralRe: checking the running processes Pin
Mazdak17-Mar-04 22:43
Mazdak17-Mar-04 22:43 
GeneralGrey checkboxes Pin
Krisst K17-Mar-04 21:40
Krisst K17-Mar-04 21:40 
GeneralRe: Grey checkboxes Pin
Heath Stewart18-Mar-04 4:28
protectorHeath Stewart18-Mar-04 4:28 
GeneralUserControl and Listbox's datasource at design time Pin
Mr. Labenche17-Mar-04 21:10
Mr. Labenche17-Mar-04 21:10 
Hello.

I'v made a user control with a ListView and a ListBox. So I use that whole control as a component.
With the code below I'm able to set the ListBox's DataSource at design time. I can also see property fields for ValueMember and DisplayMember. But the property comboboxes won't pop up.

On the web, I've found code like mine that is said to work fine. The only difference is that I use a ListBox instead of a ComboBox control.

Is there any List, Collection, interface, EventHandler or something like this I've forgotten?


	     // Control DataSource<br />
		[Category("RUCListBox"),<br />
		Bindable(true),<br />
		Description ("Apply datasource"),<br />
			RefreshProperties(RefreshProperties.All),<br />
		TypeConverter("System.Windows.Forms.Design.DataSourceConverter,	System.Design"),<br />
		]<br />
		public object RucDataSource<br />
		{<br />
			get{return listBox1.DataSource;}<br />
			set{this.listBox1.DataSource = value;}<br />
		}<br />
		[Category("RUCListBox"),<br />
		RefreshProperties(RefreshProperties.All),<br />
		Editor("System.Windows.Forms.Design.DataMemberFieldEditor, System.Design",<br />
			"System.Drawing.Design.UITypeEditor, System.Drawing"),]<br />
		public string RucValueMember <br />
		{<br />
			get { return this.listBox1.ValueMember; }<br />
			set { this.listBox1.ValueMember = value; }<br />
		}<br />
		//<br />
		[Category("RUCListBox"), Bindable(true),<br />
		Editor("System.Windows.Forms.Design.DataMemberFieldEditor, System.Design",<br />
			"System.Drawing.Design.UITypeEditor, System.Drawing"),]<br />
		public string RucDisplayMember <br />
		{<br />
			get { return this.listBox1.DisplayMember; }<br />
			set { this.listBox1.DisplayMember = value; }<br />
		}<br />
<br />
		public override System.Windows.Forms .BindingContext BindingContext <br />
		{<br />
			get { return BindingContext; }<br />
		}


T. Labenche
GeneralRe: UserControl and Listbox's datasource at design time Pin
Heath Stewart18-Mar-04 4:22
protectorHeath Stewart18-Mar-04 4:22 
GeneralRe: UserControl and Listbox's datasource at design time Pin
John Fisher18-Mar-04 4:22
John Fisher18-Mar-04 4:22 
Generalgetting data from database and separating them Pin
ASGill17-Mar-04 20:21
ASGill17-Mar-04 20:21 
GeneralRe: getting data from database and separating them Pin
Mazdak17-Mar-04 22:52
Mazdak17-Mar-04 22:52 
GeneralRe: getting data from database and separating them Pin
Heath Stewart18-Mar-04 4:17
protectorHeath Stewart18-Mar-04 4:17 
GeneralWindow UI modification in C# Pin
authenticgeek17-Mar-04 16:51
authenticgeek17-Mar-04 16:51 
GeneralRe: Window UI modification in C# Pin
Dave Kreskowiak17-Mar-04 16:54
mveDave Kreskowiak17-Mar-04 16:54 
GeneralRe: Window UI modification in C# Pin
authenticgeek17-Mar-04 17:07
authenticgeek17-Mar-04 17:07 
GeneralRe: Window UI modification in C# Pin
Dave Kreskowiak18-Mar-04 1:44
mveDave Kreskowiak18-Mar-04 1:44 
GeneralRe: Window UI modification in C# Pin
authenticgeek18-Mar-04 20:48
authenticgeek18-Mar-04 20:48 
GeneralRe: Window UI modification in C# Pin
Dave Kreskowiak19-Mar-04 11:10
mveDave Kreskowiak19-Mar-04 11:10 
GeneralRe: Window UI modification in C# Pin
Heath Stewart18-Mar-04 3:50
protectorHeath Stewart18-Mar-04 3:50 
GeneralRe: Window UI modification in C# Pin
K4reem19-Mar-04 0:37
K4reem19-Mar-04 0:37 
GeneralHTTPResponse Threading Pin
K4reem17-Mar-04 14:45
K4reem17-Mar-04 14:45 
GeneralRe: HTTPResponse Threading Pin
Dave Kreskowiak17-Mar-04 16:53
mveDave Kreskowiak17-Mar-04 16:53 
GeneralRe: HTTPResponse Threading Pin
K4reem19-Mar-04 0:31
K4reem19-Mar-04 0:31 
GeneralRe: HTTPResponse Threading Pin
Heath Stewart18-Mar-04 3:44
protectorHeath Stewart18-Mar-04 3:44 

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.