Click here to Skip to main content
15,914,160 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Fill By Methods Vs. Binding Source Pin
Dave Kreskowiak3-Jan-08 14:24
mveDave Kreskowiak3-Jan-08 14:24 
Generala coding problem Pin
s3rro3-Jan-08 10:42
s3rro3-Jan-08 10:42 
GeneralRe: a coding problem Pin
Dave Kreskowiak3-Jan-08 10:58
mveDave Kreskowiak3-Jan-08 10:58 
GeneralRe: a coding problem Pin
Ray Cassick3-Jan-08 11:30
Ray Cassick3-Jan-08 11:30 
QuestionApplication exits without error message Pin
Volker Weichert3-Jan-08 9:06
Volker Weichert3-Jan-08 9:06 
GeneralRe: Application exits without error message Pin
Christian Graus3-Jan-08 11:12
protectorChristian Graus3-Jan-08 11:12 
GeneralRe: Application exits without error message Pin
Volker Weichert4-Jan-08 1:55
Volker Weichert4-Jan-08 1:55 
GeneralCannot cast from ControlCollection to ControlCollection Pin
Ed Hill _5_3-Jan-08 6:30
Ed Hill _5_3-Jan-08 6:30 
I'm trying to write a method that loops through a form and dumps the name of all controls and the data from each control into a string, it works fine until it gets to a control that its self has controls in it, like a tabcontrol. Is there any work around so I can get this to work in a single method? The getValue(childControl) function simply uses a typeof check and returns the data of that control as a string. Any help would be appreciated.

Public Function reportApplicationState(ByVal controlList As Windows.Forms.Form.ControlCollection) As String<br />
        Dim strIndent As String = ""<br />
        Dim report As String = ""<br />
        Dim childControl As Control<br />
        For Each childControl In controlList<br />
            If childControl.Controls.Count > 0 Then<br />
                layoutIndent &= " "<br />
                report &= childControl.Name & ControlChars.CrLf<br />
                Dim nextChildControl As Control<br />
                For Each nextChildControl In childControl.Controls<br />
                    reportApplicationState(nextChildControl.Controls)<br />
                Next<br />
            Else<br />
                report &= layoutIndent & childControl.Name & getValue(childControl) & controlChars.CrLf<br />
            End If<br />
        Next<br />
        Return report<br />
    End Function

GeneralRe: Cannot cast from ControlCollection to ControlCollection Pin
Ed Hill _5_3-Jan-08 6:34
Ed Hill _5_3-Jan-08 6:34 
GeneralRe: Cannot cast from ControlCollection to ControlCollection Pin
Dave Kreskowiak3-Jan-08 7:16
mveDave Kreskowiak3-Jan-08 7:16 
GeneralRe: Cannot cast from ControlCollection to ControlCollection Pin
Ed Hill _5_3-Jan-08 22:25
Ed Hill _5_3-Jan-08 22:25 
GeneralInvoice Management System Pin
wEb GuRu...3-Jan-08 1:26
wEb GuRu...3-Jan-08 1:26 
GeneralRe: Invoice Management System Pin
Dave Kreskowiak3-Jan-08 5:03
mveDave Kreskowiak3-Jan-08 5:03 
GeneralRe: Invoice Management System Pin
wEb GuRu...3-Jan-08 5:09
wEb GuRu...3-Jan-08 5:09 
GeneralInserting XML Elements using XMlDocument Pin
Benny_Lava3-Jan-08 0:18
Benny_Lava3-Jan-08 0:18 
GeneralRe: Inserting XML Elements using XMlDocument Pin
Dave Kreskowiak3-Jan-08 4:59
mveDave Kreskowiak3-Jan-08 4:59 
GeneralRe: Inserting XML Elements using XMlDocument Pin
Kschuler3-Jan-08 5:48
Kschuler3-Jan-08 5:48 
GeneralRe: Inserting XML Elements using XMlDocument Pin
Volker Weichert3-Jan-08 8:49
Volker Weichert3-Jan-08 8:49 
GeneralDatabase not updating after using insert on submit with linq. Pin
TechnoDev3-Jan-08 0:14
TechnoDev3-Jan-08 0:14 
GeneralRe: Database not updating after using insert on submit with linq. Pin
nishkarsh_k3-Jan-08 0:33
nishkarsh_k3-Jan-08 0:33 
GeneralSaving Webpage Contents into Excel Pin
viji]3-Jan-08 0:11
viji]3-Jan-08 0:11 
GeneralRe: Saving Webpage Contents into Excel Pin
Dave Kreskowiak3-Jan-08 4:44
mveDave Kreskowiak3-Jan-08 4:44 
GeneralTransparent back color property of label Pin
nishkarsh_k2-Jan-08 20:52
nishkarsh_k2-Jan-08 20:52 
GeneralRe: Transparent back color property of label Pin
Dave Kreskowiak3-Jan-08 1:58
mveDave Kreskowiak3-Jan-08 1:58 
Generalsec urity issue Pin
Tauseef A2-Jan-08 20:40
Tauseef A2-Jan-08 20:40 

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.