![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Professional Programmer
|
Enable/Disable a Window
Hello, I need to now how to make a window disabled and then enabled. Example, When u right clikc ur desktop and select proeties the Display Properties window show. I need to make it, where when that windows popup my fomr iwll popup and disable it when the user clikc Ok it wil enable it. ThnkaYou
__________________
Forgiveness is the fragrance that the violet sheds on the heal that has crushed it. - Mark Twain Destruction leads to a very rough road, but it also breeds creation. |
|
|
|
|
|
#2 |
|
Programmer
|
do you mean add a popup window to your right click menu or press something and popup a window?(what language and platfom do you use?)
if you mean the former,i think you should have some knowledge of windows shell program.if you mean the latter,you should know some background knowledge of windows programming.all these is about windows platform.i don't know how to impletment under linux. ps:I don't know what are you going to impletment and what language you use.if you want to create a GUI application quickly,turn to Delphi or C++Builder,they are RAD tools. ![]() |
|
|
|
|
|
#3 |
|
Expert Programmer
|
Hi Sinix. The whole point of VB is it is a RAD language, nothing else, which is partly why it is perceived as being less powerful compared to, say, C (but also more efficient from a deployment point of view: when you want a string, you type string).
BigGuy, what you're after is the modal style, which can be applied to any window using an API call, or natively to vb forms by specifying the modal and owner form parameters of the show method. For example "Form2.Show vbApplicationModal, Form1" would make Form2 appear as a modal popup on form 1. |
|
|
|
|
|
#4 |
|
Professional Programmer
|
THank yall. Also, how can i make a window close, and then once the user clikcs a button, it will show back up?
__________________
Forgiveness is the fragrance that the violet sheds on the heal that has crushed it. - Mark Twain Destruction leads to a very rough road, but it also breeds creation. |
|
|
|
|
|
#5 |
|
Expert Programmer
|
To simply hide it, but keep it running in its current state, set the visible property. To actually unload it, and load it again, you can simply use the hide and subsequently show methods, though better practise is to explicitly unload and load again in between.
|
|
|
|
|
|
#6 |
|
Newbie
Join Date: Oct 2005
Posts: 9
Rep Power: 0
![]() |
Do you just mean hide and show a form?
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|