Click here to Skip to main content
14,603,442 members

Comments by VJ Reddy (Top 200 by date)

VJ Reddy 28-Jun-12 9:53am View
   
Thank you for viewing and accepting the solution :)
VJ Reddy 28-Jun-12 9:53am View
   
Thank you for viewing and accepting the solution :)
VJ Reddy 25-Jun-12 7:05am View
   
Thank you for viewing and accepting the solution :)
VJ Reddy 23-Jun-12 8:10am View
   
Thank you, Espen :)
VJ Reddy 23-Jun-12 8:10am View
   
Thank you, Espen :)
VJ Reddy 23-Jun-12 8:09am View
   
Thank you, Espen :)
VJ Reddy 23-Jun-12 8:09am View
   
Thank you, Espen :)
VJ Reddy 23-Jun-12 8:09am View
   
Thank you, Espen :)
VJ Reddy 21-Jun-12 19:44pm View
   
Thank you, Sandeep :)
VJ Reddy 21-Jun-12 19:42pm View
   
Thank you, Sandeep :)
VJ Reddy 21-Jun-12 19:42pm View
   
Thank you, Sandeep :)
VJ Reddy 21-Jun-12 3:50am View
   
Good references. 5!
VJ Reddy 21-Jun-12 3:50am View
   
Good references. 5!
VJ Reddy 21-Jun-12 3:49am View
   
Good references. 5!
VJ Reddy 21-Jun-12 3:49am View
   
Good references. 5!
VJ Reddy 21-Jun-12 3:47am View
   
Good answer. 5!
VJ Reddy 21-Jun-12 3:42am View
   
Thank you, Manas :)
VJ Reddy 21-Jun-12 3:41am View
   
Thank you, Manas :)
VJ Reddy 21-Jun-12 3:41am View
   
Thank you, Manas :)
VJ Reddy 21-Jun-12 3:41am View
   
Thank you, Manas :)
VJ Reddy 21-Jun-12 0:21am View
   
Thank you, Prasad.

I have some additional work during these days. So, I want to return here after some time.

It is a nice experience being on CodeProject sharing the ideas and getting enriched with great coding from experts.
VJ Reddy 20-Jun-12 22:57pm View
   
Good references. 5!
VJ Reddy 20-Jun-12 22:57pm View
   
Good reference. 5!
VJ Reddy 20-Jun-12 22:55pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 22:55pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 22:54pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 22:54pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 22:53pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 22:52pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 22:52pm View
   
Good references. 5!
VJ Reddy 20-Jun-12 22:46pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 22:46pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 22:45pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 22:45pm View
   
Good answer.5!
VJ Reddy 20-Jun-12 22:44pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 22:44pm View
   
Good references. 5!
VJ Reddy 20-Jun-12 22:44pm View
   
Good references. 5!
VJ Reddy 20-Jun-12 22:42pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 22:42pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 22:41pm View
   
Good references. 5!
VJ Reddy 20-Jun-12 22:40pm View
   
Good references. 5!
VJ Reddy 20-Jun-12 22:40pm View
   
Good reference. 5!
VJ Reddy 20-Jun-12 22:40pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 22:39pm View
   
Nice answer. 5!
VJ Reddy 20-Jun-12 22:38pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 22:37pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 22:37pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 22:35pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 22:35pm View
   
Good answer and references. 5!
VJ Reddy 20-Jun-12 22:34pm View
   
Good references. 5!
VJ Reddy 20-Jun-12 22:34pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 22:34pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 22:33pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 22:32pm View
   
Nice answer. 5!
VJ Reddy 20-Jun-12 22:31pm View
   
Good answer for the minimum info given in the question. 5!
VJ Reddy 20-Jun-12 22:30pm View
   
Useful reference. 5!
VJ Reddy 20-Jun-12 22:30pm View
   
Good references. 5!
VJ Reddy 20-Jun-12 22:29pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 22:29pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 22:28pm View
   
Succinct and to the point. 5!
VJ Reddy 20-Jun-12 22:26pm View
   
Thank you very much, losmac :)
VJ Reddy 20-Jun-12 22:25pm View
   
Seen the first version. Item.Selected is used in the For loop.
Thank you :)
VJ Reddy 20-Jun-12 22:22pm View
   
