15,997,496 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 Laurence1234 (Top 57 by date)
Laurence1234
7-Aug-13 5:10am
View
Hi SA,
I've actually solved this problem now. The problem was down to the Default Namespace being incorrectly set in the properties of the .csproj file. Once I set this this and added my resx files, I right clicked on the resx and selected "Run Custom Tool". When I rebuilt my solution the compiler generated a .dll for each resource and placed it into a folder corresponding to the appropriate culture. I assume these are the satellite assemblies you mentioned.
I think I was stuck because I didn't realize if you correctly place your resx into the properties folder of your project and run the custom tool it's actually automating the process of manually using RESGEN then AL.EXE to build the resource file and compile this into the binary satellite assemblies for each culture (or lanaguage to use my previous terminology).
Laurence1234
6-Aug-13 4:30am
View
HI SA,
As always, thanks for your answer - my 5.
In this situation however I have already have the pre-populated ".resx" files. These files contain only strings, translating labels into different languages. I have 4 of these files and rather than re-adding all these entries, I want the static resource class to be automatically generated including the resource entries from all the files (I had to remove the previous version as it was in the wrong namespace).
Using a tool such as RESGEN, I want to pass in all of the 4 files as arguments and the strongly typed class that is generated therefore should include the translations from all 4 resx files.
Sorry perhaps I didn't explain it well enough. Your answer is very useful for the future by the way.
Laurence1234
29-Jul-13 8:02am
View
I think so. I think I'll have to make a ScreenCast to show what I mean.
Cheers,
Laurence1234
26-Jul-13 19:33pm
View
Hi SA,
I mean the app has not been suspended, it is not in snapped view or any other visual state, but another app is in focus.
The user is able to re-open that app by opening what I assume is the metro equivalent of the task bar, which is accessed in the top left hot corner.
Many thanks, Larry.
Laurence1234
23-Jul-13 11:50am
View
Yes, this was wrapped in the Style element as I was setting it in my standardstyle.xaml.
Laurence1234
23-Jul-13 10:50am
View
This looks like a good start. Thanks Yvan.
Laurence1234
23-Jul-13 10:49am
View
Interesting. But in the MSDN article it is not a direct descendant as far as I can see.
Laurence1234
23-May-13 5:34am
View
Hi SA,
Thanks for your input. I will check it out. My 5.
In response to your other question, yes, you're correct I mean sector in this case.
Cheers,
Larry
Laurence1234
15-Aug-11 4:56am
View
Hi,
Thanks for the response. I will indeed, if I ever figure it out, post it up. For now I'll take a look at this link.
Cheers
Laurence1234
10-Aug-11 10:03am
View
ok, I can now pause the animation, but it pauses at whatever opacity it has got to rather then returning to 100% instantly then resuming the fade out once the mouse leaves.
Laurence1234
15-Jul-11 10:55am
View
This is the article I had found :
http://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo.verbs.aspx
Alongside this one :
http://msdn.microsoft.com/en-us/library/aa969385.aspx
Laurence1234
15-Jul-11 10:35am
View
Yeah, I re-read the article I thought had suggested that. I had got the wrong end of the stick :p
I have tried your approach above, the program opened however it didn't didn't load the file...
Laurence1234
15-Jul-11 10:00am
View
I realise the formatting is horrible. It was correct when I wrote it, then when I uploaded it it went like this. I can't seem to edit it back for some reason.
Laurence1234
30-Jun-11 11:18am
View
Interesting. Thanks for your input.
As I do specify the ordering after the data is retrieved though, surely my question regarding the First function is still valid.
Laurence1234
30-Jun-11 9:48am
View
Good solution, thanks.
It is what I actually used to get round this problem in the end, however I do order the data by the customers number each time, so even if the Database gave the list in a different order, it's processing the same list every time.
Laurence1234
1-Jun-11 21:37pm
View
Anyone want to justify that vote of "1"? I'm always willing to learn and be proved wrong and I think I made a relevant point here.
Cheers
Laurence
Laurence1234
1-Jun-11 21:36pm
View
Thanks man.
Yeah, you're right at this point we don't quite know what the OP really needs to do.
Laurence1234
1-Jun-11 12:24pm
View
For uploading and storing images into an SQL DB couldn't you just store a byte array then convert it back to a bitmap when you query the database?
That's how I'd do it anyway.
Laurence1234
11-May-11 5:06am
View
Ah ok, I will give that a go, thanks.
I still have this weird issue though that depends on the main window being minimised.
Laurence
Laurence1234
10-May-11 11:38am
View
Hmmmm, even in release mode the debugger will kick in and show the exception it seems ...
Laurence1234
10-May-11 11:35am
View
Ok thanks, I'll give it a go.
Do you mean running it in Release mode?
Also I still have the problem that if it looses focus then when the error is thrown (no matter how we get it to do that) the text box doesn't stop you interacting with the main window. But if you keep it open it behaves correctly.
Cheers
Laurence
Laurence1234
10-May-11 9:24am
View
Hi Oliver,
I did think that and tried it out, but when I took out the try/catch the program failed completely and stepped into the exception as the exception wasn't handled.
Thanks for your help
Laurence
Laurence1234
10-May-11 7:28am
View
Ok - Update on the issue.
It looks like this has only partially solved the problem. Now I have a really weird situation.
When the application is in focus if there is an error, the error box appears and stops you interacting with the main window until it's closed. That is fine.
However, if the application is minimised or not in focus, the error box is created as a separate window on the task bar. And, once again you can interact with the main window before clicking 'OK' to acknowledge the error.
This is a very confusing problem.
Laurence
Laurence1234
9-May-11 17:14pm
View
Hi,
Thanks for your input. I have found a solution which I will post later.
Laurence
Laurence1234
9-May-11 17:14pm
View
Hi,
Thanks for your input. I have found a solution which I will post later.
That second link by the way is really good, I might use that solution in the future.
Laurence
Laurence1234
9-May-11 11:45am
View
Hi,
Thanks for the link, in the end I tried:
Dispatcher.CurrentDispatcher.BeginInvoke((Action)(() =>
{
//all the code here will be executed in the main thread
MessageBox.Show
(
ex.InnerException == null ? ex.Message.ToString() : ex.InnerException.ToString(),
"Error",
MessageBoxButton.OK, MessageBoxImage.Error
);
}));
However this didn't seem to work either ...
Laurence
Laurence1234
9-May-11 8:45am
View
Hi Olivier,
Thanks for your answer.
Unfortunately it doesn't look like I have access to BeginInvoke()
The MainWindow.xaml.cs partial class doesn't seem to expose this method so I have no way of threading it through into my ViewModel.
The reason may be that this is a WPF project. If I create a System.Windows.Forms.TextBox as an example, this allows me to call BeginInvoke() however, it doesn't look like the controls that I'm using or the Code Behind/partial class (whatever you like to call it) allow me to do this.
My 5 though, I'm willing to be proved wrong on this one.
Cheers
Laurence
Laurence1234
23-Feb-11 8:09am
View
Hmm, that's odd. Could you post your code please?
Laurence1234
20-Feb-11 16:17pm
View
I see. Thanks for the feedback SA and Marcus.
Laurence
Laurence1234
16-Feb-11 15:41pm
View
Thanks for the vote SA.
Laurence
Laurence1234
16-Feb-11 11:52am
View
Yes, I think so. It seems most relevant. Is there a special way to do this?
If not, OP I recommend this answer.
Laurence
Laurence1234
16-Feb-11 11:45am
View
Ah yeah, the kiosk link is what I was thinking in terms of the only application for that (see my comment to Answer 1). -5
Laurence
Laurence1234
16-Feb-11 10:52am
View
I'm afraid that I don't know, nor would I like to comment as the only applications for that I can think of may be malicious.
Laurence1234
16-Feb-11 10:17am
View
The only application I can think of where you might want to do this would be on an embedded system such as WindowsPosReady, where you do not want the operator to be able to use any program other then the embedded application. However, as you point out, if an application created a system wide model on my personal computer I would remove it immediately. I think it is possible to disable low level keyboard hooks in C# such as alt-tab, but I wouldn't have any use for this and I don't think it's easy to do.
Laurence1234
15-Feb-11 7:21am
View
Sorry my suggestion didn't work.
I think that could be a good idea to try, and as you say may reduce your resource usage.
You may want to try some comparisons between your original image and the resultant image. I'm not entirely sure what metric is best to use, as something like Mean Squared Error will only give you a measure of disparity, but it could help you to track down where the image is being altered.
Perhaps write a brief function that will compare your images and after each operation you perform that produces a comparable specimen, call your metric.
Cheers
Laurence.
Laurence1234
10-Feb-11 14:16pm
View
No problem! Thanks for the detailed explanation. I've definitely learnt something today :D
Laurence1234
10-Feb-11 11:29am
View
Hey man,
No problem :D Just so happens I was working on some reflection the other day, so it's still fresh.
I see what you've done there; you're looking for a certain method, that starts with "set" and creating a new method name, which you then invoke.
How will you know that method will be there?
Also, what is the variable 'rhs' ?
If you could describe what you're doing there that would be great.
Thanks
Laurence
Laurence1234
10-Feb-11 11:28am
View
Deleted
Hey man,
No problem :D Just so happens I was working on some reflection the other day, so it's still fresh.
I see what you've done there; you're looking for a certain method, that starts with "set" and creating a new method name, which you then invoke.
How will you know that method will be there? Also why do you have to search for it?
Also, what is the variable 'rhs' ?
If you could describe what you're doing there that would be great.
Thanks
Laurence
Laurence1234
10-Feb-11 10:52am
View
No Problem :) If the answer leads to a solution please vote for my answer.
I see your problem now, while it is possible to get a specific method by calling:
myType.GetMethod(methodStringName);
I can see why you would want to avoid that.
As you stated in your comment in the above post you are having trouble returning the accessors. The List of properties should return this information for you.
Also, when you say "which method to call" are you intending on invoking that method once you find it? If so, that is possible using the Invoke method inside the MethodInfo class.
Cheers
Laurence1234
10-Feb-11 10:09am
View
Hi,
If you have a look at my solution below, I think I can help to solve that problem and return the list of properties.
Thanks
Laurence
Laurence1234
10-Feb-11 8:48am
View
Thanks, no problem :)
If you're interested the website I recommended has got a nice tutorial on achieving the some of the same results just in XAML, such as the bindings. Which I think is more elegant to split that out from the code behind.
Laurence1234
2-Feb-11 4:38am
View
Deleted
Apologies if I've caused offence, that was not my intention.
The voting system as far as I understand it, is to gauge the suitability of an answer and it's relevance to the original question. Voting on an article is an arbitrary qualitative measure, from the perspective of another user. While I am grateful for any input from the Code Project community, I'm sure that nobody has any sense of self-worth tied into the votes that they receive. Therefore, whilst I will reiterate my gratitude for any input I will vote for the quality of the answer honestly.
In my opinion your comments were unnecessary and highly inappropriate. Let's please get a sense of perceptive.
Laurence1234
1-Feb-11 10:22am
View
Hi,
After trying out some of these solutions I have to say the second link wasn't really suitable. The post was fairly outdated and suggested using a tool which requires a deprecated version of the .NET framework.
Also the first link discuses documentation in relation to VB.NET whereas I was interested in C#.
Sorry.
Laurence1234
1-Feb-11 5:50am
View
Thanks, SandCastle looks like the best bet.
I'll have to write some XSLT afterwards but that should be fine.
Laurence1234
27-Jan-11 8:00am
View
Can anyone give a more formal proof of the time complexity?
Laurence1234
20-Jan-11 14:07pm
View
A compiler would be of suitable scope for an MSc project, however I suggest creating your own language.
Laurence1234
20-Dec-10 9:27am
View
Do you mean you want your value to be continuously increased once the button is pressed, every 500ms or just once with single pause of 500ms?
Laurence1234
17-Dec-10 9:04am
View
Ah thanks, I'l have a look.
Laurence1234
17-Dec-10 4:48am
View
If a window is deselected or has lost focus? That's interesting, do you have any links?
Thanks
Laurence1234
15-Dec-10 5:17am
View
Cool. Remembering the reference in the XAML file is sometimes a tricky one. I often get the namespaces mixed up in a larger project.
Laurence1234
8-Dec-10 4:32am
View
So for a problem with more then one solution, both DFS and BFS will produce the same answer, but for subsequent configurations will produce different answers altogether. From those different solutions they will be a sub-set of all available solutions, but distinct to that method. So for instance DFS produces 6 then BFS produces 5, then each sharing an additional solution?
Laurence1234
7-Dec-10 11:07am
View
Thanks, it does rely on finding an open source implementation of the DCT algorithm that will compute the Fast Fourier Transform in feasible time, however this does of course depend on the size of both samples.
Similarly the comparison could potentially be very costly, as for each interval you would have to place your smaller sample as a template to find a match for that pattern, however I'm sure there are more efficient ways of doing that.
Laurence1234
19-Nov-10 19:24pm
View
Hi sivakumarmr10,
As I mentioned in another post a WrapPanel may be better suited to your needs, however without a example code snippet it's difficult to deduce what the problem is.
Hope this helps.
Laurence1234
16-Nov-10 7:51am
View
Thanks :)
Laurence1234
16-Nov-10 7:23am
View
Apologies Pete,
I think I've fixed the problem. I have no idea why it appeared blank. Before I post I keep a copy of what I've written in case anything goes wrong. I just pasted it back in and it seems to display fine this time round.
Cheers
Laurence1234
8-Nov-10 14:01pm
View
EngleA - Sorry I don't really have much idea on that I'm afraid.
Chris - Ah I see. Sorry for the incorrect post. I think the confusion has arisen for me as I have had exceptions thrown before relating to Threads and have fixed it using Delegates. Could you give an example do you think? Also I'm not sure I follow your last sentence, as if you tried to pass the wrong parameters to a method, it would not compile.
Laurence1234
8-Nov-10 10:33am
View
Hi Jim and Jerem,
Thanks for your feedback Jerem, Jim is right though I'm afraid as I'm already converting my List into an Array of Types.
Type[] myArray [gives the same data structure as] myList.ToArray< Type >()
Show More