4,439 Posted Topics

Member Avatar for Ogua

What have you done, besides posting your homework assignment?Show your code to us and pinpoint the errors you have.We will be more than happy to help.

Member Avatar for ddanbe
0
121
Member Avatar for Khaldoun Latif

Consider using YouTube [example here](https://www.youtube.com/watch?v=LFFPbBe7aAs)

Member Avatar for Zerone_Classic
0
139
Member Avatar for Jeremy_4

If the pattern AA, "BB" (CC) [DD] stays the same, you could extract the strings AA BB CC and DD, by reading char by char and detecting when you are at a comma etc.

Member Avatar for David W
0
933
Member Avatar for geodosch

Had this once while posting a bulleted list from MS Word. Removed the bullets and it was OK. Well...my layout was gone of course . . .

Member Avatar for Dani
1
252
Member Avatar for bernardine

You probably missed a curly brace somewhere. This is not that hard to happen in about 400 lines of poorly indented code. It is of utmost(at least that is what I think) importance to structure your code well by chopping it into smaller chunks if possible. E.g. put your many …

Member Avatar for helmi_1
0
188
Member Avatar for jeffcogswell

@ vegaseat: `My only problem with C# is the exessive verbosity, too much typing.` I do it this way, because my quotes don't seem to work. Why is too much typing such a problem? If you write something like `y = x;` you probably have to add some comments to …

Member Avatar for Tcll
3
2K
Member Avatar for iPoor

Of course! And while you're at it, post the value of BIG. We still haven't the faintest idea how big, **BIG** is.

Member Avatar for iPoor
0
317
Member Avatar for tgreiner

Well, let me say idunno. But I guess if you use just `A[10]` a smart compiler, allocates the memory for you. This would be OK for a small array and in teaching textbooks it is easy to explain. If you, as a programmer want to stay in full control, you …

Member Avatar for tgreiner
0
228
Member Avatar for ibrahimlita
Member Avatar for ddanbe
0
56
Member Avatar for Rai_1

I'm not that much of a religious person, but somewhere in Matthew is a phrase:"*Seek and thou shalt find...*" From your question I can only infer you have totally no interest in CS. Convince me of the contrary and come up with a subject yourself!

Member Avatar for ddanbe
0
186
Member Avatar for mohamed_49

What have you done, besides posting your homework assignment? Show your code to us and pinpoint the errors you have. We will be more than happy to help.

Member Avatar for AkumaJack
0
232
Member Avatar for Shrijan_1

If you know how to draw a circle, then you must know its coordinates. Hence, use these coordinates to test a certain condition.

Member Avatar for ddanbe
0
148
Member Avatar for sunshine102030

Hi sunshine102030, welcome! :o) Instaed of float on lines 5 and 6, use double.

Member Avatar for rubberman
0
154
Member Avatar for gulpari

We normally don't deliver source code. I personally don't even understand what you mean by "circle detection"

Member Avatar for ddanbe
0
126
Member Avatar for markdean1989

I guess it is not your intention to "parse" an "expression". So I suggest to use two textboxes. One for num1, the other for num2. Next use an operator button(+,-,. . .) and using the suggestion by Moschops to update your label text.

Member Avatar for ddanbe
0
824
Member Avatar for tentrabyte
Member Avatar for Quast

FYI, VS has a ColorDialog in the toolbox, ready to drag into your design. If you want to do it programmaticaly, there's the [ColorDialog class](https://msdn.microsoft.com/en-us/library/system.windows.forms.colordialog%28v=vs.110%29.aspx).

Member Avatar for Quast
0
137
Member Avatar for Nicolei
Member Avatar for skip09

I should use 3 boolean flags and set them to false. After one is used set to true. `LiveLine1_Used = false;..... if (LiveLine1_Used)....` etc.

Member Avatar for rubberman
0
240
Member Avatar for Papa_Don

Hi Don For a colleague still at work I was happy to do a somewhat similar job as yours. I used an extra dialogwindow with a label with as text a notice which file was being processed. This dialog also had a [progressbar control](http://www.tutorialspoint.com/vb.net/vb.net_progress_bar.htm). Maybe this is something you might …

Member Avatar for Santanu.Das
0
969
Member Avatar for shifiya

What have you done, besides posting your homework assignment? Show your code to us and pinpoint the errors you have. We will be more than happy to help.

Member Avatar for iamthwee
-1
150
Member Avatar for Dondrell
Member Avatar for ddanbe
-1
270
Member Avatar for Shamar_1

What have you done, besides posting your homework assignment? Show your code to us and pinpoint the errors you have. We will be more than happy to help.

Member Avatar for ddanbe
-1
369
Member Avatar for Shamar_1

What have you done, besides posting your homework assignment? Show your code to us and pinpoint the errors you have. We will be more than happy to help.

Member Avatar for ddanbe
-1
235
Member Avatar for galileo812
Member Avatar for Slavi
Member Avatar for vegaseat
0
105
Member Avatar for coolbeanbob

I assume your values are separated by commas? Did you ever try to google "How to read CSV file in C"?

Member Avatar for deceptikon
0
172
Member Avatar for fantyfiz

OK, you have an error and it seems in a way related to a form. Could you please also specify WHAT error? If I told you I have a car, would you know what car I have?

Member Avatar for fantyfiz
0
151
Member Avatar for mariam iqbal

What have you done, besides posting your homework assignment? Show that to us and pinpoint the errors you have. We will be more than happy to help.

Member Avatar for deceptikon
-2
375
Member Avatar for Lorraine_1

Hi Lorraine 1, welcome here. :) `I have 3 buttons: btn1, btn2, btn3. I want each button to show the respective lines in the text file.` Could you please explain what you exactly mean?

