Inherited BrowseDialog


Author
Message
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Glad it worked Alex.

Not sure about the docs, I just remembered I went through the same thing and got the code from my application for you.

Alex Bibiano González
Alex Bibiano González
StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)
Group: Forum Members
Posts: 31, Visits: 125
A lot of thanks. It work's.



Is this somwhere documented?



Alex B.
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hi Alex.

Try overriding the IsInheritedBrowseDialog function:

    ''' <summary>
    ''' Overrided so to be able to have a Base Browse Dialog
    ''' </summary>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Protected Overrides Function IsInheritedBrowseDialog() As Boolean
        '-- Establish locals
        Dim llReturn As Boolean = False

        '-- Determine if this is an inherited form
        If Me.GetType().IsSubclassOf(GetType(_BaseBrowseDialog)) Then
            '-- This is an inherited class
            llReturn = True
        End If

        '-- Return the value
        Return llReturn
    End Function


Alex Bibiano González
Alex Bibiano González
StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)
Group: Forum Members
Posts: 31, Visits: 125
Hi all,



I have done a base BrowseDialog for my application inherited from MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialog. I have created the partial class MyBrowseDialog.cs and the MyBrowseDialog.Designer.cs file in order to use the Visual Studio designer to set properties on my BrowserDialog (I have copied the structure from the StrataFlix Sample). This works fine and I can set all properties using the property tab from Visual Studio.



No I have inherited from MyBrowseDialog (same as above creating the TestBrowseDialog.cs and TestBrowseDialog.Designer.cs file inherited from MyBrowseDialog), but my problem is now that I cannot set some properties using the Visual Studio property tab. For example, when I put the BusinessObjectType property, it's not in "Bold" in the property window, and no code is generated in the Designer.cs file. For other properties like ReturnSelectedRecordOnly it works well.



What I'm doing wrong?



Thanks,

Alex B.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search