Seen the initial version. I think the intent of the question is not clear in the initial version.
Thank you :)
VJ Reddy 20-Jun-12 22:19pm View
   
Thank you, SA :)
VJ Reddy 20-Jun-12 22:18pm View
   
Thank you, losmac :)
VJ Reddy 20-Jun-12 13:48pm View
   
Good point. 5!
But I think the user wants to iterate the selected items. Please see my answer.
Thank you.
VJ Reddy 20-Jun-12 13:28pm View
   
You're welcome and thank you for viewing and accepting the solution :)
VJ Reddy 20-Jun-12 13:25pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 13:24pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 13:24pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 13:23pm View
   
Good references. 5!
VJ Reddy 20-Jun-12 13:22pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 13:18pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 13:16pm View
   
Nice answer. 5!
VJ Reddy 20-Jun-12 13:16pm View
   
Good answer with references. 5!
VJ Reddy 20-Jun-12 13:15pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 13:02pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 13:01pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 13:01pm View
   
Good reference. 5!
VJ Reddy 20-Jun-12 12:56pm View
   
Good answer. 5!
VJ Reddy 20-Jun-12 12:56pm View
   
Very good answer. 5!
VJ Reddy 20-Jun-12 12:54pm View
   
From the description given in the question I think the OP wants to return an array of elements by the Function.
Please see my answer.
Thank you.
VJ Reddy 20-Jun-12 12:19pm View
   
Thank you, losmac :)
VJ Reddy 17-Jun-12 13:02pm View
   
Thank you for viewing and accepting the solution :)
VJ Reddy 16-Jun-12 4:06am View
   
Thank you, taha :)
VJ Reddy 16-Jun-12 2:17am View
   
Good answer. 5!
VJ Reddy 16-Jun-12 2:06am View
   
Thank you for viewing and accepting the solution :)
VJ Reddy 16-Jun-12 2:04am View
   
Good answer. 5!
VJ Reddy 16-Jun-12 2:02am View
   
Good answer. 5!
VJ Reddy 15-Jun-12 22:38pm View
   
Thank you, SA :)
VJ Reddy 15-Jun-12 20:32pm View
   
Thank you, Manas :)
VJ Reddy 15-Jun-12 10:57am View
   
Good references. 5!
VJ Reddy 15-Jun-12 7:36am View
   
Thank you, Manas :)
VJ Reddy 15-Jun-12 7:36am View
   
Thank you, Manas :)
VJ Reddy 15-Jun-12 7:35am View
   
Thank you, losmac :)
VJ Reddy 15-Jun-12 7:35am View
   
Thank you, Manas :)
VJ Reddy 15-Jun-12 7:35am View
   
Thank you, Abhinav :)
VJ Reddy 15-Jun-12 7:34am View
   
Thank you, Manas :)
VJ Reddy 15-Jun-12 7:28am View
   
Good answer. 5!
VJ Reddy 15-Jun-12 6:26am View
   
Good answer. 5!
VJ Reddy 15-Jun-12 6:19am View
   
Good reference. 5!
VJ Reddy 15-Jun-12 6:19am View
   
Good answer. 5!
VJ Reddy 15-Jun-12 6:18am View
   
Good answer. 5!
VJ Reddy 14-Jun-12 23:49pm View
   
Good suggestion. 5!
VJ Reddy 14-Jun-12 21:08pm View
   
You're welcome and thank you for the response :)
If the answer is helpful then you may accept the solution.
VJ Reddy 14-Jun-12 21:01pm View
   
As explained here http://msdn.microsoft.com/en-us/library/5cw9x18z the RemoveAt method is an O(n) operation, where n is (Count - index), which means it's a linear search as O(n) denotes linear search which can be seen from here
http://en.wikipedia.org/wiki/Big_O_notation
VJ Reddy 14-Jun-12 20:46pm View
   
Thank you, SA :)
VJ Reddy 14-Jun-12 20:35pm View
   
The answer is good.
But Add method accepts comma separated addresses string as shown in answer, which is succinct I think.
VJ Reddy 14-Jun-12 20:31pm View
   
Thank you, Espen :)
VJ Reddy 14-Jun-12 20:30pm View
   
Good answer. 5!
But Add method accepts comma separated addresses string as shown in answer.
VJ Reddy 14-Jun-12 20:14pm View
   
