16,004,778 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Nguyen Tuan (Top 16 by date)
Nguyen Tuan
9-Nov-14 9:34am
View
Hi Liju Sankar,
Your solution has some problem:
- How does not the user allow reading data (Sql CE or XML file)
- How do you sync to Server??
If you have small application like that, you can send to me.
Thanks
Nguyen Tuan
5-Nov-14 1:23am
View
Please can you give me an example?
Nguyen Tuan
13-Jul-11 13:09pm
View
I'm sorry. I program in Windows Form, I want to access WebBrowser from other thread in my app
Nguyen Tuan
20-May-11 2:51am
View
Thanks OriginalGriff,
I use Timers to elapse my function (ex: after 5 seconds, i want to repeat 2 above steps)
Nguyen Tuan
18-Apr-11 13:08pm
View
Thanks John Simmons,
I see. I controlled 2 actions. But i can't force action formB after finish action formB. You have some example???
Nguyen Tuan
17-Apr-11 14:01pm
View
Hi Fabio V Silva,
I used Timer but my app runs slowly (CPU load 100% at 6th second). Now i want to optimize it. I think Thread solve this solution??????
Nguyen Tuan
17-Apr-11 13:49pm
View
Hi Fabio V Silva,
My app:
private Thread threadGet;
private Thread threadSet;
private string strHTML = "";
private void GetHTML()
{
try
{
HtmlWindow mainFrame = webBrowserTest.Document.Window.Frames["mainFrame"];
HtmlElement element = mainFrame.Document.GetElementById("element");
strHTML = (element.OuterHtml != null) ? element.OuterHtml : "";
}
catch {}
}
private void SetAreaText()
{
txtHTML.Text = strHTML;
}
private void cmdGetHtml_Click(object sender, EventArgs e)
{
threadGet = new Thread(GetHTML);
threadSet = new Thread(SetAreaText);
threadGet.Start();
threadSet.Start();
}
When i click button cmdGetHtml, HTML shows in txtHTML.
Now i want to auto click button 5 seconds interval??
Note: I fixed safe-thread in Windows Control
Nguyen Tuan
17-Apr-11 13:37pm
View
Hi Albin Abel,
Not create new thread. I want use created thread.
I use Timer (Windows Control) but my app runs slowly. I thinks thread is solutions
Nguyen Tuan
17-Apr-11 11:47am
View
Hi John Simmons,
Have you a small example???
Nguyen Tuan
17-Apr-11 11:47am
View
Hi Fabio V Silva,
Have you a small example???
Nguyen Tuan
13-Apr-11 4:06am
View
I think this is not a solution
Nguyen Tuan
1-Apr-11 6:45am
View
Message in link http://bucarotechelp.com/design/jseasy/images/msgbox2.jpg. Help me??
Nguyen Tuan
17-Mar-11 11:24am
View
Deleted
I use:
HtmlDocument objHTMLDoc = webBrowser.Document;
string strUrl = webBrowser.Url.ToString(); // www.abc.com/main.aspx
strUrl = strUrl.Replace("main.aspx", "GetPrice.aspx?hidPID=123&hidC=5");
string strContent = "";
HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(strUrl);
myRequest.Method = "GET";
myRequest.ContentType = "text/html; charset=utf-8";
myRequest.Referer = webBrowser.Url.ToString();
myRequest.CookieContainer = new CookieContainer();
Uri uri = new Uri(strUrl);
myRequest.CookieContainer.SetCookies(uri, webBrowser.Document.Cookie);
HttpWebResponse myResponse = (HttpWebResponse)myRequest.GetResponse();
using (StreamReader sr = new StreamReader(myResponse.GetResponseStream()))
{
strContent = sr.ReadToEnd();
sr.Close();
}
myResponse.Close();
But content is empty not
<script language="javascript">
var NameP = "Product 123";
var CodeP = "123";
var UnitP = "123,456";
</script>
Can you help me????
Nguyen Tuan
17-Mar-11 5:51am
View
Thanks, but this is not solution. I'm using C#
Nguyen Tuan
17-Mar-11 5:51am
View
Thanks, but this is not solution. I'm using C#
Nguyen Tuan
17-Mar-11 5:50am
View
the button login and button get data is Windows Control
Show More