[COLOR=black][FONT=Courier New]<Description([COLOR=maroon]"Occurs when Button Two is clicked"[/COLOR]), _
Category([COLOR=maroon]"Action"[/COLOR])> _
[COLOR=blue]Public[/COLOR] [COLOR=blue]Event[/COLOR] ButtonTwoClick [COLOR=blue]As[/COLOR] EventHandler
[COLOR=blue]Protected[/COLOR] [COLOR=blue]Overridable[/COLOR] [COLOR=blue]Sub[/COLOR] OnButtonTwoClick([COLOR=blue]ByVal[/COLOR] sender [COLOR=blue]As[/COLOR] [COLOR=blue]Object[/COLOR], [COLOR=blue]ByVal[/COLOR] e [COLOR=blue]As[/COLOR] EventArgs) _
[COLOR=blue]Handles[/COLOR] ButtonTwo.Click
[COLOR=blue]RaiseEvent[/COLOR] ButtonTwoClick([COLOR=blue]Me[/COLOR], EventArgs.Empty)
[COLOR=blue]End[/COLOR] [COLOR=blue]Sub[/COLOR]
[/FONT][/COLOR]
Just curious: did you actually try this?jmcilhinney said:I think it would be better to just use the property of the UserControl as a pass-through for the ComboBox property ...
Can't say that I did. There;d have to be a way to make it work, wouldn't there? I'm too lazy to try though.Don Delegate said:Just curious: did you actually try this?
It was my first approach too. But it does not seem to work as expected in design time.
[SIZE=2]<Description([/SIZE][SIZE=2][COLOR=#800000]"The items of the Combobox in this User Control"[/COLOR][/SIZE][SIZE=2]), _
Editor([/SIZE][SIZE=2][COLOR=#800000]"System.Windows.Forms.Design.ListControlStringCollectionEditor, System.Design"[/COLOR][/SIZE][SIZE=2], _
[/SIZE][SIZE=2][COLOR=#0000ff]GetType[/COLOR][/SIZE][SIZE=2](UITypeEditor)), _
DesignerSerializationVisibility(DesignerSerializationVisibility.Content), _
Category([/SIZE][SIZE=2][COLOR=#800000]"Data"[/COLOR][/SIZE][SIZE=2])> _
[/SIZE][SIZE=2][COLOR=#0000ff]Public [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]ReadOnly [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Property[/COLOR][/SIZE][SIZE=2] Items() [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] ComboBox.ObjectCollection
[/SIZE][SIZE=2][COLOR=#0000ff]Get
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff] Return[/COLOR][/SIZE][SIZE=2] ComboBoxItems.Items
[/SIZE][SIZE=2][COLOR=#0000ff]End [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Get
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]End [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Property
[/COLOR][/SIZE]
isawa said:This code: Don't work.
[COLOR=black][FONT=Courier New][COLOR=blue]Try[/COLOR]
Validate()
CustomerBindingSource.EndEdit()
CustomerTableAdapter.Update(XtremeDataSet.Customer)
[COLOR=blue]Catch[/COLOR] ex [COLOR=blue]As[/COLOR] Exception
MessageBox.Show(ex.ToString)
[COLOR=blue]End[/COLOR] [COLOR=blue]Try[/COLOR]
[/FONT][/COLOR]
Please keep each thread to a single topic. This thread is already long enough. If you want to ask questions related to the original topic then use the same thread but if you have unrelated questions, as this is, please start a new thread. It makes the forum easier to use for everyone.isawa said:How to get currentrow for datagridview? show some code for me.
Thanks