making a clickable transparent form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • srangine
    New Member
    • Jul 2010
    • 2

    making a clickable transparent form

    Hi,

    I am trying to build a form which becomes transparent on MouseLeave and non transparent on MouseEnter. Alternatively any form that passes keyboard click to below windows but not mouse clicks will be helpful.
    Can you please guide me to build this.

    Thanks
  • GaryTexmo
    Recognized Expert Top Contributor
    • Jul 2009
    • 1501

    #2
    It's not our job as bytes volunteers to build your application for you. You'll have to dive in and do the work yourself. We're happy to help if you get bogged down in some of the coding and perhaps point out what you might be doing wrong, but we can't tell you exactly what to do (nor should we).

    What I can tell you is that you sound like you've got a pretty clear idea of what you want to do, which is fantastic. You need to open up a new project and start looking at what you can do. It will also be immensely helpful for you if you start googling around with key terms to help you out.

    For example, I can bet you that if you punched in "C# transparent form" you'll get something that will go along way to helping you get started.

    Good luck!

    Comment

    • srangine
      New Member
      • Jul 2010
      • 2

      #3
      Originally posted by GaryTexmo
      It's not our job as bytes volunteers to build your application for you. You'll have to dive in and do the work yourself. We're happy to help if you get bogged down in some of the coding and perhaps point out what you might be doing wrong, but we can't tell you exactly what to do (nor should we).

      What I can tell you is that you sound like you've got a pretty clear idea of what you want to do, which is fantastic. You need to open up a new project and start looking at what you can do. It will also be immensely helpful for you if you start googling around with key terms to help you out.

      For example, I can bet you that if you punched in "C# transparent form" you'll get something that will go along way to helping you get started.

      Good luck!
      Hi,
      Thanks for your reply. I tried following code

      protected override CreateParams CreateParams
      {
      get
      {
      CreateParams cp = base.CreatePara ms;
      cp.ExStyle |= 20;
      return cp;
      }
      }
      But it bypasses both mouse & keyboard. Is there any way to bypass only keyboard?

      Thanks

      Comment

      • GaryTexmo
        Recognized Expert Top Contributor
        • Jul 2009
        • 1501

        #4
        I put that code into a form and even without the create params, it still passed keyboard and mouse info to the form below on the transparent portions. Actually, so far as I can tell, that CreateParams isn't doing anything for me at all.

        I don't know how to make it pick up these things and pass them to the control itself. It looks like the transparent portions drop it entirely.

        Comment

        Working...