This project is read-only.


View/change extended properties of form control at design and runtime


I created a windows form. All the controls print except a FlowLayout control that I programmatically added label controls. I think I need to change MCL Form Print properties (Print on Form = True) on the labels I added the FlowLayout control. How can I access the MCL Form Print properties at design(code window) and runtime. When I'm in debug mode I can't see them. I can only see them when I'm visually designing the form thru the properties window. Here is the code to add the labels to the FlowLayout control:
Dim mylabel As Label
        Dim y As Integer = 30
        Dim trow As Integer = 0
        For Each mystring As String In tests
            mylabel = New Label()
            With mylabel
                .Width = 150
                .Location = New Point(10, y)
                .Text = mystring
            End With
            y += 30
            trow = trow + 1
Thank you
Closed Mar 2, 2010 at 1:51 PM by Merrion
You would need to use the Component.SetPrint(control, value) method


Merrion wrote Feb 23, 2010 at 1:32 PM

To set an extended property at run time you need to call the compontent's SetPropertyname() method - for example to set Print to True for the new label you created above you need to do:

FormprintComponent1.SetPrint(myLabel, True)

wrote Mar 2, 2010 at 1:51 PM

wrote Feb 13, 2013 at 7:44 PM

wrote May 16, 2013 at 12:54 AM