Click here to Skip to main content
15,916,417 members
Home / Discussions / C#
   

C#

 
AnswerRe: WindowScraping Pin
XRaheemX10-Oct-05 5:06
XRaheemX10-Oct-05 5:06 
QuestionTaskbar Applications Pin
jgallen238-Oct-05 11:13
jgallen238-Oct-05 11:13 
QuestionRichTextBox Qeustion Pin
Mohammad A Gdeisat8-Oct-05 10:45
Mohammad A Gdeisat8-Oct-05 10:45 
AnswerRe: RichTextBox Qeustion Pin
mav.northwind9-Oct-05 0:31
mav.northwind9-Oct-05 0:31 
QuestionThreads Pin
ShimiG8-Oct-05 8:32
ShimiG8-Oct-05 8:32 
AnswerRe: Threads Pin
S. Senthil Kumar8-Oct-05 20:07
S. Senthil Kumar8-Oct-05 20:07 
GeneralRe: Threads Pin
ShimiG9-Oct-05 4:27
ShimiG9-Oct-05 4:27 
GeneralRe: Threads Pin
S. Senthil Kumar9-Oct-05 5:01
S. Senthil Kumar9-Oct-05 5:01 
GeneralRe: Threads Pin
ShimiG9-Oct-05 5:16
ShimiG9-Oct-05 5:16 
GeneralRe: Threads Pin
S. Senthil Kumar9-Oct-05 19:10
S. Senthil Kumar9-Oct-05 19:10 
AnswerRe: Threads Pin
Member 17998439-Oct-05 5:56
Member 17998439-Oct-05 5:56 
QuestionFile turns into Form?? Generates Form for Generic Class?? Why?? Pin
Anonymous8-Oct-05 6:56
Anonymous8-Oct-05 6:56 
AnswerRe: File turns into Form?? Generates Form for Generic Class?? Why?? Pin
Dave Kreskowiak8-Oct-05 19:23
mveDave Kreskowiak8-Oct-05 19:23 
QuestionMaking animtion in picture box Pin
Member 20302058-Oct-05 5:57
Member 20302058-Oct-05 5:57 
AnswerRe: Making animtion in picture box Pin
Libor Tinka9-Oct-05 0:46
Libor Tinka9-Oct-05 0:46 
QuestionDisplaying the Window Title when doing Alt-Tab Pin
BlueWavz8-Oct-05 5:02
BlueWavz8-Oct-05 5:02 
AnswerRe: Displaying the Window Title when doing Alt-Tab Pin
XRaheemX10-Oct-05 5:10
XRaheemX10-Oct-05 5:10 
QuestionMath.Ceiling for decimal value Pin
hasanali008-Oct-05 4:46
hasanali008-Oct-05 4:46 
AnswerRe: Math.Ceiling for decimal value Pin
Robert Rohde8-Oct-05 6:54
Robert Rohde8-Oct-05 6:54 
GeneralRe: Math.Ceiling for decimal value Pin
hasanali008-Oct-05 8:05
hasanali008-Oct-05 8:05 
GeneralRe: Math.Ceiling for decimal value Pin
Robert Rohde8-Oct-05 8:11
Robert Rohde8-Oct-05 8:11 
GeneralRe: Math.Ceiling for decimal value Pin
hasanali009-Oct-05 0:22
hasanali009-Oct-05 0:22 
QuestionHow to scroll an image? Pin
E6AD8-Oct-05 4:06
E6AD8-Oct-05 4:06 
AnswerRe: How to scroll an image? Pin
Christian Graus8-Oct-05 4:15
protectorChristian Graus8-Oct-05 4:15 
QuestionHow To Convert IHTMLElement to IHTMLElementRender Pin
prochf8-Oct-05 2:54
prochf8-Oct-05 2:54 
Rose | [Rose] Hi,
I am having a problem with using the IHTMLElementRender in my C# Application.
First I redefine IHTMLElementRender as below
[Guid("3050f669-98b5-11cf-bb82-00aa00bdce0b"),
InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
ComVisible(true),
ComImport]
interface IHTMLElementRender
{
void DrawToDC([In] IntPtr hDC);
void SetDocumentPrinter([In, MarshalAs(UnmanagedType.BStr)] string bstrPrinterName, [In] IntPtr hDC);
On the main form of the application I am have the folowing code
InternetExplorer ie=new InternetExplorer();
object v1="",v2="",v3="",v4="";
ie.Visible=true;
string strUrl="http://blogs.msdn.com/rfarber/archive/2004/10/12/240943.aspx";
ie.Navigate(strUrl,ref v1,ref v2,ref v3,ref v4);
Thread.Sleep(5000);
IHTMLDocument2 idoc=(IHTMLDocument2)ie.Document;
//IHTMLElement el=(IHTMLElement)idoc.body;
//IHTMLElementRender ren=(IHTMLElementRender)el;//System.InvalidCastException
IHTMLElementRender ren=(IHTMLElementRender)idoc.body.GetType().GetInterface("IHTMLElementRender",true);//ren returns as null

Is there any solutions to my problem?
thaks for any help.


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.