Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 6th, 2005, 7:11 PM   #1
bigguy
Professional Programmer
 
bigguy's Avatar
 
Join Date: Sep 2005
Location: Arkansas
Posts: 298
Rep Power: 0 bigguy is an unknown quantity at this point
Send a message via AIM to bigguy Send a message via MSN to bigguy Send a message via Yahoo to bigguy
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.
bigguy is offline   Reply With Quote
Old Nov 6th, 2005, 7:42 PM   #2
sinix
Programmer
 
sinix's Avatar
 
Join Date: Nov 2005
Location: China
Posts: 47
Rep Power: 0 sinix is on a distinguished road
Send a message via MSN to sinix
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.
sinix is offline   Reply With Quote
Old Nov 7th, 2005, 12:16 PM   #3
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
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.
Rory is offline   Reply With Quote
Old Nov 7th, 2005, 5:14 PM   #4
bigguy
Professional Programmer
 
bigguy's Avatar
 
Join Date: Sep 2005
Location: Arkansas
Posts: 298
Rep Power: 0 bigguy is an unknown quantity at this point
Send a message via AIM to bigguy Send a message via MSN to bigguy Send a message via Yahoo to bigguy
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.
bigguy is offline   Reply With Quote
Old Nov 8th, 2005, 1:03 PM   #5
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
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.
Rory is offline   Reply With Quote
Old Dec 7th, 2005, 4:28 AM   #6
Pissi
Newbie
 
Join Date: Oct 2005
Posts: 9
Rep Power: 0 Pissi is on a distinguished road
Do you just mean hide and show a form?
Pissi is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:42 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC