Jump to content

Recommended Posts

Posted

Hello,

Is it possible to grey-out the "_GUICtrlIpAddress_Create" control so that a user can see the IP address but can not change it? I have created a GUI script to change an IP address via the command line (using netsh.exe) but I do not want the user to be able to manipulate the IP address, but still see it. What I'm looking for is something like...

$IP1 = _GUICtrlIpAddress_Create($MainGUI, 128, 192, 249, 33)
GUICtrlSetState($IP1,$GUI_DISABLE)
but that didn't work. Any idea's?? :D
Posted

Hello,

Is it possible to grey-out the "_GUICtrlIpAddress_Create" control so that a user can see the IP address but can not change it? I have created a GUI script to change an IP address via the command line (using netsh.exe) but I do not want the user to be able to manipulate the IP address, but still see it. What I'm looking for is something like...

$IP1 = _GUICtrlIpAddress_Create($MainGUI, 128, 192, 249, 33,$WS_VISIBLE+$WS_DISABLED)
GUICtrlSetState($IP1,$GUI_DISABLE)
but that didn't work. Any idea's?? :D
Would this work?

$IP1 = _GUICtrlIpAddress_Create($MainGUI, 128, 192, 249, 33,$WS_VISIBLE+$WS_DISABLED)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...