- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
21 Posted Topics
Re: Why did you do the guys homework for him? A simple textBox2.Text = dateTime.ToString("hh:mm:ss tt"); would have sufficed. All you do by doing someone's homework for them is encourage more of those kinds of questions without them putting any effort at all to at least take a stab at it. | |
Re: I don't want to do your homework for you. So I'll only give general tips: 1 - Read the chapter on types. 2 - Look for the definition of the equality operator. 3 - Semi-colons after while statements are usually not what a person would desire. 4 - Recheck your … | |
Re: You can always call Abort on the thread. [code]m_thread.Abort();[/code] If you need to do any cleanup, put a try-catch around your while loop. | |
Re: While everyone thinks they are terrific interviewers and can spot the good developers from those who aren't. The fact is that no one can tell whether a person is truly going to make a good developer from an interview. Some people are not quick on their feet when answering questions … | |
Re: Instead of using a while(TRUE) loop can't you use a variable while(keepLooping) and when the stop button is pressed you change keepLooping to false? | |
Re: I think you need more details to describe your exact problem as I don't believe the obvious answer is really your question. The obvious answer being: Open up the text file in ANSI, encode the data and write to output file. | |
Re: This isn't the best solution from a design standpoint, but it should get your application working and then you can figure out how to do a bit cleaner design. Inside your Window1 class add this: [code] public delegate void FileBoxDelegate(string filename); void AppendToFileBox(string filename) { fileBox.Text += "File: " + … | |
Re: How about where did the phrase computer bug come from? | |
Re: It generates the warning for the exact reason stated. You never assign a value to the member variable t. If you change the line T t; to T t = new T(); then it should work. | |
Re: It seems to me that you need to break the search into 2 separate operations. For example, if you start at A and want to end up at E, going through C then you would calculate the shortest path from A to C, then calculate the shortest path from C … | |
Re: I believe you are missing the fields clause. The syntax of the SQL Insert into statement is: Insert Into TableName (FieldName1, FieldNameN) Values (Value1, ValueN); If you just list the fields that you are setting then I think all should work as desired. | |
Re: You can use TryParse to see if the token string is an integer and then act accordingly. (I don't have a compiler at this computer so my syntax might be off, but you should get the idea). [code] foreach(string token in cadena) { int value; if(int.TryParse(token, out value) == false) … | |
Re: This is just a guess, but I think you might be able to do this if you program against the WindowsLive API. Of course, that implies that you are stuck with Windows Live. I'm sure if you start with that, then in the process of getting that to work you … | |
Re: Of course a REAL programmer would find the .wav file spec and code the solution themselves:) However, if you are not really that hard-core...I didn't look very hard, so I didn't find a C# version. However, there are numerous C++ versions of .wav file viewers with source code out there. … | |
Re: In actuality you have the same problem with strings. "" might be a valid string. Thus, the only sure way to know that a string has not been set to a valid value is to set your string object to null when it isn't initialized. I'm not positive, but I … | |
Re: C# has byte and sbyte types depending on if you care about the sign or not. | |
Re: How about you read the documentation for the ReadLine method? [url]http://msdn2.microsoft.com/en-us/library/system.io.streamreader.readline.aspx[/url] 1 - When you get to the end of the file ReadLine returns null. 2 - You also have to be concerned about whether the file exists which affects whether you can successfully create your StreamReader object or not. | |
Re: Unfortunately, it is a needlessly large complicated topic, which I think most people avoid unless they really need it. Thus, the reason for your lack of help in other forums. But I think if you do research on Code Access Security and C# you may be able to do what … | |
Re: I'm not sure if this is your question but are you just trying to read and write data to the data row? If so, then just do this: To Read: [code] int myIntVar = (int)myDataRow["ColumnName1"]; string myStringVar = (string)myDataRow["ColumnName2"]; etc... [/code] To Write: [code] myDataRow["ColumnName1"] = myIntVar; myDataRow["ColumnName2"] = myStringVar; … | |
Re: The most obvious question, is there some reason that you need to use a different form for each question? Throwing that question aside, What little I know of your design seems to leave quite a bit to desire, so I won't even begin to touch on redesign. I'll just answer … |
The End.