The laws of the State stipulate that it is impossible for others to operate shares on behalf of others.
So when we let users use the stock automatic trading software, we must clearly let users know that the software he uses is his own intention, and the software execution strategy is also his own strategy, instead of being imposed on him.
In this way, we need to write a protocol for the user to see. Our software can be used only with the user's consent.
In the past, I put the software protocol on the website, and then used webbrwoser to load the user protocol. This is a problem.
This protocol may change all the time. In the judicial process, we should not be able to protect ourselves. If the user loses money, it will be very bad for us.
Then we must use the local protocol.
I will continue to use the webbrowser control. Then, the protocol file is stored in the resource.
Load it in the form load method.
The Code is as follows:
Private void termsform_load (Object sender, eventargs E)
{Webbrowser1.documenttext = "Hellow ";}
A magic thing has emerged. This content is not displayed when the form is displayed. The webbrowser area is still blank.
If you add a button to the webpage. Then you can set webbrowser. documenttext in the button event to display it.
Next, try again and assign values to webbrowser. documenttext in the termsform instantiation method. No.
You can only use a bad method temporarily.
Private void termsform_load (Object sender, eventargs e) {webbrowser1.documenttext = "Hellow";} private void webbrowserappsdocumentcompleted (Object sender, webbrowserdocumentcompletedeventargs e) {// This is a strange method. Because documenttext is directly used in webbrwowser1.documenttext. No way to display it. // The execution sequence of some events. If (webbrowser1.documenttext! = Resources. Terms) {webbrowser1.documenttext = resources. terms ;}
}
.