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

Комментарии • 28

  • @RJCodeAdvanceEN
    @RJCodeAdvanceEN  2 года назад

    Project Download available in VB.NET and C#

  • @real_arsium
    @real_arsium 2 года назад

    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 !

  • @ryanh1869
    @ryanh1869 Год назад

    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

  • @dannaandrade6586
    @dannaandrade6586 2 года назад

    Your are so amazing RJ Code. You are my best teacher ever =)

  • @ivicastanic3605
    @ivicastanic3605 2 года назад

    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.

  • @saurabhtyagi4209
    @saurabhtyagi4209 2 года назад +4

    Again you came with a great tutorial...❤❤❤

  • @user-mj1ms6jb3z
    @user-mj1ms6jb3z 2 года назад

    Beautiful!

  • @sametlap9407
    @sametlap9407 2 года назад

    You are awesome!

  • @natureandfun62
    @natureandfun62 2 года назад +1

    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...

  • @ylk5560
    @ylk5560 3 месяца назад

    Very Good!

  • @rlvy
    @rlvy 2 года назад

    Can you teach us how to make a custom scrollbar for DataGridView, Combobox, and ListBox?

  • @vijaykatake4778
    @vijaykatake4778 Год назад

    Thanks. You are really great. Providing nice code. can you take one demo for resolution based system.

  • @kro4mi
    @kro4mi 2 года назад

    What Visual Studio theme are you using?

  • @AzgarD555
    @AzgarD555 2 года назад

    Please teach us on how to do a custom trackbar/slider :D

  • @johnfrancisyu493
    @johnfrancisyu493 2 года назад

    What font did you use?

  • @mohamedgida7792
    @mohamedgida7792 Год назад

    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

  • @hlc136
    @hlc136 2 года назад

    What is the theme used in this Visual Studio?🤔

  • @ongnguyenhoang6016
    @ongnguyenhoang6016 2 года назад

    Can i use it for my project?

  • @paulogarcia9060
    @paulogarcia9060 2 года назад

    on your combobox your github link is not working, it reloading the RJ site

  • @CHITUS
    @CHITUS 2 года назад

    Привет Хауди. Сделай плз серию уроков про ООП в РНР. Кому интересно - ставим лайк чтобы увидел!!!!

  • @cristiandicesarea1307
    @cristiandicesarea1307 2 года назад

    Hello, can you make wet nod32 antivirus UI?

  • @ngothuc6170
    @ngothuc6170 10 месяцев назад

    Focus but not working
    Add Key Left or Right is ok

  • @RafaelZelayax
    @RafaelZelayax Год назад

    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

    • @RafaelZelayax
      @RafaelZelayax Год назад

      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;

  • @redcrafterlppa303
    @redcrafterlppa303 2 года назад

    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.

  • @Khunryijduy
    @Khunryijduy 8 месяцев назад

    Popcom 🎉❤🎉 silençe you 😊❤😊😊😊😂😂😂🎉