4,439 Posted Topics

Member Avatar for overwraith

What does exfil contain when you do this: var exfil = from drive in DriveInfo.GetDrives() where drive.DriveType == DriveType.Removable select drive.VolumeLabel;

Member Avatar for overwraith
0
214
Member Avatar for stultuske
Member Avatar for ddanbe

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 …

Member Avatar for ddanbe
0
3K
Member Avatar for Muhammad_70

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

Member Avatar for ddanbe
0
344
Member Avatar for ddanbe

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?

Member Avatar for ZZucker
1
407
Member Avatar for spowel4

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

Member Avatar for ddanbe
0
2K
Member Avatar for tarunap

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

Member Avatar for ddanbe
0
153
Member Avatar for danchi

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.

Member Avatar for danchi
0
125
Member Avatar for Hijaz Aslam

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 …

Member Avatar for ddanbe
0
204
Member Avatar for Tahmidsanjid

Start by reading a good book about the subject you're interested in. Practically a must is "*The C programming language*" by Kernighan&Ritchie

Member Avatar for ddanbe
0
47
Member Avatar for happygeek
Member Avatar for dori24

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.

Member Avatar for Maritimo
0
74
Member Avatar for jean_5
Member Avatar for isozworld
0
7K
Member Avatar for ddanbe

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 …

Member Avatar for xrjf
1
539
Member Avatar for Deep Modi

You might consider a TreeView control. [Here](https://www.youtube.com/watch?v=Gd1bM90Rpxg) is an explanation of it in vb.NET

Member Avatar for Mr.M
0
190
Member Avatar for AQWst

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 …

Member Avatar for ddanbe
0
274
Member Avatar for rebintahsin
Member Avatar for xuexue

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.

Member Avatar for J.C. SolvoTerra
0
396
Member Avatar for ddanbe

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.

Member Avatar for xrjf
0
2K
Member Avatar for ddanbe

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.

Member Avatar for ddanbe
0
139
Member Avatar for Nana_29
Member Avatar for don75cua

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.

Member Avatar for don75cua
0
128
Member Avatar for RikTelner

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.

Member Avatar for ddanbe
0
270
Member Avatar for ogsirus

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

Member Avatar for deceptikon
0
2K
Member Avatar for humorousone

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.

Member Avatar for humorousone
0
24K
Member Avatar for fo0fo0.com

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!

Member Avatar for ddanbe
0
63
Member Avatar for srentrop

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.

Member Avatar for necrovore
0
246
Member Avatar for brandon909

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.

Member Avatar for ddanbe
0
178
Member Avatar for srentrop

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 …

Member Avatar for ddanbe
0
1K
Member Avatar for ayesha.newtn

Start for example [here](http://mathworld.wolfram.com/Circle-CircleIntersection.html)

Member Avatar for David_50
0
208
Member Avatar for shahid akram

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?

Member Avatar for iamthwee
-1
173
Member Avatar for kidkardel
Member Avatar for Papa_Don

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 …

Member Avatar for ddanbe
0
758
Member Avatar for kidkardel

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.

Member Avatar for kidkardel
0
2K
Member Avatar for Papa_Don

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?

Member Avatar for Papa_Don
0
2K
Member Avatar for awesomelemonade
Member Avatar for Slavi
1
2K
Member Avatar for Fil_1
Member Avatar for ddanbe
0
246
Member Avatar for andrew909

Why can't you use objects? You're using them all over. Did you know that e.g. Int32 is an object?

Member Avatar for kplcjl
0
285
Member Avatar for pepe1900

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.

Member Avatar for ddanbe
0
47
Member Avatar for usmanjani

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.

Member Avatar for usmanjani
0
317
Member Avatar for Xantipius

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

Member Avatar for ddanbe
1
455
Member Avatar for raj.sekhar.3597

We are a community, not a personal free sofware delivery service. Read the rules before posting.

Member Avatar for ddanbe
0
67
Member Avatar for Johnathan_2

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);`

Member Avatar for ddanbe
0
1K
Member Avatar for batoolhussain

Where in your code do you set PictureBox2.Image equal to pic2? Perhaps a Refresh() is also needed. Success.

Member Avatar for Reverend Jim
0
259
Member Avatar for jean_5

Have a look at [this article](http://msdn.microsoft.com/en-us/library/ms173160(v=vs.100).aspx) on MSDN for C# exceptions.

Member Avatar for ddanbe
0
110
Member Avatar for <M/>

Steak with bearnaise sauce and fries and salad. What is your favourite vacation or holyday place?

Member Avatar for Bensirpent07
3
1K
Member Avatar for notgreatatcode

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.

Member Avatar for ddanbe
0
198
Member Avatar for jean_5
Member Avatar for ddanbe
0
69
Member Avatar for analys
Member Avatar for lewisy95

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!

Member Avatar for ddanbe
0
141

The End.