4,439 Posted Topics
Hi, You can simulate this by starting a new WinForm app. Add a datagridview and add some columns. Add a contextmenustrip, add a menuitem, doubleclick it to get a clickhandler. Attach the menustrip to the datagridview in the properties window of the DGV. Then refer to this code and the … | |
Re: Why would I do that? Why don't YOU give it a try. Any problems? Ask a question and we will do our best to help you out. | |
Re: I wanted to say "daniweb" but because from times to times I'm a little shy, I stumbled over my words and it became "ddanbe" | |
Re: Search [DaniWeb](http://www.daniweb.com/search/query/0?q=leap+year+c%2B%2B#gsc.tab=0&gsc.q=leap%20year%20c%2B%2B&gsc.page=1)! | |
Re: And your question is? Make an effort, every student should do that. | |
Re: Why do you ever want to do that? Because it is your homework assignment? | |
Re: Wow! You must have spent some time to work this all out! This is great, great stuff! I'm working( well not all day ;) ) on a sort of matrix calculator, you surely gave me some ideas to rework my code. Rep X 10, but alas I can't:'( | |
Re: Better post this in the language forum of your choice VB?,C#?,C++? etc. | |
![]() | Re: After my midlife, I still do the things you like to do. Except for the tattoo. The last 20 years I have seen and will be seeing a lot of needles. Never mind, you get used to it. What I still like to do(don't know if I will succeed...) is … |
Re: I should not even disable the buttons. Don't even show them if the user is not an admin. | |
Re: Just a small remark: use meaningful names for your variables. Do not use things like "one" and "two". And yes, I know. It is sometimes hard to find a good meaningful name, but believe me in larger programs it pays off. :) | |
Re: Awesome indeed! I guess strings like "1 jan 14" or "01 1 2014" are allowed also? I'm going to try to put my teeth in it. Just had a completely new set installed BTW. Which is ahem also rather awesome ... :) | |
Re: I like to take photos of flowers and animals in nature. (If I find the time...) This is a photo I took in my little back yard. It is as if this great tit is trying to say:"This is MY nut, you won't take it away!"  | |
Re: Implement an elevator simulation. Floors, number of elevators etc. I can garantee you will be busy for a while. | |
Re: [Click Here](http://www.buienradar.nl/weersverwachting/v2/belgie/mechelen?n=Mechelen&c=België&view=Hour&lat=4.48&lon=51.03&p=1) | |
Re: Hi, NewbinProg, welcome at Daniweb. As for your problem, I guess you should have some knowledge of [ADO.NET](http://msdn.microsoft.com/en-us/library/e80y5yhx(v=vs.110).aspx) and the [DataGridView class](http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview(v=vs.110).aspx) | |
Re: Have a look at the [DoubleBuffered](http://msdn.microsoft.com/en-us/library/system.windows.forms.control.doublebuffered(v=vs.110).aspx) property of the Form. | |
Re: @Olyboy16 I have read [thisone](http://www.heatonresearch.com/book/programming-neural-networks-cs-2.html) Guess if you look hard enough on the web you can even download it legaly for free. | |
Re: Just a few points: °°° This C++ used like C, rethink your design. °°° Sort your arrays of polynomials by power before doing addition. °°° Think about how you are going to add X^2 and X^3 + 7X^2 - 1. ![]() | |
Re: Put your xyz items, together with a price in a listbox. Create a second listbox with the choices, your puchases. [Here](http://www.dotnetperls.com/listbox) is a short tutorial about listboxes. | |
Re: TextBox has a MaxLength property. Set it to 7 if you do not want users to type more than 7 chars. | |
Re: What if you would write a Clear function? I mean just write a bunch of spaces. | |
Re: Remember that Google can be a very good friend. [Example](http://msdn.microsoft.com/en-us/library/ms173152.aspx), among a plethora of others. | |
Re: John Lennon once sang in a famous song: *"Imagine there's no heaven"* Does this means he assumed there WAS a heaven? | |
Re: Could be a abbreviation for microphone or microgram. Could you please be more specificic with your question? | |
Re: Hi Traffkk, welcome here. Why don't you start writing programs in C++? | |
Re: Of course it is possible. Write a parser for your rules. What have you got so far? | |
Re: [N.Wirth](http://en.wikipedia.org/wiki/Niklaus_Wirth) developed the language Pascal in the seventies (previous century) for learning how to program.You should have a look at it, but then move on to a C-style language as AD says. My personal favorite is C#, but as a beginner, start of with C. Two other languages worth considering … | |
Re: Very instructive for a C# learner like me. I have already seen it pays off! You reffered to this snippet in another thread. Keep up the good spirit! | |
Re: Try to read [the rules](http://www.daniweb.com/community/rules) before posting. | |
| |
Re: You got to have a translator that knows the gramar of both languages(e.g. Arab and English) That is very, very hard to do. | |
Re: So you know there's something wrong, could you tell us what is wrong? | |
Re: Hi jessica 6 welcome at DaniWeb. This is not the way we work here. YOU write a program, YOU encounter problems. WE try to solve these problems. | |
Re: > how do i rank up on this site? Just upvoted your previous post if that makes you more happy. I'm here to learn, ask questions and help other members if I can. After some time, your ranking will go up or down, wether you like it or not. Click … | |
Re: Use the Opacity property to make eg. a button transparant. Read this [MSDN article.](http://msdn.microsoft.com/en-us/library/system.windows.uielement.opacity.aspx) | |
Re: `List<int> scoresList = new List<int>();` You did that already on line 17, which is good. Replace line 43 with: `scoresList.Add(scoreInt);` | |
Don’t know if this is ever been done before, or even if it is a good way to do it. I’ll just await your comments if any. What I mostly found on the web is that if you want to define a polynomial you need to have an array containing … | |
Re: Please, post your code and question in the forum of your language. | |
I'm not. My idea is: if you want to stop a tsunami(a disease) you have to build a strong, huge concrete wall(a medication), a pebble(a dilution of a dilution?) will have little effect. | |
Re: If you are using VS, in the **Build** menu is an option **Publish** | |
Re: Did you check the format of your string? Format for DateTime strings can be found [here](http://www.csharp-examples.net/string-format-datetime/). | |
Re: My idea:If you want to be productive I would go for C#.But in the end to be a good c# programmer you also have to know what a pointer is or to grasp the concept of boxing and unboxing. C++(I love C++ too) lets you come in contact with those … | |
Re: > My question is if my friend's logic is correct then why random() is not returning 2? Did you read the info in your screenshot? It states that random(num) will return a number from 0 to num-1 So if num=2(your code) random will return 0 or 1. If num=3 random … | |
![]() | Re: `not all code paths return a value` mean your string function does not yet return a string with the [return statement](http://msdn.microsoft.com/en-us/library/1h3swy84.aspx) On line 7 `x` appears to be a string but is not yet defined as such. ![]() |
Re: Wildcard looks practically the same as regex. Or did you have a specific flavor of regex in mind? | |
Re: I know that [Ada](http://en.wikipedia.org/wiki/Ada_(programming_language)) was used, but have no idea what they use now. |
The End.