Tag - Windows Forms

How to create AutoComplete Textbox in Windows Forms Application using C#.NET

I'll show you how to create AutoComplete Textbox in a Windows Forms ApplicationThis time we're going to get the data from MS Access Databaseso let's get starting!1- Create Windows Forms Application.2- Add Textbox Control.3- Copy the below code into your form.AutoCompleteStringCollection stringCollection = new AutoCompleteStringCollection();private void AutoCompleteTextBox() { OleDbConnection aConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\Test.mdb"); ...

How to add windows forms control in WPF

I will describe how we can use windows forms controls in WPF application.I'll assume I have a WPF Application and I want to use DateTimePicker Control, how I can do that in WPF Application?1- Create WPF Application.2- Add Stackpanel control.3- in Solution Explorer Add Reference for:System.Windows.FormsWindowsFormsIntegrationusing WindowsControls = System.Windows.Forms; using WindowsIntegration = System.Windows.Forms.Integration;The below method...