Click here to Skip to main content
15,891,833 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm currently writing an approval system. In the system consist of 1 request form. That form divided into 3 section. section A, B, C. Section A for requester use, section B for manager use and section C for security use. Now my problem is I want to hide section B and C from the requester.
VB
'A.Requestor
req_emNo.Text = req_emNo.Text
reqDept.Text = reqDept.Text
reqDate.Text = reqDate.Text
Purpose.Text = Purpose.SelectedItem.Text
rturn.Text = rturn.SelectedItem.Text
AppMgr.Text = AppMgr.SelectedItem.Text
Me.MgrName.Visible = False
Me.MgrEmpNo.Visible = False
Me.MgrDept.Visible = False

But its just hide the text box only. Please suggest how to the overall section B, and C. Thank you.
Posted
Updated 9-Dec-15 22:33pm
v2
Comments
Andy Lanng 10-Dec-15 5:33am    
is this winforms or webforms. Please update the tags and be specific ^_^
Member 12077709 10-Dec-15 19:14pm    
webform
ZurdoDev 10-Dec-15 9:08am    
You already know how to set Visible property so what is your question?
Member 12077709 10-Dec-15 19:19pm    
ok. actually my form is in this pattern

section A Requester
name : employee no: department:
and the details

section B: Manager
manager details.

this all information in the same form. requester only hide the part of manager. if the manager enter into the system also the manager part hide. My question is where I should put the code.
Member 12077709 10-Dec-15 20:14pm    
In home page have 3 images. If the requester click requester image its going to section A. Others section will be hide. if manager click the manager images, he can see requester part and manager part. please help me to solve this problem. Thank you

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