I need to have a popup dialog such as the Color dialog box or the Save dialog box, but to select a date from the calendar. DateTimePicker is what I need, but I donโt know how to start it as a popup dialog in C #.
You need to add a DateTimePicker to the form and show the form as a dialog:
var picker = new DateTimePicker(); Form f = new Form(); f.Controls.Add(picker); var result = f.ShowDialog(); if(result == DialogResult.OK) { //get selected date }
DateTimePicker is a Control , not a Form . You will need to create your own Form and add a control to it; There is no standard dialog for selecting dates.
DateTimePicker
Control
Form
Source: https://habr.com/ru/post/1304186/More articles:AES Two-way salting encryption - c #WPF: disable property inheritance - wpfHow to get current open documents in Excel using C #? - c #HiLo vs Identity? - identityHow does the Delphi SelectDirectory dialog box dynamically check the selected folder? - folderHiLo or personality? - identityWhat is the character that represents the null byte after ASCIIEncoding.GetString (byte [])? - stringTwitter4J: Get all statuses from your Twitter account - apidebugging 100% JBoss processor usage - javahttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1304191/problem-with-averaging-corrupted-images-to-eliminate-the-noise-in-matlab&usg=ALkJrhjB2h0YiOJUwOiiTxCcJJu-uwUDHQAll Articles