{"id":18749161,"url":"https://github.com/peymanr34/raine-messagebox","last_synced_at":"2026-04-10T23:48:33.201Z","repository":{"id":198968157,"uuid":"374781935","full_name":"peymanr34/raine-messagebox","owner":"peymanr34","description":"A fluent interface for the Windows Forms MessageBox class.","archived":false,"fork":false,"pushed_at":"2024-10-09T19:51:42.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-28T22:16:16.047Z","etag":null,"topics":["csharp","dotnet","fluent","messagebox","winforms"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peymanr34.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-06-07T19:43:01.000Z","updated_at":"2024-10-09T19:45:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"beee5f86-1a3d-42f0-9e2d-5244be9c4be3","html_url":"https://github.com/peymanr34/raine-messagebox","commit_stats":null,"previous_names":["peymanr34/raine-messagebox"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peymanr34%2Fraine-messagebox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peymanr34%2Fraine-messagebox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peymanr34%2Fraine-messagebox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peymanr34%2Fraine-messagebox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peymanr34","download_url":"https://codeload.github.com/peymanr34/raine-messagebox/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239635531,"owners_count":19672190,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","dotnet","fluent","messagebox","winforms"],"created_at":"2024-11-07T17:06:36.204Z","updated_at":"2025-11-26T07:30:16.038Z","avatar_url":"https://github.com/peymanr34.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Raine.MessageBox\nA fluent interface for the [System.Windows.Forms.MessageBox][msgbox-docs] class.\n\n[![NuGet Version][nuget-shield]][nuget]\n[![NuGet Downloads][nuget-shield-dl]][nuget]\n\n## Installation\nYou can install this package via the `Package Manager Console` in Visual Studio.\n\n```powershell\nInstall-Package Raine.MessageBox -PreRelease\n```\n\n\u003e [!NOTE]\n\u003e This package requires **.NET Framework 4.8** or **.NET 6.0+**\n\n## Usage\nThe following example shows how to build a simple message box.\n\n```csharp\n// using Raine.MessageBox;\n\nDialogResult result = new MessageBoxBuilder()\n    .WithText(\"Would you like to exit?\")\n    .WithCaption(\"Are you sure?\")\n    .WithButtons(MessageBoxButtons.YesNo)\n    .WithIcon(MessageBoxIcon.Question)\n    .Show();\n```\n\nYou can do the same in Visual Basic.\n\n```vbnet\n' Imports Raine.MessageBox\n\nDim Result As DialogResult = New MessageBoxBuilder().\n    WithText(\"Would you like to exit?\").\n    WithCaption(\"Are you sure?\").\n    WithButtons(MessageBoxButtons.YesNo).\n    WithIcon(MessageBoxIcon.Question).\n    Show()\n```\n\nSince we're using a `StringBuilder`, we have a `WithAppendLine` method.\n\n```csharp\n// using Raine.MessageBox;\n\nDialogResult result = new MessageBoxBuilder()\n    .WithAppendLine(\"Would you like to exit?\")\n    .WithAppendLine(\"Any unsaved progress will be lost.\")\n    .WithAppendLine(\"Please save your work before continue.\")\n    .WithCaption(\"Are you sure?\")\n    .WithButtons(MessageBoxButtons.YesNo)\n    .WithIcon(MessageBoxIcon.Question)\n    .Show();\n```\n\nYou can also have access to the other message box options.\n\n```csharp\n// using Raine.MessageBox;\n\nDialogResult result = new MessageBoxBuilder()\n    .WithAppendLine(\"Would you like to exit?\")\n    .WithAppendLine(\"Any unsaved progress will be lost.\")\n    .WithAppendLine(\"Please save your work before continue.\")\n    .WithCaption(\"Are you sure?\")\n    .WithButtons(MessageBoxButtons.YesNo)\n    .WithIcon(MessageBoxIcon.Question)\n    .WithDefaultButton(MessageBoxDefaultButton.Button2)\n    .WithOptions(MessageBoxOptions.RightAlign)\n    .Show();\n```\n\n## License\nThis project is licensed under the [MIT License](LICENSE).\n\n[msgbox-docs]: https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.messagebox\n\n[nuget]: https://www.nuget.org/packages/Raine.MessageBox\n[nuget-shield]: https://img.shields.io/nuget/v/Raine.MessageBox.svg?label=NuGet\n[nuget-shield-dl]: https://img.shields.io/nuget/dt/Raine.MessageBox?label=Downloads\u0026color=red","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeymanr34%2Fraine-messagebox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeymanr34%2Fraine-messagebox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeymanr34%2Fraine-messagebox/lists"}