473,507 Members | 2,368 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

changing Dialog form's control

553 Contributor
Hi everyone

I want to open a form as a Dialog and then i want to change the form controls' property e.g make a textbox disabled etc.

I've tried various ways but dont seems to work.

I was wondering if i can open a form as acNormal and then change its control properties and finally make this opened form as acDialog

I've also tried opening a form then changing it to 'popup' - but can't do it to the opened form !

Can someone help me in doing such a thing ?


Thanks
Qi
Oct 18 '07 #1
4 1882
questionit
553 Contributor
One way of doing is to make the form 'Modal' instead of 'PopUp' or 'Dialog'.

but what if you want it as Dialog and/or Popup ?

Qi
Hi everyone

I want to open a form as a Dialog and then i want to change the form controls' property e.g make a textbox disabled etc.

I've tried various ways but dont seems to work.

I was wondering if i can open a form as acNormal and then change its control properties and finally make this opened form as acDialog

I've also tried opening a form then changing it to 'popup' - but can't do it to the opened form !

Can someone help me in doing such a thing ?


Thanks
Qi
Oct 18 '07 #2
nico5038
3,080 Recognized Expert Specialist
Did you issue a Me.Refresh or Me.requery after disabling a control ?

Nic;o)
Oct 18 '07 #3
questionit
553 Contributor
No,

I have tried but you cant change the properties of a popup or a Dialog form - you would get an error. I think making form 'Modal' is the only option.

Qi
Did you issue a Me.Refresh or Me.requery after disabling a control ?

Nic;o)
Oct 19 '07 #4
nico5038
3,080 Recognized Expert Specialist
Hmm, I never use Dialog or Popup forms as they have some nasty side-effects like not triggering the OnActivate event on the "original" form...

Without a real reason I would indeed only use the default form format.

Nic;o)
Oct 19 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
1192
by: Tony | last post by:
Hi, How do you change the main form in visual basic .net 2003? I have a form1 as the startup form. Based on a user response as to which mode to run the program in, i would like to transfer...
0
1139
by: Tim ffitch | last post by:
Hi I have a main form with some fields directly on the form and others on a page of a Tab Control. On another page of the Tab Control I have a sub form. In the On Current event of my main form I...
0
3168
by: Andrew | last post by:
I get a Null Reference Exception if I close a modeless form (that is, a form displayed using Show()) when a selection is made from a ComboxBox. If the form is modal (displayed using ShowDialog())...
3
8127
by: Andrew | last post by:
I get a Null Reference Exception if I close a non-modal dialog (that is, a form opened with Show()) when a selection is made from a ComboBox. The error message refers to Unsafe Native Methods, but...
1
1642
by: Ziggy | last post by:
Please excuse this elementary question...but I am just dumb.... I have taken a simplistic Dialog Box and added a Progress Control. When I did that, my Dialog Box was no longer able to intialize...
6
4046
by: Steve Long | last post by:
Help, I'm running VS.NET 2003 and when I try to start my application, I get the "unhandled exception" dialog instead of the IDE highlighting the offending line of code. The problem appears to be...
1
4845
by: James | last post by:
CWinFormsDialog in .net 2.0 lets you host a .Net UserControl as a dialog in a managed C++ MDI application. I.e. in the sample: ----------------------------------------------- #include...
6
4472
by: Scott Gravenhorst | last post by:
Windows XP SP3 My application is set to open a SaveFile dialog when an exit is requested. When I click the app's close button, the save dialog opens, but when I click to change the folder, the...
7
2906
by: Sin Jeong-hun | last post by:
I have a dialog form which pops up from the main window using the ShowDialog() method. this dialog has no or button, and it has quite a lot of controls on it. Now, I want to close this dialog...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7319
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7031
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7485
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5042
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.