Click here to Skip to main content
15,910,878 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# basic Exercise Help Pin
Dave Kreskowiak27-Oct-06 7:38
mveDave Kreskowiak27-Oct-06 7:38 
GeneralRe: C# basic Exercise Help Pin
ednrgc27-Oct-06 7:39
ednrgc27-Oct-06 7:39 
GeneralRe: C# basic Exercise Help Pin
BoneSoft27-Oct-06 10:17
BoneSoft27-Oct-06 10:17 
AnswerRe: C# basic Exercise Help Pin
Dan Neely27-Oct-06 8:18
Dan Neely27-Oct-06 8:18 
QuestionAsync jScript and mshtml Pin
sterenzi27-Oct-06 5:19
sterenzi27-Oct-06 5:19 
AnswerRe: Async jScript and mshtml Pin
led mike27-Oct-06 5:25
led mike27-Oct-06 5:25 
GeneralRe: Async jScript and mshtml Pin
sterenzi27-Oct-06 5:40
sterenzi27-Oct-06 5:40 
GeneralRe: Async jScript and mshtml Pin
sterenzi27-Oct-06 5:46
sterenzi27-Oct-06 5:46 
OK, if you try the following code you can get the error,notice that I'm not sure this is the best way to follow...

delegate Object execAsyncJScriptDelegate(string param, string lang);

private void button2_Click(object sender, System.EventArgs e)
{
SHDocVw.InternetExplorer oIe;
oIe = new SHDocVw.InternetExplorerClass();
Object strUrl = @"C:\blank.htm";
Object o=null;
oIe.Navigate2(ref strUrl ,ref o,ref o,ref o,ref o);
mshtml.HTMLDocument doc = (mshtml.HTMLDocument) oIe.Document;
try
{
execAsyncJScriptDelegate jFunc = new execAsyncJScriptDelegate(doc.parentWindow.execScript);
IAsyncResult ar = jFunc.BeginInvoke("alert('Message from JScript')", "JScript", null, null);
MessageBox.Show("Done");
oIe.Quit();
while (!ar.IsCompleted)
{
Application.DoEvents();
}
jFunc.EndInvoke(ar);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
GeneralRe: Async jScript and mshtml Pin
led mike27-Oct-06 6:57
led mike27-Oct-06 6:57 
QuestionWin application, web services, arrays of objects... Pin
Sandrina27-Oct-06 4:23
Sandrina27-Oct-06 4:23 
AnswerRe: Win application, web services, arrays of objects... Pin
Dustin Metzgar27-Oct-06 8:36
Dustin Metzgar27-Oct-06 8:36 
GeneralRe: Win application, web services, arrays of objects... Pin
Sandrina29-Oct-06 23:04
Sandrina29-Oct-06 23:04 
QuestionNeed Serious Help!!! Pin
Niiiissssshhhhhuuuuu27-Oct-06 4:20
Niiiissssshhhhhuuuuu27-Oct-06 4:20 
QuestionInvoke Constructor method of any class that extends an Interface without having to specifically cast each class Pin
Jost Pedro27-Oct-06 4:14
Jost Pedro27-Oct-06 4:14 
AnswerRe: Invoke Constructor method of any class that extends an Interface without having to specifically cast each class Pin
led mike27-Oct-06 5:25
led mike27-Oct-06 5:25 
AnswerRe: Invoke Constructor method of any class that extends an Interface without having to specifically cast each class Pin
MGoettmann27-Oct-06 6:18
MGoettmann27-Oct-06 6:18 
AnswerRe: Invoke Constructor method of any class that extends an Interface without having to specifically cast each class Pin
S. Senthil Kumar28-Oct-06 4:11
S. Senthil Kumar28-Oct-06 4:11 
Questiongetting current logged-in user name of windows Pin
saqib8227-Oct-06 3:36
saqib8227-Oct-06 3:36 
AnswerRe: getting current logged-in user name of windows Pin
Eric Dahlvang27-Oct-06 4:00
Eric Dahlvang27-Oct-06 4:00 
QuestionIs the virtual keyword really necessary? Pin
Shy Agam27-Oct-06 3:07
Shy Agam27-Oct-06 3:07 
AnswerRe: Is the virtual keyword really necessary? Pin
Rob Philpott27-Oct-06 4:14
Rob Philpott27-Oct-06 4:14 
GeneralRe: Is the virtual keyword really necessary? Pin
Shy Agam27-Oct-06 4:19
Shy Agam27-Oct-06 4:19 
GeneralRe: Is the virtual keyword really necessary? Pin
Rob Philpott27-Oct-06 4:31
Rob Philpott27-Oct-06 4:31 
AnswerRe: Is the virtual keyword really necessary? Pin
Guffa27-Oct-06 4:34
Guffa27-Oct-06 4:34 
GeneralRe: Is the virtual keyword really necessary? Pin
Shy Agam27-Oct-06 4:36
Shy Agam27-Oct-06 4:36 

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.