johannblais / informationbox Goto Github PK
View Code? Open in Web Editor NEWInformationBox is an alternative to the default MessageBox included in the System.Windows.Forms namespace
License: Other
InformationBox is an alternative to the default MessageBox included in the System.Windows.Forms namespace
License: Other
Very good messagebox, but documentation is a bit thin. Can you answer the following please?
Basic constructor ... InfoBox.InformationBox.Show( ... intellisense shows the first parameter signature as "string text, params object[] Parameters ). The description mentions : "The constructor accepts an undefined number of parameters, in an undefined order." How does this basic constructor work? In notice that the enum value for InfoBox.InformationBoxIcon.Information and InfoBox.InformationBoxButtons.YesNo are both 4.
How does the callback feature work - can you provide an example?
Is it possible to have more than three buttons?
Thanks
Describe the bug
Reported by @MagicAndre1981: The assembly and file version are incorrect in the latest package.
To Reproduce
Open the file properties of the latest NuGet package.
The file version is 1.0.0.0 and the product version is 1.0.0+guid
Expected behavior
The file version and product version should be set to 1.3.x.x
Implement support for .NET 7.0 once officially released.
Will wait for support in non-preview Visual Studio 22.
Describe the bug
A clear and concise description of what the bug is.
When the InformationBox
is shown in a mdi form the message box is not displaying center to the form. Seems it displaying center in the screen
To Reproduce
Steps to reproduce the behavior:
IsMdiContainer
to true
.InformationBox.Show("My message test", this)
message.InformationBox
window is centered to screen, not to its parent.Expected behavior
Centering to parent even if parent is mdi container.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
In other conditions, like modal or non-modal forms, but not-mdi, the window will center correctly. Only in mdi form is displaying centered to screen, not to its parent.
Press F11 to step into code and debug the code
because no PDBs + source info are found in NuGet packages, debugger steps over
enable Source Link to fetch the source from github during debugging to be able to step into the code.
Could it be possible to replace the text of the (DoNotShowAgain) CheckBox? That will make the CheckBox flexible to be used for other purposes.
The call below does not show the customButtons: new string[] { buttonTexts.Button1, buttonTexts.Button2, buttonTexts.Button3 }
return InformationBox.Show("How are you?", out checkBoxState, title: caption, icon: InformationBoxIcon.Question,
defaultButton:defaultButton, customButtons: new string[] { buttonTexts.Button1, buttonTexts.Button2, buttonTexts.Button3 },
showDoNotShowAgainCheckBox: InformationBoxCheckBox.Show, doNotShowAgainText: checkBoxText);
.Net 5 is the next major .net version which replace .net 4.x and is based on .net core code base.
Microsoft released the last RC and it would be to also have .net 5 support when .net 5 is released as stable version.
Is your feature request related to a problem? Please describe.
Currently, there is support for 2 custom buttons.
I need 3 custom buttons.
Describe the solution you'd like
The enum value InfoBox.InformationBoxButtons.User1User2User3 is missing for the buttons argument:
InfoBox.InformationBox.Show("Auf welchem Weg wurden die Input-Dateien vom Kunden/Buchhalter bereit gestellt?",
buttons:=InfoBox.InformationBoxButtons.User1User2User3,
customButtons:=New String() {"DMS-System", "Standard-E-Mail", "DATEV-E-Mail"},
icon:=InfoBox.InformationBoxIcon.Question)
Is your feature request related to a problem? Please describe.
this week the stable version of .net 8 will be released
Describe the solution you'd like
It would be nice to have net8.0-windows
added as targetframework
Can you please add .net core 3.1 support, I get this warning:
warning NU1701: Package 'InformationBox 1.0.0.29' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.1'. This package may not be fully compatible with your project.
When Parent form is a MdiChild the message form is not centered properly. I've solved it with a PR.
It would be nice if there is an option to disable the system sound when showing the message box.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.