I am writing an application that enable user to create HTML files
but all his formatting choices are saved in a CSS file linked to his HTML file I'm writting this file by using the StreanWriter class but I don't know how to read a specific element to edit it when user changed his design.
I am wondering what is the best way to automatically recalculate a value in a specific field.
I have on my form fields A and B these are bound to a MSSQL table and I have field C that is a result from A + B. is the way to recalculate field C to assign an on change event on fields A and B or there is another way where I can achieve this?
I am trying to avoid attaching an event on each field.
Use INotifyPropertyChanged in your property fields, and react to the change. If you take a look for an article on binding by Paul Stovell on using databinding in Windows Forms then you can find an example suitable for your needs.
Deja View - the feeling that you've seen this post before.
I would like to know how it is possible to insert in a combo box the text values of an enumeration object?
For example, consider the SymbolType enum object from ZedGraph.
I would like to browse the enumeration values and add them in a combo box in order to give to the user the possibility to select the symbol for the curve.
Group by duration and use min(id) to get one of the records to keep, and use having to get the ones where count(*) > 1. Now join this result in a delete on the table, and specify the ones where id is different and duration is the same.
Despite everything, the person most likely to be fooling you next is yourself.
I have made a project in which i have generated a report with the help of data in the database. Now I need to print the report but I don't know how to include and print a *.doc extension file through the project.Please help me......
1. save your report from database in temporary file and give extension .doc i.e: c:\temp\abcd.doc
2. call ShellExecute with parameter 'print' instead of 'open' (please read documentation about calling winapi method)
requirement : ms word
hope it helps
programming is a hobby that make some money as side effect