15,891,431 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 Python 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 NeonMika (Top 39 by date)
NeonMika
15-Apr-14 10:22am
View
Thank you for the link!
NeonMika
7-Jan-14 5:45am
View
Thanks for your help. Yes, it's some legacy code and concatinates strings to generate the query.
I think it's the best way to rebuild the whole query with a parameterized query.
NeonMika
7-Jan-14 5:40am
View
Yeah I know that it's as good as nothing, but I thought probably someone knows a little better than me how to interpret MS SQL Server error messages...
You can find countless internet threads on Incorrect syntax near ',' or Incorrect syntax near '(' but I cannot find any about Incorrect syntax near ' '...
I don't want to know where exaclty the error is, but I could probably minimize the space where to search.
NeonMika
7-Jan-14 5:39am
View
Sorry, I can't because it's business code...
The "GetQuery"-method is about 500 lines of code and mostly contains of "if the filter is set add following line to the query" like
if (Translator.CurrentLanguageID == LanguageID.DE)
{
query = query.Replace("%%Language%%", "GD_Translation.TranslatedTextDE");
}
Furthermore the problem is that I don't have the exact executed SQL (I don't know which filters were set)
I'm sorry that i cannot post code, probably someone has some basic idea what an errer "near ' '" could point to.
NeonMika
22-Nov-13 15:00pm
View
It's just a little project for university to learn TAP.
It shouldn't matter which RSS feed it is.
But I found out a solution myself, but thanks for asking :)
NeonMika
22-Nov-13 14:53pm
View
Sorry, I didn't mention this. The poller task should run on the UI task so there is no cross-thread access on the list.
See my current solution if you want to know how i fixed it.
Futher I heard that not every task has it's own thread. So it's no good practice to put a thread to sleep inside a Task, because it could put other Tasks also to sleep...
But thanks for your input! :)
NeonMika
25-Sep-13 7:19am
View
Okay, some extra input, just found the following (this wasn't mentioned in the german MSDN article)
[...]If you parse a date and time string by using a DateTimeFormatInfo object with customized settings that are different from those of a standard culture, use the ParseExact method instead of the Parse method to improve the chances for a successful conversion. A non-standard date and time string can be complicated and difficult to parse. The Parse method tries to parse a string with several implicit parse patterns, all of which might fail. In contrast, the ParseExact method requires you to explicitly designate one or more exact parse patterns that are likely to succeed.[...]
Could this have to do with my case?
NeonMika
4-Jun-13 10:26am
View
Thanks, great answer! Made it very clear.
NeonMika
2-Oct-12 3:42am
View
Is any exception thrown?
Is office installed on the machine? We had the problem that we had the .dll, but the dll is not working without an office installed.
NeonMika
30-Sep-12 9:33am
View
What does this question has to do with a coding question&answer-board?
NeonMika
28-Sep-12 0:55am
View
Reason for my vote of 5
I think this can help many beginners who have never worked with convertings to byte[].
Thanks!
NeonMika
27-Sep-12 14:16pm
View
I'm now @ my girlfriends place and not at home till tomorrow.
The differences are the this is the only one who is refering to another element (others link to their datacontext) and this one is using a number instead of string. So I trie another Path-writing-method tomorrow and will try to but the 0 in "". I hope it will work then..
NeonMika
27-Sep-12 14:10pm
View
That's the problem. It doesn't get called. I have some other self-written converters that work without problems.
And yes, in my app.xaml's Resources I have my Converters created.
Like this:
<local:greaterintegertovisibilityconverter x:key="GreaterIntegerConverter">
I think another thing I could try is to change the Path to Items.Count, but I used the VS "Binding-Wizard" who wrote this line.
Here an example on converters: http://www.codeproject.com/Articles/24330/WPF-Bind-to-Opposite-Boolean-Value-Using-a-Convert
NeonMika
27-Sep-12 14:06pm
View
No, it has to do with WPF. This kind of converters are used in-line in XAML to convert different things. They are basic WPF constructs (Yeah, you can use them without WPF too, but that's not the idea behind them)
NeonMika
27-Sep-12 12:43pm
View
Wow, this sounds really interesting.
I also love to develop in .Net, so this sounds really cool. I think I have to dig deeper into that topic.
NeonMika
27-Sep-12 12:33pm
View
I think that this should be just a little tool. And he already has the code. I don't think it is neccessary to change the whole application.
By the way: You are right. :)
NeonMika
27-Sep-12 12:31pm
View
I think what he means is that you don't have to download the whole application and install it on your PC, but you can just go a web page and the application is loading (Like a Java Applet). So a normal windows client and a web client in one.
As far as I know the answer is no. But I'm also interested in it :)
NeonMika
27-Sep-12 12:26pm
View
Hey, this looks great! Do you know something about it? Do I have many limitations using C# compared to Java? I never really heard about coding in C# on Android, so I'm interested :)
Thanks
NeonMika
27-Sep-12 11:10am
View
As far as I have seen they have many examples on how to use it. Don't know if they have one for your problem, but I can imagine that they have at least something similar.
http://directshownet.sourceforge.net/about.html
NeonMika
27-Sep-12 11:01am
View
You are right. But for example, my MixUpdater needs to use other classes like my MusicDownloadConnection, SortType, etc.. I always have to use them together if I need them in another application.
So the main thing I should keep in mind is that I should keep the "logic" decoupled from my "view", am I right in this? :)
I will have a detailed look on SOLID and I have 5 years of univerity comming up to my, I hope my skills will get better and better.
NeonMika
27-Sep-12 10:44am
View
I really really appreciate your solution, thanks. Now I understand you way. :)
But this seems pretty much code to me for just updating one of my objects. I need a MixesList etc.
But my code is now working when I add a volatile to my MixUpdaterGoOn. If I have time I will I probably change my code to yours. Thanks! :)
NeonMika
27-Sep-12 10:18am
View
Mixes is the ObserveableCollection which should be updated from the background thread. The dispatcher used in the background class is the ListBox's dispatcher.
The threads work is to download 25 objects and add it to my list. then it should go to sleep. And I want to have to possibility to say "Load 25 more" or to say "Stop completly".
NeonMika
22-Aug-12 9:26am
View
Okay, so I have to write down the "tree". Thanks for your answer, 5*.
NeonMika
30-Jul-12 16:37pm
View
Do you use C# for this?
What kind of Library or .dll do you use?
NeonMika
30-Jul-12 16:35pm
View
Yeah, it's not sure. If you have problems working with XML try to search for some infos on XmlDocument.
As far as I know, you can work with some kind of selection on your RichtextBox. So you append your text to the box, then you select it via code and format the selected text.
NeonMika
24-Jun-12 3:28am
View
Thank you for your example on DependencyProperty.
You opend my eyes for something else. I'm going to implement INotifyPropertyChanged on MainWindow and will set "DVDNameTextBox.DataContext = this".
So My DVDNameTextBox gets notified when I change myDVD and I don't need to use DependencyProperties.
NeonMika
23-Jun-12 3:41am
View
Why did you have to "Improve your question" that way?
NeonMika
23-Jun-12 3:37am
View
It works if my DataContext is never changed.
The problem is, that not a Property is changed, the problem is, that the whole DataContext gets changed and this is not recognized for some reason.
Thanks.
NeonMika
23-Jun-12 3:30am
View
No, i don't need two-way-binding, I just want to presentate my value TO the GUI without changes to make.
I have in MainWindowData:
private Mix selectedDVD = null;
public Mix SelectedDVD
{
get { return selectedDVD; }
set
{
selectedDVD = value;
NotifyPropertyChanged("SelectedDVD");
}
}
On WindowLoaded I do:
MixNameTextBox.DataContext = Data.SelectedDVD;
My XAML looks the following:
<textblock name="DVDNameTextBox" verticalalignment="Center" text="{Binding Name, Converter={StaticResource ReplaceNullStringConverter},ConverterParameter='No mix selected'}">
And on ListBox.SelectionChanged (the ListBox to select the DVD):
Data.SelectedDVD = (DVD)e.AddedItems[0];
And on this line there is the problem: The program doesn't mind that the source was changed.
It doesn't change anything to implement INotifyPropertyChange on MyWindowData and/or on DVD.
Why doesn't my Textbox realise that it has a new DataSource?
Thanks!
NeonMika
22-Jun-12 2:21am
View
I think you mean something similar to Intellisense or the dropdown menu in Word 2007 etc., am I right?
NeonMika
22-Jun-12 2:19am
View
Does your user have admin rights?
Is any error thrown while using this methods?
NeonMika
22-Jun-12 2:02am
View
Glad i could help :)
NeonMika
21-Jun-12 7:22am
View
What's wrong with using DataSets?
Create two connections to the two databases.
Run your query on both and receive 2 DataTable if I'm right.
Now you can run row for row and compare the two datasets?
Probably you want to have a look at this: http://www.codeproject.com/Articles/361579/A-Beginners-Tutorial-for-Understanding-ADO-NET
Greets, Markus
NeonMika
21-Jun-12 7:18am
View
Because it doesn't work (no expander on the bottom) and destroyes the functionality of my ScrollViewer.
But thanks for your idea.
NeonMika
21-Jun-12 7:15am
View
That's working! Big thanks to you!
NeonMika
15-Jun-12 2:21am
View
Thank you! That's exactly what I needed!
So setting the HorizontalScrollBarVisability restricts the ScrollBar, learned something new. Thanks again.
NeonMika
5-Jun-12 9:09am
View
Thanks for giving me ideas of how to think about this problem, helped me.
NeonMika
31-May-12 8:32am
View
Oh my god, have I been wrong all the last years? :D
Thanks so much, I always had in mind that it doesn't work, but thats great.
NeonMika
3-Mar-12 9:26am
View
5*
Show More