4,439 Posted Topics
Re: Did you ever tried a [DataGridView](http://www.dotnetperls.com/datagridview)? | |
![]() | ![]() |
Re: You first have to respond to a modal dialog (Click OK, Cancel, whatever) before you can do anything else. That's why it's called modal. | |
A modal dialog is a window that you must respond to. The MessageBox for example is such a window. It is a handy tool for displaying a warning or other kind of message to the user. But, you can configure it only in a limited way. Xcelled194 did a good … | |
Re: I like other languages, but if I had to choose, it would be VB.NET. | |
Re: Remember there is also a [string split method](http://www.dotnetperls.com/split-vbnet) | |
Re: If debugging is the process of removing software bugs, then programming must be the process of putting them in. (Edsger Dijkstra) | |
Re: You can find `Console.Writeline` in a C# console application code. | |
Re: Instead of ++i, use `i = i + 2` in your for statement. | |
Re: On line 4 you test if both matrices have equal rows and columns, before performing a minus operation. Seems correct to me. Line 37 is correct. Line 38 calls a method, wich you placed in comments. Line 22 reads `for (int i = 1; i <= this.So_Hang; i++)` should this … | |
Re: Controls like Label and Button have a Paint method. You can override that method if you want to change the drawing behaviour. | |
The test.txt file I'm using is: 1,2,3,Name1,Pizza,Pizza Hut,7,8,9 1,2,3,Name2,goose,my home,7,8,9 1,2,3,Name3,chicken,airplane,7,8,9 Most of the explanation can be found in the snippet. Some CSV(Comma Separated Value) files often contain as first line, a header. You could skip this, or threat it a bit differently. I had no header, so I leave … | |
Re: Hi Tsomondos, welcome at DaniWeb. What OS do you have? I have Windows 7, I open **My computer** via Start. A Window opens and here I can drag and drop the files in folders where I like to have them. | |
Re: Just a quick sketch: const int EOF = -1; using (StreamReader SR = new StreamReader(filePath)) { while (SR.Peek() != EOF) //I like EOF! { string Aline = SR.ReadLine(); List<string> CVSValues = Aline.Split(',').ToList(); // think you need CVSValues[3], CVSValues[4] and CVSValues[5] // etc. | |
Re: Could you show the code on how you implemented the Timer. Is the Timer started? | |
Re: Who will tell if we will use computers in 2020, the way we do now? Perhaps we all talk via our smartphone, to quatumcomputers living in a cloud. Who had a smartphone or a phablet, 7 years ago? | |
Re: @AD Hope all gets well with your son. Medical science, as good as it is, is never **exact** science. So you might say that a study has proven that consumption of chicken soup of brand X cures some disease Y. And second point: because it is in the news, does … | |
Re: Just install it, start up Visual Studio, select New Project, select Visual Basic choose Windows Forms Application or Console Application and you are ready to start programming. | |
Re: > @iamtwee Look up bubble sort Just get yourself some Hungarian orchestra and dancers http://www.youtube.com/watch?v=lyZQPjUT5B4 | |
Re: It is an IDE (Integrated Development Environment) You can program in it in C#, C++, VB, F# etc. It offers all the tools to make life of a programmer as easy as possible. | |
Re: Your question, if at all a question, is overwhelmingly clear. | |
Re: Do you want to store data in the app.exe resources? If so, have a loo at the automobile example [here](http://msdn.microsoft.com/en-us/library/xbx3z216(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-9) | |
Re: Don't know if it matters much, but the right picture is 7x5 "pixels", but the left and middle picture are 13x10 "pixels. | |
Re: Perhaps the OP means recursivly traversing directories? | |
| |
Re: I think the line: **56–48 years Aged** should read **65–84 years Aged** | |
Re: You are concatenating the strings in the 3 textboxes. First convert the Text strings to numbers, add, and convert the result to a string again to feed Text4 | |
Re: setprecision just does what it says. It sets the precision to 2 figures after the decimal point and it will stay that way. | |
Re: Line 26 should be the last line in your method, out of the try catch block. | |
Re: You surely are going to need some integration methods, here is a [snippet](http://www.daniweb.com/software-development/csharp/code/295819/simulating-normdist-function-of-excel-in-c) And this is an [example](http://www.daniweb.com/software-development/csharp/code/451281/simple-line-graph-charting) of how to make a chart in C#. Success! | |
Re: Maybe it is a matter of the exact pathname? I suggest to leave this program for a day or two. Google for a simple example of file IO. Once you practice your reading and writing ability of a simple textfile and it works, then return to your project. | |
Re: Well I guess it is not bad.:) One small criticism though. Don't restrict the user in his options. (See line 10) The same for your if statements, where you test the capitals. You can avoid all this with the **lower()** function. Happy programming. | |
Re: Stop annoying users with unwanted Msgboxes saying: **"He dummy! You typed a letter!"** A Masked textbox might be ok, but I would rather use it for social security codes etc. BTW, you still have to validate for divisibility by 10. Try handling a [KeyDown/KeyPress event](http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keydown.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-2). Here you can only allow … | |
Re: The only thing I can come up with is that you have an English dictionary in a database and you pick random words out of it. A real random word generator should at least take account of the fact that there are few words that don't contain vowels. | |
Re: Google! [Example.](http://social.msdn.microsoft.com/Forums/en-US/1da1014b-a7d9-407d-8dc4-c914d158300d/cimage-store-and-read-from-database?forum=adodotnetentityframework) | |
Re: Google to download VB.NET free [example](http://en.kioskea.net/download/download-104-visual-basic-express-edition) Google for free tutorial [example](http://www.tutorialspoint.com/vb.net/vb.net_pdf_version.htm) | |
Re: In your Do While loop you are reading the file until the end. Then the whole of the file is assigned to TextBox1.Text. | |
Re: In a while loop, the increment of an index, counter, etc. should always be the last statement. At least, that's what I mostly do. | |
Re: Hi, hulkishungry, welcome at DaniWeb. Oh man, oh man, oh man! You sound so depressive. Advise(for what it's worth): leave your studies and go do something totally different. What are your hobbies? What do you like? | |
Re: Perhaps this [article](http://social.msdn.microsoft.com/Forums/en-US/4177671c-8fee-46b4-9dce-6694ba912e4c/load-image-into-a-datagridview-cell?forum=Vsexpressvcs) will help. | |
Re: A for loop without an intitialisation. The intitialisation is probably done before the loop. Yes you could say is is like a while. | |
Re: Find out whith an if-statement, which line of the loop you are in(check loop index) Print stars or spaces and stars accordingly. | |
Re: If you are addicted to Visual Basic, I should advise you to use VB.NET. | |
Re: You might want to study some printing tutorials. Google for it,[example](http://www.vbtutor.net/vb6/lesson39.html). | |
Re: Did you try to replace the decimal point by a comma? | |
Re: What do you mean by setup? An about dialogbox? A splash screen? |
The End.