What is current best practice regarding implementing encryption within a c# program and can anyone recommend some good articles/tutorials/examples?
Basically I want to create an application which makes use of encryption (using standard .net libraries) for internal security features. It will not...
I have a datatable bound to a listview which displays the output of a SQL select statement.
I wish to filter what is displayed in the listview based upon text entered into a textbox above it.
I have found numerous examples of filtering listviews in this way but all of them are using hardcoded...
I have a project with a ComboBox which lists each day of the week. The user should be able to select a day of the week from the combobox drop down to make 'stuff happen'.
In the code behind I have a method which accepts a string overload for the day of week
eg. update("Monday");
I know how...
I have spent the day reading up on this and finally got a working example of some code which binds an image path to a binding source.
The problem is, I can only set it once when it first loads. After that I am unable to change the image to something different. I guess it is something to do...
So i've been reading/watching lots about MVVM and pretty much got my head around the concept but still struggling a little with the practical implementation side of it.
I have read that a benefit of MVVM is that it makes testing easier: You can have two views (an presumably two view-models) for...
I have a number of list box controls which I would like to clear using a loop rather than typing individually.
I was able to do this quite easily in winforms but cannot fathom how to achieve the same under wpf.
The closest I have got is this:
foreach (Control c in this.gdLayout.Children)...
I need to create a page which allows the user to search through a database table and return any records which match the keyword entered.
A number of websites I use have a very elegant search function of this nature where it will search any matching surname or forename without needing to specify...
I'm using the following code to play an mp3 file.
WMPLib.WindowsMediaPlayer wplayer = new WMPLib.WindowsMediaPlayer();
wplayer.URL = "c:\\sample.mp3";
wplayer.controls.play();
This works great but requires an absolute path to the file which is undesirable.
I tried changing the...
Hey all,
I wrote an application about 3 years ago which has been an on-going work in progress but I have now decided to re-write it from the ground up to put right all the mistakes I made along the way. I was hoping I could get some advice from some more experienced programmers in the community...
I have a line frmSelectmember.Default.Close(); to close a form (closing here is preferable to hiding) but I can't see how to reload/create/open the form. In vb calling form.show after closing would cause it to automatically reload without doing anything special but in c# it seems you have to be...
I'm not sure if I'm asking the right question here, but after trying various things for the last few hours with no joy I come here seeking greater wisdom.
I have a form with various text boxes which are bound to a binding source and are used to display and update the associated rows in a...
Hi there,
I have recently converted a project from vb.net to c# and have managed to resolve all the major issues bar this one .
In the designer all the text looks as it should be, but during runtime, all the text becomes pixelated. Labels, Buttons, etc ... any control with a text field suffers...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.