Click here to Skip to main content
15,307,104 members

Comments by Tarun.K.S (Top 200 by date)

Tarun.K.S 22-Oct-11 8:46am View
It worked for me. It will display the Title at the center of Window's "Title bar", but definitely not at the center of Window itself. It's quite unclear what the OP wants, my 5 anyway.
Tarun.K.S 26-Aug-11 0:30am View
You can also edit the question to improve it.
Tarun.K.S 25-Aug-11 1:21am View
Ganesh, use the "code block" feature to wrap your code, looks better now.
Tarun.K.S 20-Aug-11 13:18pm View
Edit: Removed the unnecessary pre tags.
Tarun.K.S 18-Aug-11 4:05am View
Sudesh, use the "code block" to wrap your code.
Tarun.K.S 17-Aug-11 15:14pm View
Just one "?" is enough. Stop putting multiple ????.
Tarun.K.S 17-Aug-11 1:26am View
What is a ServiceId?
Tarun.K.S 17-Aug-11 0:50am View
Did you replace xmlDoc with xdoc? :)
Modified my solution. Check now.
Tarun.K.S 16-Aug-11 14:23pm View
What Manfred meant to say is, a simple Hi with one "i" is enough. And avoid using trailing dots like this ".....". Use the <pre> tags to wrap your code, its more readable. Also avoid saying "u", "y" instead of you and why, its called text speak and is not at all tolerated, atleast here. Keep these things in mind, it will help you in the long run.
Tarun.K.S 12-Aug-11 2:51am View
Edit: Made the link clickable.
Tarun.K.S 10-Aug-11 3:33am View
Excellent link. 5+
Tarun.K.S 8-Aug-11 7:31am View
Good suggestion. 5+
Tarun.K.S 29-Jul-11 13:28pm View
Excellent answer. 5+
Tarun.K.S 29-Jul-11 13:24pm View
Please remove this answer and add it as a comment using "Add comment" in Philippe's answer so that he can be notified through email that you gave a comment.
Tarun.K.S 25-Jul-11 8:32am View
Tarun.K.S 25-Jul-11 8:32am View
The output of the XML is this:

