16,004,602 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 Erik Rude (Top 68 by date)
Erik Rude
19-Sep-17 11:01am
View
Sorry my bad I wasn't paying attention to the date. I was looking at the unanswered questions only, then I changed the filtering and I didn't notice the existing answers. If this doesn't answer your question I'm sorry to have upset you this much. Anyway I can't see that there is an accepted answer. Hope your day improves :)
Erik Rude
11-Jul-17 8:02am
View
Have you implemented INotifyPropertyChanged for your objects?
Erik Rude
10-Jul-17 10:29am
View
Does it have anything to do with this line in the style? (Try to remove it to see what happens then)
Data="M0 0h24v24H0z"
It is very hard to say anything from just the style as I said before. Try to show what you've got going (Code) and how it's not working.
Erik Rude
7-Jul-17 7:43am
View
Have a look at some of the questions that has a successful answer. Do what they did. Show what you have that doesn't work for you in the question. The above style is probably fine, but what does your code do - what have you done? And change it in your question - not everybody wants to read comments all day :)
Erik Rude
7-Jul-17 4:12am
View
You can paste the code into the editor. If you have a small code sample that people can look at it will work best.
Erik Rude
6-Jul-17 11:19am
View
I've had WPF an VS behave oddly when I accidentally had different targets for different projects in my solution, so just hoped it was that simple. Otherwise no brainwaves from me sorry.
Erik Rude
6-Jul-17 10:32am
View
Have you checked you're targeting the same .Net framework in both solutions? Just a wild punt.
Erik Rude
6-Jul-17 7:52am
View
Share your code if you want to get a response other than this type, please.
Try making it contain a working sample of the behaviour you're getting (include the style and the xaml.
Erik Rude
29-Jul-15 9:17am
View
I was looking for a solution to a similar question. I found this and the only thing the OP needed to do to make this work (and worked in my case) was to change to Database Password= instead of Password=. So it is not a wrong answer, and I gave the solution so that other people looking at a 5 yO post may get a heads up. Sorry if that made your day worse :) Never mind - it may be wrong I see your point.
Erik Rude
2-Sep-14 8:52am
View
Thanks for the help and interest Richard. I take it that the method is then indeed to use Custom Actions and I will get back here with a proper answer useful for others at a later time - when I've got one.
Erik Rude
12-Jun-14 4:35am
View
I think if you show code that demonstrates the behaviour - you will get more luck in answers.
At the moment the best people can do is to say look at Data\Control templates or something along those lines. (basically using your question to search the site or google). Share your code that demonstrates the problem.
Erik Rude
21-Feb-14 11:10am
View
Try stepping through the code in debug mode to see what happens.
I think you will find that you overwrite the label values a number of times with values from your query.
That is probably not what you want. Have a look at Databinding to see if that may help you achieve what you're after
Erik Rude
13-Jan-14 7:38am
View
You are assuming a lot of knowledge on the part of the person who has to answer this question.
What is a click point in relation to Steganography? I'm not sure what that is. It is also not clear what you're really asking for. Mouse cursor location on an image? or is it a decryption algorithm to find the most likely changed values?
Anyway you need to think of a better question in order to get a useful answer.
Cheers
Erik
Erik Rude
13-Nov-13 7:27am
View
Have you thought about GroupBy?
Erik Rude
22-May-13 7:51am
View
And where is the question? What doesn't work and what have you looked into?
Erik Rude
22-May-13 7:48am
View
post your code after isolating the error if possible.
Erik Rude
22-May-13 7:47am
View
You are asking a lot here. People probably wont go to your link to read a picture about what is wrong.
Post the error message in text - let people know what you're trying to do and what you have done so far that didn't work.
Erik Rude
21-May-13 4:18am
View
Just add a solution - the system works out you did it yourself! :)
Erik Rude
21-May-13 4:13am
View
Do you know in advance the capacity of each column?
If so you can use some of the string manipulation functions, if not you probably have to look at doing some PL/SQL stored proc dure stuff.
Your example could still do with a bit of formatting. Then please use improve question instead of the comments.
Erik Rude
3-May-13 7:44am
View
You could make your Label text a property of your User Control so you could set it from outside.
Erik Rude
25-Apr-13 8:07am
View
try posting some code. Maybe some one will be able to spot the issue.
Try limiting the amount of code to just what makes this behaviour happen.
Erik Rude
24-Apr-13 5:16am
View
Maybe look at a content Data Template or something?
Erik Rude
17-Apr-13 6:05am
View
Which version of visual studio are you using? You can do F5 (run to next break point) or shift+F11 I suggest you read up on debugging in the help files. There are many extremely useful features that you'll only find if you read this section.
Erik Rude
28-Mar-13 6:28am
View
What is your environment? WinForms or WPF. Have you had a look at googling this. There are many good resources even on this site.
Erik Rude
11-Dec-12 5:35am
View
In principle a good ide, but the implementation means that the user will be allowed if the trigger is not run on the day when the software expires. Better to say in Expiration <= the current date.
Erik Rude
16-Nov-12 11:26am
View
I'm not sure your question and your code are well aligned.
Looks to me like you're opening a connection to a database asking how many menuitems thare are in the Icecream group and then you're counting how many checkboxes you've got checked in ch9. if more than the number of menus then you show the message.
There are many issues in your code.
First when you open a connection you need to close it as well (or at least that is good practice)
Are you sure that select max_items from menu_group where group_name='icecream' returns the value you think it should do? It may, but if you really want a count you could do something like
select count(*) from menu_group where group_name='icecream'
Have you tried debugging your function so you can inspect the values (and hence better understand the behaviour)?
Erik Rude
8-Oct-12 4:31am
View
Try searching for licensing - I guess what you want is a bullet proof method to make sure unauthorised use of your software is not happening. Lots of methods are mentioned here and also a bit of philosophical discussions on whether it is worth it or not.
Erik Rude
8-Oct-12 4:26am
View
Are you using Windows Forms or WPF and what code are you using to bind?
Erik Rude
20-Sep-12 8:23am
View
It is a bit unclear what you want to achieve. Perhaps if you can include code or say the exact steps you are doing you may get an answer.
Erik Rude
7-Sep-12 13:04pm
View
Sorry that I'm no genius :) - I did try for a while to achieve COM compatibility between .NET and Excel VBA, but I gave up in the end. I don't think MS is trying to make it easy for you. You can probably develop a whole application the integrates Excel into C# easier than the other way round. My only simple trick that I have tried was to use Delphi - but then I knew and had Delphi already so it may not be easy for you.
If you share your ultimate goal in your question you may get a better response. (E.g. why do you want to do the step you want to do? Perhaps people will tell you not to go on that path at all..)
Erik Rude
7-Sep-12 4:21am
View
If you share your code and experiences you may get a better response.
Erik Rude
5-Sep-12 7:12am
View
Thanks!
Erik Rude
31-Jul-12 5:18am
View
You should use the Improve Question button instead of supplying a Solution I guess.
Erik Rude
31-Jul-12 4:47am
View
Please also share the XAML definition of your grid (if it exists in XAML
Erik Rude
31-Jul-12 4:44am
View
See if you can make a small project that has just a grid with the same or similar layout with more than one row in. (I assume this is the same in WPF as in Silverlight). If you can replicate in a small sized project it may be easier to solve and get help. I'll see what I can dig out from old projects. Please tell the version of VS and Silverlight.
Erik Rude
30-Jul-12 7:44am
View
I remember having a similar issue some years back in WPF. It has to do with how the Template is being applied. I can't quite remember how It was fixed. I'll see if I can find it somewhere in the back of my mind.
Is this a problem only after you add a new row - or also before?
Erik Rude
30-Jul-12 7:35am
View
Repost of this issue:
http://www.codeproject.com/Questions/427657/Showing-Properties-near-to-street-mention-area-on?cmt=293609#cmt2_427657
Please Improve your original question or at least be kind enough to comment back that solution/comment suggested didn't work for you (and why). Cheers Erik
Erik Rude
30-Jul-12 7:26am
View
Thanks - I do find some very good hints in the Questions sections - when they have been answered and marked as such. Cheers.
Erik Rude
27-Jul-12 9:29am
View
Ok - put this code sample and explanation into your original question (using the improve question option) then you'll probably get some great answers.
I found this
http://stackoverflow.com/questions/3530036/grouping-datagridview-in-c-sharp-winforms
Indication that it may be an uphill struggle..
Maybe have a look at this article:
http://www.codeproject.com/Articles/14388/OutlookGrid-grouping-and-arranging-items-in-Outloo
Erik Rude
27-Jul-12 6:15am
View
Please improve your question by being specific to the technology you're using, that will help getting better answers.
Also it may give you some good search phrases to put into google. And links to articles that may help your understanding.
Erik Rude
25-Jul-12 5:07am
View
This wasn't quite the answer, but very useful info none the less. I'll mark it as a solution. CHeers
Erik
Erik Rude
25-Jul-12 4:52am
View
You are nearly there, but it is probably not as simple as you'd like. Have a look around this to see if that helps, then post your own solution here if other people get the same question.
http://code.google.com/p/gmaps-utility-library-dev/
Erik Rude
18-Jul-12 7:14am
View
It may help if you can share your code.
You may want to use a threadsafe collection.
Erik Rude
18-Jul-12 7:09am
View
You could make your integer i a member of a class. That class could have an event that is raised when the value of i is low.
Erik Rude
3-Jul-12 6:05am
View
Hmm, I've tested this with the RichTextBox Hyperlink in my solution and it still doesn't play ball. The message I get is
Microsoft JScript runtime error: Unhandled Error in Silverlight Application
Code: 4004 Category: ManagedRuntimeError
Message: System.InvalidOperationException: No XAML was found at the location '/Books/Books/Chapters/Page.xaml'.
at System.Windows.Navigation.PageResourceContentLoader.EndLoad(IAsyncResult asyncResult)...
This would be because the RtfTextBox in on a Page sitting in a navigation:Frame with a UriMapping like this:
urimapper:urimapping mappeduri="/Books/{pageName}.xaml" uri="/{pageName}",
but if I change the xaml to this I still get the error
targetname="ContentFrame" navigateuri="/Chapters/Page">
but this time it reports
Message: System.InvalidOperationException: No XAML was found at the location '/Books/Chapters/Page.xaml'.
And the /Books/Chapters/Page.xaml does exist in the root of my site.
Erik Rude
2-Jul-12 3:52am
View
Thanks, I'll just have a play around and see if this fixes the issue (Can't see why not, but I'll check and then come back and mark it solved). Cheers
Erik
Erik Rude
25-Jun-12 16:24pm
View
I think he just typed it here by mistake - he really was just Trying to search on Google
Erik Rude
25-Jun-12 16:14pm
View
I don't know Crystal Reports, but maybe if you can work out what the [0][1] in
cr.SetParameterValue(0, ds.Tables[0].Rows[0][1].ToString());
means then you could be on to a winner?
Erik Rude
4-May-12 9:54am
View
Hi Sass, Thanks, I've reported the issue to our IT guys and they're looking at it. I think to solve the problem of not having to hang for extended hours waiting for a dialog box to populate I probably have to create my own wrapper to DirInfo, where I create individual processes for each call and have a timeout that may kill the process in case of too long answer times. This will clearly have to be another day as I don't have time for this right now. Cheers for your help.
Erik Rude
2-May-12 9:48am
View
Thanks for the time to get me an answer. I wonder what they do in explorer to get round this issue. I can see how this can be difficult to solve.
Erik Rude
30-Apr-12 18:30pm
View
Yes, it is a network drive - it is quite possibly on the other side of the Atlantic, but what I really need to properly understand is how I make the process of asking for the information react in a way that doesn't mean I have to wait for 15 minutes for it to fail. The program will not only run on networks that I know, but also unknown to me networks.
Erik Rude
16-Apr-12 9:19am
View
Is it not just Project-->Properties-->Application then set startup object or am I missing something?
Erik Rude
28-Mar-12 9:09am
View
In a word NO. :(
Erik Rude
28-Mar-12 8:51am
View
post your code - it may help people understand what you're trying to do.
Erik Rude
20-Mar-12 12:40pm
View
Do you have to use XPath? Could you get away by just writing the XML file in a text file using streamwriter?
Erik Rude
19-Mar-12 11:06am
View
"Help, not Constantinople" - I think they prefer Istanbul at the moment.
Erik Rude
23-Feb-12 4:51am
View
Deleted
Reason for my vote of 5
just the biscuit thanks for the tip!
Erik Rude
23-Feb-12 3:58am
View
Thanks, it looks like I should do a bit of reading up on the theoretical background of Unit Testing.
Erik Rude
22-Feb-12 10:50am
View
First of all Thanks!
OK, the thing is that I am of course using this feature in other 'units' that fail because I don't get the right path (that would be a null as you said). I had been looking at the GetExecutingAssembly, but abandoned it because I'm lazy and it gave me uripaths. I would assume in my program that the Executing assembly path was always the one I'm after.
Erik Rude
20-Feb-12 8:56am
View
What is the question?
Erik Rude
26-Jan-12 7:20am
View
Help yourself by stating whether this is WinForms or WPF or something else.
Erik Rude
20-Jan-12 12:21pm
View
I will try to work around this then. I just thought that the Values would automatically refresh when the collection did.
Erik Rude
20-Jan-12 12:17pm
View
Thanks fo rthe reply - I've got a property that is a 'Version' that I want to have as the SelectedValue at the same time (this doesn't work in the cbxUpdating) I have a template that works on just the Value part of the collection. I refer to that just on the DataType eg:
<datatemplate x:key="VersionTemplate" datatype="{x:Type MyApp:Version}" xmlns:x="#unknown">
Erik Rude
20-Jan-12 11:21am
View
The only issue with this solution is that it does not cover the Windows bar at the top.
Erik Rude
7-Jun-11 12:16pm
View
Now I just happened to stumble upon these two articles on ADS on a completely separate search :)
Manipulate Alternate Data Streams
[
^
]
Accessing alternative data-streams of files on an NTFS volume
[
^
]
Erik Rude
25-May-11 9:18am
View
In my question I said: Is there a standard for tagging files - or should I just implement my own database and keep track of tags there?
Any ideas welcome.
The answer from you was Bad Idea! - which one? Looking for standard or implement my own database? I agree that I should have shared my end goal from the beginning and then went on to explain my end goal, but probably still not well enough. Any way I will make my app following the advise of separate database for tagging. And the FileSystemWatcher seems interesting.
Erik Rude
19-May-11 4:38am
View
I will go for the own database. Had thought about xml that would accompany the files, but it seems a lousy compromise. Over time I may be able to include tagging like Office by influencing the binary file coder. Not a solution for the text files though.
Erik Rude
19-May-11 4:28am
View
I am not sure it is necessarily a bad idea to try to solve the problem or look for standards. Either of the two could lead to easier integration in future versions.
I found this article http://www.codeproject.com/KB/selection/TagCloud.aspx where the author works with TAGs and tagging perhaps choosing 'a standard approach' would enable easy reuse of others code.
Thanks for the advice on sharing the ultimate goal. (btw. I found the tagging of my question quite hard)
Show More