16,004,686 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Marc A. Brown (Top 200 by date)
Marc A. Brown
18-Apr-14 10:19am
View
Nice solution. Thanks! This is what I was searching for yesterday but couldn't find.
Marc A. Brown
18-Apr-14 10:18am
View
And now I feel like a complete idiot. Digging back to my parent class I see that I *did* inherit from Component. I have no idea why I would've done so and since it's library code I'm fearful of changing it (removing Component and implementing IDisposable) because I'm not sure that doing so wouldn't create breaking changes in projects that use it (not all of which are mine). In any event, I tested your solution and it does work (as does the solution below from Alan).
Thanks!
Marc A. Brown
17-Apr-14 17:46pm
View
None of which answers the question. There's either a way to do it or there isn't. Whether nonvisual components are a good idea or not is immaterial. If what I'm doing involves extending a class that implements IComponent, I can't really help that it's a Component, I would just like to determine whether there's a solution to my issue (which is admittedly a matter of convenience rather than necessity).
Marc A. Brown
21-Jun-13 11:22am
View
Sergey,
Ah, so *you* were the phantom. :) As I said above, I'm not concerned about the 1-vote for myself but for someone else looking for a solution that appears to have (mostly) worked for the OP. Thanks for the explanation -- that's very helpful.
I actually already knew, from poking around for a solution, that a UTF-8 "string" is actually a sequence of bytes rather than a string. Now in looking at it further, it would appear that you're correct that, with the exception of characters that correspond to ASCII, this solution fail. It would seem that a proper solution would require a bit-wise reading of the first byte of data to determine the number of bytes for each character, then reading that number of bytes, then repeating until the entire source was read.
Simpler would be to declare me emperor of the world and I'll outlaw non-English languages. ;)
--mab
Marc A. Brown
21-Jun-13 9:12am
View
Perhaps so but taking him at his word that it is UTF-8, how're the proposed solutions? :)
And it would appear that there's a phantom univoter about. My solution got univoted by someone with fairly high rep, but without comment. I'm not concerned about my rep points but if my answer is right (or at least close, and the OP's comment to my solution indicates that it is), it sucks to see it downvoted since anyone else searching for a solution to the same issue may discount the solution because of that.
Marc A. Brown
20-Jun-13 18:04pm
View
Instead of doing CByte(Asc(str(i))), try Convert.ToByte(str(i)).
Marc A. Brown
20-Jun-13 18:01pm
View
I don't do VB any more, so I'm out of practice. :) Do you have to have the Asc() call in there?
Marc A. Brown
20-Jun-13 11:47am
View
Please expand. What results are you getting? Something a bit more descriptive than "it fails to do the work for me" please.
Marc A. Brown
31-May-13 19:04pm
View
Try casting the DataSource to IListSource and calling the GetList() method. See also solution 2, which gives you some code.
Marc A. Brown
29-May-13 15:24pm
View
You're quite welcome. Glad I could help. :)
Marc A. Brown
29-May-13 15:09pm
View
So, do you have a separate column in your data table for each day of the week (columns for Sunday, Monday, Tuesday...Friday with a true/false or similar value for each) or is it a single column specifying the day (DayOfWeek, containing "Sunday" or "Monday" or...or "Friday")? Please update your question with this information (click the "Improve question" link).
Marc A. Brown
10-May-13 15:16pm
View
Brilliant! Thanks so much!
Marc A. Brown
10-May-13 14:49pm
View
Thanks so much.
Marc A. Brown
10-May-13 14:46pm
View
Thanks for responding. You're correct -- I should have provided the desired results. I have updated the question.
Marc A. Brown
10-May-13 13:14pm
View
A good answer, but it would eliminate empty values *too* aggressively. For instance, if there was a space between the two commas following "asd", the regex as it currently stands would give us a blank line that we would want to keep, in addition to the one that's not supposed to be there. I love the suggestion though. Thanks!
Marc A. Brown
10-May-13 11:44am
View
Well, it's not my project, so I don't know whether there's a requirement to use regex or not. If you've got an alternative suggestion, please feel free to offer it up. That said, even if the boss chooses to go another route, I hope someone can point out a regex solution to improve my understanding. :)
Marc A. Brown
21-Mar-12 22:17pm
View
Thanks. My answer wasn't "all there" at first, but once I had a better understanding of what the OP wanted, I was (I hope) able to help. The "I hope" is why I wish more inquirers would come back to their questions and accept answers. Then I'd know that I gave them what they needed. :)
Marc A. Brown
21-Mar-12 9:51am
View
Ok then. Use the TimeOfDay method. This returns the number of ticks since midnight. Does that help?
EDIT: TimeOfDay is a method of your DateTime object.
Marc A. Brown
21-Mar-12 9:45am
View
I'm not sure I understand what you're trying to do. If you're wanting to display date and time except when the time is midnight, then do just that -- check the time and if it's midnight, do what I said, otherwise display the whole thing.
If I'm still not understanding, please clarify.
Marc A. Brown
16-Mar-12 15:43pm
View
Well stated. I understand your point about the question; however, the way it was asked is, in my reading, just a form of shorthand. The OP may be asking while not recognizing your point, but I would probably have asked it the same way since everyone would understand what I was asking for without my attempting to formalize the question.
It *is* good to point it out though.
EDIT: I meant to point out that the link I posted in my answer *did* address the fact that even text files are binary files.
Marc A. Brown
16-Mar-12 15:41pm
View
Indeed the question *is* natural for a beginner. But experience has shown me that these questions -- the ones that are easily googled or binged -- tend to get the asker flamed to a highly crispy state here on CP, which is unfortunate but unavoidable. That was my only point in bringing it up (I'm sure *you* understand that, but I bring it up in case the OP didn't). See also my comment to your solution. :)
Marc A. Brown
16-Mar-12 14:26pm
View
Nice explanation.
Marc A. Brown
16-Mar-12 11:58am
View
Yeah, I thought about throwing that bit in there as well, but as with my answer it's a fairly pointless exercise since it's so easily circumvented. Not sure why either of our answers got downvoted though since both are correct. I'll help compensate for the downvote on your answer. Have a 5. :)
Marc A. Brown
7-Feb-12 12:28pm
View
Removed your email address from the question. You'll get email responses from CP when anyone submits a comment or solution.
Marc A. Brown
7-Feb-12 12:25pm
View
Made your links clickable and added the "Mobile" tag. Hope someone is able to help out.
Marc A. Brown
9-Nov-11 14:05pm
View
:) I cheated. Copied the code into Programmer's Notepad, replaced "\t" with " ", copied the result back into the CP question editing window.
Marc A. Brown
9-Nov-11 12:08pm
View
You need to post your problem, with specifics, as a separate question.
Marc A. Brown
9-Nov-11 12:06pm
View
I took care of the first part (fixing the indentation). Up to the OP to explain what's wrong. :)
Marc A. Brown
3-Nov-11 11:42am
View
Please clarify. What error are you getting? What code causes the error? It's difficult to assist without information.
Marc A. Brown
1-Nov-11 11:06am
View
So, you don't want to develop the tool. You want someone else to develop it? That's not what we do in Quick Answers. You do the work and, when you hit an issue you can't solve, you ask specific questions.
Marc A. Brown
31-Oct-11 14:12pm
View
The question sounds kind of "homework-ey" and is unclear also. You need to clarify the question and let us know what you've tried and what, specifically, is wrong.
Marc A. Brown
27-Oct-11 9:44am
View
OriginalGriff is correct. There's nowhere near enough information here for anyone to help you, unless that someone is a mindreader. More information!
Marc A. Brown
27-Oct-11 9:42am
View
Where's the question? What you've given is a problem statement. What have you done? What specific problem have you encountered that you need assistance with? You won't find a receptive audience here if you're asking for someone to do your work for you, but if you've hit a stumbling block, describe it and you'll most likely get the assistance you need.
Marc A. Brown
26-Oct-11 9:46am
View
Update your original question with more details. For instance, show us a code snippet showing how you're trying to add items. You say in a comment that you're "adding through datasource". How? Are you setting stuff in code or through the IDE? What properties are you setting and what are you setting them to? We can help, but only if you give us the information to do so.
Marc A. Brown
26-Oct-11 9:42am
View
You have a comment in your code saying that you cannot add unicode when you add to document; however, you haven't said what happens. Exception? The content just doesn't show up? Computer explodes? Cats and dogs live in sin? Seriously, you need to specify what exactly goes wrong since it's unlikely that someone is going to take the time to create a test project to run your code in.
Marc A. Brown
24-Oct-11 11:46am
View
You need to provide more information if you're expecting to get any helpful answers. You should also tag your question better.
Marc A. Brown
24-Oct-11 9:11am
View
I'm don't understand what you mean by the sentence "The problem is that when we delete a single row after that if i inserts a row it does not works for once then ok and the row number in first cell increases to 2."
Can you clarify? Also, what do you get from the two Debug.Print calls in your delete code?
Marc A. Brown
21-Oct-11 14:51pm
View
Hmm. Are you sure then that Rows isn't getting updated after the RemoveItem call? You probably already know this, but you can find out by putting a Debug.Print mshflexgrid1.Rows before the call to mshflexgrid1.RemoveItem and another Debug.Print mshflexgrid1.Rows after the call. I hate to suggest it because it may just act as a cover-up for another ill, but you could also insert a DoEvents immediately after the call to RemoveItem (before the second Debug.Print I recommended).
Marc A. Brown
11-Oct-11 14:59pm
View
Please provide us with the code snippet that is causing the problem.
Marc A. Brown
11-Oct-11 14:52pm
View
Have you examined the String array (records()) you're passing to this function? If the data is wrong there, then the code you've provided won't help in resolving the problem.
Marc A. Brown
6-Oct-11 9:33am
View
As Mario says, you need to provide more details. Table structures and the query you're trying to use will enable us to help you.
Marc A. Brown
29-Sep-11 12:19pm
View
Removed your email address from the question since you'll get emails from CP if someone answers or comments.
Marc A. Brown
29-Sep-11 10:48am
View
Please trim your code down to just the essentials for diagnosing the issue. Also, please provide some more information about the nature of the problem -- error messages, if any; the point in the code where the issue occurs; that sort of thing. Telling us that you're "having a problem..." doesn't give us anything to go on.
Marc A. Brown
27-Sep-11 15:03pm
View
English, please. You'll get more responses that way.
Marc A. Brown
27-Sep-11 14:07pm
View
Nice. Too bad I can't give you a 5 for a comment. You'll just have to bask in the warm glow of my praise.
Marc A. Brown
26-Sep-11 15:38pm
View
Having separate connections for each task should work. Good luck!
Marc A. Brown
26-Sep-11 14:52pm
View
A follow-up to my other comment. If you're dealing with transactions, you may want to research connection pooling.
Marc A. Brown
26-Sep-11 14:46pm
View
You're quite welcome. If you're using transactions, you should probably avoid a shared connection since it would be possible for you to lump together unrelated stuff into a transaction if you're not careful (and lucky). If you really only need a single connection, you're doing it basically right. Closing the connection after use is also right; however, what you need to do is to somehow determine whether it is safe to close that connection before going ahead and doing it. One way would be to add a counter to the ConnectionManager class that increments whenever a connection is requested. Then you add a method to ConnectionManager to close the connection instead of using Connection.close() everywhere. This method would decrement the counter mentioned above, then close the connection (using con.close()) if the counter is zero. This works, but you have to be disciplined enough not to directly close your connections from anywhere else. This might not be the best way to do it, but it works.
Marc A. Brown
23-Sep-11 14:43pm
View
Hey, you stole my comment! :D Seriously though, you got my 5.
Marc A. Brown
23-Sep-11 14:41pm
View
Can you cut down the code dump to just the relevant code? Also, can you specify where you're getting the error and the specifics of the error message? These things will help other people to help you.
Marc A. Brown
23-Sep-11 14:32pm
View
Way too much question to be answered here. You need to work on the project yourself, asking specific questions as you run into trouble on the way.
Marc A. Brown
23-Sep-11 10:59am
View
Please reduce the code dump to only the stuff that's relevant to your issue. You're going to have a difficult time getting anyone to look through all that mess to figure out which line is throwing the error.
Marc A. Brown
21-Sep-11 14:48pm
View
You need to actually ask a question, explain what you're expecting, etc. in order to get any real help.
Marc A. Brown
21-Sep-11 14:08pm
View
You're not going to get a very warm reception asking for the code rather than showing your work and asking for help with it. You're also looking to get flamed by telling us that it's urgent. It may be urgent to you, but the people answering questions do so on their own time, so it's not urgent to them.
Marc A. Brown
21-Sep-11 10:25am
View
And how much are you willing to pay someone to do your work?
Marc A. Brown
21-Sep-11 9:30am
View
This is just a code dump. Where's the question or problem? You're going to have a hard time getting help without that.
Marc A. Brown
21-Sep-11 9:04am
View
I removed your email address since any responses to your question will be sent to you automatically. Posting the email address just increases the likelihood of you getting spammed.
Also, you should post your question/problem as a comment to that article. That way, the author will see it and be able to respond.
Marc A. Brown
21-Sep-11 9:01am
View
What have you tried? What's the problem?
Marc A. Brown
16-Sep-11 15:14pm
View
Any error? Or does it just silently fail? If it generates an error, you should add that to the question.
Marc A. Brown
15-Sep-11 14:19pm
View
In the interest of helping to prevent you from getting spammed heavily, I removed your email address from the original message. In addition, if you're referring to an article on this site, you'd be better served in posting your question as a comment to that article. Otherwise, you might want to clarify your question.
Marc A. Brown
15-Sep-11 11:45am
View
You're not going to get someone to hand you the code, at least not here. You have to do your own work and come back here when you run into specific questions.
Marc A. Brown
31-Aug-11 15:27pm
View
Yeah, the link you provided deals with the COM side of things and is in C++. You might want to ask for help from the author of the CP article I referenced via the comments area at the bottom of the article. It appears that other people are still commenting and asking questions. It may be that you can get more help there.
Marc A. Brown
30-Aug-11 15:25pm
View
You need to provide some specifics. What have you done that hasn't worked? What problems are you having, specifically? Use the "Improve question" link below your question to add this information.
Marc A. Brown
30-Aug-11 15:24pm
View
Very nice. :)
Marc A. Brown
30-Aug-11 15:23pm
View
You need to provide more information. What have you tried? Where, specifically, are you running into trouble? Use the "Improve question" link below your question to provide details.
Marc A. Brown
30-Aug-11 15:20pm
View
As the other commenters have noted, you haven't asked a question. You've stated the task you need to complete. Where are you running into trouble? What, specifically, is going wrong? Use the "Improve question" link below your question to update with details.
Marc A. Brown
30-Aug-11 15:18pm
View
What's your question? So far you've stated the task you need to perform but haven't specified where you're having trouble. As the previous commenters have said, give us more information. Use the "Improve question" link below your question.
Marc A. Brown
30-Aug-11 10:03am
View
You need to provide information about what exception is being thrown.
Marc A. Brown
26-Aug-11 8:59am
View
You should probably edit your question to include the execption(s) you're getting. You can do that via the "Improve question" link at the bottom of the question.
Marc A. Brown
25-Aug-11 16:04pm
View
LOL, thanks.
Marc A. Brown
25-Aug-11 12:00pm
View
I updated your question with the code you put here. Please verify that I didn't mess it up in the reformat.
Marc A. Brown
10-Aug-11 13:58pm
View
Thanks. I agree with you that the OP needs to find the source of the problem; however, he *did* say that he would attempt to minimize the problem with a future release and this provides a short-term workaround to the problem.
In any event, thanks for the vote of confidence! Have a great day!
Marc A. Brown
9-Aug-11 11:11am
View
I think you'll find that my solution is *the* solution, whether you write your own app or use some third-party tool to do the same thing. As far as I can tell, there isn't anything built into Windows to do what you want, although I'd be happy to be proven wrong.
I can understand why you might wait to accept my answer in hopes that a better solution will come along, but since you think you'll implement it, I'd appreciate it if you'd come back and accept this answer if something better *doesn't* come along.
Glad I could help!
Marc A. Brown
8-Aug-11 14:15pm
View
As Shameel said, show what you've tried. Also, show any error messages you're getting. The folks here are good, but aren't mindreaders. :)
Marc A. Brown
31-May-11 15:08pm
View
I didn't get any reaction. I think the problem people have with criticism is that they take it as a personal attack. In some cases, it *is* a personal attack. The key is to see that it's not an attack against *you* but against some flaw in your thinking or your end product or whatever. Which is exactly what you're saying, I believe. :)
Marc A. Brown
31-May-11 14:51pm
View
Whoops! I forgot to answer the second half. Glad you caught it.
Marc A. Brown
31-May-11 14:03pm
View
That's because DirectoryInfo.Attributes can hold multiple attributes via a "bitwise combination of its member values". http://msdn.microsoft.com/en-us/library/system.io.fileattributes(v=vs.71).aspx
Marc A. Brown
31-May-11 13:29pm
View
Excellent response. Deserves more than the single '5' I can give it.
Marc A. Brown
31-May-11 11:03am
View
Good link.
Marc A. Brown
27-May-11 12:59pm
View
You're quite welcome. Don't forget to accept the answer(s) that helped you solve the problem! :)
Marc A. Brown
27-May-11 12:15pm
View
Are you having problems getting something to work or are you unsure of what to do?
Marc A. Brown
27-May-11 12:11pm
View
Post well-formed questions about specific problems you run into while working on your project and you'll get better results.
Marc A. Brown
26-May-11 14:44pm
View
I did the same! The one where the person had posted a multiple choice question from a homework assignment or quiz. Recommended a change of major or even leaving school entirely. And I didn't say it to be mean, but because they appeared to completely lack the drive to succeed.
Marc A. Brown
26-May-11 13:58pm
View
Good catch!
Marc A. Brown
26-May-11 13:56pm
View
Didn't you (and at least one other person) post this a few hours ago? If you need to add details, add them to the original question, don't create a new one.
Marc A. Brown
26-May-11 13:55pm
View
He or she is awfully slow to update the question for someone who has to solve the question by tomorrow. Makes it difficult to provide any serious help, doesn't it?
Marc A. Brown
26-May-11 13:54pm
View
Harsh! I *like* it! :) --mab
Marc A. Brown
26-May-11 12:11pm
View
If you're having problems getting one of those projects working, I'd suggest asking the good people who are developing those projects. I'm sure they have some mechanism for asking for help.
Marc A. Brown
26-May-11 11:28am
View
Good answer.
Marc A. Brown
26-May-11 11:16am
View
I removed your email address from the question. Bad form to include it like that because it opens you up to spam. You'll get emails from CP when someone posts a solution or a comment. Also, if Fredrik's answer helped you, you need to vote for it and/or accept it as the correct answer. That helps us out by letting us see at a glance that you've been helped out.
Marc A. Brown
26-May-11 11:11am
View
Do you mean that you're trying to determine how much time a sorting operation takes overall? Or do you mean that you need to show the elapsed time for a sorting operation as it runs? Or something else entirely? Please clarify.
Marc A. Brown
26-May-11 11:08am
View
You've tagged your question with "Javascript" but the subject says "Java". Which is it? Also, your question is quite vague. Please elaborate. You can fix the tag (or subject) and improve the text of the question by clicking the "Improve question" link.
Marc A. Brown
25-May-11 14:49pm
View
Whoops, you are correct. I apologize. I failed to note that on page two they talked about jpeg images but did not implement anything due to data loss. However, other results in the search might help, or CPallini's answer might be of use.
Marc A. Brown
25-May-11 14:30pm
View
You're welcome. Good luck!
Marc A. Brown
25-May-11 11:58am
View
It uses DirectoryEntry.MoveTo.
Marc A. Brown
24-May-11 14:29pm
View
Really? I'm sorry, but if you can't even do a simple search for a multiple choice question, you should look into a different field of study. Or perhaps consider whether you want to continue your education at all. I'm not trying to be rude, but if you aren't willing to do a minimal amount of work to find the answer to a straightforward question like this, what are you going to do when you're handed a *real* problem?
Marc A. Brown
24-May-11 14:23pm
View
That link takes me to a 404 page, John.
Marc A. Brown
24-May-11 14:21pm
View
Legor is correct. All 3 answers are good. Please accept at least one of them, perhaps even all of them, as the correct (accepted) answer(s).
Marc A. Brown
24-May-11 14:20pm
View
Good answer!
Marc A. Brown
24-May-11 14:20pm
View
Great answer. My 5.
Marc A. Brown
24-May-11 14:20pm
View
Excellent answer as always.
Marc A. Brown
24-May-11 8:58am
View
Nice one.
Marc A. Brown
23-May-11 13:54pm
View
I saw that myself and laughed a little also. Thanks for the 5. :)
Marc A. Brown
23-May-11 13:48pm
View
Removed the "VB" tag since you're only asking about C#.
Marc A. Brown
20-May-11 11:00am
View
An answer has been posted below (not by me). I suggest you take a look at it. Also, please don't use txtspk. It's difficult to read and you'll catch a lot of grief from other CP members for using it. Just a bit of friendly advice.
Marc A. Brown
20-May-11 10:54am
View
Where's the question?
Marc A. Brown
20-May-11 10:52am
View
What the heck does this vague question have to do with either Java or .NET?
Marc A. Brown
20-May-11 10:51am
View
Nice. And you get my 5.
Marc A. Brown
16-May-11 11:33am
View
Manfred, You're correct, but shouldn't this be a comment to the original question instead of an answer? That way the OP sees your comment and the question remains in the "unanswered" list. I'd've moved it myself, but thought it would be better for you to do it.
Marc A. Brown
13-May-11 15:40pm
View
Sounds fairly straightforward. What have you done so far? And what problems have you run into?
Marc A. Brown
13-May-11 14:45pm
View
Um... if st is null and you try to do st.Rollback(), you're going to get a null pointer exception. The != check is the correct one.
Marc A. Brown
13-May-11 14:42pm
View
Good call. My 5.
Marc A. Brown
13-May-11 10:25am
View
LOL. It's so hard to resist posting this style of answer when we get that style of (non-)question. You get my 5.
Marc A. Brown
13-May-11 10:14am
View
Seriously? You can't *get* to the catch block unless your code has thrown an exception that's handled by that catch. The code in your try block *is* throwing an exception. In your catch block, you're going to need to either check to make sure a rollback is appropriate before doing it or wrap it in a try to handle the exception that it's throwing. I'd also recommend doing something to see what exception you're handling in the first place that's causing the exception in the catch block. Again, you wouldn't be in the catch block if you hadn't thrown an exception to get there in the first place.
Marc A. Brown
13-May-11 9:54am
View
Exactly. You're handling one exception and then generating a new one in your exception handler. I can't tell you why you're getting the initial exception, nor why you're generating a new one in the catch block, but that's what's happening.
Marc A. Brown
13-May-11 9:02am
View
SA is right. These are very basic concepts. You need to do a little research, maybe find a good book on OO concepts and C#, and you'll figure it out in no time.
Marc A. Brown
13-May-11 9:00am
View
Thanks!
Marc A. Brown
12-May-11 14:44pm
View
FYI: You may have a hard time getting anyone to wade through this gigantic code dump to help you figure out your answer. Perhaps you could trim out the unnecessary parts?
Marc A. Brown
12-May-11 14:40pm
View
Exactly. Well answered.
Marc A. Brown
12-May-11 11:37am
View
Good answer.
Marc A. Brown
12-May-11 10:55am
View
You should've included that bit of information in your original question. I've added it for you. Also, if you need to respond to someone's answer, use the "Add Comment" link under that answer rather than adding another answer. The "Add Comment" link will cause the author of the answer to be notified that you commented, whereas adding a (non-)answer doesn't.
Marc A. Brown
12-May-11 9:36am
View
Are you referring to an article on this site? If so, post a comment to that article so that the author sees it and can respond to you. If you're referring to something from another site, contact the author through that other site for help.
Marc A. Brown
12-May-11 8:58am
View
Not sure why you got 1-voted, but I countered it. Good link.
Marc A. Brown
12-May-11 8:56am
View
Amen to that.
Marc A. Brown
11-May-11 12:29pm
View
What effort have you made?
Marc A. Brown
11-May-11 12:28pm
View
What are you expecting the code to do and what is it doing wrong?
Marc A. Brown
10-May-11 13:29pm
View
Great answer.
Marc A. Brown
10-May-11 11:59am
View
I figure you're right, but it's good to give the OP a chance. Oddly, he posted 2 assignments. I saw the second after I'd added the GimmeCode and homework tags to this one. I went in to do the same to the second and he was editing his own post. He added those tags to the second one himself, or so it appears!
Marc A. Brown
10-May-11 11:35am
View
What's your question? What have you tried? What specific issues have you encountered?
Marc A. Brown
10-May-11 11:33am
View
What's your question? What have you tried? What specific issues have you encountered?
Marc A. Brown
10-May-11 11:26am
View
Nice answer.
Marc A. Brown
10-May-11 10:34am
View
Awesome. Glad I could help. Don't forget to accept the answer!
Marc A. Brown
10-May-11 9:21am
View
That code looks familiar. Netbeans user? :) Seriously though, good answer. My 5.
Marc A. Brown
9-May-11 11:56am
View
You need to provide information about the exception you're getting, as well as where in the code you're getting it.
Marc A. Brown
6-May-11 15:06pm
View
Yup, you got it. Thanks! Glad I could help you.
Marc A. Brown
6-May-11 14:59pm
View
That sounds correct.
Marc A. Brown
6-May-11 14:41pm
View
You're quite welcome. Don't forget to accept the answer/vote for it if it helped! :)
Marc A. Brown
6-May-11 14:19pm
View
Check my answer again. I added Is Nothing code there.
Marc A. Brown
6-May-11 13:50pm
View
You need to specify the exception info for people to help you.
Marc A. Brown
6-May-11 12:56pm
View
Ok, how about an Is Nothing check? If Num90 Is Nothing Then ... I'll also add this to the answer.
Marc A. Brown
6-May-11 10:03am
View
You really need to provide an explanation of what you're getting, what you're expecting, and any other information that might help, rather than just a code dump.
Marc A. Brown
5-May-11 22:59pm
View
Hey. If this were tips and tricks, that would make a great alternative solution. :) Too bad we can't "5" comments.
Marc A. Brown
5-May-11 14:06pm
View
You always provide such good answers. Nicely explained.
Marc A. Brown
5-May-11 14:03pm
View
Nice point about persisting the configuration.
Marc A. Brown
5-May-11 14:01pm
View
Great answer. And of course you can also persist the config and reload it the next time app starts as well.
Marc A. Brown
5-May-11 13:59pm
View
Terrific answer.
Marc A. Brown
5-May-11 13:56pm
View
Excellent point.
Marc A. Brown
5-May-11 10:44am
View
Good find. Got my 5.
Marc A. Brown
5-May-11 10:42am
View
You need to clarify your question and include what you've tried so far (be sure to include error messages from your failed attempts).
Marc A. Brown
5-May-11 9:34am
View
Thanks for the chuckle! Got my 5.
Marc A. Brown
5-May-11 9:28am
View
Yeah, I understand that. (See what I did there? :D) I figured a silly question needed an obvious answer. And adding an answer drops it out of the unanswered list, making it easier for someone else to find another vague, obviously homework, or otherwise unnecessary question to answer. ;)
Marc A. Brown
5-May-11 9:24am
View
I moved your "answer" into your original question since it's not actually an answer. I'm also removing this answer for the same reason. If your intent was to comment to the other answer, there's an "Add Comment" link for that. I see you used it to post another comment to the other answer already.
Marc A. Brown
4-May-11 13:51pm
View
Great answer.
Marc A. Brown
4-May-11 12:13pm
View
So, you asked for code and got upset because someone called you on it. Then you show C# code (the language you said you needed the code to be in) that will do what you're talking about. But you mention that you can't do it in linq. So first you should be more polite to potential answerers (we see a *lot* of "gimme code" questions here and they get old). Second, if you need help with linq, perhaps you need to retag your question to include that *and* mention it in the question. Third, have a great day!
Marc A. Brown
28-Apr-11 15:02pm
View
I think my answer would've been somewhere between yours and EdMan's. No code, but tell the OP to look at System.Text.Encoding. That way I'd provide some info but force him or her to do some research. In any event, have a 5 for the answer.
Marc A. Brown
28-Apr-11 9:32am
View
GMail (I believe) requires a secure connection, so it doesn't use the "regular" port.
Marc A. Brown
28-Apr-11 9:08am
View
You're correct that we're here to help; however, we are not here to do students' homework for them. The comments you've gotten have been mild. The Q&A feature here is to help you when you run into a *specific* problem with code you've written, not to write the code for you. If you're not asking for someone to implement your project for you, perhaps you need to clarify that by editing the question (use the "Improve Question" link right under the text of your question).
Marc A. Brown
22-Apr-11 10:31am
View
Sorry that didn't help -- I didn't know the window would behave that way at 100% transparency. Looks like you've got some other good answers though.
Marc A. Brown
21-Apr-11 15:20pm
View
Thanks. It was an older article but seemed to explain nicely. Hopefully the OP finds it useful.
Marc A. Brown
21-Apr-11 13:36pm
View
I was suggesting that the lounge (http://www.codeproject.com/Lounge.aspx) might be a better place to pose a non-programming question such as yours. After all, there's no "right" answer to the question; you're looking to stir up a discussion of the merits of skinned vs. non-skinned apps, right?
Marc A. Brown
21-Apr-11 11:23am
View
Perhaps in the lounge?
Marc A. Brown
21-Apr-11 11:21am
View
Deleted
Perhaps in the lounge?
Marc A. Brown
21-Apr-11 10:36am
View
Try making your classes/interfaces public as John suggested in #1. Then report back if it still doesn't work and be specific. We need warning/error messages and what code they're related to if you want good help.
Marc A. Brown
21-Apr-11 10:35am
View
You're right about UML, but if this is a school project (sounds like it is to me), it doesn't matter whether it's a waste of time if it's a requirement. :) I think you're on the money with #1. The OP needs to make that change and report back specifics of any remaining issues.
Marc A. Brown
21-Apr-11 9:15am
View
A couple of points... first, your use of txtspk isn't going to endear you to the community. Second, your claim that it's "urgent" is also not going to endear you to the community. Third, what have you tried, any error messages?
Marc A. Brown
19-Apr-11 15:02pm
View
Very nice answer.
Marc A. Brown
19-Apr-11 10:58am
View
I moved the text of your solution to a comment to this question. The provider of the solution won't get an email if you post a question as another solution but will if you post a comment to his solution.
Marc A. Brown
19-Apr-11 10:56am
View
From the OP: Thanks!
I known but it is not detail. It is only writed about web service or design by contract.
it not explain relationship between web service and design by contract.
pls, help me!
Marc A. Brown
19-Apr-11 10:55am
View
Removed your email address. Any answers posted to this question will send you an email automatically. You reallly don't want your email out there to be harvested by spammers.
Marc A. Brown
14-Apr-11 15:57pm
View
Good to know. Have fun with it!
Marc A. Brown
14-Apr-11 15:56pm
View
Dude, if you didn't enter it twice then how is it that you've got two *very* similar questions (nearly identical) posted within a very short time of each other? It's not a matter of offending anyone's intelligence, it's a matter of wasting our time with repeated questions. I'm guessing that John must be feeling warm and fuzzy today since he was reasonably gentle with his comment and hasn't flamed you extra crispy for the comment I'm now responding to.
Marc A. Brown
14-Apr-11 14:59pm
View
But John, it's URGENTZ!! :D
Marc A. Brown
13-Apr-11 14:48pm
View
Heh. The email with your last message must've gone out almost as soon as you posted it. And my phone must've picked it up almost immediately as well. I wasn't busy, so I popped out for a quick look. Either that or I'm secretly the Flash. :)
Marc A. Brown
13-Apr-11 14:42pm
View
This isn't a forum for teaching you how to program or how to use a particular language. When you actually do some work and can't figure out why something doesn't do what you expect, you can ask those questions here and probably get some help. Your question is waaaaaay too broad and vague for anyone to give you a particularly meaningful answer.
And please note that, in my opinion, there is no way to "easily understand" any programming language. Understanding comes with experience. Experience takes time and effort.
Marc A. Brown
13-Apr-11 14:30pm
View
Great follow-up answer. Got my 5.
Marc A. Brown
13-Apr-11 14:28pm
View
Good call. Perhaps the "new" questions actually deserve their own question! :)
Marc A. Brown
13-Apr-11 12:19pm
View
This (http://msdn.microsoft.com/en-us/library/ff381399(v=vs.85).aspx) should give you a start on the Win-specific stuff. It's a tutorial on C++ programming for Windows. I would think the compiler you use would depend on the platform. the GNU compiler collection is used heavily on Linux, though I don't know enough to recommend it vs. some other solution. I don't know what you'd use on OSX or whether there's a compiler that would give good results across platforms.
Marc A. Brown
13-Apr-11 11:12am
View
Good answer. And you're right about that if/else.
Marc A. Brown
13-Apr-11 9:39am
View
I would point out to your friend that if he pauses or freezes an app, he's not going to be monitoring it, or at least monitoring it won't really have any effect since it won't be doing anything while it's frozen. Sorry, but it sounds like a bogus reason to me.
Marc A. Brown
12-Apr-11 8:58am
View
Excellent. Be sure to accept the answer or answers that helped you solve the problem. That way the next guy who comes along with a similar problem can easily tell what helped.
Marc A. Brown
11-Apr-11 14:39pm
View
Have a 5! :) I think the answer may be a combination of things -- your answer and mine both make sense.
Marc A. Brown
11-Apr-11 14:38pm
View
No, I said *I* should've researched and verified before posting. You were fine. I'm not sure what I think of Norton's reputation system. Since they provide a means of getting your software "whitelisted" to provide a rep bump, it's better than it would be otherwise. Thanks for the vote!
Marc A. Brown
11-Apr-11 13:56pm
View
That's a definite possibility; however, given Georg's comment about Norton 360, please see my answer as well. EDIT: Forgot to throw a 5 your way earlier.
Marc A. Brown
11-Apr-11 13:54pm
View
You're quite welcome. I should've done the research to verify before I posted the initial version of my answer. :)
Marc A. Brown
11-Apr-11 13:47pm
View
Sure, and it wouldn't hurt to do so. But given Georg's comment where he lists a specific message (from Norton 360), I remembered something about the reputation system they use. It *may* indicate questionable programming or it may just indicate that the software isn't heavily downloaded. Didn't mean for it to sound like I was dismissing your suggestion but in rereading my comment I guess it did. Sorry 'bout that. :)
Marc A. Brown
11-Apr-11 13:39pm
View
Please see the following for an explanation. Near the bottom is a bit on new files that supports my answer. I'm also going to add the link to my answer. http://community.norton.com/t5/Norton-360/Clarification-on-WS-Reputation-1-detection/td-p/232159
Marc A. Brown
11-Apr-11 12:02pm
View
It doesn't look like they're being flagged as viruses, based on the OP's comment above. They're being marked as suspicious because they haven't been downloaded often (at least not by users of the antimalware software in question).
Marc A. Brown
7-Apr-11 13:39pm
View
Please don't create new answers/solutions when you're trying to comment on another solution. There's a link at the lower right of each answer labeled "Add Comment". You should use that to comment on an answer. That way the person who provided the answer will get an email that you've commented. As it is, they have no way of knowing unless they come back and look at the question again.
Marc A. Brown
7-Apr-11 13:36pm
View
Seriously? This question is so vague as to be useless. You need to be a *lot* more specific if you want something other than ridicule from the good folks around here.
Marc A. Brown
7-Apr-11 11:49am
View
Seriously, if you want help you *have* to show some effort. Folks around here tend to be pretty rough on people posting questions where it's obvious the poster hasn't made any effort.
Marc A. Brown
5-Apr-11 11:53am
View
I copied this comment to your original question and formatted it. You'll want to make sure I didn't mess anything up in copying.
Marc A. Brown
5-Apr-11 11:48am
View
I don't have any help to provide you on your question, but I *do* have a bit of friendly advice (seriously). If you insist on speaking in txtspk ("ur, u, plz" instead of "your, you, please"), expect on getting badly flamed for it. Folks in these parts are particularly opposed to that kind of shorthand.
Good luck with your question!
Marc A. Brown
1-Apr-11 13:57pm
View
Thanks. :) Normally I resist those kinds of answers, but since there was already an answer out there and my brain had turned to mush, I just had to post it.
Marc A. Brown
1-Apr-11 13:55pm
View
Nice. :)
Marc A. Brown
30-Mar-11 12:20pm
View
So, what's your question?
Marc A. Brown
30-Mar-11 12:18pm
View
I moved your reply to digital man's solution so that it's a comment to his solution instead of a solution of its own. Otherwise he wouldn't have been likely to see it.
Marc A. Brown
30-Mar-11 12:17pm
View
From the OP: I have searched the articals already.
But did not find one, that matches my requirement.
I found a code, that does the treeview listing of a txt file, but as I mentioned, I want the levels to be written differently.
Thanks for your reply.
Marc A. Brown
30-Mar-11 11:04am
View
I've updated my solution. I'd recommend that, instead of asking for code so quickly, you do a quick google search in the future when you get an answer pointing you in the right direction. That's what I did to answer your question (I saw what was wrong, but wanted to be sure I gave you accurate info on how to fix it).
If my solution helps you, don't forget to accept it as the correct answer!
Have a great day!
Marc A. Brown
28-Mar-11 9:10am
View
Good answer. Perhaps the OP should also try to provide more detail as to his or her needs.
Marc A. Brown
24-Mar-11 10:00am
View
What have you tried? What research have you done? What problems have you encountered? You'll get better results here by telling us these things, rather than asking for code to be provided.
Show More