Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have one form (frmAddAction) which is being called by another form (frmNewTask) during first load of the frmAddAction the combobox visible property is showing right value

issue is after closing frmAddAction and re calling from frmNewTask (wihtout closing application)

cmbvalue1 visiblity is showing false

after frmAddAction cmbvalue1 is actually visible
but in code its referring as false visibility


err Image


frmAddAction after loading


frmAddAction


please help!
Posted
Updated 15-Jan-15 23:48pm
v2
Comments
CHill60 16-Jan-15 6:00am    
In which method are you setting the Visible property to true?
I can recreate the problem if the form is not yet visible (the comboBox is inheriting the overall visibility of the form)
Omkaara 16-Jan-15 6:24am    
its a private sub i am calling it on form load event
CHill60 16-Jan-15 6:49am    
Do you have code in the form load event that is setting the Visible property of the Form to false before calling that private sub, and then setting the Form.Visible property to True after the call?
Omkaara 16-Jan-15 6:58am    
no a am not doing form visible property false but i am not doing it true either
CHill60 16-Jan-15 7:03am    
Strange. I can reproduce your problem but only if I've set the Form.Visible to false. I'm fairly sure it's just a timing thing (i.e. the form isn't physically visible at that point so the comboBox isn't either) but I'd like to be absolutely sure.
If you single-step out of that private sub back to the Form_Load event and check the value there, does it change to True?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900