Under Containers Section, There Are Some "Layout" Controls?
Jun 20, 2010In the toolbox, under Containers section, there are some "Layout" controls. What's the use of them ?
View 6 RepliesIn the toolbox, under Containers section, there are some "Layout" controls. What's the use of them ?
View 6 Repliesduring the development of my project, i'm incurred in the need to use the flow layout panel, but the real need is to show these panels with a defined size without using scrollbars.
I think a kind of dynamic clip of these panels.
For example.
I've a flowlayoutpanel of this visible size (100,200) but its real height is 500, now i've to show to the users the other content of the panel, without using scrollbars.
I was wondering if there is a way to group controls together without using any containers such as panel, group box, or container.
View 4 RepliesI'm working on a winform which contains several controls like textboxes, radio buttons, datagridviews... All of these controls have been added to a main group box called gbDataEntry. My problem is when the user is seeing the form, I set gbDataEntry.Enabled = False but I want to enable some controls like DataGridviews so the user can scroll them. After disabling gbDataGridview I set DataGridView1.Enabled = True but it seems that the datagridview does not respond to this line. Why?
View 1 RepliesI know how to do it individually but not sure if it's possible to merge into one.
I have 6 containers that contain either Checkbox or RadioButtons.
Struggling sending the type of control and also wondered do i really need to call clear 6 times? Can't VB search each container for a control that can be checked?
vb
#Region "Form Events"
Private Sub ClearPizzaCreation(Of t As Control)(ByVal root As Control)
For Each ctrl As Control In root.Controls
[Code]....
I dynamically add picture boxes to a vb.net form. However, when I add the new picture box, it is always under/below/behind the picture boxes that I previously created. Is it possible to change it so that the newly created picture box would always be in front of the others?
View 2 RepliesIve got a container with a bunch of child textboxes stacked using dock top. My code updates the textboxes and they vertically expand/contract etc. I'm thinking that my code might run faster if I turn off the layout refreshing until all the updates to the textboxes are done.
I'm getting confused with what I'm reading about suspend/resume layout - do I need to suspend for ALL the child controls, then go through them all at the end and Resume individually?
How to check tablelayoutpanel each cell having controls is available or not...
View 1 Repliesi want to resume layout of form . how can i do that. every i run program. the location of controls change i want to get original location of controls.
View 5 Replieshow do i change the layout of the web form to Grid Layout so that i can place my control anywhere and not follwing lines or cursor
View 1 RepliesI migrate between C++ and VB.NET in my coding ventures... which leads to the occasional confusion about when something is by value or by reference in VB.NET.Let's say for example that I have an array of MyObject which is populated with a bunch of objects.
dim MyArr(5000) of MyObject. let's say that the information from this array travels throughout various data structures:
dim MyList as new List(of MyObject)
for i as integer = 0 to 5000 step 1000
Mylist.add(MyArr(i))
next
Under the above scenario, I believe everything is by reference. If I extract an entry from "MyTable" and modify its MyObject Members, I think that the original in MyArr will be modified.However, I have run into situations where I thought something was by reference, and it was by value. Are items always added to containers by reference, or are they sometimes added by value?
How do I go about looping through all the controls within a container, and all the controls in the container of a containing control, and so on.
[code]...
The following only retrieves -Panel and none of the other controlsFor Each cntrl As Control In Me.Controls Next How can I retrieve them all in a For Each loop without an If/Then for every level in the stack?
[code]...
This is so far the best method I found of doing this.
I want to do a container that seems like this: Wich containers must use?
View 1 Repliesi'm working on a program and i'm working with panels, and i'm very frustrated because I want to bring a panel to the front of the form but because of its parent it is locked into another panel.... in the properties for the panels there is no Parent container option though the only way i know how to modify parents is during runtime like this Panel1.parent = Me
View 3 RepliesBeen doing web development for the past 2 years - so I'm a little rusty (and I just switched to VS 2010 from 2008 so maybe something new is available)... I have 4 toolstrips floated to the top of a form. And I have a picturebox below - filling the whole form. Unfortunately the picturebox is "behind" the toolstrips. I want to split the form so that the top of the form holds the 4 toolstrips and the picturebox appears below them.
What would be the proper container to put this mess into so that autosizing is the easiest? The toolstrips will most likely be "turned off and on" during the running of the app.
I am creating a custom config section that will allow me to manage what ELMAH exceptions I want to ignore from my VB.NET/ASP.NET app. Here's my code. I made it easy to paste in a blank code file if anyone's up to the challenge of diagnosing the problem.
CODE:
When I execute this code:
CODE:
I get the error An error occurred creating the configuration section handler for IgnoredExceptionSection: Could not load file or assembly 'WEB' or one of its dependencies..
What boggles my mind is that this all works fine in my C# console test app after I convert the code from VB.NET using a web utility. However, when I paste the VB code from my web app into my VB.NET console test app, it doesn't work there, either, so it appears to be a C#/VB issue. What am I doing wrong here?
How can I place a BG image on the tabs only (title area of tab)? I am also finding it dificult to change the tab text font, since it is changing the tab body font not the tab titles........??
View 2 RepliesWhat's the best object layout in ASP.net or at least.. what are the advantages and disadvantages of either case:
[Code]...
Since my last form is apparently screwed up, I threw together a rough copy that actually works, and I'd like to substitute this is for the old one. I made this new working form in the same project so I don't have to add it, but since the current form is a tab I have no idea how to get the new layout in there.I also don't know how to explain what I'm trying to do, so hopefully this is reasonably clear.
Current form:
I only need that History form. I don't know how to get my new working one in its place, and keep rest of the code from the old form, while retaining the BindingNavigator from the new one. My problem with the old form is that it wouldn't save new rows when I clicked a button on the Navigator (even with the right code), the new one works fine so that's why I want to replace it.
I am working on a windows forms project that will allow a user to have an interface to the database, and another will be a nightly run process file that will update the database table.The user will add new records to the table, whereas the nightly process will update the columns with new values (think mortgage interest rates)
Both these projects will be using the same business logic component that has the calculations needed to enter values into the table.The way I am figuring this out, is that I will have two exe's (one for the interface and one for the nightly process) and have a central object that will host the calculations. What would be the best object for this purpose?A class file?A windows service? (I want to stay away from a windows service, because it will have to be running all the time)
I'm just learning VB & ASP.NET and read a lot about making multi language websites. I understand the principes of creating resource file etc...But what with tables in de database that are used to fill f.e. a listbox ?
Example : an employee has a function
In the database I have a table "Functions" with an ID and a description of the function.Should I design my table Functions as this :
ID
Description_en-US
Description_de-DE
Description_nl-BE
...
Is this the best solution ?
I've gone through various thread, posts, classes and walkthroughs on sites but seem to be coming up short either in my understanding or what is/should be going on.I have a very simple data entry tabcontrol (think like microsoft excel but textboxes, labels and the odd combobox rather than a grid). When I click one tab it creates a new tab and names it according the sequence (no problems so far). Here is the crotch kicker (for me at least). I need the first tabpage layout on all additional tabpage so that data can be entered in each separately and stored with constant "processing" (adding and subtracting ).What would be the best approach to doing such a tabpage duplication?
Currently a User control library inheriting from tabpage seems like a good idea but with the 40 or so controls on it is this actually going to function like the first tabpage (as in the one i have now not the one I'd have if i used the user control instead).Do I take the raft of code the designer creates automatically for the tabpage and its controls and simply add them to the click event? Would this create duplication problems with name or would it be ok as they would be tabpage1.lblName and tabpage2.lblName?
For conversion of my conventional milling-machine to TwinCat ( Beckhoff ) CNC-control I am looking for a good-looking layout for my controlpanel.All machinecontrol & contouring is taken care of by the TwinCat controlsystem.Visualisation for this is easy to make in VB,but who has a sourcecode for a nice CNC-HMI ?
View 1 RepliesFor example: how could I have 3 pictures aligned to the right all in one row, then when the far right picture is deleted the other two move to the right to fill that space. Edit: I'm looking for this capability for both Windows forms and web forms. I'd be happy right now if I could just get the code for Windows.
View 1 Repliesmake a print layout in vb.net...I have a form with some text boxes and i want to make a layout and put the text and print it..i want to add some pictures and other stuff..
View 1 Repliesi am in need of a little help. Is there a possibility to create a layout or report without connecting or using a database. Here is what i mean, i am building a very simple app with 2 textbox and a button. Winforms. i want to connect the text i type in the textbox to the template i created and when i click the button it print the template. vs2010 vb.net.
View 2 RepliesI have made an application and I have many listviews, dockable menu bars etc and I want the user to be able to save the layout of the design of the application once they make changes to it.
For example on my listview I have 3 column, "column 1", "column 2" and "column 3" and they might want to place "column 3" between 1 and 2 as they might prefer this view instead.
How can I code it so that "column 3" wont go back to the default location when they load up the application again after they exit it?
OKay, I'm from a PHP background, but I've just been tasked with developing some custom Web Parts in SharePoint. I've figured out how to create and deploy a basic "Hello world" web part in VB. Okay so far.
how do I lay out things in a VB web part?
For an example, here's a label and a textbox:
protected overrides sub createchildcontrols()
mybase.createchildcontrols
dim mylabel as new label
[Code].....
How would I, for example, get mylabel and my textbox to appear on different lines, rather than running one after the other as they do now? In PHP I'd just wrap them in some top break them onto differnt lines, but how do I do it here?
I am creating a TableLayout in which the rows and columns are set by the user at runtime.There initial controls on the form are rowsTextBox, columnsTextBox, button1 and tableLayoutPanel1.I modified some of the code from my initial program. Here's the old code.
Private Sub button1_Click(sender As Object, e As EventArgs)
tableLayoutPanel1.RowCount = Integer.Parse(rowsTextBox.Text)
tableLayoutPanel1.ColumnCount = Integer.Parse(columnsTextBox.Text)
[code]...
Is there a control or some sort of feature in Visual Studio to contain other forms of my application into one form?
Like in Visual Studio you have this layout system where you can drag one form to the other side of the corner of your screen so that it will fit.
I don't know what this system is called so I can't search any further.