troubleshooting Question custom message box as class library

Avatar of PeterBaileyUk
PeterBaileyUk asked on
Visual Basic.NET
2 Comments1 Solution611 ViewsLast Modified:
I made some custom buttons last week and can add them to my projects as I need by adding the dll. I would like to create a custom message box with three buttons on it of which I can alter the text in much the same way.

the same as a yesnocancel messagebox but with me deciding the text on the buttons.

in this example the choice will be Export to SQL, Export To Access, Export to both

not sure how to do that. I looked to try to inherit the messagebox but couldnt see that either. not sure where to start I have created a form by adding it and putting on 3 buttons but that doesnt seem enough

ive started with this not sure if its right direction
Imports System.Drawing
Imports System.Windows.Forms
Public Class Class1
    Dim CwMsgBox As New Form

    Public Sub New()

        Dim BtnSQL As New Button
        Dim BtnLegacy As New Button
        Dim BtnBoth As New Button

        BtnBoth.Text = "Export To SQL and Legacy Access DB's"
        BtnSQL.Text = "Export To SQL Server DB's"
        BtnLegacy.Text = "Export To Legacy Acess DB's"
        BtnBoth.Location = New Point(279, 45)
        BtnLegacy.Location = New Point(29, 45)
        BtnSQL.Location = New Point(152, 45)

        CwMsgBox.Size = New System.Drawing.Size(400, 200)
        CwMsgBox.Location = New System.Drawing.Point(0, 0)

    End Sub

    Private Sub BtnSQL_Click(sender As Object, e As EventArgs) Handles BtnSQL.Click

    End Sub

    Private Sub BtnBoth_Click(sender As Object, e As EventArgs) Handles BtnBoth.Click

    End Sub
    Private Sub BtnLegacy_Click(sender As Object, e As EventArgs) Handles BtnLegacy.Click

    End Sub

End Class
Robberbaron (robr)

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros