VS 2010 - Use Regular Panels In A Collapsible Panel?
Jun 29, 2011use regular panels in a collapsible panel? Mine seem to be disappearing at runtime...
View 1 Repliesuse regular panels in a collapsible panel? Mine seem to be disappearing at runtime...
View 1 Repliesi have 2 panels , one next to other and one picture , when i have the mouse in front of the picture i hover another panel to show , it has a lil bigger width than the panel 1 and that doesnt allow it to show fully.
View 16 RepliesLike the title says, panel/window, I'm not sure what controls are used to get the effect of collapsible windows, so I don't know what to search for. I'm trying to add 2 windows to my main form, one will have a treeview on the left and the other I would like to have similar to the VS collapsible panel/window (not sure if they're windows or panels or whatever) that will display detailed information about an item selected from a Listview on the main form. I don't need the fancy "Autohide" or other features, just a simple docked area that I can collapse/show whenever needed.
[Code]...
I have custom collapsible panel control. I put it into a FlowLayoutPanel. he FlowLayoutPanel is docked within my form. The Panel Anchor property is set to Left/Top. The purpose of the anchor is so that if I want to put multiple panels in the FlowLAyout Panel, they will all stay snuggly together when they are expanding and collapsing. The panels work fine.
[Code]...
how to insert a collapsible panel in forms??? i need to create a simple quiz application, so that i want a panel.
View 2 RepliesMay I know how can I collapse panel or group box in a windows form? I just want to put my datagridview in the panel or group box and collapse the panel..
View 2 RepliesHowever, I recently tried to use it in a repeater. Essentially my company wants to have a number of different values displayed as the main repeater (no problem setting that up). When the user clicks on a field within that repeater, they would like the collapsible panel to open up and display the detail information for that piece of data. The details are within a sub repeater.The repeater functionality and the child repeater functionality are working perfectly. So the repeater and the child repeater aren't the issue. If I take the collapsible panel extender out the data displays perfectly.The problem is that once I start opening and closing the panels, the screen rendering starts to go crazy, and there seems to be no rhyme or reason for it.
For example, on the initial screen rendering I get seven entries. They look perfect. Each of the seven line up across the screen and no extraneous data is shown.I click to open the first row, and it displays great. No problem. But when I then click it again to close the first row, I only see the first four rows of data, then a huge white space with a few seemingly random characters, then the next 2 rows, a smaller whitespace, then the seventh row. I click to open the first row again and everything looks exactly as it should again. Again close, again 4 rows, whitespace, 2 rows whitespace, last row.I reload the page and everything is ok.
So now I click on the second row to open it and everything looks perfect. I close the second row and I get the exact same result.Has anyone ever tried to use the ajax collapsible panel inside a repeater? If so, have you encountered strange rendering behavior such as this? And if so, were you able to get it to work?Here's a stripped down version of the
<div id="divContainerBody" runat="server" class="Containertbody">
<asp:Repeater
ID="rptContainers"
[code].....
I'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 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.
how to show a panel on top of other panels ?
That means , when a panel(panel1) is in top of another panel(panel2) , when i click the background panel(panel2) will be shown in top of the panel that was in top(panel1)...
I've been kinda stuck on a problem where I have to make Conway's game of life, simply stated I need to check all panels directly around* another panel is there a way to do this easily, other than using a billion if's in the program. Tab index? I could switch to button's if I wanted to but at that same time I find panels to be simpler for stuff like this unless anyone has a different opinion.
View 13 RepliesI want to be able to iterate through a set of panels and set their background color but ive used the [code]...
The error i get is "Panel is a type and cannot be used as an expression"
status control is another panel with houses the smaller panels, makes it easier to hide the lot when needed.
well, the title says iti got panels which keep other panels as memberseven if i drag the panels out of the panel..how can i make every panel "standalone"?
View 1 RepliesI have two panels, and I want them to both scroll horizontally with one scroll bar, but I only want one of them to scroll vertically. So if I have a large panel on autoscroll, it works fine for that panel, but I have another smaller panel above that, could I make the smaller panel scroll horizontally with the larger panel's horizontal scrollbar?
View 2 RepliesI'm from denmark and hope I can explain my question for you. This is just a example: I have a panel, let's say panel1 and another panel on that panel (panel2) and so on until for example panel5 - on panel5 I have a button (button1). Now I would like to change button1's backcolor property through code how do I then get access to button1, now it's a child-control on panel5 that is a child control on panel4 etc. ??
View 3 RepliesI would like to add an effect where a panel sweeps out of the way to make room for another panel. This is sort of like a sliding effect, and I think at one point in time this could be seen on Apple's website under their product pages. I came up with some code, but it isn't working.
[Code]...
I am using vb 2010 and I have a question about anchor. I have two panels side by side, I anchored them both: top, left, right. But when I resize it the left panel goes behind the right panel. Isn't there a way so that when I resize, both panels grow parallel?
View 14 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 need to center the red panel in the middle of the dark grey panel, when you resize the form the red panel should be in the middle, and the red panel can't be resize, anyone have a code or property to do this?
View 2 Repliesi want to make the listview control collapsible to the groups alone. Like in Vista's My Computer, where only the group names are shown and then we click on the group to expand it
View 3 Repliesit is possible to make the collapsible markers(-) or (+) for collapsed sections/regions larger.VS 2010 Pro.
View 7 RepliesI use this code. USED CODE
[Code]...
I'm not sure if this is possible within VS, but I'm working with a massive VB.NET file that needs to log every function call for debug purposes. Problem is, that not every function has the Log command in it. I'm trying to use RegEx to find the function efinitions that do not have a log within them.This would NOT be a match:
Public Function Test1() as Boolean
Log.Tracelog("Test1()")
Return True
[code].....
It seems up until now I've never used Regex, nor even heard of it. But once I did I realized how extremely useful this is. Having said, it's been 2 days since I've began looking into constructing my own patterns. My most recent being for decimals. Is the pattern I provided below "proper"? and are there also any improvements I could be making for a more efficient patter, which would minimize any possibility of a loophole? [code] So for my use, this is doing what it's supposed to being doing under every test I can through at it. But do mind the 0. and .0, I have a function to normalize these as they are proper, I just pad the left and right accordingly. I found most regex questions asked here..and yes I am doing this in vb.net so it fits. If not, then feel free to move this post somewhere else better suited for the topic of discussion.
View 12 Repliesi'm coding a small app.i need to use regular expressions.I've got a huge string. and i need to find some substrings and put them into variables.for instance:<span class="(some constant class)">sb's Name</span> I need to cut "sb's Name" and put it into variable.how to do this using regular expressions?I know, that I can use webbrowser and whole DOM structure connected with it. But I can't, so I must use RegExp.
View 1 RepliesI am in a need of a Regular Expression to restrict input to only certain characters in a text box. The text box can only allow 0 or 1 "+" sign at the beginning and at no other position. The text box can only allow 0 or 1 ":" sign not before the "+" sign. The text box can allow any number of 0-9 digits.
[Code]...
I have a rich text box ('RichTextBox1') and a button ('BoldButton'), and have it set up so that whenever the user highlights some text in the box and clicks the bold button, that text becomes bold. That much I've figured out...
Public Class Form1
Private Sub BoldButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BoldButton.Click
Dim Bold As New Font(RichTextBox1.Font, FontStyle.Bold)
RichTextBox1.SelectionFont = Bold
End Sub
End Class
But I'd also like to add the ability that if the user highlights text that is already bolded, then clicks the bold button, that text will go back to 'regular' font. In other words, I'd like the 'bold' button to be able to toggle between bold and regular font.
Whenever i try and load a project i was working on with VB 2010 i get an error saying
"Font 'Arial Rounded MT Bold' does not support style 'Regular'"
how to get rid of this? I recreated my form for the project and copied the code over but it did this again. I didnt change any fonts on the form at all so i dont understand whats going on.
I have a tab panel, and I added an item to it.
When i click on the tab, i get this error
InvalidArgument=Value '5' is not valid for 'index' Paramert name: index
I am moving a project from 2005 to 2010 and I wanted to make some changes. Currently I have a customer form that has a 3rd party tab control in it. A few of the tabs are Customer Information, Invoices, Orders, Quotes. Each tab has a ton of controls and the form has a ton of code. What I would like to do is have individual forms that show up on each tab. So, I would have a Customer Form, Invoice Form, Order Form, and Quote Form. This way I can also use each from individually as I have the need to. Can this be done though inheritance or something like that?
View 2 Replies