Results 1 to 11 of 11
  1. #1
    Samueldo's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Meh
    Posts
    1,023
    Reputation
    29
    Thanks
    348
    My Mood
    Inspired

    Question [Help] Making a custom GUI translucent

    I'm trying to make a custom GUI, but I want it to be translucent and I don't see anything in VB that can help me achieve this.

    Of course I could use Me.Opacity = XX but I want the main controls (buttons and textboxes etc) to remain normal. I've spent a few hours searching the internet and the VB section but with no success.

    Thanks in advance,
    Ryan/Samueldo
    Quote Originally Posted by Grim View Post
    glad to be an inspiration
    Minions rule. /endof

    InjectPlz Refresh - download v1.0 now!

  2. #2
    ViittO's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    168
    Reputation
    10
    Thanks
    25
    My Mood
    Psychedelic
    Transparency key ftw!!!!!

    set your back color to (color)
    +
    set your transparency key to (color)
    =
    (color) is invisible!!!!!
    Last edited by ViittO; 08-18-2010 at 04:55 AM.

  3. The Following User Says Thank You to ViittO For This Useful Post:

    Samueldo (08-18-2010)

  4. #3
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Just be sure to use some obscure color (not control color). just a preference.

    Easy way to do it is

    form load

    [php]
    TransparencyKey = BackColor
    [/php]

    also read this to keep things "clean"

    BUG: The TransparencyKey property is not effective for Windows forms if the color depth of the monitor is set to a value that is greater than 24-bit

  5. The Following User Says Thank You to NextGen1 For This Useful Post:

    Samueldo (08-18-2010)

  6. #4
    Samueldo's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Meh
    Posts
    1,023
    Reputation
    29
    Thanks
    348
    My Mood
    Inspired
    I need it translucent, not transparent. There's a difference. Thanks for helping anyway though.
    Quote Originally Posted by Grim View Post
    glad to be an inspiration
    Minions rule. /endof

    InjectPlz Refresh - download v1.0 now!

  7. #5
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    GDI+ Can achieve this. Sadly I never use GDI+.

    Someone in the VB section was an expert at GDI+, however he's been inactive for 2-3 months.

    You just set the form opacity to something low, and use GDI to draw the buttons.

    If you know basic C#, you can probably convert this to VB:
    Creating a Glass Button using GDI+ - CodeProject

    Cheers.

  8. The Following 2 Users Say Thank You to Lolland For This Useful Post:

    Samueldo (08-18-2010),tempta43 (08-19-2010)

  9. #6
    Samueldo's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Meh
    Posts
    1,023
    Reputation
    29
    Thanks
    348
    My Mood
    Inspired
    Quote Originally Posted by lolland View Post
    GDI+ Can achieve this. Sadly I never use GDI+.

    Someone in the VB section was an expert at GDI+, however he's been inactive for 2-3 months.

    You just set the form opacity to something low, and use GDI to draw the buttons.

    If you know basic C#, you can probably convert this to VB:
    Creating a Glass Button using GDI+ - CodeProject

    Cheers.
    Thanks This should help a lot

    I'll post any problems ASAP.

    Oh, and define "basic". XD Don't worry there's tons of C#<->VB converters on the net, I'll get it working
    Quote Originally Posted by Grim View Post
    glad to be an inspiration
    Minions rule. /endof

    InjectPlz Refresh - download v1.0 now!

  10. #7
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    ha, the noob workaround is 2 have 2 forms, one transparent and one with low opacity. overlay them

  11. #8
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Ya we all know that you like it "the noob way" !

    Already bought your diapers btw?



  12. #9
    qddW$#%^jtyjtyj's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    721
    Reputation
    7
    Thanks
    148
    My Mood
    Mellow
    Its nice that you got it working

  13. #10
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    I don't like the noob way, Just know who else crawls these forums

  14. #11
    mnpeepno2's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    In a barren wasteland
    Posts
    905
    Reputation
    10
    Thanks
    81
    Quote Originally Posted by NextGen1 View Post
    Just be sure to use some obscure color (not control color). just a preference.

    Easy way to do it is

    form load

    [php]
    TransparencyKey = BackColor
    [/php]

    also read this to keep things "clean"

    BUG: The TransparencyKey property is not effective for Windows forms if the color depth of the monitor is set to a value that is greater than 24-bit
    nextgen!!!, this has already been solved in the 2008 version!!! It works on monitors more than 24 bit...


    -----------------------------------------------

    My site: here
    My Blog: here
    My member's area: here
    Minecraft Sever Forum: here


    Minecraft Servers:

    Public:



    Private:



Similar Threads

  1. [Help Request] help making iron sights
    By hiddengravy in forum Combat Arms Mod Help
    Replies: 0
    Last Post: 08-02-2011, 06:38 PM
  2. [Help Request] Help Making Character Guides(Fiona/Evie)
    By quevreauxx in forum Vindictus Help
    Replies: 7
    Last Post: 06-29-2011, 02:51 PM
  3. [Help Request] Need help making perm binds
    By crenfro36 in forum Vindictus Help
    Replies: 1
    Last Post: 05-17-2011, 08:43 PM
  4. [help] making custom reticles
    By Shckr57 in forum Call of Duty Black Ops Help
    Replies: 5
    Last Post: 11-19-2010, 09:41 PM
  5. [Help]Custom GUI[Solved]
    By martijno0o0 in forum Visual Basic Programming
    Replies: 1
    Last Post: 03-07-2010, 06:43 AM