Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. screen Boundary

screen Boundary

Scheduled Pinned Locked Moved C#
graphicssysadmin
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    om_metab
    wrote on last edited by
    #1

    hi I wish evry body is OK today I have Q about screen resolution I wish from any one have I dea about it to answer my Q this is My q * If send drawing image(bitmap)from on PC(big Screen)to another PC (small screen) Over network connection Some of drawing not appear in another PC * **But Iam send only Drawing points and color Iwant function to calculate screen bound or panel that i drawing on it to send it **** that is all I wish get it thanks***********please if u Don't Know don't give me advice to go to google Iam going beffor but not get anything*************

    G OriginalGriffO T L 4 Replies Last reply
    0
    • O om_metab

      hi I wish evry body is OK today I have Q about screen resolution I wish from any one have I dea about it to answer my Q this is My q * If send drawing image(bitmap)from on PC(big Screen)to another PC (small screen) Over network connection Some of drawing not appear in another PC * **But Iam send only Drawing points and color Iwant function to calculate screen bound or panel that i drawing on it to send it **** that is all I wish get it thanks***********please if u Don't Know don't give me advice to go to google Iam going beffor but not get anything*************

      G Offline
      G Offline
      gavindon
      wrote on last edited by
      #2

      Don't have an answer for you problem but do have a small bit of advice. Don't text speak here. It gets viewed less than pleasantly. Type as if you are on a professional forum, not as if you are texting your buddy across the way.

      Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning. A crisis on your part does not constitute one on mine.

      1 Reply Last reply
      0
      • O om_metab

        hi I wish evry body is OK today I have Q about screen resolution I wish from any one have I dea about it to answer my Q this is My q * If send drawing image(bitmap)from on PC(big Screen)to another PC (small screen) Over network connection Some of drawing not appear in another PC * **But Iam send only Drawing points and color Iwant function to calculate screen bound or panel that i drawing on it to send it **** that is all I wish get it thanks***********please if u Don't Know don't give me advice to go to google Iam going beffor but not get anything*************

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #3

        That is not a very helpful question. 1) To back up what gavindon said: don't use text speak - you have a keyboard, either learn to type or just learn where the vowels are and start using them. The space bar helps as well. Would you appreciate it if someone gave you a code answer with half the characters missing? 2) Do you really think large numbers of '*' characters help? All they do is make your question look like it has been censored. 3) Have you checked the resolution of the two screens? Is the "small" one big enough to display all the pixels on the "big" one? 4) How do you expect us to help your improve your code if you don't actually post the relevant code fragments? Psychic powers? 5) If we don't think you have actually searched, then you will indeed get told to google off - trying to limit the advice we give you to "acceptable" answers by your definition will both annoy those you want to help you, and restrict our choice of answers. Sometimes the advice we give is not what you want to hear - doesn't mean it is not good advice.

        Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        1 Reply Last reply
        0
        • O om_metab

          hi I wish evry body is OK today I have Q about screen resolution I wish from any one have I dea about it to answer my Q this is My q * If send drawing image(bitmap)from on PC(big Screen)to another PC (small screen) Over network connection Some of drawing not appear in another PC * **But Iam send only Drawing points and color Iwant function to calculate screen bound or panel that i drawing on it to send it **** that is all I wish get it thanks***********please if u Don't Know don't give me advice to go to google Iam going beffor but not get anything*************

          T Offline
          T Offline
          turbosupramk3
          wrote on last edited by
          #4

          Is your question, how do I get screen resolution locally on a computer, when this computer starts my application locally? If so, the function below should help get you started. This will give you resolution even if you have multiple screens. Using this, you could resize a picture if the resolution is set to less than a certain number. The other posters were correct about the l33t speak.

            private static void test()
              {
                  string virtualWidth = "";
                  string virtualResolution = SystemInformation.VirtualScreen.ToString();
                  string\[\] virtualResolutionSplit = virtualResolution.Split(',');
                  foreach (string resolutions in virtualResolutionSplit)
                  {
                      if (resolutions.Contains("Width="))
                      {
                          resolutions.TrimStart();
                          resolutions.TrimEnd();
                          virtualWidth = resolutions.Replace("Width=", "");
                      }
                      MessageBox.Show(resolutions);
                  }
              }
          
          1 Reply Last reply
          0
          • O om_metab

            hi I wish evry body is OK today I have Q about screen resolution I wish from any one have I dea about it to answer my Q this is My q * If send drawing image(bitmap)from on PC(big Screen)to another PC (small screen) Over network connection Some of drawing not appear in another PC * **But Iam send only Drawing points and color Iwant function to calculate screen bound or panel that i drawing on it to send it **** that is all I wish get it thanks***********please if u Don't Know don't give me advice to go to google Iam going beffor but not get anything*************

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Use the value returned from SystemInformation.PrimaryMonitorSize()[^] to get your screen size, and adjust your picture size to fit.

            The best things in life are not things.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups