Click here to Skip to main content
15,909,747 members
Home / Discussions / C#
   

C#

 
GeneralRe: Ensuring text is always readable against background... Pin
mav.northwind14-Jan-05 21:24
mav.northwind14-Jan-05 21:24 
GeneralFinal result.. Pin
Member 9615-Jan-05 6:05
Member 9615-Jan-05 6:05 
GeneralRe: Image Property Pin
14-Jan-05 11:33
suss14-Jan-05 11:33 
GeneralSend Javascript command to IE Pin
Chris Chavez14-Jan-05 10:10
sussChris Chavez14-Jan-05 10:10 
GeneralRe: Send Javascript command to IE Pin
Heath Stewart14-Jan-05 13:14
protectorHeath Stewart14-Jan-05 13:14 
GeneralRe: Send Javascript command to IE Pin
Chris Chavez18-Jan-05 3:27
sussChris Chavez18-Jan-05 3:27 
GeneralRe: Send Javascript command to IE Pin
Heath Stewart18-Jan-05 6:05
protectorHeath Stewart18-Jan-05 6:05 
GeneralRe: Send Javascript command to IE Pin
Chris Chavez19-Jan-05 5:09
sussChris Chavez19-Jan-05 5:09 
Thanks for the help Heath, however, I did find a method easier than what you suggested (for my purposes anyway). After loading the current site, I can "send" a javascript command to the IE instance by "navigating" to a javascript command. I've attached a modification of my earlier example.
<br />
public static void openBrowser(string url)<br />
{<br />
	object o = null;<br />
<br />
	//create Internet Explorer Instance, load site<br />
	SHDocVw.InternetExplorer ie = new SHDocVw.InternetExplorerClass();<br />
	IWebBrowserApp wb = (IWebBrowserApp) ie;<br />
	wb.Visible = true; <br />
	wb.Navigate(url, ref o, ref o,ref o, ref o);<br />
<br />
	while(wb.Busy) {}     // wait for page to load<br />
	Thread.Sleep(6000);   // wait 6 more seconds for on-page scan<br />
<br />
	// execute javascript command<br />
	wb.Navigate("javascript:StartInstallation()", ref o, ref o, ref o, ref o);<br />
}<br />


Where, in this instance, my "url" is:
http://office.microsoft.com/search/redir.aspx?AssetID=ES790020331033&Origin=HH011710291033&CTT=5

Thanks again for the help, hope someone else finds this useful in the future.

Chris
GeneralEthical Coding Style Pin
Wayne Phipps14-Jan-05 8:22
Wayne Phipps14-Jan-05 8:22 
GeneralRe: Ethical Coding Style Pin
Christian Graus14-Jan-05 8:28
protectorChristian Graus14-Jan-05 8:28 
GeneralRe: Ethical Coding Style Pin
Wayne Phipps14-Jan-05 8:41
Wayne Phipps14-Jan-05 8:41 
GeneralRe: Ethical Coding Style Pin
Christian Graus14-Jan-05 9:07
protectorChristian Graus14-Jan-05 9:07 
GeneralRe: Ethical Coding Style Pin
Wayne Phipps14-Jan-05 23:12
Wayne Phipps14-Jan-05 23:12 
GeneralRe: Ethical Coding Style Pin
Christian Graus15-Jan-05 9:45
protectorChristian Graus15-Jan-05 9:45 
GeneralAngle between 2 vectors Pin
flipper8614-Jan-05 7:30
flipper8614-Jan-05 7:30 
GeneralRe: Angle between 2 vectors Pin
Dave Kreskowiak14-Jan-05 7:49
mveDave Kreskowiak14-Jan-05 7:49 
QuestionHow do you determine MSAccess version? Pin
Hostia14-Jan-05 5:12
Hostia14-Jan-05 5:12 
AnswerRe: How do you determine MSAccess version? Pin
Rob Graham14-Jan-05 11:50
Rob Graham14-Jan-05 11:50 
GeneralProblems reading through XML file with XPathNavigator and XPathNodeIterator Pin
huckfinn14-Jan-05 4:57
huckfinn14-Jan-05 4:57 
GeneralRe: Problems reading through XML file with XPathNavigator and XPathNodeIterator Pin
leppie14-Jan-05 5:55
leppie14-Jan-05 5:55 
GeneralCOM in C# (regarding MSMQ) Pin
Esmo200014-Jan-05 4:44
Esmo200014-Jan-05 4:44 
GeneralExtracting Data From Text Files Pin
lizim14-Jan-05 3:52
lizim14-Jan-05 3:52 
GeneralRe: Extracting Data From Text Files Pin
Nick Parker14-Jan-05 4:09
protectorNick Parker14-Jan-05 4:09 
GeneralRe: Extracting Data From Text Files Pin
lizim14-Jan-05 4:17
lizim14-Jan-05 4:17 
GeneralRe: Extracting Data From Text Files Pin
Wayne Phipps14-Jan-05 22:59
Wayne Phipps14-Jan-05 22:59 

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.