.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> Windows Application >> Post New QuestionBookmark and Share Subscribe to Forum

Date Textbox for windows application in VB.Net

Posted By: Narayanan     Posted Date: October 31, 2011    Points:5   Category :Windows Application
Hi friends,
I want a Date textbox.user could type Date only like this format(dd/MM/yyyy) . How to achieve this .it is using for window application in vb.net.Please Help me?

Responses
Author: Gowthammanju             
Posted Date: October 31, 2011     Points: 20   

try these as

http://msdn.microsoft.com/en-us/library/system.windows.forms.maskedtextbox.aspx


http://msdn.microsoft.com/en-us/library/system.windows.forms.monthcalendar.aspx

http://msdn.microsoft.com/en-us/library/system.windows.forms.maskedtextbox.mask.aspx


http://www.codeproject.com/KB/database/databindingconcepts.aspx

Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true
Author: Gowthammanju             
Posted Date: October 31, 2011     Points: 20   

try these coding as


Private Sub DOBtextBox_KeyDown(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles DOBTextBox.KeyDown
If e.KeyCode = Keys.Enter Then
i = Me.MEMBERSBindingSource.Position
If DOBTextBox.Text = Nothing Then
Mydate = ToDateOrNull(DOBTextBox.Text)
Me.ChurchDataSet.MEMBERS.Rows(i)("dob") = Mydate
'send deleted or empty var to database. I use to save it
JOINEDTextBox.Focus()
End If

JOINEDTextBox.Focus() 'the next textbox to deal with
e.Handled = True : e.SuppressKeyPress = True
end if
End Sub


Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true
Author: Narayanan             
Posted Date: October 31, 2011     Points: 20   

Hi,
Thanks for your reply. in case ,if It is a web application .How can i do this? Please tell me.
Regards,
Lakshmi Narayanan.S


Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
Author: Ravi Ranjan Kumar             
Posted Date: October 31, 2011     Points: 20   

Nothing will gonna change. its depend what you have did so far. whatever your question showing that your intention was to know using Windows Application.
you can try
http://www.a1vbcode.com/snippet-2795.asp
http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/maskededit/maskededit.aspx
and finally best is to go there - [ http://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.71).aspx ]

Thanks & Regards
Ravi Ranjan Kumar
http://raviranjankr.wordpress.com
Author: Narayanan             
Posted Date: April 09, 2012     Points: 20   

Hi,
Thanks

Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend