Make A Form Resize When Switch Panels?
Mar 11, 2012im 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 Repliesim 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 have several panels in my app is there a simple way to switch between the panels without dragging them off the screen so I can see the ones bellow if I need to edit the first panel I have to move 8 panels to see it?
View 2 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.
I 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 RepliesWhat code would I use to make a progress bar last 4 seconds then switch to another form?
I can't find any good code for a progress bar besides on youtube which I don't know how to change the timing on it
I want to know if there is a way I can resize panels manually while an application is running. Basically I have one master panel you click a button add more panels to it. I want the child panels to be movable and resizable in the parent panel.
View 1 RepliesHow would i make so when the user resizes the form the controls on the form resizes to what ever(ex: form become full screen textbox is full screen.
View 2 RepliesWhen i use my program, i resize my form but my textbox stays the same. I want it to resize itself with the main form.
What is the code for this, and for what?
Im so in to webbrowsers in vb2010 and i need help with a problem. The problem is when i resize my form my buttons wont size so my buttons just dissapear. i need help to make when i resize the form my buttons will resize to.
View 2 RepliesHow can I Make the contents of a form resize with the form?
View 2 RepliesI made a program on a computer with a big screen.I set it to open in 'maxamized state' , and I took away the top, so you can't close/resize/minimize it. How can I get the form to automatically resize to the screen size??
2) Is it possible to make a form ( in visual basic express edition 2011) not close when user shuts down computer and/or logs-off ...maybe run in back grond..?
3) Is there a code ( in visual basic express edition 2011) that can make the program start automatically when a user logs-in ?
4) Is there a code that can make something happen (e.g. play music, etc.) from e.g. 7:00 A.M. - 10:00 A.M.
VB.NET is good for me, because it is simple and its not complicated and you don't need to be so strict with syntax. I want to switch to C# but I just don't feel up to it because of the syntax and C# being so strict. What are some good reasons to switch to C# and what will make the transition easier?
View 7 RepliesI have been learning VB.NET since the summer and I was wondering if it makes sense for me to skip learning the things in VB.NET that I do not know and move on to C#.
I think I may be more comfy in C# because I have been using Actionscript 3 for over two years and have toyed with Java and C.
On the other hand, I've never done anything serious with C or Java.
So, finish VB.NET or learn C#?
I'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 RepliesSo I am trying to Make a Jewel Quest sort of Game and I need to be able to make the image from one picturebox trade places with an image from another picturebox, I m trying todo it with the MouseMove, DragEnter, and DragDrop events and so far i think ive gotten everything figured out for the first two but cant figure out how to code the drop event.....
View 3 RepliesI have a web browser on my form and it is definitely big enough to warrant a tab control, with the web browser being on the second tab. I have a button on the first tab that should have the browser navigate, but how do I make the program automatically switch to tab 2? i.e., this is what happens:
1 - user is on tab 1,
2 - user clicks a button on tab 1,
3 - the program does what it needs to do and automatically switches to tab 2
For instance, here is the button that will be clicked:
Private Sub swap_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles swap.Click
If video = False Then
[Code].....
So the button will make the web browser go somewhere, I just want to have the form switch to the other tab automatically so that the user doesn't have to do it. I tried using webbrowser1.focus() to no avail. Is there a tab switch?
i 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.
How to switch between form in runtime
View 5 RepliesIn my program I want to have two different 'modes', each has its own form. My main form in the program is 'Normal Mode', but there is also a mode called 'Basic Mode' which has a smaller form. How can I switch between the two forms (using buttons) by closing the other without my program closing on me?
View 6 RepliesHave 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 Repliesi am trying to connect my vb.net form with an electrical switch.. like i have two buttons on the form one for turning on the switch and the other is to turn off the switch ...
View 39 RepliesIf I have a form open already that is not modal, can I turn it modal by the click of a button on that form.
View 1 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 trying to make a UI that has a few forms / panels, each for a different "Tab" in the program.
I am guessing that the way to do this is using panels and code like:
Panel1.Visible = False
Panel2.Visible = False
Panel3.Visible = False
Panel4.Visible = True
Would I be correct in assuming that this is the best way to go? (I don't want lots of popup forms in the program, looking for the most streamlined way to go).
Also, if this is the correct way to go how would I go about hiding each panel in the IDE so that I can work on each one seperately using the designer view?
Here is the best example application I can think to use: [URL] Each of the tabs (Proxies, Harvester etc) has an image as the tab (Which I can't find an option to do with TabControl and then displays the container / panel below it
When a messagebox pops up, how can I bring a form infront of the messagebox (or switch betwen different forms) and then bring the messagebox back again again if I want to click OK button to proceed with the remaining code?
View 11 Replies