Search results

  1. J

    PrintScreen KeyDown

    Just for completeness and to aid others (and myself if I ever have to revisit this), I was able to streamline the process somewhat using the guidance shown above into two small overrides that require "no wiring" to the form: protected override bool ProcessCmdKey(ref Message msg, Keys keyData) {...
  2. J

    PrintScreen KeyDown

    Thanks. void Form1(object sender, EventArgs e) { Console.WriteLine("P.S. What do you use for your C# code formatter?"); Console.WriteLine("This (CS) works unless code contains brackets (i.e. arrays)."); }
  3. J

    PrintScreen KeyDown

    Thanks. I understood about the values being ORed together. The easiest implementation was just using your ToString() suggestion. It seems to filter great! Now I have this segment: void MdiForm_KeyDown(object sender, KeyEventArgs e) { string val = e.KeyCode.ToString(); if (val ==...
  4. 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. Heres what I have written:void MdiForm_KeyDown(object sender, KeyEventArgs e) { if ((e.KeyCode == Keys.PrintScreen) || ((e.KeyData &...
  5. J

    Web Browser Control Question

    If there is no Internet connection, your visitors wont be able to get to your site. So, my guess is, you want to know how to inform people in your company when the connection to the Internet is down. Does that sum it up? If so, you might need to look into going through a proxy or a 3rd Party...
  6. J

    Best design practise

    Youd have to create an interface for the user to select from a radio button or something. Based on their selection, youd have to write something to read from your two classes and compare the values.
  7. J

    problem with mdi children visibilities

    I suspected as much - Ive just never taken the time to learn IL.
  8. J

    problem with mdi children visibilities

    Isnt Hide() the same as Visible = false? (I dont use it, so Im just asking)
  9. J

    Globally Catching KeyDown/KeyPress

    I just set the MDI forms KeyPreview property to true. The event handlers for KeyDown and KeyPress now catch *regular* keys, but I still cant catch that Print Screen button!
  10. J

    Globally Catching KeyDown/KeyPress

    Ive 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...
  11. J

    attaching a database to my application in vs 2008

    That question could take a very large book to answer. Maybe you should say a little more. An Access database can simply be included with your installer. If you want to use an XML file or Excel Spreadsheet for a simple database, they can be created by your application if they do not already...
  12. J

    problem with mdi children visibilities

    Sounds like you need to ditch the idea of an MDI application and create a form with multiple panels. Panels can have an order. Why do you need the MDI style if you are forcing forms to be in a specific order? That isnt what an MDI form is for.
  13. 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...
  14. J

    Deserialize for Another App and PC

    Ive 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. Ive searched here and online, and it seems I need to use...
  15. J

    IDispose confusion

    OK, thanks. I like the clean look of the using statement (must have MSG in it, because it is addictive), and I wanted to use it in my class. To use "using" though, I had to implement IDisposable, which was new, virgin territory for me as a developer.
  16. 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 Microsofts Mail.Message class can be duplicated by organizing and naming strings appropriately. I want to implement IDispose in my class so that it...
  17. J

    DataGridView and Memory

    Ive 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()...
  18. J

    WebRequest.Http.Post (How does this work?)

    I just wanted to say that you did an exellent job of describing your problem and providing visual aids. Wonderful job!
  19. 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...
  20. J

    Moving a captured bitmap picture across a LAN nework in vb.net

    Rats! I was really hoping this thread would answer a similar question I have. Looks like Ill have to actually post my question as a new thread, though.
Back
Top