15,901,284 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 koleraba (Top 34 by date)
koleraba
20-Jun-13 10:51am
View
Yes it should be dbFilePath. Sorry I was changing something after I copied it from VS and I guess I made a mistake. Database=Players specifies the initial catalog and not the name of the file you are attaching. If you don't know the name of the catalog, attach the file manually with SQL server management studio and take a look at the name of the database catalog. Since I didn't know the name of your DB catalog I just put in Players. Otherwise I tried the code and it worked OK for me. For more info on connection strings check the: http://www.connectionstrings.com/sql-server-2008
koleraba
20-Jun-13 7:32am
View
Ansewers on the provided links suggest that when the user has elevated priviliges the code you provided should work when running of Win7 or later. That is: Expression windowsPrincipal.IsInRole(WindowsBuiltInRole.Administrator) should return true even if the current user is not an administrator but has elevated priviliges.
koleraba
19-Jun-13 22:00pm
View
You will have to be more specific than "Upload a file to grid view". Do you mean download a file from some external source to you web server and than use it to populate your GridView? Specify where does the file whose content you want to display in a grid view comes from.
koleraba
19-Jun-13 21:39pm
View
Can you be more specific than code is incomplete. What is missing?
koleraba
19-Jun-13 21:35pm
View
I am afraid I don't understand your question. I guess you have to export the data which is bind to your ListViewItems not the actual ListViewItems. Since your ListView is generated from items read from xml I don't understand what the problem is.
koleraba
19-Jun-13 18:17pm
View
Hey. I really don't mind if my answers are down-voted, but I think it would be decent if the person who down-voted an answer would at least explain his reasons. How else can we know what makes hour answers 'not good' and make them better?
Uroš
koleraba
19-Jun-13 12:41pm
View
you will have to provide more information. What excatly is your listview populated with? Do you use MVVM pattern? Maybe post some sample code that you have so far.
Uros
koleraba
5-Jun-13 17:17pm
View
You could add logging(if you don't have it alredy) to those parts of the application you suspect are responsible for the problems you are experiencing. This way you will be able to exactly pin-point the location of your error and than move on from there. If you are not familiar with any logging frameworks try log4net. It's easy to set up and I never had any problems with it.
koleraba
5-Jun-13 11:06am
View
Sorry I can not say more without seeing more of the code, but it seems to me there is a problem how your binding are set up. If you use Binding ElementName=window it means that you do not bind to your data context but to another element in your visual tree. Try to find the reason for your failed binding and than go on from there.
Uros
koleraba
4-Jun-13 22:26pm
View
Do you get any notifications about failed bindings in the output window when you run the solution?
koleraba
4-Jun-13 8:24am
View
Binding expression which defines just the 'Path' attribute always binds to DataContext of the current instnace. So as long DataContext of your PropertyGridDataAccessorItem contains the correct view-model this should work.
koleraba
4-Jun-13 8:18am
View
You will have to provide a more detailed description of what is not working / is wrong with the app running of windows 7. Does the app run or you get any exceptions? What exactly is wrong with items mentioned above?
koleraba
1-Jun-13 21:29pm
View
I am not sure what you mean. I tried googling but found nothing. I also tried with key event handlers but it did no work
koleraba
9-May-13 10:43am
View
Thank you for your answer Mohammed. I used the name XYZ.Interfaces just to illustrate a point. The name I actually choose is XYZ.ModuleName.View.Common. But since the design-time view-models are very simple, the above mentioned project contains just the interfaces and a few view-models which do not need their design-time equivalent. Uroš
koleraba
9-May-13 10:35am
View
Thank you for your answer. Maybe one more question. Did you move just the design-time models or all of them. Becouse if you moved just the design view-models than, I guess, that would again create a circualar dependency, since the views need the design view-model and design view models need the run-time view-models which thay extend. PS. Do you know how people say you learn something new every day? Well today I learned a new english phrase :). I actually had to google the "bob is my uncle". Uroš
koleraba
8-Feb-13 13:40pm
View
I set the ViewBox.Clip property with the same value I use for Path.Data(of the path that defines my button), but the problem is that now the button is not visible at all.
koleraba
8-Feb-13 13:19pm
View
Thank you for your anwer. I was thinking about clipping the viewbox and placing the whole button template inside the viewbox so when the button is resized everything still works ok. As long I want to clip to a circle or rectangle I can use a simple EllipseGeometry or RectangleGeometry. But my clipping area is a triangle with rounded corners. Since I already have a path that describes that area I thought I would just use that. But the clip property required a PathGeometry and I have a path.
koleraba
31-Jan-13 19:38pm
View
Please let me know what information should I provide!
koleraba
4-Jan-13 15:22pm
View
Hi Sergey
Thank you for your quick reply. I know that GC runs can not be predicted so I (just for debugging purposes) added a call to GC.Collect() after the current view is changed but it did not help.
koleraba
27-Nov-12 20:59pm
View
Thank you Matt. That is exactly what I needed. The part that construsts a new collection of instances implementing the IContainer I already have. I just needed the lambda that you provided in your post. Thanks again.
koleraba
27-Nov-12 7:37am
View
Hi. Thank you for your reply. The Distinct() method does not do me any good, because if you look at the IContainer interface you will see that it contains a property Items of type IEnumerable<t>. So for example, if my input colletion of containers contains two containers with an Id = 1, and each has 3 Items(Items.Count() == 3) than my output collection has to contain one container with an Id = 1 which has 6 items. The data on which the lambda should operate("input collection" in the text above), is retrived from the .xml file. I don't see how the information on how I retrive data from the .xml file would be benefitial to the explanation?
koleraba
20-Nov-12 18:48pm
View
Sergey thank you for your time. You have been very helpfull.
koleraba
20-Nov-12 17:47pm
View
Hi
Thank you for your answer. I am most conserned with performance panalties due to mutliple executions of the query so maybe a follow up question about this. Let me try to explain what I mean using an example. I have a method(as described above) which queries a xml file and returns an IEnumerable<t> without executing the actual query(it does not call .Count() or .ToList() or any other method the executes the query). Then lets say I have two additional methods. They both receive an IEnumerable<t> and the first one prints the number of items returned from the query(using .Count() method), and the other prints the actual items using a foreach. If I call both of this methods with the instance returned from the first method, the query will be obviously executed twice. What would happenen if I would modify the first method(the one that queries the xml file) to return an actual List<t> by calling a ToList() method on a query, but leaving the return type of the method as IEnumerable<t>. I know the query would be executed before the method returned, but what about on consequential calls to other two methods. Would they still execute the query, or not since they actualy received an List<t>(even though it was casted as a IEnumerable<t>)
koleraba
2-Nov-12 23:47pm
View
I wouldn't be thinking of re-implementing the installer, just because their is a new version of VS. The problem is the application for which I need the installer is still under development. The development team is swithing to the new version of VS and along with it to the new version of .net framework. This is why I think it would be best to re-implement the installer. Thank you for the links. I will check them out and see if they can help me. Do you maybe have some more concrete ideas?
koleraba
5-Sep-12 11:55am
View
I have some problems accessing the sourcedir property from my custom action. Do you know how can I access that property. I am using c# 4.0.
koleraba
3-Sep-12 9:24am
View
Hi
If I understand you correctly that means that even I could retrive the file path of the installer package, that location would always point to windows\installer directory and original location of the installer would be lost. Do you have any other ideas on how to accomplish the desired functionality?
koleraba
29-Feb-12 15:39pm
View
Deleted
please be more specific. What are you triing to pase as an sqlparameter? A catalog name maybe?
koleraba
27-Feb-12 22:32pm
View
Sorry I don't think I understand. If the WCF Web API will be removed by the end of 2012, than I am better of with the ASP.NET MVC 4(beta for now). Do you have any ideas how to handle the "tho way communication" described in my original question? I did some furher searching on this topic and I think that this could be solved with AsyncController in ASP.NET MVC.
koleraba
25-Feb-12 13:27pm
View
Thank you for the extensive reply. What my singleton object does is somehow similar to the Dispatcher object found in WPF, but it is meant to be used in windows service enviroment. It's task is to marshal the calls to the thread that created it. That is why I need it to be created on the main thread. Thanks again for the reply, but I think I will go with the static Init() method.
koleraba
24-Feb-12 14:52pm
View
That is the obvious solution. But that type is a part of a framework and I did'n want to burden the users of the framework with initialization - I was hoping that it could be done automatically. Thank you for your reply
koleraba
13-Feb-12 8:17am
View
Thank you for your reply. Maybe you didn't understand my question correctly. I know how to install a windows service and how to use ServiceInstaller and ServiceProcessInstaller. Everything works ok as longs as the service is not using a user account. When installing under user account the service fails to install and gives me an error that the supplied credentials are not valid.
Uros
koleraba
15-Dec-11 15:46pm
View
Hi
Thank you for your reply. About the attributes: I know you can omit the Attribute when declaring an attribute but the code was generated by a tool(PInovke interop assistant). I already tried to set the CallingConvention to Cdecl but it did not help. However I did found out that if I change the target framework to 3.5 or lower(currently I am using .net 4) that solves the problem. Any other ideas will be appreciated
Uroš
koleraba
30-Sep-11 15:30pm
View
Thank you for yor time Simon. It worked like a charm.
P.S. PInvoke Interop Assistant is very usefull, especially when the external dll is complex. It will save me quite some time.
koleraba
13-Apr-11 21:04pm
View
Hi
Thanks for your answer. What approach do you propose? Like just to start the host and if that throws try again later, or do you know of any better way. Since the tablet has to be connected to a specific WiFi in order to work I was thinking about detecting a change in the name of the WiFi network to which the tablet is connected.
Show More