Tag - .NET

Show alert or run JavaScript function after showing the appointment popup in DevExpress using VB.NET

You should handle the CustomJSProperties event and add in properties collection the script which you are going to run it.Please find below server side code:Dim script As String = Nothing Dim disablePopup As Boolean = falseProtected Sub ASPxScheduler1_AppointmentFormShowing(sender As Object, e As AppointmentFormEventArgs) Handles ASPxScheduler1.AppointmentFormShowing...

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...

How to connect to Team Foundation Server (TFS) using C#.NET

I will show you how to connect to Team Foundation Server (TFS) and add work item via code.First you must install TFS SDK, you can download Team Foundation Server SDK from the below link:http://www.microsoft.com/downloads/details.aspx?FamilyID=7e0fdd66-698a-4e6a-b373-bd0642847ab7&DisplayLang=enSteps:1- Create windows or web Application2- Add References for :Microsoft.TeamFoundation.ClientMicrosoft.TeamFoundation.WorkItemTracking.Client3- The below code will help you to...

How to get Active Directory connection string in C#.NET

First you will have to add a reference for System.DirectoryServicesYou must run the application on a machine within the same domain to be able to connect to the Active Directoryusing System.DirectoryServices;private string GetActiveDirectoryConnectionString() { DirectoryEntry root = new DirectoryEntry("LDAP://RootDSE"); using (root) { string dnc = root.Properties["defaultNamingContext"][0].ToString(); ...

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...