4,439 Posted Topics

Member Avatar for no123

Hi no123, welcome. :) Encrypting after serialization, would have the same effect I guess.

Member Avatar for JerrimePatient
0
465
Member Avatar for Rik30

Hi Rik30, welcome at DaniWeb. :) Could you show us the method you're having trouble with?

Member Avatar for Rik30
0
211
Member Avatar for RikTelner
Member Avatar for diafol
0
326
Member Avatar for DaveAmour
Member Avatar for advent_geek
1
405
Member Avatar for london-G

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.

Member Avatar for london-G
0
244
Member Avatar for Suzie999

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.

Member Avatar for Suzie999
0
293
Member Avatar for DaveAmour

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"...

Member Avatar for vegaseat
0
198
Member Avatar for alzooz

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.

Member Avatar for ddanbe
0
128
Member Avatar for george_82

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 …

Member Avatar for asdfiuo
0
7K
Member Avatar for jd3189

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 …

Member Avatar for TekknoDraykko
0
461
Member Avatar for sunshine102030
Member Avatar for Khalil_2
Member Avatar for Ma Nicole Ydralyn

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!

Member Avatar for vegaseat
0
165
Member Avatar for ddanbe

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 …

Member Avatar for ddanbe
0
367
Member Avatar for Lethugs

Ever considered of using a [DataGridView](http://www.dotnetperls.com/datagridview-vbnet)?

Member Avatar for Lethugs
0
1K
Member Avatar for dipankarnalui

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.

Member Avatar for ddanbe
0
327
Member Avatar for DaveAmour

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 …

Member Avatar for ddanbe
0
127
Member Avatar for Ma Nicole Ydralyn

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 …

Member Avatar for deceptikon
0
392
Member Avatar for DaveAmour

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?

Member Avatar for DaveAmour
0
448
Member Avatar for Gustavo_2

Input and number(int) out of your list. Now use a switch case to determine the enum.

Member Avatar for ddanbe
0
89
Member Avatar for rola theo

Do you need to have access to excel from VB.NET or is it just a translation you want?

Member Avatar for rola theo
0
2K
Member Avatar for Suzie999

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)

Member Avatar for Suzie999
0
3K
Member Avatar for TekknoDraykko

Well, I googled [this](http://www.codeproject.com/Articles/12634/How-to-Create-Icon-Files-for-Your-Windows-App-usin).

Member Avatar for ddanbe
0
246
Member Avatar for ddanbe

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>; } // …

Member Avatar for DaveAmour
0
304
Member Avatar for Logesh Waran
Member Avatar for Simil

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?

Member Avatar for misi
0
227
Member Avatar for Thomas_25
Member Avatar for Suzie999

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.

Member Avatar for Suzie999
1
2K
Member Avatar for AJN25

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.

Member Avatar for AJN25
0
367
Member Avatar for Gurjit_1

There are no stupid questions. Do you want to appear this integer value on the screen? Look up how to use a format specifier.

Member Avatar for DavidB
0
393
Member Avatar for Mayukh_1

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; }

Member Avatar for NathanOliver
0
308
Member Avatar for Suzie999

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 …

Member Avatar for DaveAmour
0
249
Member Avatar for Suzie999

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.

Member Avatar for DaveAmour
0
214
Member Avatar for Ketsuekiame

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 …

Member Avatar for overwraith
15
1K
Member Avatar for TekknoDraykko

I almost daily have a look at [this site](http://apod.nasa.gov/apod/ap150322.html).

Member Avatar for vegaseat
0
183
Member Avatar for samer.aboufakher.3
Member Avatar for rubberman
0
188
Member Avatar for Suzie999

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.

Member Avatar for Suzie999
0
7K
Member Avatar for Nikki_1

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. :)

Member Avatar for overwraith
0
420
Member Avatar for ddanbe

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? …

Member Avatar for mike_2000_17
0
363
Member Avatar for ddanbe

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 …

Member Avatar for JOSheaIV
0
425
Member Avatar for Suzie999

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.

Member Avatar for DaveAmour
0
775
Member Avatar for ogsirus

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.

Member Avatar for ogsirus
0
861
Member Avatar for AQ

is not working properly... Is it possible to mention WHAT is not working properly?

Member Avatar for AQ
0
137
Member Avatar for gordon_1
Member Avatar for clhamon

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*.

Member Avatar for almostbob
0
350
Member Avatar for saxxyblack

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?

Member Avatar for saxxyblack
0
184
Member Avatar for DS9596

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. :)

Member Avatar for David W
0
405
Member Avatar for DS9596

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.

Member Avatar for Schol-R-LEA
0
289
Member Avatar for bobfink

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).

Member Avatar for ddanbe
0
203
Member Avatar for Tigr@

Did you try to use the [Doubblebuffered](https://msdn.microsoft.com/en-us/library/system.windows.forms.control.doublebuffered(v=vs.110).aspx) property?

Member Avatar for JamesCherrill
0
159

The End.