Click here to Skip to main content
15,902,114 members
Home / Discussions / C#
   

C#

 
QuestionRe: Red Five Labs + C# Pin
jojoba201126-Feb-12 4:01
jojoba201126-Feb-12 4:01 
AnswerRe: Red Five Labs + C# Pin
OriginalGriff26-Feb-12 4:15
mveOriginalGriff26-Feb-12 4:15 
QuestionRe: Red Five Labs + C# Pin
jojoba201126-Feb-12 4:23
jojoba201126-Feb-12 4:23 
AnswerRe: Red Five Labs + C# Pin
Dan Mos26-Feb-12 9:00
Dan Mos26-Feb-12 9:00 
QuestionRe: Red Five Labs + C# Pin
jojoba201126-Feb-12 23:18
jojoba201126-Feb-12 23:18 
AnswerRe: Red Five Labs + C# Pin
Pete O'Hanlon27-Feb-12 0:08
mvePete O'Hanlon27-Feb-12 0:08 
Questioncant read joystick data Managed DX, SlimDX Pin
DerecL25-Feb-12 13:07
DerecL25-Feb-12 13:07 
QuestionHelp need regarding SendMessageTimeout for IE window Pin
vishal nerkar25-Feb-12 7:51
vishal nerkar25-Feb-12 7:51 
Mine is windows form application in C#. Application find some page on internet e.g. IE window. And then send some value to text of the IE page.

I have used below code for the same. But some how SendMessageTimeout function return nothing, without error.

private IHTMLDocument2 documentFromDOM()
{
Process[] processes = Process.GetProcessesByName("iexplore");
if (processes.Length > 0)
{
IntPtr hWnd = processes[0].MainWindowHandle;
int lngMsg = 0;
int lRes;
EnumProc proc = new EnumProc(EnumWindows);
EnumChildWindows(hWnd, proc, ref hWnd);
if (!hWnd.Equals(IntPtr.Zero))
{
lngMsg = RegisterWindowMessage("WM_HTML_GETOBJECT");
if (lngMsg != 0)
{
SendMessageTimeout(hWnd, lngMsg, 0, 0, SMTO_ABORTIFHUNG, 1000, out lRes);
if (!(bool)(lRes == 0))
{
int hr = ObjectFromLresult(lRes, ref IID_IHTMLDocument, 0, ref document);
if ((bool)(document == null))
{
MessageBox.Show("No IHTMLDocument Found!", "Warning");
}
}
}
}
}
return document;
}

Any help is welcome. Or if somebody has an C# example of SendMessageTimeout with IE window to retrieve IE HTML will be greatful.
AnswerRe: Help need regarding SendMessageTimeout for IE window Pin
DaveyM6925-Feb-12 8:35
professionalDaveyM6925-Feb-12 8:35 
GeneralRe: Help need regarding SendMessageTimeout for IE window Pin
vishal nerkar25-Feb-12 20:37
vishal nerkar25-Feb-12 20:37 
GeneralRe: Help need regarding SendMessageTimeout for IE window Pin
DaveyM6925-Feb-12 23:20
professionalDaveyM6925-Feb-12 23:20 
GeneralRe: Help need regarding SendMessageTimeout for IE window Pin
vishal nerkar26-Feb-12 3:11
vishal nerkar26-Feb-12 3:11 
Questionhelp me: when installing the management software, often times it built the database into it, so how do I do that? thank you! Pin
ajax_vn25-Feb-12 5:56
ajax_vn25-Feb-12 5:56 
AnswerRe: help me: when installing the management software, often times it built the database into it, so how do I do that? thank you! Pin
Dave Kreskowiak25-Feb-12 6:21
mveDave Kreskowiak25-Feb-12 6:21 
AnswerRe: help me: when installing the management software, often times it built the database into it, so how do I do that? thank you! Pin
Abhinav S25-Feb-12 17:16
Abhinav S25-Feb-12 17:16 
QuestionGet Active mdichild form Pin
Mr.Kode25-Feb-12 2:11
Mr.Kode25-Feb-12 2:11 
AnswerRe: Get Active mdichild form Pin
Alisaunder25-Feb-12 2:49
Alisaunder25-Feb-12 2:49 
GeneralRe: Get Active mdichild form Pin
Mr.Kode25-Feb-12 22:36
Mr.Kode25-Feb-12 22:36 
GeneralRe: Get Active mdichild form Pin
Alisaunder26-Feb-12 13:13
Alisaunder26-Feb-12 13:13 
Questionto filter datagridview records having column having null value Pin
polachan24-Feb-12 9:06
polachan24-Feb-12 9:06 
AnswerRe: to filter datagridview records having column having null value Pin
Eddy Vluggen24-Feb-12 9:42
professionalEddy Vluggen24-Feb-12 9:42 
AnswerRe: to filter datagridview records having column having null value Pin
polachan28-Feb-12 23:42
polachan28-Feb-12 23:42 
GeneralRe: to filter datagridview records having column having null value Pin
Eddy Vluggen29-Feb-12 0:26
professionalEddy Vluggen29-Feb-12 0:26 
Questiondata akses to mySql using c# Pin
tian's emo24-Feb-12 2:52
tian's emo24-Feb-12 2:52 
AnswerRe: data akses to mySql using c# Pin
R. Giskard Reventlov24-Feb-12 5:32
R. Giskard Reventlov24-Feb-12 5:32 

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.