Search results for query: *

  • Users: DoJa
  • Content: Threads
  • Order by date
  1. D

    Where should I store my encryption keys?

    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...
  2. D

    Filtering a listview bound to a datatable

    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...
  3. D

    Calling a method from a combo box selection?

    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...
  4. D

    Help with Data Binding and Images

    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...
  5. D

    MVVM in Practice

    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...
  6. D

    Looping through controls on a window.

    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)...
  7. D

    Searching a database/dataset

    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...
  8. D

    Playing MP3 from resource file

    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...
  9. D

    Best Practice many forms

    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...
  10. D

    How to re-open a form after closing?

    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...
  11. D

    How to update the DataSource of a BindingSource?

    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...
  12. D

    Anti Aliasing Issue - Text looks ok in designer but pixilated at runtime?!

    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...
Back
Top Bottom