hide the field

DevAccess

Registered User.
Local time
Today, 09:22
Joined
Jun 27, 2016
Messages
321
Hello

I want to hide the field when user creates a new record with button when we are editing existing record, it should be text field but when we create a new record it should be combo box but problem is that when we hide text box we can still see the space occupied it, do you know better solution wherein if a field is hidden it should not occupied the space and other field should be display in same field.

Thanks
 
This is not really possible as everything has an absolute position and you can show or hide each item, just because it is hidden it is still there.

Theoretically you could use a massive command that hid the item and re-positioned each other item separately but I would seriously not recommend this.

What you need to do is concentrate on your form layout, position the item you want to hide so that it is not noticeably missing.
 
You can put the combo box on top of the text box and only display one or other of them, based on your criteria.
 
Minty's suggestion is pretty much the standard approach for this kind of thing...just make sure that Focus is on any Control except the one being manipulated...you cannot make a Control invisible if it has Focus.

Linq ;0)>
 

Users who are viewing this thread

Back
Top Bottom