Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #2K
~12.9K People Reached
Favorite Tags
c# x 4
c++ x 1

21 Posted Topics

Member Avatar for thijscream

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.

Member Avatar for HaxNain
0
8K
Member Avatar for charlie81

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 …

Member Avatar for derea.tadea
0
1K
Member Avatar for hollystyles

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.

Member Avatar for AlanJay
0
1K
Member Avatar for ronicasingh

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 …

Member Avatar for Akill10
0
173
Member Avatar for chsarp_vijay

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?

Member Avatar for kataraja5
0
202
Member Avatar for aminit

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.

Member Avatar for GenyPOP
0
195
Member Avatar for chbailey

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: " + …

Member Avatar for LizR
0
180
Member Avatar for loken
Member Avatar for Acidburn

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.

Member Avatar for Acidburn
0
77
Member Avatar for alexutza_r_m

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 …

Member Avatar for alexutza_r_m
0
117
Member Avatar for zguidon

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.

Member Avatar for Ken Sharpe
0
410
Member Avatar for gouki2005

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

Member Avatar for Ken Sharpe
0
98
Member Avatar for dskumar_85

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 …

Member Avatar for $dunk$
0
76
Member Avatar for coppersony

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

Member Avatar for coppersony
0
130
Member Avatar for SelArom

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 …

Member Avatar for SelArom
0
270
Member Avatar for sidharthrshah
Member Avatar for alc6379
0
262
Member Avatar for isiebe
Member Avatar for it2051229

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.

Member Avatar for $dunk$
0
107
Member Avatar for dmkp

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 …

Member Avatar for dmkp
0
87
Member Avatar for bhavna_816

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

Member Avatar for razool
0
335
Member Avatar for weasel7711

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 …

Member Avatar for $dunk$
0
122

The End.