Make A Form With Two Panels?
Jul 4, 2009I want to make a form with two panels. I one panel have eight circles that represent leds.And have a but to start turning on the firdt, then turn it off and turn on te second one, and so on.
View 1 RepliesI want to make a form with two panels. I one panel have eight circles that represent leds.And have a but to start turning on the firdt, then turn it off and turn on te second one, and so on.
View 1 RepliesI'm trying to make custom ListBox with some graphics. Base is ItemCollection - each item contains Panel, 2x label and 2x picturebox. What each panel have to do:
- Change backcolor on MouseEnter and set color back when MouseLeave occurs.
- On MouseDown(LMB) - Panel stays "selected" - different color.
Problem: I can't access multiple panels at a time(and I need to), just one via sender as in function. Of course, I can do it hacky way, but I want to do it effective and regular. Is ItemCollection the right solution or should I do it just like an array of panels? Also I want them in one "box", ItemCollection is good for it.
Second "problem": I need to make labels "merged" in panels, when i MouseEnter them(labels), background color on that panel sets to my default color. when i MouseClick them(labels), nothing happens (need to "select" parent panel). It can be again fixed with hacky way, just disable labels - but then the colors of labels are unchangeable.
im using split containers right now to switch between 4 panels is it possible to make the form resize when i switch panels to the size of the contents of panel?
View 2 RepliesI'm building a memory game but I'm not exactly the most experienced coder. Basically, if two panels are shown then I want them to stay on the screen. The second part I can do, but I can't figure out how to have two variables in an If statement.I'll just post a bit of code (that is probably nothing near what it should be) so that you can understand what I'm trying to do.If Q1.Show() + A1.Show() then
View 3 Repliesi want to make a Application Who Show Panel One By One or Visible =true one By one Like Panel1.visible=true & allpanels.visible=falsei m using 100 Panels how to make possible like this [URL]..
View 7 RepliesIs there a way to hide all panels on a form?
View 2 RepliesI would like to have two different panels (with associated buttons, textboxes, etc.) on the same location on a form. Is this possible and if so, how do I go about doing it? I need this to control two different boards with the same application.I realize it would be difficult to edit the form if they are on top of each other. Is there a way to place these panels apart while designing/coding, but have them located in the same spot on the form during runtime?
View 13 RepliesI am trying to conduct a research experiment using a psychological measure. Basically its a bunch of words and you need to specify a value for (1-5). So, what I did was take a numericupdwn box and a label and paired them up using a panel. I did the same thing for 19 other sets. I placed each one carefully on the grid, nice and neatly, however I need to randomize the order of how they are arranged.
I spent hours trying to figure out how to set the location point for a panel. But to use variables through a random number generator, is simply too difficult!
[Code]...
I am in the process of creating an all-in-one application for my own purposes. This application has panels with different "Mini-apps" inside of each. Timer, Notepad, Calculator, etc... The top of the application is a drop down menu and each of the drop downs has "Minimize" and "Maximize" for the appropriate application. When the minimize function for a "mini-app" is clicked, then that application is not visible. When maximize is clicked, the the application reappears.What I am attempting to accomplish is that when, for example, the two lower panels are minimized then the form resizes to only show the top two application.Basically, its like rows. If the two bottom are not visible, then the application should resize to fit nicer. An example of this type of application would be Windows Calculator (found in Windows 7 systems and probably other OS).[code]
View 2 RepliesI've created a Form with 1600 Panels. Which are all called Panel (1-1600).
E.g. Panel1, Panel2, Panel500, Panel1000, Panel1600
I want a code so that if you click one of the Panels, the BackColor of the panel you clicked on, turns from Control to Red
I think there is an easier code than just adding this:
Private Sub Panel1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Panel1.Click
If Panel1.BackColor = "Control" Then
Panel1.BackColor = "Red"
Else
Panel1.BackColor = "Control"
End If
End Sub
To every single panel.
Have a set of buttons across the top of my form and when the user clicks one id like the botom of the form to change to reflect that click. Kind of like the Office 2k7 ribbon but apply that to the whole form.
View 3 RepliesOk Guys what id like to do is Have a set of buttons across the top of my form and when the user clicks one id like the botom of the form to change to reflect that click. Kind of like the Office 2k7 ribbon but apply that to the whole for
View 3 RepliesI am having an odd problem with the Horizontal Scroll Control in my program.I am using it to scroll a series of panels across a form.This is my code:
Private
Sub scrHoriz_Scroll(ByVal
sender As[code]....
The problem is that this works perfectly if I use the left and right arrows and it also works perfectly if I use the scroll bar's slider SLOWLY. If I scroll using the slider and move it quickly then the scroll gets out of sync.The small change and large change are both set to 1 and maximum is set to 8
Im using this code
Private Sub Form1_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.MouseEnter
For i As Integer = 38 To 2 Step -1
Panel1.Height = i
Next
[CODE]...
I have 2 panels on the form butttt for panel one i want to slide height and panel 2 i want it to slide width.
There are two panels A and B in a form horizontally, same size. Panel A archors with top,bottom, left and Panel B with top, bottom, right.When the form changed, the gap did.Panel A archors with top,bottom, left and Panel B with top, bottom, right and left.When the form changed, the gap doesn't, but only Panel B came bigger, Panel A didn't.Have you a way to keep the gap and the two panels can change in same time when the form changed?Must calculate the size of panels within Form's SizeChanged Event?
View 7 RepliesI have a form which has two panels each containing there own controls (Pnl1, Pnl2). By Default I want Pnl1 to show and Pnl2 to be hidden which I have set but I want Pnl2 to sit ontop of Pnl1 so when Pnl2 is selected Pnl2 is Visiable and Pnl1 is hidden. Therefore Pnl2 and the controls sit in the same place as the controls in Pnl1. I have got everything lined up but as I move Pnl2 over Pnl1 to sit ontop, Pnl2 is moved into Pnl1 and becomes a Panel within the Controls of Pnl1. Therefore when I hide Pnl1 everything is hidden as Pnl2 is part of Pnl1.
View 1 RepliesI am working with tab controls (tab1, tab2, etc) I want to more than one panel in tab1 and switch between them using a button. My problem is working with more than one panel in tab1. This is an educational program i am working on for schools in the Dominican Republic.
View 1 RepliesI had a form with four panels all have the same size and location I switch between them using .BringToFront
what I need is a transforming animation between them , can I do this with vb.net 2010
another explain I want somthing like fade effect when I change the visibility of a panel and show the other one and if I cant do this with panel control or vb.net windows forms ,
I like to use pop out panels that would just slide but sometimes it looks bad. is there a way i can fix it to make is as smooth as possible?
Here is the code i use:
dim pp as new point
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
pp = Panel1.Size
End Sub
[CODE]...
How to randomize the panels?
and if the panel reached about 5 randomizing, it will stop randomize..
I am adding controls to form at run time.I am doing the following with no problem:
[Code]...
I am trying to stack panels on top of each other, but they keep becoming children of the one I put them on top of. I am stacking three panels. I want to show each based on certain criteria. The showing and hiding works if they are not directly on top of each other. However, I would like to have them on top of each other. They are all exactly the same size and same position
View 2 RepliesIm working to develop an application thats going to run on some not-so-good as performance PC's. The application is done in VB.NET and i encountered some obstacles during my work.
The idea of the application is to allow the users to slide through some pages when they click with the mouse and drag (while the left click is pressed) to right (for browsing to the previous page) and to left (for browsing to the next page). Every page contains 4/6/9 panels with 4/6/9 pictureboxes with some gifs as images.
The issue is that when the user drag with the mouse to browse to a page, the panels and the pictureboxes jerks around when they are moved.
Here is the code that handles the slide part
If i + speed < 1024 Then
For j As Integer = 0 To nrOfGamesInTotal - 1
totemGame.gamePanel(j).Left = totemGame.gamePanel(j).Left + direction * speed
[Code].....
I'm having a bit of trouble creating draggable panels that will stay on top of all the other panels and not 'hide' behind them. My code for dragging works fine, I just need to set the layer of a panel to the top of all the different controls
View 1 RepliesTo save from using several different forms in programs. I'd like to make just a few panels to represent each one. Then when I need to display one I just set it to visible or not visible.
For example, a quiz program. The 1st 10 questions are on one panel, the 2nd 10 are on a 2nd panel. They are both identical except different questions.
The problem is, when I try to put them both on the form, they have to be in different areas or else one will go inside the other. How can I keep several panels on one form without them going inside each other, in other words how can I keep them separate?
I have here another question. I have a panel with about 20 different panels inside of it. There is a "mouse move" event for panel 1, How could I make is so if the mouse is over 1 of the 20 different panels, Have it display the panel name? I would paste source but that's why I'm posting here.
View 1 RepliesI am looking to make an application where panels might seem to be very heavily used. Is it recommended not to use them for large item management?For instance, I want to have a menu with flat style button. When clicked on, they will hide all other menu panels and show the options for that buttons clicked. From there, for each option clicked, it will display a panel on the right with various results for the specific criteria selected.
View 5 RepliesI have an application in which the windows form has 3 panels. Under some circumstances, controlled by the User I want all three panels visible, in other situations I want one of the panels not visible.
The program works if I use the code:
Panel1.Visible = False
Panel2.Visible = True
The program also works if I use the code:
Panel1.Hide
Panel2.Show
Is there some advantage or disadvantage to either of the two approaches?
I am looking to release an ad-supported free app (i want to make it free, but need to cover some costs) in which the ads are basically unobtrusive panels in the corner of the screen. They are webbrowsers which show an image.[code]...
View 6 RepliesI am new at this. Im trying to serialize a panel and its contents in vb. The controls are added at runtime. I have tried adding to a arraylist but it didnt work
View 2 Replies