August 2006 - Posts

How To: Get Selected Date from MonthCalendar control
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 :" &...
http://www.merawindows.com
Join the Windows Community Site! Please register and share your comments/suggestion. A great effort put together by fellow MVP's: Raghu Boddu , Soumitra Sengupta and M Rajesh Read More...
How To: Get the foldername in which the file resides
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...
How To: Extract numbers from string
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...
How To: Open a pop-up window using dropdownlist
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 + "'...