I have a form with a panel within which sits several user controls.
Depending on what activity the user is performing, a different user control is displayed in the panel. However, I would like one of the user controls to have 6 buttons, that when pressed, the master form can understand which button has been pressed. That gets the temporary message to work, but what is the correct syntax for passing which button has been pressed.
Add(text Col) Dim cmb Txt Col As New Data Grid Combo Box Column cmb Txt Col.
Edit(source, row Num, bounds, read Only1, instant Text, cell Is Visible) m Row Num = row Num cm Source = source Column Combo Box.
Text) End If Return True End Function Private Sub Combo Start Editing(By Val sender As Object, By Val e As Event Args) is Editing = True My Base. Selected Index) is Editing = False Invalidate() End If Column Combo Box. Currency Manager, By Val row Num As Integer) As Object Dim int Value As Integer int Value = CInt(My Base. At the end of the sample is showed how to use it Be aware this is a Tip for a Windows Forms Data Grid not a Data Grid View Public Class Data Grid Combo Box Column Inherits Data Grid Text Box Column Public With Events Column Combo Box As No Key Up Combo 'special class Private With Events cm Source As Currency Manager Private m Row Num As Integer Private is Editing As Boolean Shared Sub New() End Sub Public Sub New() My Base. Leave If is Editing Then Set Column Value At Row(cm Source, m Row Num, Column Combo Box. Msg This is a (changed and optimized) version from the one which we saw in past made by a lot of persons for the Windows Forms Data Grid which has no standard combobox, this one works with Option Strict On. | MSDN Data Walkthroughs VBForums Database Development FAQ My Code Bank Submissions: VB | C# My Blog: Data Among Multiple Forms (3 parts) Beginner Tutorials: VB | C# | SQL I found the above code by jmcilhinney to be very helpful. I eventually fixed this by adding one line of code into the Sub Textbox1_Validating(...).The line I added comes after the first line in the Sub Textbox1_Validating If you follow the Code Bank link in my signature you'll find a link to my Numeric Text Box thread, which provides a custom Text Box control that was written much more recently than the post here to handle just about any numeric format, including currency.