MessageBox creator - Printable Version +- BP Forums (https://bpforums.info) +-- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=55) +--- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=56) +---- Forum: VB.NET (Visual Basic 2010/2008) (https://bpforums.info/forumdisplay.php?fid=8) +----- Forum: Programming Help (https://bpforums.info/forumdisplay.php?fid=9) +----- Thread: MessageBox creator (/showthread.php?tid=423) |
MessageBox creator - RabidLamb - 11-16-2011 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 Re: MessageBox creator - xolara - 11-16-2011 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 Re: MessageBox creator - RabidLamb - 11-17-2011 yea but i guess i wasnt clear <!-- s --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="" title="Smile" /><!-- s --> 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 Re: MessageBox creator - brandonio21 - 11-18-2011 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 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! Re: MessageBox creator - RabidLamb - 12-26-2011 Thanks Brandonio that is what i meant! <!-- s --><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt="" title="Very Happy" /><!-- s --> <!-- s --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="" title="Smile" /><!-- s --> <!-- s --><img src="{SMILIES_PATH}/icon_e_wink.gif" alt="" title="Wink" /><!-- s --> Re: MessageBox creator - AnchoredFTW - 12-27-2011 Could you possibly use this: Code: Private Sub BoxStyleSelect() 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) And then finally on the button add: Code: MsgBox(TextBox2.Text, style.text, TextBox1.Text) Re: MessageBox creator - AnchoredFTW - 12-27-2011 RabidLamb Wrote:I need help with this. If your looking to refine from that, it's easy, try using: Code: MsgBox(Textbox2.Text, Textbox1.Text) |