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: *

  1. stillinlife101

    Automatically Assigning a Primary Key to a New Record from C#

    I have a form that was more or less automatically generated by C# Express 2005 by dragging the "details" view of a SQL table onto a form. I have a bunch of textboxes connected to a dataset and the corresponding toolbar. I don't want the user to play around with the primary key, so I have the...
  2. stillinlife101

    Files protected for no reason

    It gets stranger and stranger. int[] b is not used anywhere at all. In the actual code there is a different array declaration, and I stripped down the code to see what was actually causing the error, and it turns out that if I declare a variable there--doesn't even matter if it's an array--the...
  3. stillinlife101

    Files protected for no reason

    ...another process." When I run the following code: DirectoryInfo di = new DirectoryInfo(Path + "\\customers\\"); FileInfo[] fi = di.GetFiles("cust.*"); int[] b; foreach (FileInfo f in fi) f.Delete(); However, the files will delete just fine with this code: DirectoryInfo di = new...
  4. stillinlife101

    File manipulation locks files

    There's no file manipulation in DObjects. class DObject { Object[] objects; public DObject() { } public void AddObject(object o) { int x = objects.GetUpperBound(0); if (x == -1) { objects = new object[0]; objects[0] = 0; }...
  5. stillinlife101

    File manipulation locks files

    It's using them. That makes it so I can't delete them. If I try in code, it gives me a file permissions error.
  6. stillinlife101

    File manipulation locks files

    const string Dellstring = "MarkedForDeletion"; private void RefreshFiles(string Path, Customer[] Cust) { DirectoryInfo di = new DirectoryInfo(Path); FileInfo[] fi = di.GetFiles("cust"); DObject doFilenames = new DObject(); foreach (FileInfo f in fi) if (new...
  7. stillinlife101

    Multiple drop-down options with total

    Thanks AMysticWeb, I think I'll be able to adapt that to my needs. I appreciate it! Dan
  8. stillinlife101

    Multiple drop-down options with total

    I would like to put a page on my website wherein there are many drop-down boxes with options in them. These options would have different prices associated with them, and there would be a total at the bottom. It would look basically like any custom-computer screen. Radio-buttons would also be...
  9. stillinlife101

    Converting to PDF

    I have a web page that I need to print as a brochure. The problem is that when I convert it to a PDF (via CutePDF), the file either isn't complete if background images are turned off, or it's too complex to open if they're turned on. However, the web page itself will print just fine... with...
  10. stillinlife101

    HOW TO: Generate Summary

    Skip, your answer (now that I understand a little better) is obviously the way to go about this... but I'm pretty inexperienced with this and I'm having difficulty with implementation. When I go to Data/Get External Data/New Database Query/Excel Files/File.xls, it says "This data source has no...
  11. stillinlife101

    HOW TO: Generate Summary

    I might be understanding wrong, but I don't think that will work (speaking of both solutions). Worksheet B will have to fill itself by adding only lines with quantities greater than zero. I would be okay if the method wasn't fully automatic. For instance, if another sheet copied all the...
  12. stillinlife101

    HOW TO: Generate Summary

    ..."part #" column is already filled in with part numbers, and the unit price already has the prices. The total price calculates itself as Quantity * Unit Price. The quantities are all set at 0. When I set the quantity to a number greater than zero, I went it to send that part number's...
  13. stillinlife101

    Excel Auto-Form

    I currently have an excel spreadsheet with one page on which you enter information, and another page that is a quote-form and fills itself in based on the information from the first page. I also have a number of other pages in the workbook with products, costs, prices, and descriptions. What I...
  14. stillinlife101

    Automatically calculate subtotals in Excel

    Perfect. Worked great, my spreadsheet is now doing everything I wanted it to do. Well, except mailing itself to the proper people... Dan
  15. stillinlife101

    Refer to row as variable in Excel

    Wow. Precisely what I was looking for, guys. Thanks! Dan
  16. stillinlife101

    Refer to row as variable in Excel

    How might I refer to the row in which a cell is? If I want to reference the F column in row 43 from C43, how could I use the fact that C is in row 43 to get F43? The application would be equations that could be reused in inventory-type spreadsheets. Thanks, Dan
  17. stillinlife101

    Automatically calculate subtotals in Excel

    Either I'm doing something wrong or it won't work. I tried selecting a group, but it can't find the correct row to put the total in even though I select it. Is there a way to refer to the row that a given cell is in? That way I could just copy the formula (b(thisRow)+c(thisRow)) all the way...
  18. stillinlife101

    Automatically calculate subtotals in Excel

    I'm sure this has been asked before, but I couldn't find the post. I was the have three columns (Item#, Price, Quantity) inputted and then have the fourth column automatically multiply price by quanity to get a subtotal. Then I'll be able to easily add all the subtotals. Is there any way to...
  19. stillinlife101

    Help w/ Namespaces/Classes

    How do you nest namespaces? I'm working on something that will require a hierarchy of namespaces, sort of like the System namespace in .Net. System.H1.H2.H3... etc How do I create those nested namespaces so that I can 1) use the hierarchy to find my class and 2) inherit from higher level...

Part and Inventory Search

Back
Top