Search results

  1. J

    Modifying Controls on Inherited Form

    I've created a base form with (among other commonly used controls) a DataGridView control. It's Design Modifiers Property is set to Public so that I can position the control to where it is needed on my various inherited forms. However, on all of the Inherited Forms, all of the properties of...
  2. J

    XPathNavigator Operations, C#

    I'm trying to pull some data from a Microsoft Word XML Document, but the code I have generates sloppy output (see streamLog.txt). I am trying to write each row of tab delimited data on its own line, but I never appends a carriage return. My code consists of 2 methods: readDocument and...
  3. J

    Automate Install for Restricted Users (non-ClickOnce)

    I posted this question a couple of days ago on http://social.msdn.microsoft.com, but I didn't get any responses. Maybe someone here has an idea. Here is the situation: In our company's internally controlled application, we check at startup to see if a newer version is available. We do NOT use...
  4. J

    ManagementObjectSearcher Win32_Printer - UnauthorizedAccessException

    I recently had to open a project because someone on our production floor did not know how to navigate the menus. When I tried to run it, I got an Unauthorized Access Exception for code that I had not modified. This query worked before installing VS2008, but now it will not run in a test...
  5. J

    Where is the Slider Bar Control?

    A Slider Bar: Is this available in Visual Studio? There could be a toolbar I have not loaded, it could be called something different, or maybe I need to make it using a list of existing components. Thanks, Joe
  6. J

    Implementing ICollection

    I'm writing a Roster class for our company's training program, and I'd like the class to implement the ICollection interface using our Employee class as a template: public class Roster : ICollection<Employee> When I punched this into VS2008, Intellisense gave me the options under ICollection...
  7. J

    Music Hidden in CD (embedded in executable?)

    I recently got a new CD. It plays in the car's CD player fine; plays in the home theater fine. I brought it to work to play on my PC. It autoloads an interface to view a video (that required Quicktime) and a button to play the music. I clicked to play the music, my Windows Media player loaded...
  8. J

    PrintScreen KeyDown

    I have created some code to try to capture the Print Screen key, but I never have been able to get it to fire for either my MDI form nor any of the Child forms. Here's what I have written:void MdiForm_KeyDown(object sender, KeyEventArgs e) { if ((e.KeyCode == Keys.PrintScreen) || ((e.KeyData...
  9. J

    Globally Catching KeyDown/KeyPress

    I've written a Print Screen routine that captures *all* of the information displayed by my project (2 or 3 forms), saves it to a defined image type in a folder that the operator selects, then displays the image in an external viewer. My operators, however, are still trying to use the "Print...
  10. J

    TCP Client Connection

    I have an application that I have written for my application distributed throughout the company to send data to me through our Windows 2003 server (running IIS 6.0). Small text messages get through, but larger messages containing more data (about 20 KB) are not getting through. I set the byte...
  11. J

    Deserialize for Another App and PC

    I've got nice a nice piece of software that can serialize and deserialize settings from my project just fine on one PC, but I need to be able to deserialize the file on another PC running a similar (but different) application. I've searched here and online, and it seems I need to use...
  12. J

    IDispose confusion

    I have recreated System.Net.Mail.Message, because Microsoft did not see a reason to implement the Serializable feature. It looks like everything in Microsoft's Mail.Message class can be duplicated by organizing and naming strings appropriately. I want to implement IDispose in my class so that...
  13. J

    DataGridView and Memory

    I've built an application that reads data from a table, and populates that data into a series of DataGridView (DGV) controls. DataTable table = new DataTable(); SqlDataAdapter da = new SqlDataAdapter(sqlText, sqlConnection); da.Fill(table); DataGridViewX.DataSource = table.DefaultView()...
  14. J

    Binary data from AcceptTcpClient

    In a background worker that will be running on our Server, I am listening for data in the form of a System.Net.Mail.MailMessage object (including attachments) to come from a client on our LAN. (The client PCs and operators on our manufacturing floor do not have an email program). This is a...
  15. J

    HTML Viewer?

    I'm looking for a simple control (like a Text Box or Rich Text Box) to display formatted HTML in. What I am creating is an email viewer for our server. Someone selects the message, and its Message Body will be filled into the control. The closest thing I can find (in Visual Studio 2005) is the...
  16. J

    Windows Form to website database?

    I need to access our company's website database from a PC using a Windows Form. We are using VS2008, but current policies restrict us to development under Framework 2.0 (i.e. VS2005). How would I connect to a website's database? Is it just a special connection string or do I need to do more...
  17. J

    Main() questions

    The standard Windows form starts with Main(). What is the benefit to starting my application this way: [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } as opposed to this way...
  18. J

    Delegate Invoke in Thread throws InvalidOperationException

    I have a test application that sends data from a new thread back to the main thread. I would prefer to use the BackgroundWorker class (which is perfect for doing this), but I can not, as explained in my earlier thread No BackgroundWorker Allowed. I designed the custom class ThreadParameter...
  19. J

    No BackgroundWorker Allowed

    I've got a really nice routine I wrote with a BackgroundWorker, it works beautifully, and reduces the time of looking up my parts in our database from 4 seconds to under 1 second. At the heart of my BackgroundWorker is the DoWork delegate. It looks up information from 5 different tables in our...
  20. J

    Access Database

    I'm going out of town this weekend to look at doing a job for a client. It looks like they are wanting a way to exchange information between their 5 team members in remote locations using an Access database, whereas I generally spend most of my time working with MS SQL 2000. What key...
Top Bottom