15,868,005 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
Programm3r
(Top 95 by date)
Programm3r
23-Apr-15 8:36am
View
Why not make use of Entity Framework, instead of using inline SQL in your code?
Programm3r
21-Feb-14 2:59am
View
What are you on about?! The question is tagged as 'WPF' - I'm simply giving my opinion as to what I would do?!?
Programm3r
30-Jan-14 1:11am
View
No, I can't think of a way you can do it. If I were you, I would implement MVVM into my project.
Programm3r
29-Jan-14 1:57am
View
Are you making use of MVVM within your WPF application? If so, just create the new grid on the next page and bind it to the same ObservableCollection<t> as the previous grid.
Programm3r
29-Jan-14 1:51am
View
"...I have searched all over and I cannot figure out what I am doing wrong..." - The exception clearly states the issue: System.Xml.Linq.XDeclaration cannot be serialized because it does not have a parameterless constructor
Instead of asking "How do I return an XDocument from a web service", rather ask yourself, "Why do I want to return an XDocument from a web service"? Surely there are better ways of doing this... XML, JSON...
Programm3r
21-Jan-14 2:11am
View
Have you had a look at the following links: http://stackoverflow.com/questions/1755455/handle-datagridhyperlinkcolumn-click-event or http://stackoverflow.com/questions/651416/using-wpftoolkits-datagridhyperlinkcolumn
Programm3r
21-Jan-14 1:55am
View
Hi, why can't you just make use of entity framework? http://msdn.microsoft.com/en-us/data/ef.aspx
Programm3r
22-Dec-12 10:55am
View
'..Kindly improve..' LMAO! I do not think so o_O !
Programm3r
14-Dec-12 1:03am
View
I suspect that GroupFilter is a custom class that they wrote.
Programm3r
12-Dec-12 6:02am
View
Hi - please have a look at the following: http://stackoverflow.com/questions/10887200/multiple-filters-not-working-in-datagrid-wpf
Programm3r
12-Dec-12 5:57am
View
So why not encapsulate the two classes into one object? You'll have something like class Y with properties A, B, C and class Z with properties D, E. So create a class X with properties which reference class Y and Z. So each new item of Y and Z will be a new 'row' in class X (which will be of type ObservableCollection)
Programm3r
12-Dec-12 5:46am
View
Hi - please have a look at the following: http://msdn.microsoft.com/en-us/library/system.servicemodel.httpclientcredentialtype.aspx
So your client is accessing the service over Internet? In such case you cannot use Windows security. It works only on local network / same Windows domain. (In this exception you should make security mode in both server and client None)
Programm3r
12-Dec-12 5:39am
View
Hi, ok so the exception is thrown when the ActiveX control is referenced while in an invalid state. http://msdn.microsoft.com/en-us/library/system.windows.forms.axhost.invalidactivexstateexception.aspx
Please have a look at the answer posted here: http://social.msdn.microsoft.com/forums/en-US/winforms/thread/d403fa2a-4388-42f2-a18e-dff1cd748732/
Programm3r
12-Dec-12 5:36am
View
Hi - Why must it be implemented by an IList ? Why can't you make use of an ObservableCollection<t> ?
Programm3r
12-Dec-12 5:32am
View
This looks like homework or something similar? o_O
This is an awesome place to start: http://msdn.microsoft.com/en-us/library/system.reflection.assembly.aspx
Programm3r
11-Dec-12 2:43am
View
Hi - Could you please post some code, to demonstrate what you have done so far? Many thanks!
Programm3r
6-Dec-12 7:59am
View
Sorry, I am unable to replicate your scenario. If you insert a breakpoint at the beginning and end of the method, what is the checked value of the radio button?
Is there anything else that might change the checked value of the radio button?
Programm3r
6-Dec-12 7:02am
View
Thanks for the effort, but could you please post the entire method where this code snippet resides? Thanks again.
Programm3r
6-Dec-12 6:43am
View
Hi - could you please update your question so that we can have a better understanding of your issue. Thanks!
Programm3r
5-Dec-12 4:58am
View
So basically: item price * quantity = line total
Programm3r
5-Dec-12 4:50am
View
So you basically want to accumulate the price (of all the items) to a grand total and then print it on a slip? Is this the case?
Programm3r
5-Dec-12 4:46am
View
No problem - good luck!
Programm3r
5-Dec-12 4:39am
View
Really sorry mate! COM is not really my expertise o_O ... Maybe some of the other members can help you out?
Lastly, have a look at the following (if you haven't already):
http://stackoverflow.com/questions/1496214/how-to-solve-com-exception-class-not-registered-exception-from-hresult-0x80040
http://answers.microsoft.com/en-us/windows/forum/windows_7-performance/how-to-fix-error-message-class-not-registered-in/1a2e8a40-6dec-42e1-bb85-70a719e9fbbb?msgId=9fcaeace-bd04-4aef-9a96-aae1e69cd1e6
Good luck!
Programm3r
5-Dec-12 4:27am
View
Have to looked at this post: http://stackoverflow.com/questions/7197506/how-to-repair-comexception-error-80040154
Seems like it shows how to identify the missing assembly
Programm3r
5-Dec-12 4:25am
View
One more thing ... you said that it runs fine on one PC, but not the Win 7 PC. What is different between those two PC's?
Programm3r
5-Dec-12 4:21am
View
Is your application making use of any MS Office components / assemblies?
Programm3r
5-Dec-12 2:18am
View
Oki doki - great stuff! Hope you come right!
Programm3r
5-Dec-12 1:19am
View
And the application and all of it's assemblies are complied in 32 bit ?
Programm3r
5-Dec-12 1:17am
View
Well, what about all of the assemblies called by the application and their bit version? Have you tried running this on a different Win 7 PC - just to check the result?
Programm3r
5-Dec-12 1:16am
View
What bit version of Windows are you running on the Win 7 laptop?
Programm3r
5-Dec-12 1:14am
View
Hi - could you please provide some more information regarding your issue? It is very unclear. Thanks
Programm3r
5-Dec-12 1:08am
View
Oki doki - please update this thread if you don't come right.
Programm3r
5-Dec-12 0:47am
View
Hi - Hmmmm, unless I'm missing something, you create it yourself: http://msdn.microsoft.com/en-us/library/ee712572.aspx
Programm3r
5-Dec-12 0:44am
View
Only a pleasure!
Programm3r
5-Dec-12 0:42am
View
So .... this application has no user input? Because it sounds like it should run without any user input. If this is the case, then I have totally misunderstood your question. Secondly, if no user input is required and it should start-up 'on its own', then MVVM won't be the way to go - I would create a windows service for that.
Programm3r
5-Dec-12 0:38am
View
Yup - agreed
Programm3r
5-Dec-12 0:36am
View
What I was trying to say is, that according to my knowledge the resource dictionary is not the place to put such a control. If the idea is to reuse the Content control, then I would write a new user control, with the content control. That way you could reuse it (if that was the idea).
If this is not the case - please provide some more information as well as code sample.
Programm3r
4-Dec-12 8:46am
View
Hi - please have a look at the following threads:
http://handcraftsman.wordpress.com/2008/11/11/how-to-get-c-property-names-without-magic-strings/
http://stackoverflow.com/questions/4657311/reflection-get-property-name
Programm3r
4-Dec-12 8:37am
View
Hi - so I assume you came right? If that is the case please mark one of the solutions as the answer (even if it is your own).
Programm3r
4-Dec-12 5:47am
View
Okay, so what about creating a byte[] which holds the size of the image plus an additional 100 bytes. You could then allocate the first 100 bytes to the name and ID. From 101 to the end of the array you could store the image. So every time you read the data, you would need to trim the first 100 bytes of the array (which will leave you with the image)
Programm3r
4-Dec-12 3:06am
View
Hi - you mentioned that there are no events that notifies you of a date being scrolled? So the MonthCalendar.DateChanged Event doesn't notify you at all? Is this the case?
Programm3r
4-Dec-12 2:26am
View
"...Now I want to add some extra content into the header of fingerprint image like person id and his name..."
Just a quick question, why would you want to do this? Why not add the extra columns to you table and insert the data there?
Programm3r
4-Dec-12 2:19am
View
Hi - please have a look at the following threads:
http://go4answers.webhost4life.com/Example/pos-bill-printing-opos-6449.aspx
http://www.yortondotnet.com/2009/07/better-way-to-print-receipts.html
Programm3r
4-Dec-12 2:14am
View
So you want to alter the image and display a 'new' one?
Programm3r
4-Dec-12 1:06am
View
Hi - Well it would seem that you have a NullReferenceException at line #19. So put a breakpoint at line #19 and check which variable is null.
My guess is, that one of the Session indexes doesn't exist, and by calling ToString() on it causes the NullReferenceException
Programm3r
4-Dec-12 0:58am
View
Hi - why not write some sort of helper method that would translate the bit value (true / false) into something more meaningful. That way you could get data from the DB pass it on to the helper method, which translates it into a true or false and vice versa.
Also please have a look at the following thread: http://forums.asp.net/t/1278245.aspx/1
Programm3r
4-Dec-12 0:55am
View
Hi - what type of printer is it?
Programm3r
3-Dec-12 9:06am
View
Hi - this might not be the answer that you are looking for, but you could build your own ContentControl with a couple of Storyboards and animate the text. This way it will provide the exact same look as in the video.
Here is a good example of Storyboards: http://www.codeproject.com/Articles/364529/Animation-using-Storyboards-in-WPF
http://jobijoy.blogspot.com/2008/08/wpf-custom-controls-marquee-control.html
Programm3r
3-Dec-12 8:58am
View
Hi - How about using tooltips ? Wpf tooltips can have any kind of content... can't think of a more integrated help system
Programm3r
3-Dec-12 8:56am
View
Hi - why don't you give the TextBlock an ID and access it with that?
Example: x:Key="stringKeyValue"
Programm3r
3-Dec-12 8:54am
View
Hi - could you please be more specific regarding your question? Many thanks
Programm3r
3-Dec-12 8:51am
View
Hi - please take into consideration the function of a ResourceDictionary: Provides a hash table / dictionary implementation that contains WPF resources used by components and other elements of a WPF application. Please refer to the following link: http://msdn.microsoft.com/en-us/library/system.windows.resourcedictionary.aspx
Programm3r
3-Dec-12 8:47am
View
Hi - yes I would say using MVVM is a good idea. Secondly, I see no need to write a service to read the data from the hardware. Why not write a layer between your View Model and the hardware. This way you ViewModel could listen for data and push it (thought the binding framework) to your View.
Programm3r
3-Dec-12 8:36am
View
Hi - I would go the WCF route. The handshake protocol will work - obviously your WCF service will require a back-end to store state.
Programm3r
27-Nov-12 9:16am
View
Hi - Why do you want to do this?? Furthermore, could you please provide some code?
Programm3r
27-Nov-12 8:30am
View
Hi, are you making use of MVVM? If so, why don't you just bind the SelectedItem property. This way your view model will be notified as soon as the property changes. This way you don't need any events
Programm3r
26-Nov-12 5:18am
View
How many times do you want to post the same question?? o_O
http://www.codeproject.com/Questions/498478/usercontrolplusmovesplustoplusbackplusitsplusorigi
http://www.codeproject.com/Questions/499079/Adornerplustoplusui-controlsplusinpluswpf
http://www.codeproject.com/Questions/499085/centerplusadornerplustoplusthepluslinepluscontrol
Programm3r
26-Nov-12 5:17am
View
Updated question posted: http://www.codeproject.com/Questions/499079/Adornerplustoplusui-controlsplusinpluswpf
Programm3r
26-Nov-12 5:15am
View
Hi,
Just a suggestion, but you could implement an interface on each of the user controls added to the ribbon. When the button is clicked you can cast the user control to that interface and call the appropriate method.
Programm3r
20-Nov-12 3:38am
View
Hi, Could you please be more specific? Also, please provide some more example code. Because a StackOverflowException occurs when the execution stack overflows because it contains too many nested method calls
Programm3r
20-Nov-12 3:18am
View
Hi, please provide some example code, this way we would have a better idea of what you are trying to achieve.
Programm3r
20-Nov-12 3:11am
View
Hi, please provide some sample code ... in the meantime you could hook into the following event: AppDomain.UnhandledException Event (Occurs when an exception is not caught) - http://msdn.microsoft.com/en-us/library/system.appdomain.unhandledexception.aspx
It allows the application to log information about the exception before the system default handler reports the exception to the user and terminates the application.
Programm3r
20-Nov-12 2:21am
View
Hi, maybe this: http://www.codeproject.com/Articles/79050/Sending-Email-with-Gmail-Yahoo-AOL-and-Live-Mail-V would be a good place to start, otherwise ... Google is you friend
Programm3r
20-Nov-12 2:11am
View
Hi, could you please elaborate on your question - it is not very clear - thanks.
Programm3r
20-Nov-12 2:07am
View
Hi, you'll have to provide some code.
Programm3r
20-Nov-12 1:50am
View
Hi, Could you please be more specific towards what you are trying to achieve?
Programm3r
19-Jan-12 1:47am
View
I think you should try and post your question here: http://community.flexerasoftware.com/forumdisplay.php?f=133 - greater possibility that someone with the correct knowledge can help you.
Programm3r
18-Jan-12 7:27am
View
Could you please elaborate on your question. I have no idea what you are referring to.
Programm3r
18-Jan-12 7:26am
View
As mentioned in the previous comment, please post some code as well as the stack trace of the exception.
Programm3r
18-Jan-12 7:22am
View
Could you please post the stack trace as well as the code addressed within the trace (as mentioned in previous comment).
Programm3r
8-Dec-11 3:19am
View
Okay, but isn't it obvious that the dataset is null, thus check why the dataset is null?!?
Programm3r
6-Dec-11 9:58am
View
This won't answer your question, but just a word of advice. Abstract your data layer from UI layer. Secondly, your code is prone to SQL injection.
Programm3r
29-Nov-11 4:38am
View
Does viewmodel1 instantiate / construct viewmodel2? If not, how does it work? In which viewmodel is the next button (ICommand) declared?
Programm3r
18-Nov-11 11:10am
View
Well, either way lesson learned... Thanks!
Programm3r
18-Nov-11 11:09am
View
Could be, but it worked yesterday ... The other day I installed VS 11 Dev Preview, could this have messed anything up you think?
Programm3r
18-Nov-11 11:08am
View
Deleted
Could be, but it worked yesterday ... The other day I installed VS 11 Dev Preview, could this have messed anything up you think?
Programm3r
18-Nov-11 11:06am
View
Many thanks for the reply.
Yes, I am sure that the solution is in debug mode and that the .pdb files are being generated. I am currently busy re-installing my entire VS 2010 environment! I really hope that it will fix the issue, cause this is driving me mad!!
Programm3r
30-Sep-11 9:02am
View
Deleted
Okay, just to understand better ... The WinForm application makes use of the data access assembly??
If this is the case, you can move the connection string to the WinForm app.config file. The data access assembly will make use of the calling applications configuration file.
It is possible that the application crashes because it cannot locate the connection string?! Link into the following event: http://msdn.microsoft.com/en-us/library/system.appdomain.unhandledexception.aspx [AppDomain.UnhandledException] - when write the output of the exception to a log file or something. Then at least you'll know what went wrong....
Programm3r
30-Sep-11 7:36am
View
"Do you want fries with that?" ... Brutal! But I love it!
Programm3r
30-Sep-11 7:04am
View
This might be a stupid question, but why would you want to do that?? Why can't the user double click the window title? This would create the same result....
Programm3r
23-Sep-11 4:05am
View
Deleted
Another solution you can try: http://www.visifire.com/documentation/Visifire_Documentation/Charts/Common_Tasks/setting_colorset_from_managed_code.htm
Programm3r
20-May-11 6:44am
View
Why the vote of 1??? The second link that I provided has exactly the same JavaScript as the link that you made use of??
Programm3r
19-May-11 10:09am
View
Okay, so your original question was, to get hold of a WinForm object by a given name - this could be any form, right? (based on a username and password of course). Although the Form is within your project, how would you get hold of it during runtime? You would need an instance of that object, right?
Seeing that you don't have an instance of the object, you would need to create one. Hence, the Activator.CreateInstance method within my example...
Take the following into consideration:
void Form1_Button1_Click(object sender, EventArgs arg)
{
...
Form2 formTwo = new Form2(); // created a new instance of class Form2 - no instance existed before this line was executed
...
Form formThree = (Form)Activator.CreateInstance(assem.GetType("WindowsFormsApplication1.Form3")); // created a new instance of class Form3 - no instance existed before this line was executed
...
}
Does this answer your question...
Programm3r
19-May-11 9:42am
View
I agree, you'll have to post some code...
Programm3r
19-May-11 9:16am
View
Hi,
Point #1:
---------
Yes, GetType gets the Type object with the specified name in the assembly instance.
The GetType() function is marked with the special attribute [MethodImpl(MethodImplOptions.InternalCall)]. This means its method body doesn't contain IL but instead is a hook into the internals of the .NET CLR. In this case, it looks at the binary structure of the object's metadata and constructs a System.Type object around it.
As far as I know, [MethodImpl(MethodImplOptions.InternalCall)] should be considered "magic" - you can't hook your own unmanaged code up to new functions with this attribute.
Point #2:
--------
"CreateInstance" -> Creates an instance of the specified type using that type's default constructor. Read more: http://msdn.microsoft.com/en-us/library/wccyzw83.aspx
Hope this answers your question...
Kind regards,
Programm3r
19-May-11 3:30am
View
I have updated the solution...
Programm3r
17-May-11 9:48am
View
Have you tried this http://social.technet.microsoft.com/Forums/en-US/office2007deployment/thread/fc8841b3-510e-45fb-998e-e47402b8379c/
Programm3r
17-May-11 4:15am
View
The datagridview is bound to a local snapshot copy of the records in the database(not the database iteself), these are what is stored in the dataset.
However when your form updates the database, it doesnt automatically update the local snapshot copy of the records(dataset).
In order to do this you would need to repopulate the dataset by re-executing the Fill method to repopulate the dataset with the newly updated database records.
Programm3r
16-May-11 9:35am
View
You'll have to be more specific!
Programm3r
16-May-11 9:34am
View
Is this an asp.net or win forms application??
Programm3r
16-May-11 9:32am
View
I have updated the solution ...
Programm3r
16-May-11 9:09am
View
I agree, you can make use of System.DateTime....
Programm3r
13-May-11 7:15am
View
I have no idea what the problem is? I do not understand what you're asking? Could you please provide a more descriptive question??
Programm3r
13-May-11 3:53am
View
great stuff... :)
Programm3r
13-May-11 3:28am
View
Not to point out the obvious, but you have to think dynamically about the problem. Everything is hard coded and static.
Show More