Tarun.K.S 25-Jul-11 6:38am View
Correct. 5+
Tarun.K.S 25-Jul-11 4:50am View
Have you tried using XmlDataProvider?
Tarun.K.S 21-Jul-11 3:50am View
Good article. Learned something new today. Thanks.
Tarun.K.S 20-Jul-11 12:36pm View
Digimanus, it's very unfortunate what Ramalinga did. I agree with Anurag, you can take this up with Chris Maunder. Post your complaint here in Site Bugs and Suggestions. Chris will take care of it.
Tarun.K.S 20-Jul-11 6:42am View
Prachi, use <pre> tags to wrap your code.
Tarun.K.S 20-Jul-11 5:12am View
Yep, that's right. 5+
Tarun.K.S 20-Jul-11 5:12am View
Tarun.K.S 20-Jul-11 5:11am View
Good links there, bookmarked!
Tarun.K.S 20-Jul-11 1:57am View
Reason for my vote of 5
Excellent links there!
Bookmarked for future reference. :)
Tarun.K.S 18-Jul-11 3:38am View
5 for the solution.
Tarun.K.S 18-Jul-11 3:37am View
Tarun.K.S 18-Jul-11 2:58am View
Tarun.K.S 18-Jul-11 2:58am View
Thanks SA!
Tarun.K.S 17-Jul-11 14:52pm View
Tarun.K.S 17-Jul-11 14:52pm View
Damn it! It's not displaying the class.
Prachi, can you please post your question again, sorry for the inconvenience.
Something went horribly wrong while improving question, its just not displaying the class.
Tarun.K.S 17-Jul-11 8:44am View
Hahhahahaa! Best answer ever! :D
Tarun.K.S 17-Jul-11 8:00am View
Thank you! I have personally used the second article.
Tarun.K.S 17-Jul-11 8:00am View
Thanks man!
Tarun.K.S 17-Jul-11 7:58am View
Yep that must be the reason. 5+
Tarun.K.S 17-Jul-11 7:44am View
You're welcome. I'm sure you will learn a lot and implement it in the best possible way.
Tarun.K.S 17-Jul-11 7:42am View
Excellent. 5+
Tarun.K.S 17-Jul-11 7:41am View
Thank you very much! :)
Tarun.K.S 17-Jul-11 7:38am View
Thanks a lot, added a few more!
Tarun.K.S 17-Jul-11 7:33am View
Nice article, bookmarked! 5+
Tarun.K.S 17-Jul-11 7:33am View
Thanks Uday!
Tarun.K.S 17-Jul-11 7:33am View
Thank you Richard! Updated with two more articles!
Tarun.K.S 16-Jul-11 10:13am View
ASP.NET champ strikes again and scores a 5!
Tarun.K.S 16-Jul-11 10:07am View
Now I am getting bored! Hahahaa
Tarun.K.S 16-Jul-11 10:04am View
Thanks a lot thAtRaja! :P
Tarun.K.S 16-Jul-11 10:02am View
Thanks man! Very glad that it helped. :)
Tarun.K.S 16-Jul-11 9:46am View
You are such a bRat! (Bad pun!)
Tarun.K.S 16-Jul-11 9:14am View
Good link! 5+
Tarun.K.S 16-Jul-11 9:11am View
You didn't give a 5. :((
Tarun.K.S 16-Jul-11 8:36am View
You're welcome! Thanks for accepting the answer. :)
Tarun.K.S 15-Jul-11 13:47pm View
What about displaying the progress?
Tarun.K.S 15-Jul-11 13:46pm View
Nice link. Bookmarked for future reference! 5+
Tarun.K.S 15-Jul-11 13:45pm View
Nice link. 5+
Tarun.K.S 15-Jul-11 13:08pm View
Thank you!
Tarun.K.S 15-Jul-11 13:08pm View
You could have explained more, and I didn't downvote your answer.
Tarun.K.S 15-Jul-11 10:33am View
After posting the answer I saw that you had already answered! :doh:
My 5 for the solution.
Tarun.K.S 15-Jul-11 10:33am View
That's right. 5+
Tarun.K.S 15-Jul-11 9:26am View
Aah yes I thought for a while, and I came to the conclusion that there must be some kind of requirement for the OP to do that conversion. Anyway I will update the answer removing the second line.
Tarun.K.S 15-Jul-11 9:17am View
Damn you are right! :D
Tarun.K.S 15-Jul-11 9:11am View
I think you are right! :D
Tarun.K.S 15-Jul-11 9:07am View
Use DateTime.Now.Year.ToString()
Dim Cntweek As String = week & "-" & DateTime.Now.Year.ToString()
Tarun.K.S 15-Jul-11 9:05am View
Use the StreamReader and use its ReadLine() method to read lines.
Tarun.K.S 14-Jul-11 10:15am View
Good answer. 5+
I think setting CreateNoWindow to true is not required.
Tarun.K.S 14-Jul-11 8:12am View
Right. 5+
Tarun.K.S 14-Jul-11 8:01am View
The WPF Browsable Application is not able to communicate with a Remote Database(DataServer).
Tarun.K.S 14-Jul-11 5:13am View
Pass an array or any other collection of arguments as the parameter.
Tarun.K.S 14-Jul-11 3:20am View
As far as I know, its not possible for anyone except the CodeProject staff to see the downvotes. You very well know that it was this who downvoted and he did apologize in the answer you downvoted. I was actually going to redirect you to Sugs and Bugs to report it to the CP staff but now that's not needed. Surely it was a shameless and cowardly act to downvote your answers but it has certainly backfired as you got more points, I have a special respect for your knowledge and the way you dealt with this. Cheers!
Tarun.K.S 13-Jul-11 16:04pm View
5d! Compensating his downvotes and an excellent answer.
Tarun.K.S 13-Jul-11 9:47am View
Oh I see, I think I didn't read the question properly.
I think I will delete my answer.
Tarun.K.S 13-Jul-11 8:52am View
Good link. 5+
Tarun.K.S 13-Jul-11 8:52am View
Very cool. 5+
Tarun.K.S 13-Jul-11 6:07am View
How do I know?
Tarun.K.S 12-Jul-11 9:42am View
Hi SA, looks fine but did you have a look at my method? It´s quite short and dynamic, uses reflection though.
Tarun.K.S 12-Jul-11 8:57am View
Excellent. 5!
Tarun.K.S 12-Jul-11 8:21am View
Thanks a lot Kim, seeing you after a long time!
Tarun.K.S 12-Jul-11 6:59am View
What you might be missing is that you are not saving your xml. XMLDoc.Save(fileName) will do the job.
And its working fine here also.
Tarun.K.S 12-Jul-11 6:58am View
Exactly, OP needs to save the XML.
Tarun.K.S 12-Jul-11 6:57am View
Well did you save your xml after that?
Tarun.K.S 12-Jul-11 5:48am View
Thanks a lot for the comment. I have added an if-condition to check whether form actually exists or not.
Also 5 to both answers!
Tarun.K.S 12-Jul-11 5:32am View
Any other feature you would like to have sir?
Tarun.K.S 12-Jul-11 5:06am View
Hi SA, my 5 for the solution. I have answered this in another way. It would be really great if you could have a look at it. Just wanted to hear your suggestion on that method, just for my knowledge only.
Tarun.K.S 12-Jul-11 5:06am View
Hi OriginalGriff, I have answered this in another way. It would be really great if you could have a look at it. Just wanted to hear your suggestion on that method, just for my knowledge only.
Tarun.K.S 12-Jul-11 4:15am View
Good suggestion. 5!
Tarun.K.S 12-Jul-11 3:45am View
Nice link. 5!
Tarun.K.S 12-Jul-11 3:42am View
Actually I thought my articles won´t be accepted well, so I was a bit scared posting it here.
But after reading your comments, I think I should go ahead write some! Thank you for very much for the encouragement. :)
Tarun.K.S 12-Jul-11 3:35am View
Very nice article. 5!
Tarun.K.S 11-Jul-11 16:44pm View
Thank you very much, glad you liked my blog and the article. :)
It's always great to get appreciation from top-class experienced developers like you. :)
Tarun.K.S 11-Jul-11 13:43pm View
Please wrap your code in <pre> tags.
Tarun.K.S 11-Jul-11 13:41pm View
Good answer. 5+
Tarun.K.S 11-Jul-11 10:50am View
Thanks for the info and glad you were able to sort it out. +5 for the answer!
Tarun.K.S 11-Jul-11 8:03am View
The source code of the project is in some external link which is not working for some reason. Notify this to the author of the article by writing a new message in the Comments and Discussions section found at the bottom of that page.
Tarun.K.S 8-Jul-11 10:36am View
Right. My 5.
Tarun.K.S 8-Jul-11 10:35am View
I have modified the answer.
Tarun.K.S 8-Jul-11 10:32am View
Hmmm you are right SA, all those are keywords. Thanks for the pointers.
I think Protected Internal is the correct way of writing.
Tarun.K.S 8-Jul-11 10:02am View
Can you please vote and accept the answer(s) that helped. Thank you.
Tarun.K.S 8-Jul-11 8:45am View
Thanks man, its a great achievement for me to be a scholar in Authority. Still got a long way to go.
Really appreciate your upvotes, without them it would have taken me more time to reach. :)
Tarun.K.S 8-Jul-11 8:39am View
Exactly. 5+
Tarun.K.S 8-Jul-11 8:37am View
Same as Access Modifiers.
Tarun.K.S 8-Jul-11 8:23am View
the link __doPostBack.
Tarun.K.S 8-Jul-11 7:50am View
How about pictureBox1.Image = Image.FromFile(@"\My Documents\my pictures\spring.jpg");
Tarun.K.S 8-Jul-11 7:09am View
Nimit, tell us where are you stuck? And no one is going to solve this for you.
Tarun.K.S 8-Jul-11 7:08am View
Thanks Rama!
Tarun.K.S 8-Jul-11 6:49am View
Bookmarked for future reference. :D
Tarun.K.S 8-Jul-11 6:49am View
Thanks SA!
Tarun.K.S 8-Jul-11 6:15am View
Nice link. 5+
Tarun.K.S 8-Jul-11 5:48am View
I haven't worked on WP7, but to give a path to "BitmapImage", it goes something like this:
BitmapImage btm = new BitmapImage(new Uri(@"\My Documents\my pictures\spring.jpg", Urikind.Relative));
Tarun.K.S 8-Jul-11 5:14am View
Sure, I will do that next time.
Tarun.K.S 8-Jul-11 5:11am View
Nice article. 5+
Tarun.K.S 8-Jul-11 5:11am View
Good answer! 5+
Tarun.K.S 8-Jul-11 4:59am View
Good link with excellent answers. 5+
Tarun.K.S 8-Jul-11 4:57am View
Correct. 5+
Tarun.K.S 8-Jul-11 4:56am View
Right. 5+
Tarun.K.S 8-Jul-11 4:27am View
Nice link. Gets my 5!
Tarun.K.S 8-Jul-11 4:22am View
what is rdr?
Tarun.K.S 8-Jul-11 4:18am View
I have updated the answer. Check now.
Tarun.K.S 8-Jul-11 4:10am View
Then I would suggest you go Christian's way. You will have to "look" inside your dll to find what file do you really want.
Tarun.K.S 8-Jul-11 4:01am View
I have updated the answer. Check now.
Tarun.K.S 7-Jul-11 16:34pm View
Thanks a lot SA!
Tarun.K.S 7-Jul-11 9:02am View
Nice links. 5+
Tarun.K.S 7-Jul-11 9:01am View
Nice answer, learned something new today. Thanks.
Tarun.K.S 7-Jul-11 8:59am View
Thank you!
Tarun.K.S 7-Jul-11 8:58am View
Glad it helped!
Tarun.K.S 7-Jul-11 8:38am View
Good answer. 5+
Tarun.K.S 7-Jul-11 7:04am View
5+! :)
Tarun.K.S 7-Jul-11 6:51am View
Going by the original question, your solution is quite right. But only after seeing the comments that OP wanted to compare versions of assemblies present in the GAC, I gave this solution. The picture is unclear to me. I would give a 5 to your solution.
Tarun.K.S 7-Jul-11 6:22am View
Do it in XAML.
Tarun.K.S 7-Jul-11 4:11am View
Exactly, and create a maybe a stackapanel with some buttons representing minimize, maximize and close functions. 5+
Tarun.K.S 7-Jul-11 4:07am View
He is just kidding don't worry! Just try to google your queries, you will definitely get a lot of help. And when you get stuck somewhere in your code, bring it here and we shall try our best to solve it. :)
Tarun.K.S 6-Jul-11 5:20am View
It's in MFC! :doh:
Tarun.K.S 6-Jul-11 4:34am View
Good answer! 5+
Tarun.K.S 6-Jul-11 4:32am View
You still haven't understood what Maxxx said. You have to add an "as" like this :
Private Function FindVal(ByVal ID As Integer, ByVal Desig As Integer) As Integer
Tarun.K.S 5-Jul-11 13:17pm View
Tarun.K.S 5-Jul-11 9:11am View
You can search in google.
Tarun.K.S 5-Jul-11 9:07am View
I'm glad that the confusion is over! Let me fix that down-vote. Cheers!
Tarun.K.S 5-Jul-11 8:25am View
Firstly, the answer of yours that I saw after I posted my answer was this: "Use sb[i].ToString()... THE swiss-army-knife of .Net-Classes." So I didn't copy or plagiarize your answer. You can see that I haven't edited my answer since I posted. You have revised your answer 5 times, so it seems quite natural that you might have looked at my answer and then edited which may not be the case.

