Click here to Skip to main content
15,906,558 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralFormat date function and variables Pin
Drexel GG12-Jan-05 6:19
sussDrexel GG12-Jan-05 6:19 
GeneralRe: Format date function and variables Pin
Dave Kreskowiak12-Jan-05 8:43
mveDave Kreskowiak12-Jan-05 8:43 
GeneralRe: Format date function and variables Pin
Anonymous12-Jan-05 10:38
Anonymous12-Jan-05 10:38 
Generaldatasets (vb.net 2003) Pin
std770212-Jan-05 4:10
std770212-Jan-05 4:10 
GeneralSendMessage() Function Help Pin
Damian Castroviejo12-Jan-05 2:38
Damian Castroviejo12-Jan-05 2:38 
GeneralRe: SendMessage() Function Help Pin
Dave Kreskowiak12-Jan-05 4:20
mveDave Kreskowiak12-Jan-05 4:20 
GeneralRe: SendMessage() Function Help Pin
Damian Castroviejo13-Jan-05 2:11
Damian Castroviejo13-Jan-05 2:11 
GeneralRe: SendMessage() Function Help Pin
Dave Kreskowiak13-Jan-05 3:37
mveDave Kreskowiak13-Jan-05 3:37 
dcastroviejo wrote:
Would [it] be necesary to specify the edit control in the active window that has the selected text, as I did with "Me.TextBox.Handle" ?? If so, I don't know how to find the edit control that has the selected text in the active window.

Yes, WM_COPY must be sent to the edit control handle, not the parent window. There is really no way of determining which edit control has the focus.

Applications that let you drap a cross hair around the screen and see each and every window, including edit controls, use the function ChildWindowFromPoint to get the window handle. This won't work in your case because you really cant get a reliable point to pass to this function.

Also, you can't enumerate the child windows of a window to find the edit control because there are so many different window classes that can process this message, you can't just send the message to all the child windows. Each window will overwrite the previous windows data on the clipboard.

An alternative, since you have the parent windows handle, is to send the Ctrl-C keyboard sequence. It's pretty much universal that Ctrl-C means "Copy" in any application. Check into the WM_KEYDOWN and WM_KEYUP messages.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: SendMessage() Function Help Pin
Damian Castroviejo13-Jan-05 6:02
Damian Castroviejo13-Jan-05 6:02 
GeneralPage subtotal in MS Access 2003 Report Pin
steff kamush12-Jan-05 2:35
steff kamush12-Jan-05 2:35 
GeneralRe: Page subtotal in MS Access 2003 Report Pin
Dave Kreskowiak12-Jan-05 3:59
mveDave Kreskowiak12-Jan-05 3:59 
GeneralUpdateLayeredWindow - My great pain :) Pin
Axonn Echysttas11-Jan-05 21:46
Axonn Echysttas11-Jan-05 21:46 
GeneralRe: UpdateLayeredWindow - My great pain :) Pin
Dave Kreskowiak12-Jan-05 4:56
mveDave Kreskowiak12-Jan-05 4:56 
GeneralRe: UpdateLayeredWindow - My great pain :) Pin
Axonn Echysttas12-Jan-05 21:39
Axonn Echysttas12-Jan-05 21:39 
GeneralRe: UpdateLayeredWindow - My great pain :) Pin
Dave Kreskowiak13-Jan-05 2:10
mveDave Kreskowiak13-Jan-05 2:10 
GeneralRe: UpdateLayeredWindow - My great pain :) Pin
Axonn Echysttas13-Jan-05 9:33
Axonn Echysttas13-Jan-05 9:33 
Generalbuttons location while Drag and Drop Pin
Greeky11-Jan-05 21:24
Greeky11-Jan-05 21:24 
GeneralVB and C++ dll Pin
Tomaz Rotovnik11-Jan-05 20:23
Tomaz Rotovnik11-Jan-05 20:23 
GeneralRe: VB and C++ dll Pin
[DK]KiloDunse11-Jan-05 23:50
[DK]KiloDunse11-Jan-05 23:50 
GeneralRe: VB and C++ dll Pin
Tomaz Rotovnik12-Jan-05 4:30
Tomaz Rotovnik12-Jan-05 4:30 
GeneralRe: VB and C++ dll Pin
[DK]KiloDunse12-Jan-05 4:49
[DK]KiloDunse12-Jan-05 4:49 
GeneralRe: VB and C++ dll Pin
Tomaz Rotovnik12-Jan-05 5:47
Tomaz Rotovnik12-Jan-05 5:47 
GeneralPhone Answer Pin
nitin_ion11-Jan-05 20:13
nitin_ion11-Jan-05 20:13 
GeneralConversion of float to hexadecimal value Pin
phijophlip11-Jan-05 19:56
phijophlip11-Jan-05 19:56 
GeneralRe: Conversion of float to hexadecimal value Pin
Dave Kreskowiak12-Jan-05 3:54
mveDave Kreskowiak12-Jan-05 3:54 

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.