Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to populate bool array with all true values Pin
jills5-Oct-05 19:38
jills5-Oct-05 19:38 
GeneralRe: How to populate bool array with all true values Pin
Stefan Troschuetz8-Oct-05 1:42
Stefan Troschuetz8-Oct-05 1:42 
Questionremote information processing Pin
andre.pietsch5-Oct-05 1:46
andre.pietsch5-Oct-05 1:46 
QuestionImage Rotation Pin
PHDENG815-Oct-05 1:39
PHDENG815-Oct-05 1:39 
Questionmove form without title bar Pin
Rizwan Bashir4-Oct-05 23:59
Rizwan Bashir4-Oct-05 23:59 
AnswerRe: move form without title bar Pin
PHDENG815-Oct-05 1:31
PHDENG815-Oct-05 1:31 
Questionjoining excel sheet to c#(Ado.net) but giving error Pin
Member 23064614-Oct-05 23:23
Member 23064614-Oct-05 23:23 
QuestionHow To Convert IHTMLElement to IHTMLElementRender Pin
prochf4-Oct-05 22:04
prochf4-Oct-05 22:04 
First I redefine the IHTMLElementRender interface:
[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);
};
and the following code is baseing on C#
I am not sure what exactly I am doing wrong:
Process m_Proc=Process.Start("IExplore.exe");
//this.WindowState=FormWindowState.Minimized;
Thread.Sleep(500);
InternetExplorer m_IE = null;
while(m_IE==null)
{
foreach(InternetExplorer Browser in sws)
{
if(Browser.HWND == (int)m_Proc.MainWindowHandle)
{
m_IE = Browser;
break;
}

}
Application.DoEvents();
}
if(m_IE==null)
{
MessageBox.Show("no InternetExplorer open,please try agin");
return;
}
object v1="",v2="",v3="",v4="";
m_IE.Navigate("http://mail.163.com",ref v1,ref v2,ref v3,ref v4);
IHTMLDocument2 doc=(IHTMLDocument2)m_IE.Document;
if(doc==null)
{
MessageBox.Show("why document is null?");
return;
}
IHTMLElement em=(IHTMLElement)doc.body;
if(em==null)
{
MessageBox.Show("IHTMLElement is null");
return;
}
AxWebBrowserSystem.InvalidCastException
But when I Use AxWebBrowser control
the Cast(IHTMLElementRender ren=(IHTMLElementRender)em;) is ok
Thanks for any help!Rose | [Rose]
QuestionNeed a recursive logic Pin
Chetan Ranpariya4-Oct-05 21:34
Chetan Ranpariya4-Oct-05 21:34 
QuestionProcess terminating event Pin
Prashant Gadhave4-Oct-05 21:31
Prashant Gadhave4-Oct-05 21:31 
AnswerRe: Process terminating event Pin
Stefan Troschuetz4-Oct-05 21:55
Stefan Troschuetz4-Oct-05 21:55 
QuestionAsynchronous Callback Pin
Member 22045224-Oct-05 20:53
Member 22045224-Oct-05 20:53 
AnswerRe: Asynchronous Callback Pin
Stefan Troschuetz4-Oct-05 22:14
Stefan Troschuetz4-Oct-05 22:14 
AnswerRe: Asynchronous Callback Pin
S. Senthil Kumar5-Oct-05 1:25
S. Senthil Kumar5-Oct-05 1:25 
QuestionSome problem regarding access permission Pin
akshayswaroop4-Oct-05 19:32
akshayswaroop4-Oct-05 19:32 
QuestionPlaying dat files through C# code Pin
Prashant Gadhave4-Oct-05 18:56
Prashant Gadhave4-Oct-05 18:56 
AnswerRe: Playing dat files through C# code Pin
leppie4-Oct-05 20:47
leppie4-Oct-05 20:47 
QuestionCreating a xaml project with visual c# Pin
TssPrasad4-Oct-05 18:53
sussTssPrasad4-Oct-05 18:53 
QuestionRe: Creating a xaml project with visual c# Pin
David Stone4-Oct-05 20:51
sitebuilderDavid Stone4-Oct-05 20:51 
QuestionCellChangedDataEvent Pin
RoboIchi4-Oct-05 18:32
RoboIchi4-Oct-05 18:32 
Question2 server Pin
aarontan4-Oct-05 18:27
aarontan4-Oct-05 18:27 
AnswerRe: 2 server Pin
ehuysamer4-Oct-05 22:36
ehuysamer4-Oct-05 22:36 
GeneralRe: 2 server Pin
Anonymous4-Oct-05 23:39
Anonymous4-Oct-05 23:39 
GeneralRe: 2 server Pin
ehuysamer5-Oct-05 9:24
ehuysamer5-Oct-05 9:24 
GeneralRe: 2 server Pin
aarontan5-Oct-05 17:26
aarontan5-Oct-05 17:26 

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.