Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MessageBox creator
#6
Could you possibly use this:

Code:
Private Sub BoxStyleSelect()
        If Form1.RadioButton1.Checked = True Then
            Form1.style.Text = ""
        End If
        If Form1.RadioButton2.Checked = True Then
            Form1.style.Text = "MsgBoxStyle.Information"
        End If
        If Form1.RadioButton3.Checked = True Then
            Form1.style.Text = "MsgBoxStyle.Critical"
        End If
    End Sub

And add a timer at a small interval like say 20, with this:

Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs)
        BoxStyleSelect()
    End Sub

And then finally on the button add:

Code:
MsgBox(TextBox2.Text, style.text, TextBox1.Text)


Messages In This Thread
MessageBox creator - by RabidLamb - 11-16-2011, 06:06 PM
Re: MessageBox creator - by xolara - 11-16-2011, 10:17 PM
Re: MessageBox creator - by RabidLamb - 11-17-2011, 05:28 PM
Re: MessageBox creator - by RabidLamb - 12-26-2011, 01:09 PM
Re: MessageBox creator - by AnchoredFTW - 12-27-2011, 07:32 AM
Re: MessageBox creator - by AnchoredFTW - 12-27-2011, 07:33 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)