bobbintb Posted October 12, 2009 Share Posted October 12, 2009 im having trouble getting an icon to show as a button i can get the first icon in the dll to show, but i needed the fifth one and it is just blank. this works: $Button2 = GUICtrlCreateButton("", 48, 352, 95, 95, $BS_ICON) GUICtrlSetImage(-1, "C:\Windows\System32\devmgr.dll", 1) but this doesnt $Button2 = GUICtrlCreateButton("", 48, 352, 95, 95, $BS_ICON) GUICtrlSetImage(-1, "C:\Windows\System32\devmgr.dll", 5) Link to comment Share on other sites More sharing options...
picea892 Posted October 12, 2009 Share Posted October 12, 2009 It could be a -5. Try it this way $Button2 = GUICtrlCreateButton("", 48, 352, 95, 95, $BS_ICON) GUICtrlSetImage(-1, "C:\Windows\System32\devmgr.dll", -5) Link to comment Share on other sites More sharing options...
bobbintb Posted October 13, 2009 Author Share Posted October 13, 2009 It could be a -5. Try it this way$Button2 = GUICtrlCreateButton("", 48, 352, 95, 95, $BS_ICON)GUICtrlSetImage(-1, "C:\Windows\System32\devmgr.dll", -5)oh hey, that worked. but why would it be a negative number? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now