PC Review


Reply
Thread Tools Rate Thread

Datetime Box

 
 
Wei
Guest
Posts: n/a
 
      16th Mar 2005
My question is: is there any event can be fired when an instance of
MyDateBox databinding.add("Text",dv,"datecolumn"), so I can call
WireBinding sub in that event. Right now, I have to call the public sub
WireBinding after every databinding.add statement.


Public Class MyDateBox
Inherits MyMaskedTextBox
Private WithEvents _b As Binding

Public Sub New()
Me.Mask = "00/00/0000"
End Sub

Public Sub WireBinding()
_b = Me.DataBindings("Text")
End Sub

Private Sub _b_Parse(ByVal sender As Object, ByVal e As
System.Windows.Forms.ConvertEventArgs) Handles _b.Parse
If Me.InputText = String.Empty Then
e.Value = DBNull.Value
End If
End Sub

End Class

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Millisecond values missing when inserting datetime into datetime column of sql Server Manikandan Microsoft C# .NET 4 18th Jul 2007 08:59 PM
How can I save a DateTime from my C# program into a SQL Server (datetime) database column. Steve Kershaw Microsoft ASP .NET 5 29th Aug 2006 03:10 AM
System.DateTime doesn't convert to SqlDbType.DateTime Narshe Microsoft C# .NET 3 2nd Nov 2005 05:42 PM
DateTime problem: how to create datetime format hh:mm:ss AM/PM without the date mimi Microsoft C# .NET 1 6th Aug 2004 08:28 PM
XML dateTime conversion to DateTime.MinValue accross timezones Symon R Microsoft Dot NET 0 6th Aug 2003 07:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:55 AM.