Good references. 5!
VJ Reddy 14-Jun-12 20:13pm View
   
Nice answer with good references. 5!
VJ Reddy 14-Jun-12 20:12pm View
   
Good reference. 5!
VJ Reddy 14-Jun-12 20:11pm View
   
You are absolutely correct. As seen from the above reference it is elaborate with several options.

Thank you :)
VJ Reddy 14-Jun-12 19:58pm View
   
Nice answer. 5!
VJ Reddy 14-Jun-12 19:57pm View
   
Good reference. 5!
VJ Reddy 14-Jun-12 19:56pm View
   
Good answer. 5!
VJ Reddy 14-Jun-12 19:53pm View
   
Thank you, Espen :)
VJ Reddy 14-Jun-12 19:53pm View
   
Thank you, Espen :)
VJ Reddy 14-Jun-12 19:52pm View
   
Thank you, Espen :)
VJ Reddy 14-Jun-12 19:52pm View
   
Thank you, Manas :)
VJ Reddy 14-Jun-12 19:51pm View
   
Thank you, Espen :)
VJ Reddy 14-Jun-12 19:51pm View
   
Thank you, SA :)
VJ Reddy 14-Jun-12 13:27pm View
   
Helpful references. 5!
VJ Reddy 14-Jun-12 13:27pm View
   
Good answer. 5!
VJ Reddy 14-Jun-12 13:26pm View
   
Good answer. 5!
VJ Reddy 14-Jun-12 13:24pm View
   
Good reference. 5!
VJ Reddy 14-Jun-12 13:24pm View
   
Good suggestion. 5!
VJ Reddy 14-Jun-12 13:23pm View
   
Good answer. 5!
VJ Reddy 14-Jun-12 13:20pm View
   
Thank you, losmac :)
VJ Reddy 14-Jun-12 8:50am View
   
Good answer. 5!
VJ Reddy 14-Jun-12 8:50am View
   
Good answer. 5!
VJ Reddy 14-Jun-12 8:49am View
   
Good answer. 5!
VJ Reddy 14-Jun-12 7:40am View
   
Good reference. 5!
VJ Reddy 14-Jun-12 5:52am View
   
Good answer. 5!
VJ Reddy 14-Jun-12 5:35am View
   
Good suggestion. 5!
VJ Reddy 14-Jun-12 4:36am View
   
Thank you, Manas :)
VJ Reddy 14-Jun-12 4:36am View
   
Thank you, Manas :)
VJ Reddy 14-Jun-12 4:36am View
   
Thank you, Manas :)
VJ Reddy 14-Jun-12 4:36am View
   
Thank you, Manas :)
VJ Reddy 14-Jun-12 4:33am View
   
You are absolutely correct.
Thank you.
I think this answer is not required. I am deleting it.
VJ Reddy 14-Jun-12 4:31am View
   
Very good answer. 5!
VJ Reddy 14-Jun-12 4:11am View
   
Edit: pre tag for C# code added.
VJ Reddy 14-Jun-12 2:13am View
   
Good references. 5!
VJ Reddy 14-Jun-12 2:13am View
   
Good references. 5!
VJ Reddy 14-Jun-12 2:13am View
   
Good references. 5!
VJ Reddy 14-Jun-12 2:10am View
   
Thank you, Mohamed :)
VJ Reddy 14-Jun-12 1:23am View
   
You're welcome and thank you for reviewing and accepting the solution :)
VJ Reddy 14-Jun-12 0:36am View
   
Good suggestion. 5!
VJ Reddy 14-Jun-12 0:20am View
   
Thank you, Vani :)
VJ Reddy 13-Jun-12 22:41pm View
   
Nice explanation 5!
VJ Reddy 13-Jun-12 22:39pm View
   
Thank you, Tim :)
VJ Reddy 13-Jun-12 21:33pm View
   
Nice answer making an obscure point obvious 5!
VJ Reddy 13-Jun-12 21:08pm View
   
You're welcome and thank for viewing and accepting the solution :)
VJ Reddy 13-Jun-12 20:15pm View
   
Thank you for viewing and accepting the solution :)
VJ Reddy 13-Jun-12 13:11pm View
   
Good answer. 5!
VJ Reddy 13-Jun-12 13:10pm View
   
