4,439 Posted Topics
Re: Never had the need to use a goto (progrmming mainly in C#), but occasionally I used a break or return to step out of a loop. | |
Re: And what have you already tried yourself? | |
Re: This all boils down to writing some statements. Example: **Let A be the reminder of the division of X by 19** Becomes in C# code: `A = X % 19;` Try out the rest and see what you can come up with. Succes! O, and one of my snippets on … | |
Re: I wonder why you want to develop your own calendar. There are two controls to help you out: MonthCalendar and DateTimePicker. And second, what is that case statement doing in your ValueChanged method? This should be a separate function: month name in month number out. | |
Re: [HELP!](https://www.youtube.com/watch?v=yWP6Qki8mWc) | |
Re: Use radiobuttons instead. | |
Re: Did you try the left-arrow? It should do the trick. Position yourself with it after the 4, do a backspace and type an 8. | |
Re: What is listView1? A PictureBox has a Location property. Perhaps you should have more PictureBoxes? | |
I have a `List<double> MyList` something looking like this: 4.75/1.01/5.66/NaN/42.42/3.33 I’d like to get the minimum value of 1.01 out of it, but I get d = NaN when doing `double d = MyList.Min();` Tried, after some long internet strolls, something with LINQ to no avail. Some LINQ afictionados around … | |
Re: Don't know exactly what you are trying to achieve. Line 1 should be `for (int i = 1; i <= r; i++)` Same for j on line 6. Unless you declared i and j as `int` elsewhere. Line 4 `Convert.ToInt32(i)` should be` i.ToString()`, same with all other converts. i and … | |
Re: What have you done besides posting your assignment? You must have written some code because it was easy for you in C. We like to see code. Even totally wrong code. | |
Re: A simple google of "bluej gui builder" gave me 4500 results. Pick yours. | |
Re: Is there a special reason why you want to manipulate applications from your application that way? I'd use W10 for that. | |
Re: Do you talk about regular-irregular polygons? Do you have some origin and radius? Please elaborate. | |
Re: Yes, but could you specify where? Knowbody is going to help you with posting a blob of code and saying I have an error. | |
Re: > i dont have codes yet Are you hoping we should provide cristal clear codes, perhaps in a report? Show your efforts and if we can, we will help you if we possibly can. :) | |
Re: Do you still have to use vb6? What rproffit means that you have to make a variable call it `count` or something. Get it through a textbox or other input. Line 4 of your code should then read `gpa = total / count` | |
Re: Learn linear algebra thoroughly. Learn C++ thoroughly. Maybe then you begin start thinking about face recognition. | |
Re: s11 is an employee and also a person. It is not a student! s11 is not a meaningful name, try to give more meaningful names to your variables. If you would have named s11 as AnEployee or something, you would have noticed that `AnEployee.Informatio_student()`; does not work. You first have … | |
Re: Line 3 of your code suggests that your string contains "left" or "right" but not both at the same time. So am I correct to pose that if your string contains "left" it cannot contain "right"? | |
Re: Could you please specify what exactly it is you want, because adatapost has given you the code to create a label at runtime. If it can be done once it can be done 3 or 4 times or more also. | |
Re: There exists a book called MATHEMATICAL TOOLS IN COMPUTER GRAPHICS WITH C# IMPLEMENTATIONS Alexandre Hardy & Willi-Hans Steeb (Univ. of Johannesburg, South Africa) It might help you out. | |
Re: She has just too little experience. Let her make a travel around the world. A small suggestion:Belgium, Greece, Morrocco, Nigeria, India, Japan. After that, she might think different. ![]() | |
Re: Line 18: Why do you multiply salesAmount with sales, while your formula states you have to add the quantities? | |
Re: Some googling could help here: [Example](https://www.youtube.com/watch?v=-RLEMhGWht0) I tried "populate combobox vb.net from database" | |
Re: If I understand you well, why don't you check the first element in your array and check it against the rest of the elements in a loop? If at the end, they are all equal, you're done. | |
| |
Re: Could you please just explain what your request and response format is all about, so we can understand it and maybe provide an answer? | |
Re: I would use [ListBox](https://www.youtube.com/watch?v=gquKlyJR94Q) instead of combobox | |
Re: I have her a small snip that might put you onthe way: static void Main(string[] args) { string[] input = { "135N258S", "135N269B", "136N112S", "136N123D", "135N269B", "136K225D", "136N124S", "136N269B"}; var dataOK = input.Distinct().Where(n => !n.Contains("K")); foreach (string str in dataOK) { Console.WriteLine(str); } Console.ReadKey(); } | |
Re: Are you sure there are always childnodes? You could test with [this](https://msdn.microsoft.com/en-us/library/system.xml.xmlnode.haschildnodes(v=vs.110).aspx). | |
Re: Note there is also an [isalnum](http://www.cplusplus.com/reference/cctype/isalnum/) function. I find your design strategy wrong. If you would test in the input and allow only alphanumeric chars to go through, you would know your PLU string is correct and not have to validate it any more. | |
Re: Do you mean something like "expert systems"? | |
Re: French stands the most close to English. In fact about half of the words in English are borrowed from French. But if I would have this opportunity I would choose Chinese. | |
Re: New furtive way to get homework done? | |
Re: Guess you forgot to open your connection. | |
Re: Did you have a look at the [DateTime structure](https://msdn.microsoft.com/en-us/library/system.datetime(v=vs.110).aspx) ? | |
Re: You could also write your gate functions a bit shorther. Example the AND function: bool AND (bool inputa, bool inputb) { return inputa && inputb; } You could perhaps (depends on the C-compiler) save a few computercycles, but the way it is written is perfect. | |
Re: So if I understand you well, you have one byte, 4 bytes and the rest are ASCII characters right? | |
Re: Anarchism is indeed a great thougth, but it will never be. It's like Utopia.(Thomas More) As we are all animals, we have it in us to survive. Only the fittest will do so.(Ch. Darwin) So we all have to struggle to get some food to feed our offspring, for instance. … | |
Re: I guess you first have to remove the <br/> tingies from your string. | |
Re: To walk through cells in excel sheet with macro use something like Dim i As Integer For i = 1 To 20 step 2 Cells(i, 1).Value = 42 Next i Posting macro recording code won't help much you know. :o) | |
Re: Are you using a Console or a Forms application? | |
Re: What is TextBox5, texta1, Label31(see line 65) etc.? Give them meaningful names!!! Like **naamVaderTxb** or something. I don't relly get why you have to test if your textboxes are not empty. | |
Re: > What shall i do? Did you ever tried indentation? | |
Re: I don't know of any ImageBox in C#. Only a PictureBox control with an Image property. To load an image in a picturebox use something like: [B]pictureBox1.Image = MyJPEGimage;[/B] | |
Re: Line 23 & 24: Can you close an objReader1 after it is disposed? Same on lines 29&30 | |
The End.