Custom Message Box's

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
9 posts Page 1 of 1
Contributors
User avatar
Mark
VIP - Donator
VIP - Donator
Posts: 372
Joined: Mon Aug 17, 2009 10:35 pm

Custom Message Box's
Mark
Hey Guys,

Can anyone make a tutorial on how to make a cutom message box please?.
http://www.mbappz.com
User avatar
Agust1337
Coding God
Coding God
Posts: 2456
Joined: Fri Feb 19, 2010 8:18 pm

Re: Custom Message Box's
Agust1337
Making a form as a dialog is simple:
Code: Select all
frmMessageBox.ShowDialog(me)
Top-notch casual Dating
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Custom Message Box's
mandai
If you want to design the form you would do it this way:

Right click the solution explorer, choose Add and select Windows Form.
Add a couple of buttons to this new form and set their DialogResult properties.

Next call Form2.ShowDialog(), you can see which button was clicked by the value this returns.
User avatar
Mark
VIP - Donator
VIP - Donator
Posts: 372
Joined: Mon Aug 17, 2009 10:35 pm

Re: Custom Message Box's
Mark
How do i set there dialog properties anychance of a small tutorial please
http://www.mbappz.com
User avatar
Agust1337
Coding God
Coding God
Posts: 2456
Joined: Fri Feb 19, 2010 8:18 pm

Re: Custom Message Box's
Agust1337
Which dialog properties?
Top-notch casual Dating
User avatar
Mark
VIP - Donator
VIP - Donator
Posts: 372
Joined: Mon Aug 17, 2009 10:35 pm

Re: Custom Message Box's
Mark
I mean a custom error, information, etc boxes.
http://www.mbappz.com
User avatar
Agust1337
Coding God
Coding God
Posts: 2456
Joined: Fri Feb 19, 2010 8:18 pm

Re: Custom Message Box's
Agust1337
You can use images for that on your form(s)

edit:
also if you have some statement that uses try you can do this:
Code: Select all
Try
'some code
Catch ex As Exception
frmMessageBox.Label1.Text = ex.Message
frmMessageBox.ShowDialog(me)
End Try
Top-notch casual Dating
User avatar
Codex
Coding God
Coding God
Posts: 2028
Joined: Wed Mar 31, 2010 5:50 pm

Re: Custom Message Box's
Codex
I think he wants to make this into a DLL, and therefore he needs to add properties.
You would need to do it some thing like this:
Code: Select all
Dim mbimage as image
   Public Property Image() As Image

      ' get image from mbimage
      Get
         Return mbimage
      End Get

      ' set image from value entered
      Set(ByVal value As image)
         mbimage = value
      End Set

   End Property
We shall let the revolution begin.. the revolution for freedom, freedom against censorship. We shall fight in the fields and in the streets, we shall fight in the hills; we shall never surrender
User avatar
Skillful
Skillful Coders
Skillful Coders
Posts: 969
Joined: Tue Nov 16, 2010 10:07 am

Re: Custom Message Box's
Skillful
Instead of LOL use this -
LSIBMHBIWFETALOL

Which means -
Laughing silently in between my head because it wasn't funny enough to actually laugh out loud!
9 posts Page 1 of 1
Return to “Tutorial Requests”