| | |
Problem Displaying Items
Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Dec 2007
Posts: 252
Reputation:
Solved Threads: 27
hello,
I am having a problem getting all of my items to display correctly. I have a form that has a combobox. When this combobox changes I need to display different items on the form. This is the code to do this but for some strange reason not all items are set to visible.
Any ideas and tips are greatly appreciated.
Thanks
I am having a problem getting all of my items to display correctly. I have a form that has a combobox. When this combobox changes I need to display different items on the form. This is the code to do this but for some strange reason not all items are set to visible.
vb.net Syntax (Toggle Plain Text)
Public Function clear() As Boolean grpDate.Visible = False grpDoct.Visible = False grpHide.Visible = False grpMain.Visible = False grpOptions.Visible = False grpPatHasIns.Visible = False grpSig.Visible = False grpZip.Visible = False grpInv.Visible = False grpInsurance.Visible = False grpDur.Visible = False End Function Private Sub cboReport_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboReport.SelectedIndexChanged Select Case cboReport.SelectedIndex Case 0 'Daily Totals clear() grpHide.Visible = True grpDate.Visible = True Case 1 'Daily Prescriptions clear() grpMain.Visible = True grpDate.Visible = True txtMainZip.Visible = True chkMainShowDirect.Visible = True Case 2 'Patient Profile clear() grpMain.Visible = True grpDate.Visible = True Case 3 'Patient Info clear() grpZip.Visible = True grpPatHasIns.Visible = True Case 4 'Doctor Info clear() Me.grpZip.Visible = True Case 5 'Insurance Analysis clear() grpDate.Visible = True grpInsurance.Visible = True Case 6 'Drug Inventory clear() grpInv.Visible = True Case 7 'DUR clear() grpDur.Visible = True grpDate.Visible = True grpDoct.Visible = True Case 8 'SIG Codes clear() grpSig.Visible = True Case 9 'Current Medications (Refills Available) clear() grpDate.Visible = True grpMain.Visible = True chkMainShowSig.Visible = True chkMainShowVoid.Visible = True lblMainFacility.Visible = False lblMainZip.Visible = False chkMainShowDirect.Visible = False chkMainRphSig.Visible = False txtMainFacility.Visible = False txtMainZip.Visible = False Case 10 'Delivery Ticket clear() grpDate.Visible = True grpMain.Visible = True chkMainPatSig.Visible = False chkMainShowCost.Visible = True chkMainShowPrice.Visible = True chkMainqty.Visible = True lblMainZip.Visible = False lblMainFacility.Visible = True txtMainFacility.Visible = True chkMainRphSig.Visible = False chkMainShowDirect.Visible = False chkMainShowSig.Visible = False Case 11 'Pickup Ticket clear() grpMain.Visible = True grpDate.Visible = True chkMainShowSig.Visible = False chkMainShowCost.Visible = False chkMainShowPrice.Visible = True txtMainZip.Visible = False lblMainZip.Visible = False chkMainShowVoid.Visible = False Case 12 'Refill Compliance clear() grpDoct.Visible = True grpDate.Visible = True grpMain.Visible = True chkMainShowPrice.Visible = False chkMainShowCost.Visible = False chkMainShowVoid.Visible = False chkMainShowDirect.Visible = False End Select End Sub
Any ideas and tips are greatly appreciated.
Thanks
•
•
Join Date: Dec 2002
Posts: 461
Reputation:
Solved Threads: 56
I would guess these are textboxes or labels. If there is no text in them and no border and the backcolor is the same as the form then you will not see anything. Try using a border around them and see if that doesn't solve you problem.
Wayne
It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
•
•
Join Date: Dec 2002
Posts: 461
Reputation:
Solved Threads: 56
I just ran your code. All the group boxes showed up like they should. I did see that you are hiding some controls in places in your code and not showing them again. Click on "Daily Pescription" and you will see all the controls (textboxes, labels and checkboxes). Now click on "Pickup Ticket" and some of the controls are turned off. Now click on "Daily Pescription" and then ones turned off in "Pickup Ticket" are still turned off. This is inconsistent.
As for the group boxes they do turn on and off as expected.
You might have to reinstall vb.......
As for the group boxes they do turn on and off as expected.
You might have to reinstall vb.......
Wayne
It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
•
•
Join Date: Dec 2007
Posts: 252
Reputation:
Solved Threads: 27
i havent really went as far as displaying everything as its needed. I have ran into this problem of the main grp not displaying correctly. without that group there isnt much else i could really do so i was concentrating on that more then the other items.
i was afraid of the reinstall being the option. thanks for you time in helping with this. I am off to reinstall.
i was afraid of the reinstall being the option. thanks for you time in helping with this. I am off to reinstall.
![]() |
Similar Threads
- Help with reading and writing from file (C++)
- Layout manager problems (Java)
- problem please help im desperate (Networking Hardware Configuration)
- problem in VB.NET? (VB.NET)
- Pagination - not displaying results properly, please help! (PHP)
- Hacktool.Rootkit virus, round 2! (Viruses, Spyware and other Nasties)
- Internet explorer displaying odd characters (Web Browsers)
- Creating an array/collection that holds variables (Visual Basic 4 / 5 / 6)
Other Threads in the VB.NET Forum
- Previous Thread: Filter DataSource before presente data in gridview
- Next Thread: Search for files within certain date range
| Thread Tools | Search this Thread |
.net .net2008 2008 access advanced application array basic beginner browser button buttons center click client code combo convert cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic eclipse excel exists fade filter forms function generatetags gridview html images input internet listview map mobile module monitor msaccess net number objects open panel pdf picturebox picturebox2 port position print printing problem read regex remove right-to-left save search searchvb.net select serial settings shutdown socket sqldatbase sqlserver survey temperature textbox timer timespan transparency txttoxmlconverter user usercontol vb vb.net vba vbnet visual visualbasic visualbasic.net visualstudio.net visualstudio2008 web winforms winsock wpf wrapingcode xml year





