|
Let me phrase it another way:
Suppose I had four buttons with each button assigned one specific panel that should be displayed when its button is clicked. Each panel would have its own set of controls and the like about it. What I'm asking is not how to hide certain controls (or an entire panel) via code but rather how to do it in the Design View as I am working on designing the panels.
As it is right now, what I have is the following: a panel manager with four subpanels (buttons if you will) that are used to select what it is you would like to view in a main, contents panel which takes up most of the screen. This contents panel needs to be updated with the appropriate controls and such based upon what the user chose to view from the panel manager. Think of it like a webpage with frames where the left, thin frame holds links that when clicked display the result in the main, larger frame. My problem is that I can't design the UI effectively when I have nine million controls sitting on the screen and I have no way of hiding them so I can work on the next "button"'s content.
|
|
|
|
|
As far as I know there is no way to hide the controls in the design view...
But once I had to do some panel work like what you mentioned... I designed each panel in a separate form and when I was sure that everything is okay, I copy&pasted all in a single form...
|
|
|
|
|
There might be two different ways, Try using tabs, one tab for each subset of controls, or try child forms, Forms within forms, much like documents in a word processor.
Either way allows you to place controls into groups, that are only visible when the form, or tab is active, both at design time and at run time.
JohnSQLer
|
|
|
|
|
The only way I have seen this work, is to go ahead and place all your panels on the form, one on top of the other. Then when you are not working on the panel that is currently on top, right-click on the panel, and select "send to back". Repeat this until the panel you want to work on is on top. I hope you don't have too many panels .
Roy.
|
|
|
|
|
Thank you for all the responses! I was able to figure out a solution to my problem and as a result I've got to admit I feel like such a VB.NET rookie.
I come from a C/C++ background where most of the UI and its functionality was done in code rather than from a form designer. As such I was unaware of the applications of "User Controls" in VB.NET and just how powerful they can be. What I did to solve my problem was simple: I created a new User Control for each "panel" I wanted displayed based upon the user selection from the Navigation panel. When a selection is made the "SelectedPanelChanged" event fires in which I have a series of test cases to test what selection the user made. Within each test case I have code along the lines of the following selection-specific example:
If (panMain.SelectedPanel.Text = "Search") Then
Dim xSearchControl As New TQTSearchControl
With Me.panContentsContainer.Controls
.Clear()
.Add(xSearchControl)
End With
End If
-- modified at 9:16 Thursday 25th May, 2006
|
|
|
|
|
Hi This is Ruchika.
working with images n getting difficulties while resizing the pics.trying to use controlpaint class but didnt get success.
Is there anyone can help me.
thanks.
|
|
|
|
|
I use FSO to make a treeview of all he folders on my harddrive (or watever folder was selected). I would like to be able to quit the search for folders in the middle but I cannot do anything until the program is finished. How can I stop it in the middle? Also, while it searches down the folder, i want it to display 'the folder it is currently on' in a label but the label does not update until the program is finished. Can any advise?
Almerica
|
|
|
|
|
Run the folder search procedure on a different thread than the UI update thread. This will solve your label update problem and make it possible to abort the search before it has completed its task.
|
|
|
|
|
I am new to Windows programming. Can you guide me in the right direction of how I would a ccomplish this.
|
|
|
|
|
It would be much easier to show you what I want but I will try to describe it. We have a big office with 10 receptionists and we want to create something like a calendar control where they can schedule many patients in a particular time slot on a particular week day. Let me try to draw the control that I want:
Checkbox for Schedule immediate/walk-in Appointment
This Week Next Week
Appointment Time|05/22/2005|05/23/2006| 05/29/2005|05/30/2005
8:00 | 5 | 2 | 4 | 3
9:00 | 6 | 3 | 8 | 2
10:00 | 0 | 0 | 1 | 4
All the information would be read from a database so the appointment times and the number slots would be different from day to day. This is how it would work: if a receptionist clicks on the first slot that shows 5 (under 05/22/2005) to schedule an appointment for a patient, then the 5 should be decremented to 4. If 2 receptionists click on this same slot, then the resulting number should be 3, as the information will be shared by all 10 receptionists.
To design the control, I was thinking of using 2 datagrids but I'm not sure how to start. Also,
1. I would like to put one color for This Week data and another color for Next Week data.
2. When the receptionist clicks on a slot, they should get a pop-up window
3. Past information would be greyed out (If it is 12 p.m today, the receptionist shouldn't be able to schedule appointments for 8:30 this morning.)
4. It would be good if the control could be designed so that other applications could use it and not just my reception application. (Custom or user? which is best?)
5. The information would have to be constantly refreshed in the control as receptionists use the slots. Note that the receptionists cannot change the values of the slots.
Sorry for making this so long. Please point me in the right direction! Thanks in advance.
Sanna
|
|
|
|
|
Hi Friends
i Created 1 application of Three -tier Architecture. all three layers are running well on My Single PC but when i kept 2 layer(Business and Data Layer) on server then My User Interface Layer Cant connect Those layer on Server because of Port. so Please Help me to solve this Problem and Please Give me information about Port.
Dilip
|
|
|
|
|
I set ListView.ShowGroups=TRUE but i couldnt see the groups on listview at Windows 98 client
W H Y ?
H
Y
?
|
|
|
|
|
Are you use using vb.net 2.0,I dont see ShowGroups method in vb.net 1.1. Try setting ListView.View=details.
|
|
|
|
|
|
Hi
I am using AppUpdater [http://windowsforms.net/articles/appupdater.aspx] in my windows based application, I am looking for a feature where in when the application encounters new update in the server; Right now if the Application is running it will display a message “An update to this application is available. Would you like to start using the update now?” if we press yes the application will install new version and if we press no the application will not install at that time but it will install when the application is started again.
I need a option where in when the message is displayed as “An update to this application is available. Would you like to start using the update now?” if I press yes it should download the files from web server and install it and if I press no the application should not download the files from the web server to the application folder. As it is component I could not find the solution where to write the code. please do reply me if you have any solution.
J.R.Sreenivas
[ jayanthisreenivas@batishtechnologies.com]
|
|
|
|
|
If you take a close look into the advanced sample, you could find these events
this.appUpdater1.OnCheckForUpdate += new Microsoft.Samples.AppUpdater.AppUpdater.CheckForUpdateEventHandler(this.appUpdater1_OnCheckForUpdate);
this.appUpdater1.OnUpdateDetected += new Microsoft.Samples.AppUpdater.AppUpdater.UpdateDetectedEventHandler(this.appUpdater1_OnUpdateDetected);
this.appUpdater1.OnUpdateComplete += new Microsoft.Samples.AppUpdater.AppUpdater.UpdateCompleteEventHandler(this.appUpdater1_OnUpdateComplete);
You can use the event OnUpdateDetected to proceed or cancel update.
|
|
|
|
|
Helo
Has anybody an existing Demo for the in VB2005 existing Serialport-Class?
thank you and greeting from upper austria
tom
|
|
|
|
|
hi..
i have a problem in access to show a picture in vb..
can someone please help me..
thank u
areon25
|
|
|
|
|
|
hi..
i have a problem in programming barcode using vb and access as my database..
can someone help me solve this problem..
areon25
|
|
|
|
|
Define your problem. The hardware should be converting your barcode into a text string for you to access just like any other entry.
If it's relating to printing a barcode, you need to have a print driver that supports it.
|
|
|
|
|
Hello frds,
i have created a Databse in MS access through VB.
i also created a table and inserted a column in that table.
but now problem arises that how to insert the values in that columns!
i.e how to insert a record in that table
thanks in advance
bye
Rahul here
|
|
|
|
|
The easiest way is to you a T-SQL Insert command. Using ADO.Net you can do the following
(assumes connection to database is already set)
cmd = cn.command
cmd.commandtext = "Insert into Table ([Column1]) Values('Information')"
cmd.executenonquery
cmd.dispose()
****This is not the RECOMMENDED method of inserting data. The recommended way is to create named variables. I chose to just show this to keep it simple. If you're going to be passing variables into the table, then you need to set up named variables. There is a vulnerability called SQL Injection that can cause major problems.
ADO and ADO.net are very powerful. I'd recommend getting a reference book taht covers the version you want to work with. Since you're just now starting down the ADO path, I'd recommend ADO.Net if you're using VB 2003 and ADO.Net 2 if you're using VB 2005. They're all fairly similiar so there's no need to compound your learning curve by not starting with the latest version available.
|
|
|
|
|
i have filled a dataset.it's getting only one row.that mean only one row on db according to query.
now i want to get values from dataset to text field.
can anyone help me
|
|
|
|
|
TextBox.Text = DataSet(0).items(Fieldname).value
|
|
|
|