Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: AHint
  • Order by date
  1. AHint

    Datagrid - change datasource at runtime

    I have a datagrid that I change the datasource for at runtime. It is always bound to a strongly typed collection. If I bind to a collection, then bind to another collection with a larger number of items I get an 'Error when committing changes to original data store'. I believe that somehow the...
  2. AHint

    Typed Objects (nested) with DataGridTableStyles

    I have a typed object which includes a second nested typed object. I want to show properties of the nested object on a data grid on a windows form. Any suggestions? So far, I have set up: DataGridTableStyle tsl = new DataGridTableStyle(); tsl.MappingName = "ObjectA"; DataGridColumnStyle col1...
  3. AHint

    How do I create an Open File Dialog?

    Well if that's after one coffee I think I should be worried that I am on my tenth (GMT), fully awake and still only just on the safe side of clueless!! Reading the stream of data worked a treat - thanks very much again for your help!!! Anyone reading this in the future I had to make one very...
  4. AHint

    How do I create an Open File Dialog?

    Thanks again. All seems to work now one way or another. What I'm actually trying to do is read a .txt or .sql file from the users PC into my application which will then display the sql in a textbox and the user then runs the sql from there. I've got it working doing the following steps but...
  5. AHint

    How do I create an Open File Dialog?

    Thanks, another question: How can I limit the file types that are displayed and limit the directory paths available? Also, how should I then work with the selected file? It's not "runat="server"" so I can't use the C# code behind. I'm new to this so sorry if these all seem like dumb questions!
  6. AHint

    How do I create an Open File Dialog?

    I have a web page that I want users to be able to open files from. The files will all be text files that contain SQL that I would then run against a database. How do I get a new Open File Dialog window. In a windows application I would use System.Windows.Forms.OpenFileDialog. What is the...
  7. AHint

    How do you override 'just me' with 'everyone'?

    Thanks - works a treat!! Anyone looking at this in the future, I had to set the ALLUSERS property to 'ALL' or 'ME' as appropriate.
  8. AHint

    How do you override 'just me' with 'everyone'?

    I have created an msi. This was created in VS 2003 via a set up and deployment project. Where do I set the ALLUSERS property? I've read up that I need to set the value of this property to 1 or 2 but can't find any info detailing where I change this. Is there something I can set within the...
  9. AHint

    Crystal Reports Deployment problem

    You might like to check this article out that provides information on deploying .net application running on a network server. http://support.microsoft.com/default.aspx?scid=kb;en-us;832742 It may or may not be any use for you and won't resolve the Crystal Reports issue. The Crystal Decisions...
  10. AHint

    How do you override 'just me' with 'everyone'?

    I am sure this is a dumb question but how do you override this property? I have a C# application that I am rolling out by creating a deployment project. On the Installation Folder the default is to install for 'just me' and I need it default to 'everyone'. What property do I need to set (I've...
  11. AHint

    [Q] Capture 'Enter' keys, send 'Tab'

    I am wondering the same. Can anyone out there advise?
  12. AHint

    Redeploy C# .net Application

    I have a simple C# application with just an exe. I have added a setup project creating my .msi file and than ran this to install the application. After making changes and then recompiling my setup project. If I try and run the new .msi file I get an error message saying "Another version...
  13. AHint

    CheckBoxList not saving selected state

    I have a checkboxlist that when I am subsequently interorgating to check selected status is not keeping the status of the control. I'm sure it must be something simple that I have forgotten to select but can't see it anywhere. I have made sure that enableviewstate is set to true. Any help...
  14. AHint

    date conversion in visual C#

    You can use the System.DateTime classes: To get from date to a double representing the date: double dateNumeric; System.DateTime dateIn = new DateTime(2003,10,3); dateNumeric = dateIn.ToOADate(); // this obviously gets you the double representing the // current date. You'll need to change this...
  15. AHint

    Find difference in time between two points

    Hi, I need to find the time difference between datetime fields. DateDiff only appears to give me the days. The data I am checking will usually be only a couple of hours difference but could potentially be a more than 24 hours. Possibly to complicate matters the second date I am comparing...
  16. AHint

    Beginners question... calling public methods

    Worked like a charm - thanks very much!!! Pink star for you!
  17. AHint

    reading contents of text file into string

    You could try: string filePath = System.AppDomain.CurrentDomain.BaseDirectory + "email_files\email.txt"; //you may need to change the part in quotes depending on where you run your app from - ie: "secure\email_files\email.txt" FileStream fs = new FileStream(filePath...
  18. AHint

    Beginners question... calling public methods

    I'm new to C# and have a fundamental question I'm sure you could all answer in your sleep. I have a form and on clicking a button instantiate a new class and loop through a series of files. After each file I want to update a progress bar on my form to show how many files have been processed...

Part and Inventory Search

Back
Top