Create a Custom MessageBox - C#, Visual Basic (VB.NET) & WinForms / Modern Flat UI
HTML-код
- Опубликовано: 20 дек 2021
- Hi, today I will show you how to create a Custom MessageBox with Windows Forms, CSharp & VB (Visual Basic .NET). Basically this custom message box does everything a standard MessageBox does, for example set the text, a title, buttons, icon, default button and returns the value selected by the user in the dialog box (DialogResult).
🔰 Download Project (C# || Visual Basic .NET)
rjcodeadvance.com/cuadro-de-m...
😸Social networking
Facebook: / rjcodeadvanceen
Instagram: / rjcodeadvanceen
🔗 Credits
Tracks:
Last Heroes x TwoWorldsApart - Eclipse (feat. AERYN) [NCS Release]
#ModernForm #WindowsForm #ModernUI #CSharp #VisualBasic #VB.NET #VisualStudio #Custom #MessageBox #FlatUI #DialogBox
Project Download available in VB.NET and C#
Guy your tutos about manipulating win32 controls and forms are really appreciated and so rare ! I think your channel is the best if you want to learn designing !
THANK YOU SO MUCH!
I made the most beautiful message box, thank you for sharing the source code in the description.
I could not have done this without you. Thanks again! :) I also subscribed
Your are so amazing RJ Code. You are my best teacher ever =)
In order to be able to customize the message box title bar, you set the form border style to none, then simple panel on the form imitates the form title bar.
That way you can easily adjust the "title bar" back color by changing the panel back color and that is clear.
But, if I am correct, I don't see that you have provided the code in order to allow user to grab the form by title bar area and move it around.
The easiest way to do it is to override the DefWndPro method.
Again you came with a great tutorial...❤❤❤
thanks ;)
@@RJCodeAdvanceEN Do you have a Patreon account?
Beautiful!
You are awesome!
when my custom message box is on the screen and i click out the its focus area i.e i click away from message box.... the blue title bar appears on the message box with that sound.... can u plx tell me how to disable that...
Very Good!
Can you teach us how to make a custom scrollbar for DataGridView, Combobox, and ListBox?
Thanks. You are really great. Providing nice code. can you take one demo for resolution based system.
What Visual Studio theme are you using?
Please teach us on how to do a custom trackbar/slider :D
What font did you use?
Thanks for this idea
Can i make this custom messagebox support right to left property
I want to make this custom messagebox for arabic text and caption and buttons
What is the theme used in this Visual Studio?🤔
Can i use it for my project?
on your combobox your github link is not working, it reloading the RJ site
Привет Хауди. Сделай плз серию уроков про ООП в РНР. Кому интересно - ставим лайк чтобы увидел!!!!
Hello, can you make wet nod32 antivirus UI?
Focus but not working
Add Key Left or Right is ok
Great code but give me problems with windows 10 and resolution of 300% (recommended by default) so I comment the //this.labelMessage.MaximumSize = new Size(550, 0); because is giving me messages with just the half of the space avaible and after that in the method SetIcon(... I change the way to add the image this.pictureBoxIcon.Image = Properties.Resources.error; for this one this.pictureBoxIcon.BackgroundImage = Properties.Resources.error; for each type of message, because I need to use this line after the switch of icons this.pictureBoxIcon.BackgroundImageLayout = ImageLayout.Zoom; all this because of the size of the icon (is too small with 300% resolution). Hope this help someone. Cheers
and have to set to null the default image you let in your code designer or you will have overlapped images this.pictureBoxIcon.Image = null;
Was expecting some code that uses windows resources to construct the wpf window with msg box. But unfortunately it's just a plain old windows forms app mocking modern ui.
Popcom 🎉❤🎉 silençe you 😊❤😊😊😊😂😂😂🎉