I have a problem. I want to show two different value in same button.
Here is the image of the report----

    If Not String.IsNullOrEmpty(ComboBox1.Text + TextBox1.Text) Then
        Dim keyword As String = Me.ComboBox1.Text + TextBox1.Text.Trim()

        Me.LeaveInfoBindingSource.Filter = "(LeaveCategory LIKE '%" & keyword & "%')" & "OR Convert(PersonalNo,'System.String') LIKE '%" & keyword & "%'"
        formLeaveInfoReport_Load(sender, e)
    End If

Recommended Answers

All 2 Replies

From memory you can change the text of the button to what ever you want. So no big deal to show two values.

https://www.tutorialspoint.com/vb.net/vb.net_button.htm as reference.

YourButton.Text = Value1 + " space " + Value2

If you need to convert a number to string there I'll let you look up the function.

Please see the image.

commented: The image shows me Search selected. You would have us guessing you are not writing code. Add code to change that button. +15
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.