Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MessageBox creator
#1
I need help with this.
i cant figure out how to make a radiobutton add an
icon to the msgbox when Checked and submited for the messagebox
Here is the code
_________________________________________________

Code:
MessageBox.Show((TextBox2.Text), (TextBox1.Text))
_________________________________________________

so i hope you can help me
textbox1 is for the title and textbox2 is for the text
#2
not sure what you mean but ill give it a try


We say chk1 is our Checkbox or Radiobutton
Code:
If Chk1.Checked = True then
Msgbox(Textbox2.text, textbox1.text)
else
end if
Website: <!-- m --><a class="postlink" href="http://www.PBAProductions.com">http://www.PBAProductions.com</a><!-- m -->
E-Mail: <!-- e --><a href="mailtoTongueatrick@AriSystems.Org">Patrick@AriSystems.Org</a><!-- e -->
Skype: Qwaxer
Youtube: Qwaxer
[Image: 2hnx8av.jpg]
#3
yea but i guess i wasnt clear <!-- sSmile --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="Smile" title="Smile" /><!-- sSmile -->
well i mean like the code i displayed would
make the title and text
and then submit it and if would work
i can already do that
but i want to add the option where say
i click on a checkbox then submit it
there would be a icon
like for the whole regular code wouldto add a icon would be

MessageBox.Show("text", "tile", MessageBoxButtons.Ok, MesssageBoxIcon.Question)

so when i would click on it it would add the icon to
the messagebox when submiting it
#4
Sorry RabidLamb, but I am not 100% sure of what you are asking.

If you are wondering how to make it so if the checkbox is checked, then display the icon, this would be the code to use:

Code:
If Checkbox1.Checked = True Then
   MessageBox.Show("text", "tile", MessageBoxButtons.Ok, MesssageBoxIcon.Question)
Else
   MessageBox.Show("text", "tile", MessageBoxButtons.Ok)
End if

But I really do not know exactly what you are asking.. So hopefully this is what you meant. If not, I apologize again.. And if you could try restating the question, we can try to answer!
My Blog | My Setup | My Videos | Have a wonderful day.
#5
Thanks Brandonio
that is what i meant! <!-- sBig Grin --><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt="Big Grin" title="Very Happy" /><!-- sBig Grin --> <!-- sSmile --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="Smile" title="Smile" /><!-- sSmile --> <!-- sWink --><img src="{SMILIES_PATH}/icon_e_wink.gif" alt="Wink" title="Wink" /><!-- sWink -->
#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)
#7
RabidLamb Wrote:I need help with this.
i cant figure out how to make a radiobutton add an
icon to the msgbox when Checked and submited for the messagebox
Here is the code
_________________________________________________

Code:
MessageBox.Show((TextBox2.Text), (TextBox1.Text))
_________________________________________________

so i hope you can help me
textbox1 is for the title and textbox2 is for the text

If your looking to refine from that, it's easy, try using:

Code:
MsgBox(Textbox2.Text, Textbox1.Text)


Forum Jump:


Users browsing this thread: 1 Guest(s)