Good answer. 5!
VJ Reddy 13-Jun-12 13:10pm View
   
Good answer. 5!
VJ Reddy 13-Jun-12 13:09pm View
   
Nice answer with references. 5!
VJ Reddy 13-Jun-12 13:08pm View
   
Good point. 5!
VJ Reddy 13-Jun-12 13:08pm View
   
Good answer. 5!
VJ Reddy 13-Jun-12 13:07pm View
   
Good suggestion and references. 5!
VJ Reddy 13-Jun-12 13:03pm View
   
Edit: pre tags for VB.NET code added
VJ Reddy 13-Jun-12 13:00pm View
   
Good reference. 5!
VJ Reddy 13-Jun-12 12:57pm View
   
Good answer. 5!
VJ Reddy 13-Jun-12 12:57pm View
   
Good references. 5!
VJ Reddy 13-Jun-12 12:56pm View
   
Good answer. 5!
VJ Reddy 13-Jun-12 12:55pm View
   
Thank you, Manas, for the response :)
VJ Reddy 13-Jun-12 12:55pm View
   
Thank you, Manas :)
VJ Reddy 13-Jun-12 11:48am View
   
Please see the updated solution.

Thank you :)
VJ Reddy 13-Jun-12 11:30am View
   
Good point. 5!
VJ Reddy 13-Jun-12 11:05am View
   
Good answer. 5!
VJ Reddy 13-Jun-12 10:56am View
   
Good reference. 5!
VJ Reddy 13-Jun-12 10:55am View
   
Good answer. 5!
VJ Reddy 13-Jun-12 10:52am View
   
Good references. 5!
VJ Reddy 13-Jun-12 10:51am View
   
Good reference. 5!
VJ Reddy 13-Jun-12 8:34am View
   
Good references. 5!
VJ Reddy 13-Jun-12 8:33am View
   
Good references. 5!
VJ Reddy 13-Jun-12 8:28am View
   
Thank you, Prasad :)
VJ Reddy 13-Jun-12 8:20am View
   
The above code gives the date as 30/1/2012. I think the
.AddMonths(1).AddDays(-1); in the FindDate method is to be
.AddDays(-1);
If so then it returns 26/12/2011, which is correct.

It works fine when the required day of the week is before the DayOfWeek of the last day of month as in the above case. But, when the required day of week is after the day of week of the last day of month, then the correct date is not obtained
for eg. if we use
FindDate(2012, "February", DayOfWeek.Thursday);
it returns
2/2/2012 whereas the correct date is 26/1/2012

I have used another alternative.

Please see my solution.

Thank you.
VJ Reddy 13-Jun-12 5:21am View
   
Thank you :)
VJ Reddy 13-Jun-12 5:20am View
   
Thank you, Prasad :)
VJ Reddy 13-Jun-12 5:17am View
   
Thank you, Manas :)
VJ Reddy 13-Jun-12 4:35am View
   
Good pointing of empty string. 5!
VJ Reddy 13-Jun-12 4:31am View
   
Thank you, Manas :)
VJ Reddy 13-Jun-12 4:31am View
   
Thank you, Manas :)
VJ Reddy 13-Jun-12 4:30am View
   
Thank you, Manas :)
VJ Reddy 13-Jun-12 4:08am View
   
Good answer. 5!
VJ Reddy 13-Jun-12 4:08am View
   
Good answer. 5!
VJ Reddy 13-Jun-12 4:07am View
   
Good answer. 5!
VJ Reddy 13-Jun-12 3:19am View
   
Thank you, SA :)
VJ Reddy 13-Jun-12 1:32am View
   
Nice explanation. 5!
VJ Reddy 13-Jun-12 1:32am View
   
Nice explanation. 5!
VJ Reddy 13-Jun-12 1:21am View
   
Good answer. 5!
VJ Reddy 13-Jun-12 1:15am View
   
Good answer. 5!
VJ Reddy 12-Jun-12 23:08pm View
   
Thank you, losmac :)
VJ Reddy 12-Jun-12 14:00pm View
   
Good answer. 5!
VJ Reddy 12-Jun-12 13:22pm View
   
Thank you, losmac :)
VJ Reddy 12-Jun-12 13:11pm View
   
Good answer. 5!
VJ Reddy 12-Jun-12 11:19am View
   
Good references. 5!