The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I have a window form that opens another form as a modal dialog form. In the modal form, I have C# codes that select all list box items existing in a list box, which works fine. But as soon as the modal form is opened from the first form, all the list box selection is lost. Do you know what I need to do in order to keep the list box items selected?
Thanks!
ADAdministrator Syncfusion Team March 10, 2006 05:11 AM UTC
Hi,
Try to give a listbox selecting all items code in Form2 constructor after InitializeComponent method calling statement,
public Form2()
{
InitializeComponent();
this.listBox1.SelectionMode=SelectionMode.MultiExtended;
for(int i=0;i
I hope this will help you.
Thanks,
Vijay