I'd like to display the content of a particular tab page, when I click on a button
Current my code is Me.TabPage1.Show()
That works partially, in that it does display the content of the page, but the correct tab is not selected.
If i were on Tab Page 2 and I used this code to show...
How can I prevent another instance of the same form from opening up in the panel.
I want to just refresh the form in the panel and populate it with the new data based on the selection i made in my tree, but currently all that happens is that another forms opens in the panel, so i end up with...
Thanks for the input, however that code returns the focus to the row at the top of the Grid,
What I want to do is force the grid to scroll up by a certain amount of rows.
I'm going use a work around though. When I look back into all of this, I may be just trying to do something that really...
Thanks for the effort, I've started to use panels with other datagrids inside them to mimic the behaviour
So what Im doing now is Expanding the row of the parent grid and then making visible and placing the child grid within that expanded row... It's not literally inside it, it just appears...
Okay so the code may need tiding up, maybe someparts in the If syntax may even be redundant but this is what I have and so far it works like a charm for what I wana do.
Im gona do this with a 4 tier table link up structure, so the first Grid is going to be in the biggest panel, the second in...
Okay, so of the last two problems I've said I had, this is what I've done to correct the formatting of the cell contents in the cell problem
I used this code
Me.Tbl_DptDataGridView.Rows(e.RowIndex).DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopCenter
So at least I dont have...
Private Sub dataGridView1_RowHeaderMouseClick(ByVal sender As Object, ByVal e As DataGridViewCellMouseEventArgs) Handles Tbl_DptDataGridView.RowHeaderMouseClick
Me.Tbl_DptDataGridView.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect
How do I create a Master Detail Form with DataGridView
For anyone else looking for a way to use DataGridView in the same way it would appear in Microsoft Access, This is what I've come up with just as a guide..
From what I've been reading, the closest thing that can be used in .NET to do this...
Thanks, but I know how to do that much
What I need is a Datagrid as the Master and another Datagrid that is displayed within the first,
So, when a row is selected in the master table/datagrid, it expands and shows another datagrid inside that with corresponding records from another...
How do I create a Master Detail Form with Datagrid.
I want one datagrid to show the master details and when that row is selected,
it expands to show corresponding information from the Detail source..
How can I achieve this.
Like John H says, the e.node or the [e.node.Tag] or the [e.node.Text] can be used
e.g. I use the e.node.Tag for doing specific actions like loading employee records from a form(or more like a subform) into a panel on my parent form that also has the tree.
If what John H mentioned doesnt...
Well somehow when I just started, it was just adding selected nodes to the listbox, no matter if they were there already cause I was just using the ListBox1.Items.Add(s)
but I think, in relation to the flaw you're talking about, later on I'm gona want to remove all "child" nodes of a...
Hey, Thanks a million
1. e.Node.Checked.Equals(True) is the same as e.Node.Checked
2. Me.ListBox1.Items.Contains(s).Equals(False) is the same as If Not Me.ListBox1.Items.Contains(s)
3. but the .contains(s) is the real beauty
Thanks a million. I'm still mulling over the problem...
The shortened version is like u using some serious zipping tools to condense all that I had.
I'm going to try using the .contains method, I tried at first and was having some difficulties, which is why I used the code that I posted..
thanks alot for all the tips though, and for the...
Okay, so I'm what they call a newbie like others were when they just started coding.
I love working with listboxes and TreeView, so as I make a breakthrough with something I didnt understand, I'll try and share. Hopefully I'll put together an actual sample when i learn how to deploy.
if anyone else has this problem, maybe this will help u.
Private Sub TreeView1_nodeClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles TreeView1.AfterCheck
Dim s As String = e.Node.Tag()
How do you get the value of the node whose check box is checked?
Kinda going around in circles, I have the tree working, Im able to add tags of the nodes that I click to a list box.
What I need now is to be able to add/remove those tags to/from the listbox when the check boxes are...