4,439 Posted Topics
Re: What does exfil contain when you do this: var exfil = from drive in DriveInfo.GetDrives() where drive.DriveType == DriveType.Removable select drive.VolumeLabel; | |
It was tinstaafl who put me on the right track. [Click Here](http://www.daniweb.com/software-development/csharp/threads/450463/graph-plotter) I did not know that .NET as of VS 2010 had a charting control! OK, let’s get started! But the learning curve, is as always, a bit steep. MSDN does not seem to provide too much code, so … | |
Re: Hi Muhammad 90, welcome at DaniWeb. Line 9 should be `for(int index = 1 . . .` index 0(the first char) is already checked on line 7. The code checks to see if the string is an identifier. The first char must be a letter, followed by letters or digits. … | |
I hear rumours that Windows 10 is on the way. Is this true? What happened to Windows 9? Does anybody out here have any ideas? | |
Re: A DataGridViewRow has a Visible property which you could manipulate. Read [this](http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewrow.visible(v=vs.110).aspx). | |
Re: It is a data type in C#. It actually does nothing, it just sits there happily being a double. It all depends of what you want to do with it.If you want to know more about a double then read [this](http://msdn.microsoft.com/en-us/library/678hzkk9.aspx). | |
Re: Hi danchi, welcome at DaniWeb. I guess in your situation a [TableLayout control](http://msdn.microsoft.com/en-us/library/vstudio/w4yc3e8c(v=vs.100).aspx) would be more suitable. With it you can arrange your controls in any place you like. A FlowLayout control is always one control after the other. | |
Re: Hi Hijaz Aslam, welcome at DaniWeb. By using boolean algebra it is sometimes possible to simplify a very complex `if elsif else` construct in your program. Canonical is just a fancy word for "usual" or "standard". The canonical form or usual form of a quadratic equation is:ax^2+bx+c=0 A non standard … | |
Re: Start by reading a good book about the subject you're interested in. Practically a must is "*The C programming language*" by Kernighan&Ritchie | |
Re: You should start to open and read a text file.Here is a [tutorial](http://www.cplusplus.com/doc/tutorial/files/) if you don't know how to do that. | |
Re: If FinalDate is a DateTime, you cannot assign a String to it as you do on line 3 | |
The idea for this snippet came from vegaseat, who wrote a very nifty RPN calculator in Python, simulating a switch/case statement, something that Python is missing. See this code on page 19 in the projects for beginners thread on the Python software development forum. In my opinion, he did a … | |
Re: You might consider a TreeView control. [Here](https://www.youtube.com/watch?v=Gd1bM90Rpxg) is an explanation of it in vb.NET | |
Re: Say cells A1,B1 and C1 contain degrees,minutes and seconds, then this will do the trick: =TEXT(INT(A1);"0° ")&TEXT(INT(B1);"0' ")&TEXT(INT(C1);"0'' ") Change ';' to ',' if needed. Over here we use comma as a decimal separator so it is replaced by ';' in formulas. Use two single quotes for the seconds, not … | |
Re: This is mostly done with what is called a *recursive descent parser* | |
Re: You could start reading [this article](http://vb.net-informations.com/excel-2007/vb.net_excel_2007_open_file.htm). On the bottom of this webpage you'll find related articles. [Example](http://vb.net-informations.com/excel-2007/vb.net_excel_oledb.htm) with DataTable. | |
OK I know the DateTime structure is very good at doing this. But if you ever wanted to design your own calendar, or just wanted to know how things are possibly done, this could be a handy function. Enjoy. | |
Not that it is probably of the utmost importance, but I was wondering why ~s.o.s~ has 74 reputation points in the overview lists. and only 63 in the icon list on the Software Development forum. | |
Re: What part of your program do you need help with? | |
Re: If you are using VS, you better post in the VB.NET forum. Did you know you don't have to save your excel file first as a cvs file to import from it? Read [here](http://vb.net-informations.com/excel-2007/vb.net_excel_2007_open_file.htm) how. | |
Re: Use the FileStream.Seek method to position yourself on the line to be removed. Multiply your linelength with the lineNr to be removed minus one to postion yourself in the file just before the line to be removed. Now write the new line. Success. | |
Re: The string Split method can be used here. Works like this: `string[] splits = FileName.Split(new Char[]{'-'});` See for further details [here](http://msdn.microsoft.com/en-us/library/b873y76a(v=vs.110).aspx). | |
![]() | Re: public class TCard { int suit; int rank; } The compiler considers this as being: public class TCard { private int suit; private int rank; } So proceed as Pritaeas pointed out. ![]() |
Re: If you would have read the rules, you would have known we don't do homework. The rules can be found at the bottom of this page. Happy reading! | |
![]() | Re: Your loop needs to do what [my snippet](https://www.daniweb.com/software-development/csharp/code/371819/code-template-for-a-menu-in-a-console-application-) does,so I hope it helps. |
Re: Does delete mean setting a player to 0 and " "? If so, then on line 44 you are calling ProcessDelete which does that for all the arrays. | |
![]() | Re: Like to comment on your ShowDice method. Nice drawings btw. but with two dice, this goes up to 36 pracically the same drawings. Imagine what would happen if you wanted a 3-dice game .... So there is lots of double code use. Whenever you see that, an alarm in your … |
Re: Start for example [here](http://mathworld.wolfram.com/Circle-CircleIntersection.html) | |
Re: Perhaps [this thread](https://www.daniweb.com/community-center/posting-games/threads/411770/ask-a-stupid-question-get-a-stupid-answer) is something for you? ![]() | |
Re: You can indeed create a string from a char array char[] | |
Re: Hi Ron, Me again. This little snip may help you out: Sub Macro1() ' ' Macro1 Macro ' If Cells("2").Rows.OutlineLevel = 2 Then Rows("2:4").Select Selection.Rows.Ungroup End If ' in this little snippet, if row nr 2 has a level of 2 ' rows 2 to 4 get ungrouped ' if … | |
Re: You could use an equidistant font, examples [here](http://en.wikipedia.org/wiki/Samples_of_monospaced_typefaces). Now use "empty" strings(filled with say 20 spaces) and use the [CoptyTo method](http://msdn.microsoft.com/en-us/library/system.string.copyto(v=vs.110).aspx) from the string clas, to position the info from the DataGridView in this space filled string. Append these strings now to the RichTextBox. Success. | |
Re: If possible: a little more code would be welcome. Now I can only guess it has perhaps something to do with the number of sheets in the worksheet? | |
Re: Because if it were 5 it would mess up quite some mathematics. Why does glue glue? | |
Re: I should at least put the return on line 24 outside of your for loop. | |
Re: Why can't you use objects? You're using them all over. Did you know that e.g. Int32 is an object? | |
Re: Hi pepe1900, welcome to DaniWeb. [This](http://vb.net-informations.com/excel-2007/vb.net_excel_2007_open_file.htm) could give you a start. | |
Re: In that case, I would call my class **House**. It has persons, animals, tables, rooms,neibours with a house? etc. This class does cooking, washing, talking to neibour house class etc. | |
Re: Xantipus(from Belarus) probably used a russian english dictionary or google translate and came up with the word distortion, which has of course(or should I write off course :D ) different connotations then what he meant. I have to be aware of myself as English is also not my native speak. … | |
Re: We are a community, not a personal free sofware delivery service. Read the rules before posting. | |
Re: I guess tableLayoutPanelAttempt1 is your form. I don't see you adding label1. To add the control to the form use: `tableLayoutPanelAttempt1.Controls.Add(MyTblLayoutPanel);` To label1 in the first cell of your TableLayoutpanel use `MyTblLayoutPanel.Add(label1,0,0);` | |
Re: Where in your code do you set PictureBox2.Image equal to pic2? Perhaps a Refresh() is also needed. Success. | |
Re: Have a look at [this article](http://msdn.microsoft.com/en-us/library/ms173160(v=vs.100).aspx) on MSDN for C# exceptions. | |
Re: Steak with bearnaise sauce and fries and salad. What is your favourite vacation or holyday place? | |
Re: Where have I seen this before? Well, I guess it was [here](https://www.daniweb.com/software-development/csharp/threads/237654/mandelbrot-conversion-java-to-c). Perhaps you missed this one? Follow the link in that post for an answer. | |
Re: If `this.bigInt` is of type `int` or `Int32`, you cannot assign an `Int64` or a `long` to it. | |
Re: Yes, and your problem is? | |
Re: Hi lewisy95,welcome here at DaniWeb! For this homework assignment(you're 19 right?) you could start by designing the classes you would need. Depending on how big you see this you opt for a DB or file approach. Success! |
The End.