Secondly, while I was writing my solution, I couldn't see any other answers. I was preparing my solution.

Thirdly, I didn't downvote your answer.
Tarun.K.S 5-Jul-11 7:34am View
Do you have an array of StringBuilder?
Tarun.K.S 5-Jul-11 7:23am View
Did you have a look at the article? It says you have to run the gacutil.exe provided by Microsoft and then from that we can recieve the list of all assemblied loaded in the GAC. Using IO.DirectoryInfo in the C:\Windows\assembly is sometimes not possible because of security issues, hence that's why the gacutil.exe has to be started.
Tarun.K.S 5-Jul-11 6:45am View
And what is the exception?
Tarun.K.S 5-Jul-11 6:44am View
I'm feeling helpless as I'm not able to figure out why is it not going to the Err_UpLd.
Tarun.K.S 5-Jul-11 5:15am View
That's weird. It works fine here. Let me update the answer with one more thing.
Tarun.K.S 5-Jul-11 5:09am View
The reason why I specified GAC was because the OP commented on the RaviRanjankr's answer related to GAC. I'm not sure your solution works either, OP has got us confused.
Tarun.K.S 5-Jul-11 4:47am View
Good luck!
Tarun.K.S 5-Jul-11 4:26am View
Wow I learned something new today. Thanks a lot for the excellent answer.
Tarun.K.S 5-Jul-11 3:36am View
Tarun.K.S 4-Jul-11 7:12am View
Tarun.K.S 4-Jul-11 3:21am View
Good answer. 5+
Tarun.K.S 4-Jul-11 3:18am View
Right. 5+
Tarun.K.S 4-Jul-11 3:18am View
Nice one. 5+
Tarun.K.S 1-Jul-11 10:07am View
Thanks man! :)
Tarun.K.S 1-Jul-11 8:59am View
Hey good link there. 5+ :)
Tarun.K.S 1-Jul-11 8:40am View
Oh it seemed fine to me, anyway I have changed the URL. Hope it works now.
Tarun.K.S 1-Jul-11 8:31am View
Thanks. It will be much appreciated if you can vote and accept the answer(s) that helped.
Tarun.K.S 1-Jul-11 8:27am View
My bad, didn't see you have answered it. 5+
Tarun.K.S 1-Jul-11 8:27am View
Oops seems like everyone else have answered this question.
Tarun.K.S 1-Jul-11 6:42am View
Hi Pete, updated the answer with a link. I just remembered that you had answered this before. :)
Tarun.K.S 1-Jul-11 3:16am View
Hmmm right. Man I have a lot of questions to ask, seems enough for now! :P
It was really great talking to you. Thanks a ton for taking your time out enhancing my knowledge about Russia, I certainly learned many things. I will disturb you again some time later as you rarely come to CodeProject. :P
Имейте большой день :)
Tarun.K.S 1-Jul-11 3:03am View
спасибо SA!
Tarun.K.S 30-Jun-11 10:42am View
Thanks! :)
Tarun.K.S 30-Jun-11 9:10am View
Lol you won the bet! But Russia is a multi-party democracy(source-Wikipedia) or is the ground-reality different? I think I got your point, the media is kind of state-controlled, not much press-freedom is there, that's sad. :( The hard truth is you don't have any choice on whom to elect. You are right, your country needs a revolution, a change, you all need more rights. But that's hard too, as media plays an important role. Here in India, a small revolution is slowly gaining pace, against the corrupt govt officials. There is so much black money stuffed in Swiss banks that if we get it back, we will become the richest country after US. We are protesting and slowly bringing the current govt down to its knees.
I would like to see a similar protest in your country too.
Tarun.K.S 30-Jun-11 8:01am View
Tarun.K.S 30-Jun-11 7:27am View
Ohkay boss!
Tarun.K.S 30-Jun-11 7:10am View
Actually it does.
Tarun.K.S 30-Jun-11 7:09am View
Right. 5+
Tarun.K.S 30-Jun-11 7:09am View
SqlCommand MyCommand = new SqlCommand("INSERT INTO Products (Product_Name, Product_Price) Values ('"+ TextBox1.Text + "' , '" + TextBox2.Text + "');", myConnection);
This should do the trick.
Tarun.K.S 30-Jun-11 7:04am View
Updated the answer by adding a "c". Gets my 5.
Tarun.K.S 30-Jun-11 6:24am View
Hmm I got your point, he is a very clever guy. So if Putin is elected, he will remain as President for a whopping 6 years!!! Oh boy! Man I think very few people will be happy to see this. Are you happy with this development? Why I admire Putin is that he handled the United States pretty well regarding the placing of Missiles in Poland and the Ossentia War. He is also a good friend of India. Considering the recent polls here:,_2012, only 27% support Putin. BTW whom do you want to see as the next president?
Tarun.K.S 30-Jun-11 6:07am View
Good suggestion and well explained. 5+
Tarun.K.S 30-Jun-11 6:03am View
Yep right. I think objects are placed in 3 generations and shorter lived objects are placed in lower generations so that GC collect them quickly. 5+
Tarun.K.S 30-Jun-11 6:02am View
Excellent articles there. Just added another article by him. Bookmarked your answer for future reference. :)
Tarun.K.S 30-Jun-11 5:53am View
Hmm right, changing priorities can disturb other thread's operations. I was initially thinking of pointing that out, appreciate your answer. 5+
Tarun.K.S 30-Jun-11 5:51am View
You're welcome.
Tarun.K.S 30-Jun-11 5:51am View
Thanks Rama.
Tarun.K.S 30-Jun-11 5:50am View
Doesn't deserve a 2. Countered.
Tarun.K.S 30-Jun-11 5:43am View
Exellent! 5+
Tarun.K.S 30-Jun-11 5:42am View
Thank you! :)
Aah that's right, didn't notice the VB.NET tag, silly of me!
Tarun.K.S 30-Jun-11 5:10am View
Thanks a lot SA! :)
Tarun.K.S 30-Jun-11 4:12am View
Nicely interpreted. 5+
Tarun.K.S 30-Jun-11 3:49am View
Thanks for the info! I think I got the meaning of your first name too : I would also like to know whom would you like to see the next president of Russia? Putin again?
Tarun.K.S 30-Jun-11 3:45am View
I see, I got so much info here. I have heard of Svetlana, she is a tennis star.
Tarun.K.S 30-Jun-11 3:42am View
Aah I see, thanks for the info. So as SA says, most names are derived from saints and gods. Dmitry is very common in Russia I guess, including Vladmir too! Speaking of Vladmir, it reminds of Putin, so whom do you want to see as the next president, Putin? I have a special respect for Putin. Sorry for my poor understanding about your constitution.
Tarun.K.S 29-Jun-11 13:03pm View
A little off-topic, may I know the meaning of Dima? In my case, Tarun means "younger". Just curious!
Tarun.K.S 29-Jun-11 13:02pm View
A little off-topic, what is the meaning of your first name? Like meaning of my first name Tarun is "younger"(indeed I do look young!) :)
Tarun.K.S 29-Jun-11 12:59pm View
Aah yes even I realised the mistake after I saw Abhinav's comment. It was due to lack of coffee! LOL!
Tarun.K.S 29-Jun-11 8:27am View
Aah right, OP is comparing List<String> and ArrayList. Uff, let me get myself a cup of coffee!
Tarun.K.S 29-Jun-11 8:00am View
How come there is no boxing/unboxing in ArrayList?
Tarun.K.S 29-Jun-11 7:58am View
Tarun.K.S 29-Jun-11 7:58am View
хороший ответ! 5!
Tarun.K.S 29-Jun-11 6:25am View
Hhahahahahahaha! Hilarious!
Tarun.K.S 29-Jun-11 6:22am View
That should help. 5!
Tarun.K.S 29-Jun-11 6:03am View
Tarun.K.S 29-Jun-11 6:03am View
Hmm quite likely to happen.
Tarun.K.S 29-Jun-11 6:02am View
Good answer. 5
Tarun.K.S 29-Jun-11 6:01am View
Excellent suggestion.
Tarun.K.S 29-Jun-11 5:01am View
Oh that's so silly of me! Voted 5! :)
Tarun.K.S 29-Jun-11 4:19am View
Please do vote and accept his answer.
Tarun.K.S 29-Jun-11 3:46am View
This will work my 5, do have a look at my answer, I have used Linq to XML.
Tarun.K.S 29-Jun-11 2:54am View
Glad it helped. :)
Tarun.K.S 28-Jun-11 4:54am View
And how much have you tried?
Tarun.K.S 28-Jun-11 4:48am View
Edit: Removed Email-Id
Tarun.K.S 28-Jun-11 4:45am View