Click here to Skip to main content
15,899,474 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to deploy your software (set up) Pin
ago248617-Apr-18 22:57
ago248617-Apr-18 22:57 
GeneralRe: how to deploy your software (set up) Pin
ago248617-Apr-18 23:48
ago248617-Apr-18 23:48 
GeneralRe: how to deploy your software (set up) Pin
Richard MacCutchan17-Apr-18 23:56
mveRichard MacCutchan17-Apr-18 23:56 
GeneralRe: how to deploy your software (set up) Pin
ago248618-Apr-18 0:00
ago248618-Apr-18 0:00 
GeneralRe: how to deploy your software (set up) Pin
ago248618-Apr-18 0:01
ago248618-Apr-18 0:01 
GeneralRe: how to deploy your software (set up) Pin
Richard MacCutchan18-Apr-18 0:13
mveRichard MacCutchan18-Apr-18 0:13 
GeneralRe: how to deploy your software (set up) Pin
ago248618-Apr-18 0:16
ago248618-Apr-18 0:16 
AnswerRe: how to deploy your software (set up) Pin
Gerry Schmitz18-Apr-18 6:24
mveGerry Schmitz18-Apr-18 6:24 
GeneralRe: how to deploy your software (set up) Pin
ago248618-Apr-18 6:52
ago248618-Apr-18 6:52 
GeneralRe: how to deploy your software (set up) Pin
Gerry Schmitz18-Apr-18 9:07
mveGerry Schmitz18-Apr-18 9:07 
GeneralRe: how to deploy your software (set up) Pin
ago248619-Apr-18 21:48
ago248619-Apr-18 21:48 
GeneralRe: how to deploy your software (set up) Pin
Gerry Schmitz20-Apr-18 6:22
mveGerry Schmitz20-Apr-18 6:22 
GeneralRe: how to deploy your software (set up) Pin
ago248620-Apr-18 6:30
ago248620-Apr-18 6:30 
Questionconsolidating four similar classes Pin
Alexander Kindel16-Apr-18 15:23
Alexander Kindel16-Apr-18 15:23 
AnswerRe: consolidating four similar classes Pin
#realJSOP17-Apr-18 2:24
professional#realJSOP17-Apr-18 2:24 
GeneralRe: consolidating four similar classes Pin
Alexander Kindel17-Apr-18 11:34
Alexander Kindel17-Apr-18 11:34 
GeneralRe: consolidating four similar classes Pin
#realJSOP17-Apr-18 12:33
professional#realJSOP17-Apr-18 12:33 
GeneralRe: consolidating four similar classes Pin
Alexander Kindel17-Apr-18 16:53
Alexander Kindel17-Apr-18 16:53 
GeneralRe: consolidating four similar classes Pin
#realJSOP19-Apr-18 2:50
professional#realJSOP19-Apr-18 2:50 
AnswerRe: consolidating four similar classes Pin
Gerry Schmitz18-Apr-18 7:05
mveGerry Schmitz18-Apr-18 7:05 
GeneralRe: consolidating four similar classes Pin
Alexander Kindel18-Apr-18 12:11
Alexander Kindel18-Apr-18 12:11 
GeneralRe: consolidating four similar classes Pin
Gerry Schmitz19-Apr-18 8:50
mveGerry Schmitz19-Apr-18 8:50 
QuestionC# Javascript in WebBrowser Pin
unfolded16-Apr-18 8:37
unfolded16-Apr-18 8:37 
Hello, I try to use an Javascript to autofill a textbox.


C#
HtmlElement headElement = webBrowser3.Document.GetElementsByTagName("head")[0];
HtmlElement scriptElement = webBrowser3.Document.CreateElement("script");
IHTMLScriptElement element = (IHTMLScriptElement)scriptElement.DomElement;
element.text = "function fillbox() { document.getElementById('ember891').value = 'test@test.com' }";
headElement.AppendChild(scriptElement);
webBrowser3.Document.InvokeScript("fillbox");


I try it here: account.sonyentertainmentnetwork.com/home/index.action , when you click the bottom button the register, then start and there the first textbox for the email.

When I open google chrome on this site and enter :
javascript:document.getElementById('ember891').value = 'test@test.de'
in the console, everything is just fine, but it won't work with the c# application. So I want to get it working, that I am able to fill the textbox with a button click per Javascript. Confused | :confused: Confused | :confused:

modified 17-Apr-18 10:39am.

AnswerRe: C# Javascript in WebBrowser Pin
Eddy Vluggen17-Apr-18 0:00
professionalEddy Vluggen17-Apr-18 0:00 
GeneralRe: C# Javascript in WebBrowser Pin
unfolded17-Apr-18 1:06
unfolded17-Apr-18 1:06 

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.