15,612,595 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 Python questions
View Javascript questions
View C++ questions
View Java 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 Kevin Marois (Top 111 by date)
Kevin Marois
31-Jan-23 17:27pm
View
Got it, thanks
Kevin Marois
31-Jan-23 17:17pm
View
So if a user starts the installer, it could still run under the System Account?
Kevin Marois
31-Jan-23 16:46pm
View
Thanks Dave
Kevin Marois
9-Dec-22 13:36pm
View
Griff,
I can't seem to get the Pre-Build version number. Do you know of a way to get this?
Kevin Marois
18-Sep-19 12:49pm
View
Deleted
First, can you post your config file? Are you sure that there is an app setting called 'FiletextPath'
Next, break down this line into two
string[] lineOfContents = File.ReadAllLines(ConfigurationManager.AppSettings["FiletextPath"]);
so that it becomes
var path = ConfigurationManager.AppSettings["FiletextPath"]
string[] lineOfContents = File.ReadAllLines(path);
Then see which line throws the error.
Kevin Marois
15-Apr-19 10:34am
View
You've stated what you want. No one here is going to code it for you unless you're willing to pay.
If you are a programmer, then start working on it and ask questions in the
forums
[
^
] as needed.
Just telling us what you want won't get you too far here.
Kevin Marois
21-Feb-19 11:08am
View
Your entire response was rude & uncalled for. What's the point of having forums if you can't post questions without someone like you flaming the guy. He said he Googled it and didn't find what he's looking for, so he posted here, where he hoped to find someone who could help him with his problem.
Instead hey gets YOU, who, instead of helping him either narrow his search or provide an answer, you choose to insult him.
You said to him "In either case - you call yourself a 'developer'. No - you want to be a developer. You've a ways to go." So because he's not as bright as you he's not a developer?
You're one of the smarter folks here on CP and you've helped me more than a few times, but if you don't have an answer, then don't reply. And certainly don't flame the poor guy who's just trying to do his job.
Kevin Marois
27-Sep-18 12:13pm
View
WinForms or WPF?
Kevin Marois
11-Jun-18 16:42pm
View
I suggest you take a look at SignalR. https://www.asp.net/signalr.. It autoamtically uses different methods, including Web Sockets, but it nicely wraps up all the work for you. And you can send any kind of message you want. And, to add to that, it's REALLY simple to set up & use.
Kevin Marois
18-Apr-18 10:28am
View
I didn't post a reply to get points, so voting me 1, 3 or 5 makes no difference to me. Voting for something like this is just plain silly. And oh, don't forget to scroll down and vote down Griff for posting in the solution.
Kevin Marois
17-Apr-18 21:07pm
View
You have me confuses with someone who cares
Kevin Marois
18-Sep-17 12:51pm
View
Look at StreamWriter
Kevin Marois
13-Sep-17 11:23am
View
It's looping through all the controls on the container represented by the 'this' keyword and subscribing their 'Click' events to something called 'ClickCounter'
Kevin Marois
6-Apr-17 11:49am
View
So what's your question?
Kevin Marois
20-Mar-17 16:56pm
View
Have a look at SignalR. It's not WCF, and it's much easier to implement.
See this https://docs.microsoft.com/en-us/aspnet/signalr/overview/getting-started/tutorial-server-broadcast-with-signalr
Kevin Marois
20-Mar-17 11:27am
View
Well let me say that insulting people here isn't going to get you very far. Griff is a respected member here and talking down to him just got you on a lot of $hit lists.
Good luck getting help now.
Kevin Marois
15-Mar-17 18:52pm
View
No problem. Good luck
Kevin Marois
15-Mar-17 18:36pm
View
There are some situations where you may need to do this..
1) Singleton Pattern. See this http://csharpindepth.com/Articles/General/Singleton.aspx
2) A Hierarchical Data structure. Think of a TreeView.
Google both of these for more info.
A Constructor is a method with no return type that has the save name as the class. It's used to initialize the class. See this https://www.codeproject.com/Articles/7011/An-Intro-to-Constructors-in-C
Kevin Marois
15-Mar-17 18:09pm
View
"Public" is the Access Modifier.
"Node" is a reference to the class you're in. That means this class will have a reference to itself called 'next'.
"next" is a class level variable that you use to reference the class instance of the Node object.
Kevin Marois
9-Dec-16 18:56pm
View
Unless you want a lot of spam you should not post your email in the clear on sites like this. I suggest editing your post and removing it.
Kevin Marois
29-Sep-16 13:49pm
View
Sounds like you need to save the scrolled position, then restore it. Take a look at this http://stackoverflow.com/questions/7326656/adding-a-scroll-event-to-datagrid
Kevin Marois
20-Sep-16 17:38pm
View
1) Do you have your own logging in place to see where's it failing?
2) if you think that the DB isn't ready, can you put in some pausing/testing to ensure that it is?
3) What DB are you using?
Kevin Marois
25-Aug-16 14:10pm
View
First, tell us some more about your environment. Windows 7/8/10? What version of .Net? What version of SQL? Windows/WPF/Web?
Second, how would the user load the next 100 records? Each time it drops down you get the next 100?
Third, look into Paging - getting x number of records per request. Basically you would need to store the starting record number, then per each call increment that by 100. There are complications when consider ordering. Take a look at this:
http://stackoverflow.com/questions/109232/what-is-the-best-way-to-paginate-results-in-sql-server
Finally, you might want to reconsider your approach here. A dropdown isn't really designed for 40K records.
Kevin Marois
29-Apr-16 17:21pm
View
By the way, is this WinForms or WPF?
Kevin Marois
29-Apr-16 17:21pm
View
Try CTRL-A, which is the standard Windows shortcut for Select All, but it wouldnt surprise me if it either didn't work or it was really slow.
Kevin Marois
29-Apr-16 16:51pm
View
Don't know what STRG-A means.. The problem here is that you're loading way too many items. The list isn't designed for this. You need to rethink your design. As I said before, consider paging.
Kevin Marois
29-Apr-16 15:00pm
View
Have you tried using a Grid instead of a ListView?
Kevin Marois
29-Apr-16 14:59pm
View
The problem is that you're loading WAY too many items. Try loading 100 at a time. Handle the Scrolled event to load the next 100.
Kevin Marois
20-Apr-16 14:47pm
View
You posted way too much code here, and it's not formatted. Can you post just the part that's failing?
Kevin Marois
20-Apr-16 14:22pm
View
Your SQL statement(s) are probably incorrect. Paste them into SSMS and see what happens.
Kevin Marois
20-Apr-16 14:20pm
View
Look here. There's a template:
Submit a new Article - CodeProject
[
^
]
Kevin Marois
18-Apr-16 11:13am
View
WPF isn't going anywhere. I hear that all the time an I don't know where people get their info. See this: https://blogs.msdn.microsoft.com/dotnet/2014/11/12/the-roadmap-for-wpf/
Kevin Marois
18-Apr-16 11:09am
View
Maybe you should go back and re-read his post. His question was clear and he adequately defined the problem and purpose of his app. Nothing you stated in your answer is true.
"You did not inform us what is the existing application, Forms, WPF, or anything else" - He said WinForms
"So, there is no the alternatives you mention" - He provided his two alteratives - WinForms or WPF.
"If you don't have a working version of the component used before"
He has a working, unfinished WinForms version.
"did not reference that DotNetBar" - What does that mean??
Maybe take some more time reading the questions before you answer.
Kevin Marois
15-Apr-16 10:22am
View
"so far but it isn't working."
WHAT isn't working? Did you get an error? If so, what is the error? You have not provided enough info to help anyone here assist you. Go back and edit your question and include more details.
Kevin Marois
14-Mar-16 17:41pm
View
What interests you?
Kevin Marois
11-Mar-16 16:58pm
View
What happens when you run it?
Kevin Marois
1-Mar-16 12:55pm
View
See this:
http://highoncoding.com/Articles/29_Creating_Datagrid_columns_programmatically.aspx
Kevin Marois
23-Feb-16 13:19pm
View
Have you seen this? http://stackoverflow.com/questions/1979016/how-to-call-method-from-running-windows-service
Kevin Marois
11-Feb-16 13:07pm
View
What do you mean when you say "Its not working"? Do you get an error? What happens when you try it?
Kevin Marois
10-Feb-16 15:02pm
View
What are you doing with the file after it loads? Can you load only part of the file?
Kevin Marois
10-Feb-16 10:37am
View
Could you not send the image as a message in SignalR, then open it on the client machine?
Kevin Marois
10-Feb-16 10:34am
View
For WPF take a look at the MVVM pattern. While not a framework, you'll find the better WPF frameworks all incorporate it, so understanding MVVM is probably a requirement.
As far as which framework, that probably depends on your needs. Here's a comparison chart to get you going:
https://catelproject.atlassian.net/wiki/display/CTL/MVVM+framework+comparison+sheet
Kevin Marois
9-Feb-16 11:34am
View
No Problem. Glad I could help.
Kevin Marois
5-Feb-16 13:49pm
View
Since you're new here... no one here is going to do your homework for you. What have you tried? Is there a particular problem you're having?
Kevin Marois
2-Feb-16 13:42pm
View
I agree that the quality of the questions posted here are somewhat lacking. But...
After being around here for 11 years I can tell you..
1) ... that you can't assure me anything about the OP, since you know nothing about him (unless you're him in disguise :)
2) ... I found his question clear and concise. As soon as I read it two possible solutions came to mind. Bill posted one right away. If two of us got it, it was clear.
the only thing I'm assuming is that the OP doesn't have a clue what they're doing unless they prove otherwise in their question.
Really? I know many fine, qualified, experienced devs who have posted short, to the point questions here with little detail outside of the direct question. Some folks just aren't great communicators.
Just because someone doesn't write paragraph after paragraph explain all the in's and out's of their app and their reasoning doesn't mean they're clueless.
Kevin Marois
2-Feb-16 13:20pm
View
Sounds like you may want to rethink what you are doing.
You most certainly did.
You're arrogance is astounding. I'm done with you.
Kevin Marois
2-Feb-16 13:15pm
View
What?? Where did you come up with THAT?? Who's writing malicious software?? Where did you come up with that??
The Great, All Knowing, All Powerful Sergey has decided the OP is up to no good.
What a completely ridiculous response.
I'm done with you. Like I told Ryan, you go on playing internet police.
If you don't have an answer to the question, the don't respond!!
Kevin Marois
2-Feb-16 13:12pm
View
in this case you are just plain wrong.
LOL - So now you've decided both the OP AND me are wrong?? More arrogance.
WHY the OP asked is not important and totally irrelevant since the solution is clear. Bill and F-ES Sitecore both provided answers without grilling the OP as to his motives.
So, no, I'm not wrong.
I'll walk away... you stay and keep playing internet police. Watch the OP closely... he's probably up to no good.
Kevin Marois
2-Feb-16 12:49pm
View
In most case, if someone want to do that, then he probably don't understand what he is doing. There are almost no valid reason to do that even for an installation program.
You just made a lot of assumptions with no facts to back it up. Who are you to say what's 'valid' and what isn't? You know nothing about the OP and you decided 'he doesn't know what he's doing' - really??
Thus, it is a very legitimate question to ask why. Another reason, is that when we do not approve something because 99% of the reason to do it are evil, then even if we knew it, we absolutly don't want to help OP to do its malicious purpose
Again, you're making assumptions not based on any real fact. I've written code that shuts apps down. What if he's writing an installer that requires Office be closed?
Again, asking Why isn't necessesary unless he asks you to validate his requirements.
Kevin Marois
2-Feb-16 12:45pm
View
What an entirely stupid response. Who are you to tell him what he should do? There are very valid reasons for closing Office from your app. Just because he didn't tell you why doesn't invalidate his reasons.
Kevin Marois
2-Feb-16 12:42pm
View
That was a ridiculous response. I don't need to learn from you. Suggesting that I do is just arrogance since you know nothing about me.
His question was clear, and I don't see any reason to ask him Why. I don't need
learn from you so then you also will be able to ask right questions'
- stupid answer.
The OP already knows WHY he needs to close the apps, he just doesn't know HOW. Him telling you WHY isn't going get him the solution he needs. Why if you didn't like his reason? Are you going to tell him not to do it, or 'rethink what you are doing' like Ryan did. Who are you two to decide what he should or should not do.
I can think of a few good reasons to close other apps, and I've had requirements to do so in the past, and I can easily think of ways to do so. If I were looking for sample code to do this, I certainly wouldn't want to sit here and explain to you why.
If you don't have a answer to the question, then don't answer at all.
Kevin Marois
2-Feb-16 12:19pm
View
I'm no sure what you're trying to say, but Why is irrelevant. His question was How To - not Do You Think I Should.
Kevin Marois
2-Feb-16 12:04pm
View
You're making some huge assumptions. See my response to Bill above
Kevin Marois
2-Feb-16 12:02pm
View
The first thing at I thought when I read his question was - "He's probably writing some kind of installer". His request was reasonable. He DIDN'T ask anyone to validate his requirements.
The responses from SA and Ryan sound a lot like StackOverflow responses. CP is much more collaborative and saying "WHY?!" looks like SA is thinking - 'whatever could you possibly need to do that for???"
For Ryan to say "Sounds like you may want to rethink what you are doing' is just plain arrogant - considering he knows NOTHING about the OP or his requirements.
These responses came across almost flame-like.
Kevin Marois
2-Feb-16 11:44am
View
As I said to SA - What does it matter why? He didn't ask what you thought of it - he asked how to tell of office apps are are open.
"Sounds like you may want to rethink what you are doing." - pretty arrogant to say considering you know nothing about his app or the requirements.
Kevin Marois
2-Feb-16 11:42am
View
What does it matter 'why?' His app needs to know - that's why
Kevin Marois
2-Feb-16 10:13am
View
What is the exception message you're getting? On what line?
Kevin Marois
26-Jan-16 13:29pm
View
Try setting smtp.UseDefaultCredentials = false
Kevin Marois
26-Jan-16 10:18am
View
See this:
http://lmgtfy.com/?q=how+to+read+text+from+a+text+file+line+by+line+in+c%23
Kevin Marois
26-Jan-16 10:17am
View
He DID basic research. He posted his question here
Kevin Marois
25-Jan-16 11:13am
View
Simple. Create a class that holds the checkbox values, then pass that class to the other form
Kevin Marois
25-Jan-16 10:22am
View
Are you asking how to get the values from the checkboxes in one form into another form?
Kevin Marois
21-Jan-16 16:58pm
View
Well there's your problem. You're using a path to a file that doesn't exist.
Kevin Marois
21-Jan-16 15:09pm
View
So is the file actually there?
Kevin Marois
21-Jan-16 14:55pm
View
I understand what you're asking. What I don't understand is the problem. If Path.GetFullPath(path) is returning the wrong path, then WHAT path is being returned? What does File.Exist(path) return?
Kevin Marois
21-Jan-16 14:51pm
View
Ok. You said it isn't pointing you to the file, so the file's not there? Why is it incorrect?
Kevin Marois
21-Jan-16 14:42pm
View
What I asking is.. If Path.GetFullPath(path)
doesn't give you the actual path, then what IS being returned? A relative path? I ask because Path.GetFullPath should return the absolute path.
Kevin Marois
21-Jan-16 14:25pm
View
What path is Path.GetFullPath(path) returning?
Kevin Marois
21-Jan-16 11:59am
View
What is the value of authorIDLabel? Did you try running the command directly in DB?
Kevin Marois
20-Jan-16 15:28pm
View
Check to see how many times you're subscribed to the CellContentClick event.
Kevin Marois
20-Jan-16 14:50pm
View
Take a look at SQL Server Integration Services (SSIS)
Kevin Marois
19-Jan-16 16:03pm
View
You have not provided enough information. So far we can only guess what you're after and what's wrong. Can you post more code and show us where the offending code is?
Kevin Marois
19-Jan-16 15:48pm
View
What do you mean "its treating it like empty field"? Also, since you're using WPF you should look into MVVM and Data Binding
Kevin Marois
18-Jan-16 14:17pm
View
That's nice. Now do you have a question?
Kevin Marois
18-Jan-16 14:16pm
View
What do you mean by print? To a printer? Then create a report. To the UI? Then use a grid control. There is not enough substance in your question to provide an answer.
Kevin Marois
18-Jan-16 14:15pm
View
Way to answer without answering!
Kevin Marois
18-Jan-16 13:12pm
View
I think that kid of design sounds good in principal, but in reality it's a maintenance nightmare. Just a single property name change results in more work than it's worth.
Kevin Marois
18-Jan-16 12:46pm
View
Deleted
I think that kid of design sounds good in principal, but in reality it's a maintenance nightmare. Just a single property name change results in more work than it's worth.
Kevin Marois
18-Jan-16 12:35pm
View
Here's another possibility... I typically create a separate project called Entities, and then reference that in all other projects. Then you can use them all over and not need any mapping. Each property can call INotifyPropertyChanged and be based off _EnityBase if needed.
Kevin Marois
18-Jan-16 12:33pm
View
AutoMapper
Kevin Marois
14-Jan-16 16:20pm
View
There's not enough information here to help you. What is a 3D wood log? What have you tried? Are there specific problems you need help with? Is there any code related to issues your having that you can post? Remember, we're not in front of your computer and can't see what you're looking at and we can't read your mind.
Kevin Marois
12-Jan-16 13:03pm
View
Deleted
http://lmgtfy.com/?q=The+%27Microsoft.Ace.OLEDB.12.0%27+provider+is+not+registered+on+the+local+machine
Kevin Marois
6-Jan-16 10:32am
View
Please, for the love of all things proper - use meaningful variable names
Kevin Marois
31-Dec-15 15:02pm
View
The command looks funny. It appears you're trying to do a join. Are you sure it works? Have you tried it in SQLiteManager?
Kevin Marois
2-Dec-15 14:47pm
View
Have you tried doing any research on your own? Or do you expect the members here to do your homework for you?
Kevin Marois
26-Oct-15 12:16pm
View
It's Visual Studio.. Not Studios
And you haven't provided enough information to help you. What installer are you using?
Kevin Marois
3-Sep-15 12:13pm
View
Are you using WinForms, WPF, Web?
Kevin Marois
3-Sep-15 11:41am
View
FilesystemWatcher?
Kevin Marois
25-Aug-15 11:17am
View
Are you using the Checkcombobox from the Extended Toolkit?
Kevin Marois
20-Aug-15 17:16pm
View
Take a look at this
http://www.codeproject.com/Articles/484616/MVVM-Diagram-Designer
Kevin Marois
20-Aug-15 12:23pm
View
You can be sure of that. And I speak for everyone else here too. Good luck with your assignment.
Kevin Marois
20-Aug-15 11:57am
View
No one here is going to do your homework. It's clear that you've done no research, not made any attempt at trying, and are only interested in someone doing the work for you.
Try figuring it out yourself, put together some code, then ask questions about your code when you get stuck.
Kevin Marois
19-Aug-15 19:16pm
View
Directory.getFiles loads an array with the names of any files that are in the directory. See this:
https://msdn.microsoft.com/en-us/library/07wt70x2(v=vs.110).aspx
Kevin Marois
19-Aug-15 19:13pm
View
if(File.Exists(someFileName))
{
// The file is there
}
Kevin Marois
19-Aug-15 19:05pm
View
Any hidden files in there? What is the name of the file is says is there? Does File.Exist() show it there?
Kevin Marois
19-Aug-15 16:24pm
View
It looks like your radio buttons isChecked are all bound to the same property. If so, then checking one will cause all the others to be checked. Also, check your GroupName. Put a breakpoint in your converter and see what values are passed in and what is returned. If you can check more than one, then the group name is probably not what you think it is
Kevin Marois
18-Aug-15 11:28am
View
Good luck with that. You'll get no help here when you post an assignment with no attempt at solving it yourself. You've posted no code, no logic, no attempt at fixing/solving your problem.
Now, for $75/hr US I'd be happy to write your app.... That's what we at CP do - WE WORK FOR A LIVING. If you ever hope to do the same as a coder, then learn.
Kevin Marois
18-Aug-15 11:25am
View
Why not just embed a PPT in your WPF app?
Kevin Marois
24-Jul-12 19:39pm
View
Are you using WinForms or WPF?
Kevin Marois
1-Jun-12 12:19pm
View
Take a look at
http://www.simple-talk.com/dotnet/.net-framework/designing-a-data-access-layer-in-linq-to-sql/
and
http://msdn.microsoft.com/en-us/library/aa581776.aspx
Kevin Marois
31-May-12 11:58am
View
Create a data access class. This class should handle all access to & from your database. In my case I'm using Linq-to-sql. The getDataContext returns an instance of the data context for my app.
Kevin Marois
30-May-12 14:17pm
View
Thanks!
Kevin Marois
5-Oct-11 16:44pm
View
Yes
Kevin Marois
22-Sep-11 17:57pm
View
At one point I was using Linq To SQL in my DL. I was able to do this
CustomerModel retVal = (from c in context.tblCustomers where c.CustomerId == CustomerId select new CustomerModel { CustomerId = c.CustomerId, CustomerName = c.CustomerName, InvoiceHeader = getInvoicesForCustomer(c.CustomerId) }).FirstOrDefault();
Now with EF I can't do it.
There HAS to be a way to do this!!
Kevin Marois
22-Sep-11 16:08pm
View
Maybe not. I'm trying to load a hierarchal list of model objects from the data.
Kevin Marois
22-Sep-11 14:28pm
View
That's an interesting idea, but it doesn't give you back a collection of models.
Kevin Marois
24-Mar-11 19:40pm
View
I read this & thought, "umm, whaa?"
Kevin Marois
22-Feb-11 12:13pm
View
I don't even know what you just said.
I DON'T SPEAK TEXT SPEAK. I SPEAK ENGLISH. YOU WON'T GEY ANY MORE REPLIES FROM ME UNTIL YOU USE ENGLISH.
Kevin Marois
8-Dec-10 12:45pm
View
Why don't we ask the CP to just redirect to Google? Why bother going to CP at all?
Kevin Marois
27-Oct-10 14:06pm
View
Deleted
Reason for my vote of 1
No value at all
Kevin Marois
26-Oct-10 14:18pm
View
Deleted
So you didn't find it useful?
Show More