Click here to Skip to main content
15,896,484 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: how to declare on entity framework? Pin
alejx21-Nov-11 2:09
alejx21-Nov-11 2:09 
GeneralRe: how to declare on entity framework? Pin
Simon_Whale21-Nov-11 2:23
Simon_Whale21-Nov-11 2:23 
GeneralRe: how to declare on entity framework? Pin
alejx21-Nov-11 2:37
alejx21-Nov-11 2:37 
GeneralRe: how to declare on entity framework? Pin
Simon_Whale21-Nov-11 2:49
Simon_Whale21-Nov-11 2:49 
General[VB.NET 2008] Using ICSharpCode.SharpZipLib? Pin
Skyware20-Nov-11 6:41
Skyware20-Nov-11 6:41 
GeneralRe: [VB.NET 2008] Using ICSharpCode.SharpZipLib? Pin
Skyware25-Nov-11 11:22
Skyware25-Nov-11 11:22 
Question1 button working with focus tabs in tabcontrol Pin
njtd20-Nov-11 1:46
njtd20-Nov-11 1:46 
AnswerRe: 1 button working with focus tabs in tabcontrol Pin
DaveAuld20-Nov-11 4:29
professionalDaveAuld20-Nov-11 4:29 
Take the tabcontrol, get the active tab and search the controls collection for a DataGridView, that will then give you a reference to which DGV is currently displayed.

VB
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click

    Try
        Dim currentDGV As DataGridView = getActiveDataGridView()

        Debug.WriteLine("Active DGV name is: " + currentDGV.Name)

    Catch ex As Exception

        Debug.WriteLine(ex.Message)
    End Try

End Sub

Function getActiveDataGridView() As DataGridView
    'Get which tab is active and then find the DataGridView on it
    For Each cont As Control In TabControl1.SelectedTab.Controls
        If TypeOf cont Is DataGridView Then
            Return cont
        End If
    Next

    'No datagridviewsfound
    Return Nothing

End Function

Dave
Find Me On: Web|Facebook|Twitter|LinkedIn

Folding Stats: Team CodeProject


GeneralRe: 1 button working with focus tabs in tabcontrol Pin
njtd20-Nov-11 6:10
njtd20-Nov-11 6:10 
GeneralRe: 1 button working with focus tabs in tabcontrol Pin
DaveAuld20-Nov-11 7:22
professionalDaveAuld20-Nov-11 7:22 
QuestionRadian to Degrees Pin
internetuser2k1120-Nov-11 1:32
internetuser2k1120-Nov-11 1:32 
AnswerRe: Radian to Degrees Pin
Wayne Gaylard20-Nov-11 3:29
professionalWayne Gaylard20-Nov-11 3:29 
GeneralRe: Radian to Degrees Pin
internetuser2k1120-Nov-11 18:23
internetuser2k1120-Nov-11 18:23 
GeneralRe: Radian to Degrees Pin
internetuser2k1120-Nov-11 18:29
internetuser2k1120-Nov-11 18:29 
GeneralRe: Radian to Degrees Pin
Wayne Gaylard20-Nov-11 18:40
professionalWayne Gaylard20-Nov-11 18:40 
GeneralRe: Radian to Degrees Pin
internetuser2k1120-Nov-11 19:22
internetuser2k1120-Nov-11 19:22 
GeneralRe: Radian to Degrees Pin
Wayne Gaylard20-Nov-11 19:48
professionalWayne Gaylard20-Nov-11 19:48 
GeneralRe: Radian to Degrees Pin
internetuser2k1120-Nov-11 21:38
internetuser2k1120-Nov-11 21:38 
GeneralRe: Radian to Degrees Pin
Wayne Gaylard20-Nov-11 21:47
professionalWayne Gaylard20-Nov-11 21:47 
GeneralRe: Radian to Degrees Pin
internetuser2k1120-Nov-11 22:19
internetuser2k1120-Nov-11 22:19 
GeneralRe: Radian to Degrees Pin
internetuser2k1120-Nov-11 21:46
internetuser2k1120-Nov-11 21:46 
GeneralRe: Radian to Degrees Pin
Wayne Gaylard20-Nov-11 22:10
professionalWayne Gaylard20-Nov-11 22:10 
GeneralRe: Radian to Degrees Pin
internetuser2k1120-Nov-11 22:18
internetuser2k1120-Nov-11 22:18 
QuestionString Pin
internetuser2k1120-Nov-11 0:43
internetuser2k1120-Nov-11 0:43 
AnswerRe: String Pin
Wayne Gaylard20-Nov-11 3:26
professionalWayne Gaylard20-Nov-11 3:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.