Click here to Skip to main content
14,774,712 members
Home » Discussions » Windows Forms
   

Windows Forms

 
QuestionWindows Forms-Text Mode Printing Pin
Thirugnanam Nataraj23-Jun-14 21:28
MemberThirugnanam Nataraj23-Jun-14 21:28 
AnswerRe: Windows Forms-Text Mode Printing Pin
Bernhard Hiller23-Jun-14 23:23
MemberBernhard Hiller23-Jun-14 23:23 
GeneralRe: Windows Forms-Text Mode Printing Pin
Thirugnanam Nataraj25-Jun-14 21:31
MemberThirugnanam Nataraj25-Jun-14 21:31 
QuestionHow make Form2 with progressBar in other thread, while downloading data in datagridview in Form1? Pin
Kroshandowski8-Jun-14 10:03
MemberKroshandowski8-Jun-14 10:03 
AnswerRe: How make Form2 with progressBar in other thread, while downloading data in datagridview in Form1? Pin
Richard MacCutchan8-Jun-14 23:01
mveRichard MacCutchan8-Jun-14 23:01 
QuestionMDI WinForms: Open childform2 in panel2 of Parent form using button of Childform1 Pin
Member 1074775521-May-14 6:31
MemberMember 1074775521-May-14 6:31 
SuggestionRe: MDI WinForms: Open childform2 in panel2 of Parent form using button of Childform1 Pin
Richard MacCutchan21-May-14 23:07
mveRichard MacCutchan21-May-14 23:07 
GeneralRe: MDI WinForms: Open childform2 in panel2 of Parent form using button of Childform1 Pin
MyOwnBoss28-May-14 20:53
MemberMyOwnBoss28-May-14 20:53 
Here are a few methods I use. Adapt as needed.

'Determines if a form is already open.
    Public Function IsFormOpen(ByVal FormName As String) As Boolean
        Dim rVal As Boolean = False
        Dim frm As Form
        For Each frm In Me.MdiChildren
            If frm.Name = FormName Then
                rVal = True
                Exit For
            End If
        Next
        Return rVal
    End Function

'Function to show a MDI child form.
    Public Function ShowMdiChild(ByVal FormName As String) As Boolean
        Dim rVal As Boolean = False
        Dim frm As Form
        For Each frm In Me.MdiChildren
            If frm.Name = FormName Then
                rVal = True
                frm.Activate()
                frm.WindowState = FormWindowState.Maximized
                Exit For
            End If
        Next
        Return rVal
    End Function

'Invoke a public sub in a MDI child form.
    Public Sub InvokeMdiChildMethod(ByVal MethodName As String)
        Dim o As Object
        o = Me.ActiveMdiChild
        Try
            o.GetType().GetMethod(MethodName).Invoke(o, Nothing)
        Catch
        End Try
    End Sub

Private Sub ShowNewForm(ByVal sender As Object, ByVal e As EventArgs) Handles NewToolStripMenuItem.Click,    NewToolStripButton.Click, NewWindowToolStripMenuItem.Click
        ' Create a new instance of the child form.
        Dim ChildForm As New System.Windows.Forms.Form
        ' Make it a child of this MDI form before showing it.
        ChildForm.MdiParent = Me

        m_ChildFormNumber += 1
        ChildForm.Text = "Window " & m_ChildFormNumber

        ChildForm.Show()
    End Sub

GeneralRe: MDI WinForms: Open childform2 in panel2 of Parent form using button of Childform1 Pin
Richard MacCutchan28-May-14 22:27
mveRichard MacCutchan28-May-14 22:27 
QuestionHow to deploy encrypted app.config windows application in Client machine where Visual studio not installed? Pin
susanna.floora18-May-14 21:46
Membersusanna.floora18-May-14 21:46 
AnswerRe: How to deploy encrypted app.config windows application in Client machine where Visual studio not installed? Pin
MyOwnBoss28-May-14 20:32
MemberMyOwnBoss28-May-14 20:32 
QuestionHow to use an ErrorProvider with a UserControl? Pin
GroupIII20-Feb-14 18:48
MemberGroupIII20-Feb-14 18:48 
Questionrdlc report in c# winforms programmatically Pin
Irshadkk14-Feb-14 19:59
MemberIrshadkk14-Feb-14 19:59 
AnswerRe: rdlc report in c# winforms programmatically Pin
BELGIUMsky27-Mar-14 23:55
professionalBELGIUMsky27-Mar-14 23:55 
AnswerRe: rdlc report in c# winforms programmatically Pin
xstoneheartx25-Dec-14 16:25
Memberxstoneheartx25-Dec-14 16:25 
QuestionHighlight text on webbrowser Pin
Sumit Rastogi SRA28-Jan-14 0:23
professionalSumit Rastogi SRA28-Jan-14 0:23 
AnswerRe: Highlight text on webbrowser Pin
Simon_Whale28-Jan-14 0:41
professionalSimon_Whale28-Jan-14 0:41 
GeneralRe: Highlight text on webbrowser Pin
Sumit Rastogi SRA28-Jan-14 3:01
professionalSumit Rastogi SRA28-Jan-14 3:01 
AnswerCross posted question. Pin
Pete O'Hanlon28-Jan-14 1:31
mvePete O'Hanlon28-Jan-14 1:31 
Questionclick once setup not installing crystal report runtime pre- requisite while updating from file location Pin
Member 1041145119-Nov-13 2:58
MemberMember 1041145119-Nov-13 2:58 
QuestionCategory Partitioning Pin
Member 449684917-Nov-13 18:36
MemberMember 449684917-Nov-13 18:36 
QuestionLooking for C# winforms control / library to manage different map-based plain image layers Pin
vValkir6-Nov-13 2:22
MembervValkir6-Nov-13 2:22 
AnswerRe: Looking for C# winforms control / library to manage different map-based plain image layers Pin
BillWoodruff9-Nov-13 7:36
mveBillWoodruff9-Nov-13 7:36 
AnswerRe: Looking for C# winforms control / library to manage different map-based plain image layers Pin
xstoneheartx25-Dec-14 17:20
Memberxstoneheartx25-Dec-14 17:20 
QuestionNokia for Windows Phone developers, DVLUP. Pin
Anshu Kapoor26-Sep-13 2:45
MemberAnshu Kapoor26-Sep-13 2:45 

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.