Click here to Skip to main content
16,004,974 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Can you tell me How many rows datagrid contain ! Pls Pin
lucdt1-Mar-05 16:07
lucdt1-Mar-05 16:07 
GeneralRe: Can you tell me How many rows datagrid contain ! Pls Pin
kutz91-Mar-05 16:11
kutz91-Mar-05 16:11 
GeneralRe: Can you tell me How many rows datagrid contain ! Pls Pin
Dave Kreskowiak2-Mar-05 1:19
mveDave Kreskowiak2-Mar-05 1:19 
GeneralRe: Can you tell me How many rows datagrid contain ! Pls Pin
lucdt2-Mar-05 14:36
lucdt2-Mar-05 14:36 
GeneralRaising a keypress event without pressing a key Pin
kutz91-Mar-05 14:58
kutz91-Mar-05 14:58 
GeneralRe: Raising a keypress event without pressing a key Pin
Dave Kreskowiak2-Mar-05 1:08
mveDave Kreskowiak2-Mar-05 1:08 
GeneralRe: Raising a keypress event without pressing a key Pin
kutz92-Mar-05 11:13
kutz92-Mar-05 11:13 
GeneralRe: Raising a keypress event without pressing a key Pin
rwestgraham2-Mar-05 12:31
rwestgraham2-Mar-05 12:31 
Don't know if this is the best way to do what you want, but...

Find the control window handle using the FindWindowEx API. Then use the SendMessage API to send it a message that simulates a left button mouse click.

The tricky part is that a DateTimePicker behaves differently depending on where you click on it. But the control itself only exposes a single hwnd for the entire control.

So you will have to figure out the correct message parameters to make it think you clicked on the drop button instead of the in the date text area.

Run an application that has a DTPicker control, then use the Spy++ tool to log WM_USER and all mouse related messages, and study the results. Then it is matter of tinkering with the message parameters until you find what works.

Good Luck ...

Robert
GeneralRe: Raising a keypress event without pressing a key Pin
kutz92-Mar-05 13:08
kutz92-Mar-05 13:08 
GeneralMouse Movement Pin
Capilano1-Mar-05 12:53
Capilano1-Mar-05 12:53 
GeneralRe: Mouse Movement Pin
Dave Kreskowiak2-Mar-05 1:04
mveDave Kreskowiak2-Mar-05 1:04 
GeneralRe: Mouse Movement Pin
Capilano2-Mar-05 4:48
Capilano2-Mar-05 4:48 
GeneralRe: Mouse Movement Pin
Dave Kreskowiak2-Mar-05 6:54
mveDave Kreskowiak2-Mar-05 6:54 
GeneralVB 6.0 ADO recordset.find Pin
bhbadz20051-Mar-05 9:55
bhbadz20051-Mar-05 9:55 
GeneralRe: VB 6.0 ADO recordset.find Pin
rwestgraham1-Mar-05 14:46
rwestgraham1-Mar-05 14:46 
GeneralProblems with UdpClient Pin
[DK]KiloDunse1-Mar-05 2:48
[DK]KiloDunse1-Mar-05 2:48 
GeneralRe: Problems with UdpClient Pin
Dave Kreskowiak1-Mar-05 3:51
mveDave Kreskowiak1-Mar-05 3:51 
GeneralRe: Problems with UdpClient Pin
[DK]KiloDunse1-Mar-05 3:55
[DK]KiloDunse1-Mar-05 3:55 
GeneralRe: Problems with UdpClient Pin
Dave Kreskowiak1-Mar-05 5:15
mveDave Kreskowiak1-Mar-05 5:15 
GeneralRe: Problems with UdpClient Pin
[DK]KiloDunse1-Mar-05 5:19
[DK]KiloDunse1-Mar-05 5:19 
GeneralRe: Problems with UdpClient Pin
Dave Kreskowiak1-Mar-05 6:16
mveDave Kreskowiak1-Mar-05 6:16 
GeneralRe: Problems with UdpClient Pin
[DK]KiloDunse1-Mar-05 6:26
[DK]KiloDunse1-Mar-05 6:26 
GeneralRe: Problems with UdpClient Pin
[DK]KiloDunse1-Mar-05 20:56
[DK]KiloDunse1-Mar-05 20:56 
GeneralFile creation date, file modification date Pin
Rajesh_K_Sharma28-Feb-05 23:13
Rajesh_K_Sharma28-Feb-05 23:13 
GeneralRe: File creation date, file modification date Pin
Dave Kreskowiak1-Mar-05 3:06
mveDave Kreskowiak1-Mar-05 3:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.