Browse by Tags
All Tags »
.NET Faq (
RSS)
Sorry, but there are no more tags available to filter with.
Several times there is a requirement to hide/disable the close button and to close the Form with a button on the Form to exit the application. To hide the Close Button on the form we can set ControlBox propertyof the Form to False (by default its set...
VB.NET Private Sub MonthCalendar1_DateChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.DateRangeEventArgs) Handles MonthCalendar1.DateChanged 'Display the dates for selected range Label1.Text = "Dates Selected from :" &...
We come across situation many a times where we need the name of the folder in which the file resides. Let's say the folder is as "C:\Project1\CSProj1\somename\file1.cs" We need to get the folder "somename" We can do this by using...
VB.NET Shared Function ExtractNumbers( ByVal expr As String ) As String Return String.Join( Nothing, System.Text.RegularExpressions.Regex.Split( expr, "[^\d]" ) ) End Function C# static string ExtractNumbers( string expr ) { return string.Join...
To open pop-up window using <asp:dropdownlist..> VB.NET Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Response.Write("<script>window.open('" + DropDownList1.SelectedValue + "'...
In this Sample code we will see how to customize calendar control to limit the user to select the day on or after today Step 1: Drag Drop Calendar Control <asp:Calendar id="Calendar1" runat="server"></asp:Calendar> Step 2: In code behind use...