Post by The Hated Man on Oct 6, 2015 6:27:31 GMT 10
How can I do it ?
Nick change Alsahhim to The Hated Man.
C# , VB.Net , Adobe
Turkish Coder
|
|
Post by ranilwallace on Oct 6, 2015 7:42:09 GMT 10
Dude, this is a forum, not givemethecode.com. It would be nice if you stop spamming the forums like that cause its not cool! We are always glad to help you but do you even understand the code we give you or do you just copy and paste. Point is, sometimes you have to try and figure things yourself, understand the logics, thats what programming is all about. And I think awesomium has a wiki or documentation.. Do you want me to show you how to find the documentation tooo?? LOL.
Ranil, Lauve Tech
|
|
Post by Nathan Lecompte on Oct 6, 2015 17:38:53 GMT 10
The idea of the forum is to help you when you get stuck. Which means you need to try things out yourself in the first place and then if that doesn't work out, then you need to look for tutorials on how to do that certain task. If you've found a way to create your task but get stuck, then you ask for help on the forum. If all you ask is "How do you do it?" and expect us to have already got the code ready for you to copy and paste, that is definitely not the case. A short question like that will receive a short answer, which will most likely always result in links to tutorials and searches. Hope you understand And to answer your question, luckily for you; most of us have made similar projects to what you're making with the similar functions, so here's an explanation and an example: Awesomium doesn't have a specific "find" function built-in unfortunately, however you can use JavaScript instead. The ExecuteJavascript function lets you execute JavaScript. Now all you need is some JavaScript to simulate highlighting a specific word that the user has entered. Hope this gives you an idea, if you don't know any JavaScript you can learn it from anywhere on the internet Here's an example of a JavaScript function which does a similar thing to what you want: If CaseSensitiveCheck = True Then WebControl1.ExecuteJavascript("window.find(""" + TextToFind.Text + """, " + CaseSensitiveCheck.Checked.ToString().ToLower() + ", true);") Else WebControl1.ExecuteJavascript("window.find(""" + TextToFind.Text + """, " + CaseSensitiveCheck.Checked.ToString().ToLower() + ", false);") End If
- CaseSensitiveCheck is a CheckBox which can be used to narrow down results by finding text with or without Capitals. - WebControl1 is your Awesomium WebControl. - TextToFind is the TextBox with the text entered by the user to be found in WebControl1.Hope this helps!
|
|
Post by The Hated Man on Oct 7, 2015 6:08:24 GMT 10
Sorry guys. I'm sorry for everything. I search, find, apply. I want to help you When I could not reach a conclusion. I could present my project. I'm an intern and my first working day. I learn a lot here. Thank you very much for everything.
Nick change Alsahhim to The Hated Man.
C# , VB.Net , Adobe
Turkish Coder
|
|