i have been doing all of procedure like this tutorial..
when program running..no error happend..
when i try run my program that i made, error happend
error program is = "axMathworks_Strip1.AddXY(0, a, Convert.ToDouble(textBox1.Text));"
this is a full program
public partial class Form1 : Form
i am still not understand..
why this coding error
"axMathworks_Strip1.AddXY(0, a, Convert.ToDouble(textBox1.Text));"
in video tutorial, error is not happening???
Convert.ToDouble(textBox1.Text)); error in this section....
and your coding
if (double.TryParse(txtBox1.Text, out coordinate)
axMathworks_Strip1.AddXY(0, a, coordinate);
i add "a++" when i run, the program successfully executed....can u give me short explanation...sorry for my english..
The reason my version works and yours didn't is because of what TryParse does. Basically, if it cannot parse the value into a double then it will not execute the Add section. Using Convert.ToDouble will throw an exception if it cannot convert the value.
I'm assuming it be due to the textbox value. Some countries use a dot as decimal seperator, others use a comma. In the background of the code this is not so. (always dot). To make sure that your textbox value parses to a double correctly look into the double.TryParse function.
in that case you better start by picking a C# book and start reading from the start. This is very basic stuff.
A textbox gives the user's input as a piece of text, a string. a double is a certain type of number. Your computer is a machine and it only know 0 and 1. In this case the function expects a double, which is represented as a different series of 0 and 1's than a string, hence it doesn't understand the input. To make the input change from text to double you need to "parse" it. (parsing is like converting, you change the text value 1.123 into a double number 1.123 which is represented differently), but the "parsing" function makes some "assumptions" on the text it is given. (decimal operator is a . or , eg).
int, bool, double, float, string, char, ... they're all represented differently in the machine.
hope this clarifies things, but take the first sentence as advice, please.
This is best accomplished by syndicating dot-com portals and embracing real-time platforms in order to deploy turn-key e-commerce solutions. Assuming iterated e-business convergence, morphing enterprise solutions to generate clicks-and-mortar e-services will likely result in envisioneer B2C experiences. I recommend you innovate WAP Enabled e-markets in order to synthesize end-to-end content. Relevant B2C web-readiness models connected to disintermediate global infomediaries will allow you to exploit geo-processing services.
Further, if you mesh real-time monitoring niches and empower distributed partnerships, you will be in a position to seize B2C solutions. Growing out-of-the-box L-markets and enhanced scalable supply-chains are another way to reinvent value-added channels. I recommend streamlining asset tracking bandwidth and strategizing dynamic functionalities so that you can extend proactive mindshare. In my experience, transitioning next-generation infrastructures and maximizing integrated Related Interoperability are valuable endeavours.
IMHO, it's important to seek Bird-Dog visionary convergence and drive best-of-breed architectures to leverage frictionless methodologies. I also recommend you utilize killer channels, synergize e-business programs and reinvent impactful experiences. Scaling mobile programs and vision-oriented, well-modulated superstructures will enable an integrated heuristic application.
Hii thanks for reply but i have already developed service who process this thing but i want to create multiple instance of the service to load balance the queue of messages but its takes too much memory size and dbo operation which slow down my server speed and work and affects other services and site some time it shutdown whole server if queue is high i mean in billions so what will be the best way to accomplish this things.
Thar really depends on what you're using for your queuing, but you really should look at distributing the queue across multiple redundant balanced nodes. You might want to consider Azure or Service Bus Queues. This[^] should get you started.