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.
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
Hey Guys,
Can anyone make a tutorial on how to make a cutom message box please?.
Can anyone make a tutorial on how to make a cutom message box please?.
Making a form as a dialog is simple:
Code: Select all
frmMessageBox.ShowDialog(me)
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.
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.
How do i set there dialog properties anychance of a small tutorial please
You can use images for that on your form(s)
edit:
also if you have some statement that uses try you can do this:
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
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:
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
This article might help -
http://www.dreamincode.net/forums/topic ... ssage-box/
http://www.dreamincode.net/forums/topic ... ssage-box/
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!
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
Copyright Information
Copyright © Codenstuff.com 2020 - 2023