Member Avatar for Reverend Jim
0
854
Member Avatar for LibraryCode
Member Avatar for ddanbe

I have strings representing an angle, of the format ddd°mm'ss''. I want to get to the three constituents: degrees, minutes and seconds. I first chopped off the seconds like this: `angleString = “ddd°mm'ss''”;` `string str = angleString.Substring(0, angleString.Length - 2);` Then I tried to do this, to get to the …

Member Avatar for JOSheaIV
0
243
Member Avatar for PulsarScript

As you are preventing any other numbers then covered by your cases, a default is not needed here. In fact it would never ever be executed. If you are not sure about which case can come up, it is best to use a default.

Member Avatar for TekknoDraykko
0
148
Member Avatar for Sanjok
Member Avatar for Reverend Jim
Member Avatar for jez9
Re: Time

Have a look at the [TimeSpan structure](https://msdn.microsoft.com/en-us/library/system.timespan%28v=vs.110%29.aspx)

Member Avatar for jez9
0
169
Member Avatar for SwtNemesis

The year zero does not exist! [See here](http://en.wikipedia.org/wiki/0_%28year%29). The number zero, has we now use it had to be invented. People in those days couldn't cope with "nothingness".

Member Avatar for David W
0
2K
Member Avatar for Akhila_1

From [this site](http://www.thefreecountry.com/compilers/cpp.shtml) you can download a lot.

Member Avatar for vegaseat
0
154
Member Avatar for Cameron_2

Hi, Cameron 2, welcome. :) Use Format: ' Returns "5,459.40". TestStr = Format(5459.4, "##,##0.00") Taken from the example at the end of [this webpage](https://msdn.microsoft.com/en-us/library/microsoft.visualbasic.strings.format%28v=vs.110%29.aspx)

Member Avatar for Minimalist
0
573
Member Avatar for surya777

`i am getting a wrong output` This sentence tells us nothing, tell us WHAT output you have and how it is different from what you expected. THAT would provide us possibly more info to help solve your question.

Member Avatar for NathanOliver
0
144
Member Avatar for chimagreat

My first idea would be to derive your own class from TextBox and override th mouseclick event. In it determine wher in your textbox you did click and act accordingly.

Member Avatar for ddanbe
0
295
Member Avatar for Magic8Computing

You could place the code from the example in the form load event and leave out th console.WriteLines.

Member Avatar for ddanbe
0
848
Member Avatar for Magic8Computing

Maybe [this example](https://msdn.microsoft.com/en-us/library/system.io.ports.serialport.datareceived%28v=vs.110%29.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1) will get you on the way. Success. :)

Member Avatar for Magic8Computing
0
3K
Member Avatar for sdtechi

Hi sdtechi welcome at Daniweb. :) Line 10 and line 13 show starting brackets {. Where are the ending brackets } ?

Member Avatar for TalhaMoazSarwar
1
234
Member Avatar for ryan.legow

I noticed on lines 1 untill 12 that there is one curly brace too much. Probably in other places too. Look carefully at your indentation. It is not a subject to be overlooked.

Member Avatar for ryan.legow
0
2K
Member Avatar for felix.mumba.9

Hi felix, welcome. It is always handy to study the formulas behind line and circle intersection, before beginning to program this. [See this example](https://www.youtube.com/watch?v=OuAhkinZVsU). It is just a matter now of inputting some values in your program. Plug them in some formulas and outputting the results. Success!

Member Avatar for felix.mumba.9
0
159
Member Avatar for Slyte

Your function evaluates to 1 for x >= 1 and to < 1 for x < 1. So the behaviour is completely normal. Try out and make a table of values between -10 < x < 10.

Member Avatar for Slyte
0
196
Member Avatar for pravinkumar1
Member Avatar for Hafiz_2

We don't do homework. We'll help you when you're stuck, but you'll need to show some effort first. If you are stuck, post up what code you have done and explain the problem you're having.

Member Avatar for Moschops
0
47
Member Avatar for KennieA

We don't do homework. We'll help you when you're stuck but you'll need to show some effort first. If you are stuck, post up what code you have done and explain the problem you're having.

Member Avatar for Reverend Jim
0
514

The End.