4,439 Posted Topics
Re: Don't know if a graphical UI for C exists. But what I do know is that transforming a console app to a graphical app requires a great deal of code rewriting. Hope this helps a bit. | |
Re: Seems you have a slight preference for C++, and you definitely don't want to do anything in Python. Why don't you just give it a try and see if C++ is your thing. It's like ice cream with a new flavor. You have to try it to know if you … | |
Re: Test the Name property you gave to this control in an if, and don't clear it. | |
Re: The field is private so you don't possibly mess it up. You access it through get and set. In the property syntax you can validate the value you want to set for example. Read [this article](http://msdn.microsoft.com/en-us/library/w86s7x04.aspx) for more info. | |
Re: Google "C++ text files" [example](http://www.cplusplus.com/doc/tutorial/files/) | |
Re: I'll repeat the question of decepticon: "What does string compare return?" Look it up in whatever you use for reference manual. | |
Re: We don't do homework. Show some effort and post us what you got. Maybe we'll help. | |
Re: It CAN be done. BUT, you must be willing to learn a totally new way of programming. Learn WPF and XAML(Speak out 'zammel') I tried to use WPF in C#, I gave up after a few months. So I stay with Jim in this: Can't be done. If you want … | |
| |
Re: In the Load event of the first form opening, write some code to show the second form. | |
Re: Maybe you could find an answer [here](http://stackoverflow.com/questions/1259369/embed-powerpoint-viewer-in-c-sharp-win-form) | |
Re: Why not just use `cin >> choice`? And while you 're at it, put lines 4 to 8 in a function and reuse it in your while statement. | |
Re: LOL :) > I was about 13 when I created DaniWeb.com as a personal homepage about my dogs. Should we bark from time to time? Great story! ![]() | |
Re: I worked years with an Apple II. It was coupled to an atomic absorption spectrophotometer and processed and printed out my measured data. | |
Re: Think you can remove line 45, it is already declared on line 41 You define an ArrayList on line 39 This ArrayList will happily vanish into oblivion once your PaeseCode method ends. I don't think it is meant to be so. On line 53 start is a position in a … | |
Re: DaniWeb of course! http://apod.nasa.gov/apod/astropix.html http://www.demorgen.be/dm/nl/983/Nieuws/index.dhtml http://www.buienradar.nl/weer/mechelen/be/2791537#nu http://www.websudoku.com/?level=2 in no particular order. | |
Re: Use the OR operator instead of &&. | |
Re: Yes. Suggestion: give your variables a mainingful name. Instead of **At** use something like **surface** | |
Re: With some string manipulation this must also be possible, if you always have the same format in your html. Have a look at the String class in MSDN. Split and Substring methods are the first that come in my mind. Success! | |
Re: Did you ever tried `MyInt.ToString()`? Or even `12345.ToString()`? | |
Re: Did you made datagridview1 through the designer? | |
Re: frst try to wrt a mr or lss corrct sntnce in English. | |
Re: I'm not particularly fond (he he) of the purple orange colors around here. But I can live with it. This is Dani's house, not mine. Also let me remind you of a Latin proverb: "De gustibus et coloribus, non disputandum est." | |
![]() | Re: Nope. The best thing you could do with it is forget it. Concentrate on modern, still evolving languages like C#, C++? Java, Python etc. |
Re: Nice! Did something similar in C#. | |
Re: You could use the Tag property of a Button, to store the i,j info. Recall it in your ClickButton handler. | |
Re: Did you ever consider a [TimeSpan structure](http://msdn.microsoft.com/en-us/library/system.timespan.aspx)? | |
Re: What have you tried already? | |
Re: Hi frankie198, welcome to DaniWeb! There are no silly questions. Only dumb answers; like mine perhaps. :) As I'm a learner of Python myself, the Python interprter can infer what type is at hand and acts acordingly. So if you print an integer type it will be auto converted to … | |
Re: if i = 2, put an extra break after the ; on line 4 of your code. You will notice there is nothing wrong with the C++ compiler. Happy computing. | |
| |
Re: You never can tell if a medical test is redundant, unless you are a doctor. | |
This is my first try with turtle graphics in Python. It is in fact a sort of "translation" from some old LOGO code. When you run it, this should be the result:  Insiders can perhaps play the "Dark side of the moon" record by Pink Floyd :) Any … | |
Not that important, but just a question that pops up. Does the code we post here has any legal ownership? Does it still belong to the OP or is it DaniWeb's or has it become open source? | |
Re: Look on MSDN for TimeSpan or start with [these examples](http://www.dotnetperls.com/timespan-vbnet) | |
Re: I made [this project](http://www.daniweb.com/software-development/csharp/code/238279/bouncing-ball) to train my ability to pass values from one form to another. | |
Re: Read file line by line. Split line. Take Nth item and replace bad chars. Reconstruct line and write to new file. Optionally remove old file. | |
Re: You cannot do it in the designer; You do it in code. | |
Re: Hi new2code welcome here at DaniWeb. Many issues here. Is this a C or C++ program, as it is it is C. Start by writing line 42 and 43 on one line and change the 4 into a 3. Like this: `for (i = 0; i < 3; ++i){` BTW, … | |
Re: Assume you start coding. Assume you encounter a problem with your code. Assume you post your code here, explaining your problem. You can very well assume we will try to help you out. | |
Re: Did you try to use the **getchar()** function? | |
Re: Believe it or not there is also a [DataGridView.AlternatingRowsDefaultCellStyle Property](http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.alternatingrowsdefaultcellstyle(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1) | |
Re: You could check the DB connectivity in the Load event of the form and show a message with MessageBox. Continue with the login if there is connection. | |
Re: Probably, you need to use two numeric updown controls (look in the toolbox) You can set their Minimum and Maximum properties in function of hours and minutes. Look [here](https://www.youtube.com/watch?v=hrWbqJKRMS4) for a tutorial. | |
Re: You don't have to use textboxes to fill a datagrid. The default colomns in a datagrid are textboxes. | |
Re: These are bitpatterns eg ENQ = 00000101 while the number 5 = 00110101 of course. |
The End.