4,439 Posted Topics
Re: Hi no123, welcome. :) Encrypting after serialization, would have the same effect I guess. | |
Re: Hi Rik30, welcome at DaniWeb. :) Could you show us the method you're having trouble with? | |
Re: Have you seen what the label says, when you hover with your mouse over it? ![]() | |
Re: I see a red pill in the blue hand and a blue in the yellow hand. | |
Re: It is more important that it works, then what name it carries. But my guess is that a SQL database is considered as a DBMS. | |
Re: You cannot change much on a messagebox. But could just write your own! Take [this snippet](https://www.daniweb.com/software-development/csharp/code/364073/how-to-set-up-a-modal-dialog-form) as a start. | |
Re: Tell me, one of those days. I'll open a bottle of wine myself and I'll drink a glass thinking of you. Tomorrow can only be better. Unless your wine is called "Chateau migraine"... | |
Re: Hi, alzooz, welcome at DaniWeb! :) At line 27 you enter xi. If it is a termination condition (xi==0), it is also added to sum and n is also updated. So your calculation will not be correct. Use an if statement to avoid this. | |
Re: Also notice the concept of a [B]partial [/B]class. The X.cs and X.designer.cs files form the same class but are marked partial so they can be stored separately. You should in general not change the contents of the .designer.cs file, the IDE does that for you. I give it a look … | |
Re: Few remarks: 1) Why does a `btnAdd_Click` seems to be calculating an average? An Add button must only do one thing : ADD, point. 2) You may prefer it but you one time or another will get into trouble with it. //this is allowed, but avoid it foreach (int total … | |
| |
Re: This is another [simple example](http://stackoverflow.com/questions/20667960/how-do-i-make-a-square-in-c) of how to do it. With a beautiful picture of one of the first popular home computers! | |
I’m working on a little matrix class for my own use and because for me, it is just fun! Now I noticed a lot (10 and more) of the methods always seem to follow the same pattern: - Iterate over the rows - For each row iterate over the columns … | |
Re: Ever considered of using a [DataGridView](http://www.dotnetperls.com/datagridview-vbnet)? | |
Re: A chartcontrol cannot handle TimeSpans. It can handle seconds, days, minutes months, whatever. So I suggest you feed your chartcontrol with whatever of those values you want from a TimeSpan object. | |
Re: They are often in panic I guess. Never paid attention in class and then there is that homework that has to be done before tomorrow 10 AM!!! Once they obtained the slightest answer, why bother to post a small thank you or mark the thread as solved. Luckily they don't … | |
Re: Line 63 should read `if(goBack=='y'){` y is a char variable(undefined afais) which is compared with the input of the `goBack` char variable. 'y' is a char litteral. The use of goto is not advised. It is not because it exsist you should use it. Your if statement could use improvement … | |
Re: Have not yet tried to cash out my reward points. The only thing I noticed is that they seem to slowly "evaporate" over time. :) Have you tried PayPal? | |
Re: Input and number(int) out of your list. Now use a switch case to determine the enum. | |
Re: Do you need to have access to excel from VB.NET or is it just a translation you want? | |
Re: Looks OK. May I also point your atention to [trimming strings in .NET and C#](https://msdn.microsoft.com/en-us/library/kxbw3kwc%28v=vs.110%29.aspx) | |
Re: Well, I googled [this](http://www.codeproject.com/Articles/12634/How-to-Create-Icon-Files-for-Your-Windows-App-usin). | |
Is it possible to let an overridden method from a base class to return the type of the derived class? What I mean is: namespace test //with some "pseudo" code { class Base<T> { //fields ... //properties ... // ... public virtual Base<T> BaseMethod() { //return new Base<T>; } // … | |
Re: Can't imagine only old teachers teaching the same things for some 30 years, and no new teachers starting with some fresh ideas. Maybe it's imposed by some governments? ![]() | |
Re: Sure, it will work. If next is not null that is... | |
Re: Carry on Suzie! I find this a good snip. :o) One little remark: normal C# comment style is to use // for one line comments and to use /* ....*/ for multiline comments. But hé, I'm nitpicking. | |
Re: Why not use a DataGridView control? Or else use the [multicolumn property](https://msdn.microsoft.com/en-us/library/system.windows.forms.listbox.multicolumn%28v=vs.110%29.aspx) of the listbox. | |
Re: There are no stupid questions. Do you want to appear this integer value on the screen? Look up how to use a format specifier. | |
Re: Hi Mayukh_1, welcome at DaniWeb! :) For fibonacci, I never use any storage. static unsigned long long Fib(int n) { double sqrt5 = sqrt(5.0); double phi = (sqrt5 + 1.0) / 2.0; double d = floor((1.0 / sqrt5) * pow(phi, n) + 0.5); return d; } | |
Re: I was blue, even before the film Avatar came out! But serious. I noticed your use of a tilde, which, to my knowledge is destructor syntax in C++ and I guess never needed in C#. I once wrote a small C# program to process some chemistry data for a colleague … | |
Re: I mostly get that error message if something was `private` while it ought to be `public`. Remember that if you don't set an access specifier it is `private` by default. | |
Re: Well, C# seems a perfect choice to me! In fact it is as good as any other programming language I guess. Niclaus Wirth invented the Pascal language, to teach his students to become programmers. But I would not return to Pascal, C# has all the features a modern computer language … | |
Re: I almost daily have a look at [this site](http://apod.nasa.gov/apod/ap150322.html). | |
Re: Saying you need help, tells us nothing. Specify what kind of help you need please. | |
Re: Anothr approach could be [this](http://csharp.net-informations.com/excel/csharp-excel-oledb.htm) If you still want your string array, you could get it out of the DataGridView. | |
Re: 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. :) | |
For my own use, I'd like to develop a small Vector and a Matrix class, independent of some big libraries that exist out there. My question is: Should Vector and Matrix stay two independent entities or should I derive a Vctor frm a Matrix or a Matrix from a Vector? … | |
For a small class it doesn’t matter that much, but for a bigger class I find it handy to have an oversight of all the methods at hand. That’s what I did here. One requirement is that the class file has already been compiled error free. Don’t know if my … | |
Re: In C# const has only one meaning as opposed to C++ where it is used more often in different places. In C# you have `const aType aName = aValue;` and that's all there is. Btw. in C# a string is immutable, so you could say is "const" anyway. | |
Re: Indeed, as priteas pointed out, a List and sorting is more appropriate here. But if you must use a dictionary, [this](http://www.dotnetperls.com/sort-dictionary) might help. | |
Re: is not working properly... Is it possible to mention WHAT is not working properly? | |
Re: Are your glasses double sight, like mine? It takes a while to get used to that. And as Vegaseat said: *go for the lightest weight possible*. | |
Re: What you showed was an event list. What gusano79 meant was that a control(e.g. a form) has a PointToClient **method** Did you follow the example in his link completely? | |
Re: 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. :) | |
Re: 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. | |
Re: I googled `export emf from excel in C#` and found some items that might help. [Example](http://stackoverflow.com/questions/28800970/exporting-an-excel-range-to-an-emf-file-in-specified-location). | |
Re: Did you try to use the [Doubblebuffered](https://msdn.microsoft.com/en-us/library/system.windows.forms.control.doublebuffered(v=vs.110).aspx) property? |
The End.