Click here to Skip to main content
15,918,268 members
Home / Discussions / C#
   

C#

 
GeneralRe: error could not access cdo.message Pin
Nick Parker30-Jun-04 8:36
protectorNick Parker30-Jun-04 8:36 
Generalmultiple splitting Pin
blankg30-Jun-04 8:21
blankg30-Jun-04 8:21 
GeneralSerializing and ArrayList Pin
Anonymous30-Jun-04 7:43
Anonymous30-Jun-04 7:43 
GeneralRe: Serializing and ArrayList Pin
Heath Stewart30-Jun-04 8:52
protectorHeath Stewart30-Jun-04 8:52 
GeneralExplorer DragImage Part III Pin
TylerBrinks30-Jun-04 6:36
TylerBrinks30-Jun-04 6:36 
GeneralRe: Explorer DragImage Part III Pin
TylerBrinks30-Jun-04 8:26
TylerBrinks30-Jun-04 8:26 
QuestionControl handles via drag event ? Pin
Guinness4Strength30-Jun-04 6:22
Guinness4Strength30-Jun-04 6:22 
AnswerRe: Control handles via drag event ? Pin
Nick Parker30-Jun-04 6:39
protectorNick Parker30-Jun-04 6:39 
If you want to paste data into a textbox, you will need to get the handle to the window (i.e., textbox) you want to access and then send the appropriate message. I did something similar the other day in C++ with Outlook so I can get the count of the items within the Outlook address book. Here is an example of what I did:

HWND hwnd;
CString text, msg;
text = "Address Book";
hwnd = ::FindWindow(NULL, text);
if(hwnd != NULL)
{
    HWND hwnd2;
    hwnd2 = ::FindWindowEx(hwnd, NULL, "OUTEXVLB", NULL);
    if(hwnd2 != NULL)
    {
        LRESULT num;
        num = ::SendMessage(hwnd2, LB_GETCOUNT, (WPARAM)0, (LPARAM)0);

        if(num == 1)
            msg.Format("Results: %i entry.", num);
        else if(num > 1)
            msg.Format("Results: %i entries.", num);
        else
            msg.Format("Results: No results.");
        SetDlgItemText(IDC_Results, msg);
    }
    else
    {
        msg.Format("Results: No results.");
        SetDlgItemText(IDC_Results, msg);
    }
}
else
{
    msg.Format("No results.");
    SetDlgItemText(IDC_Results, msg);
}




- Nick Parker
My Blog | My Articles

GeneralRe: Control handles via drag event ? Pin
Guinness4Strength30-Jun-04 7:02
Guinness4Strength30-Jun-04 7:02 
GeneralRe: Control handles via drag event ? Pin
Nick Parker30-Jun-04 8:03
protectorNick Parker30-Jun-04 8:03 
AnswerRe: Control handles via drag event ? Pin
StealthyMark4-Jul-04 7:30
StealthyMark4-Jul-04 7:30 
GeneralQuestion on simple binding Pin
Brett Slaski30-Jun-04 4:26
Brett Slaski30-Jun-04 4:26 
GeneralRe: Question on simple binding Pin
Heath Stewart30-Jun-04 8:46
protectorHeath Stewart30-Jun-04 8:46 
GeneralRe: Question on simple binding Pin
Brett Slaski30-Jun-04 9:24
Brett Slaski30-Jun-04 9:24 
GeneralRe: Question on simple binding Pin
Heath Stewart30-Jun-04 18:08
protectorHeath Stewart30-Jun-04 18:08 
GeneralRe: Question on simple binding Pin
Brett Slaski1-Jul-04 2:44
Brett Slaski1-Jul-04 2:44 
GeneralRe: Question on simple binding Pin
Heath Stewart1-Jul-04 4:36
protectorHeath Stewart1-Jul-04 4:36 
GeneralRe: Question on simple binding Pin
Brett Slaski1-Jul-04 5:54
Brett Slaski1-Jul-04 5:54 
GeneralRe: Question on simple binding Pin
Heath Stewart1-Jul-04 17:48
protectorHeath Stewart1-Jul-04 17:48 
GeneralRe: Question on simple binding Pin
Brett Slaski2-Jul-04 3:08
Brett Slaski2-Jul-04 3:08 
GeneralRe: Question on simple binding Pin
Heath Stewart2-Jul-04 3:40
protectorHeath Stewart2-Jul-04 3:40 
GeneralRe: Question on simple binding Pin
Brett Slaski2-Jul-04 9:25
Brett Slaski2-Jul-04 9:25 
GeneralOOP implemenation question Pin
mealnumberone30-Jun-04 2:27
mealnumberone30-Jun-04 2:27 
GeneralRe: OOP implemenation question Pin
Colin Angus Mackay30-Jun-04 3:15
Colin Angus Mackay30-Jun-04 3:15 
GeneralRe: OOP implemenation question Pin
mealnumberone30-Jun-04 7:13
mealnumberone30-Jun-04 7:13 

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.