Advertisement
5_2007-2008 Windows API Call/ Explanation #173891

Turn your PictureBox into a ChildForm

Uses SetWindowLong to turn a PictureBox into a "Child Form". Rather amazing to an unexperienced programmer. PS. Visit my new site: http://smartsite.cjb.net

AI

Resumo por IA: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Código fonte
original-source
Upload
I created a DatePicker library in VB.NET 2005 that can be referenced from any project.<br><br>
This DatePicker control can be bound to any object property that has a data type of Nullable(Of Date): if a date is selected by the user, then the control returns the date, however, if no date is selected by the user, then it returns Nothing.<br><br>
Using the DataPicker control is easy and straight-forward. But one important note is that when binding to the DatePicker, it is necessary to set the <u>formattingEnabled</u> property to <b>True</b>. <br><br>
Here's an example of binding the DatePicker control to an Employee BindingSource:<br>
 dpHireDate.DataBindings.Add("Value", _
 m_bsEmployee, "HireDate", True)<br><br>
The "HireDate" property of the Employee class is
a Nullable(Of Date) property, and looks like this:<br>
 Private m_hireDate As Nullable(Of Date) = Nothing<br>
 ''' <summary><br>
 ''' Gets or sets the Nullable HireDate<br>
 ''' </summary><br>
 Public Property HireDate() As Nullable(Of Date)<br>
 Get<br>
 Return m_hireDate<br>
 End Get<br>
 Set(ByVal value As Nullable(Of Date))<br>
 m_hireDate = value<br>
 End Set<br>
 End Property<br><br>
Included is the zipped VS 2005 solution that demonstrates how to use the DatePicker control.<br><br>
I hope it's helpful to you!
Comentários originais (3)
Recuperado do Wayback Machine