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

Visual Basic

 
GeneralRe: Parent - Child Question Pin
Ian Shlasko31-Aug-07 12:13
Ian Shlasko31-Aug-07 12:13 
GeneralRe: Parent - Child Question Pin
Trupti Mehta31-Aug-07 18:20
Trupti Mehta31-Aug-07 18:20 
GeneralRe: Parent - Child Question Pin
Ian Shlasko31-Aug-07 19:26
Ian Shlasko31-Aug-07 19:26 
Questiontextbox border color Pin
manisghouri29-Aug-07 5:43
manisghouri29-Aug-07 5:43 
AnswerRe: textbox border color Pin
Dave Kreskowiak29-Aug-07 7:05
mveDave Kreskowiak29-Aug-07 7:05 
GeneralRe: textbox border color Pin
manisghouri30-Aug-07 6:07
manisghouri30-Aug-07 6:07 
QuestionWorking with selected text in 2 different apps. Pin
programmerwantabe29-Aug-07 4:42
programmerwantabe29-Aug-07 4:42 
AnswerRe: Working with selected text in 2 different apps. Pin
Dave Kreskowiak29-Aug-07 8:34
mveDave Kreskowiak29-Aug-07 8:34 
programmerwantabe wrote:
1) Select some text let's say in App 1.
2) Switch to App 2, but as the switch occurs, copy the selected text from App 1 to the clipboard without the user pressing Ctrl-C.


Are you writing this "App 1"? If not, you'll find this to be a very difficult thing to do. When you switch apps, it's too late to tell the previous app to copy it's text to the clipboard. There is also no API function to tell you which window HAD the focus when your app gets the focus. So, you have to write some hook code to track which window has the current focus, all the time. When your app finally gets the focus, you have to look at this value to get the handle of the window that HAD the focus. Then you can use that to tell the previous window to copy it's contents to the clipboard.



A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: Working with selected text in 2 different apps. Pin
programmerwantabe29-Aug-07 9:37
programmerwantabe29-Aug-07 9:37 
QuestionCross-thread operation not valid: Pin
Cory Kimble29-Aug-07 4:33
Cory Kimble29-Aug-07 4:33 
AnswerRe: Cross-thread operation not valid: Pin
Luc Pattyn29-Aug-07 6:44
sitebuilderLuc Pattyn29-Aug-07 6:44 
GeneralRe: Cross-thread operation not valid: Pin
Cory Kimble29-Aug-07 9:27
Cory Kimble29-Aug-07 9:27 
GeneralRe: Cross-thread operation not valid: Pin
Luc Pattyn29-Aug-07 9:32
sitebuilderLuc Pattyn29-Aug-07 9:32 
GeneralRe: Cross-thread operation not valid: Pin
Cory Kimble29-Aug-07 10:03
Cory Kimble29-Aug-07 10:03 
GeneralRe: Cross-thread operation not valid: Pin
Luc Pattyn29-Aug-07 11:22
sitebuilderLuc Pattyn29-Aug-07 11:22 
GeneralRe: Cross-thread operation not valid: [modified] Pin
Cory Kimble30-Aug-07 4:08
Cory Kimble30-Aug-07 4:08 
QuestionGet file ext. from database Pin
jds120729-Aug-07 3:46
jds120729-Aug-07 3:46 
AnswerRe: Get file ext. from database Pin
Dave Kreskowiak29-Aug-07 7:49
mveDave Kreskowiak29-Aug-07 7:49 
GeneralRe: Get file ext. from database Pin
jds120729-Aug-07 8:15
jds120729-Aug-07 8:15 
GeneralRe: Get file ext. from database Pin
Dave Kreskowiak29-Aug-07 8:30
mveDave Kreskowiak29-Aug-07 8:30 
Questionhelp Pin
somunu29-Aug-07 1:49
somunu29-Aug-07 1:49 
AnswerRe: help Pin
Christian Graus29-Aug-07 2:04
protectorChristian Graus29-Aug-07 2:04 
QuestionProblem Deploying my Application with Access with the Correct Mappings Pin
Vimalsoft(Pty) Ltd29-Aug-07 0:18
professionalVimalsoft(Pty) Ltd29-Aug-07 0:18 
AnswerRe: Problem Deploying my Application with Access with the Correct Mappings Pin
Dave Kreskowiak29-Aug-07 6:54
mveDave Kreskowiak29-Aug-07 6:54 
GeneralRe: Problem Deploying my Application with Access with the Correct Mappings Pin
Vimalsoft(Pty) Ltd29-Aug-07 20:09
professionalVimalsoft(Pty) Ltd29-Aug-07 20:09 

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.