Still not worked... this is what a i done, and then the problem started.. I wanted to test dropdowns, so i add a new form.. form1 then i went to the:Private Shared Sub InitApplication(ByVal e As InitializingApplicationEventArgs) '-- Add the main form type '-- If more than one form is added to the collection, they can be chosen by showing a "Gateway" form ' and supplying the index of the form to show (At least 1 form type must be added to the collection e.Forms.Add(GetType(futebol.frmCadClubes)) And Changed the name of this form to the new form then i inserted the dropdown... then i changed in the startup object to the form1, i get the error, deleted the form1 one, changed back the InitApplication and the startup object.. below my Private Shared Sub SetDataSources() but i guess it's fine... so im still lost, is there any other way to help, do u have ny other clue? Thanks, Ricardo ''' <summary> ''' Gets the connection string if the application will use a custom method to aquire the connection ''' string rather than the StrataFrame Connection String Manager (optional) ''' </summary> ''' <remarks></remarks> Private Shared Sub SetDataSources() ' ToDo: 1) Set the connection information below including the connection application settings and the
' required settings information and then call the ConnectionManager's SetConnections() method. ' ' OR ' ' 2) Manually set the DataSourceItems on the DataSources collection below. ' -- You can set as many data sources as necessary. The business objects use the data source specified ' by their DataSourceKey property (defaults to ""). '------------------------------------ ' Using the Connection Manager '------------------------------------ '-- Set the information specific to this application and the data sources ' The application key: ConnectionManager.ApplicationKey = "Cadastro de Clubes" ConnectionManager.ApplicationDefaultTitle = "ConexÆo do Cadastro de Clubes" ConnectionManager.ApplicationDefaultDescription = "Esta conexÆo de aplicativo ‚ utilizada pela aplica‡Æo Cadastro de Clubes" '-- Set the required data source information so that the ConnectionManager can gather it ' SQL Connection ConnectionManager.AddRequiredDataSourceItem("", "SQL Connection", _ DataSourceTypeOptions.SqlServer, "futebol", "Esta conexÆo de aplicativo ‚ utilizada pela aplica‡Æo Cadastro de Clubes") ' Oracle Connection 'ConnectionManager.AddRequiredDataSourceItem("", "Oracle Connection", _ ' DataSourceTypeOptions.Oracle, "", "This connection is used by WindowsApplication1.") ' Access Connection 'ConnectionManager.AddRequiredDataSourceItem("", "Access Connection", _ ' DataSourceTypeOptions.MicrosoftAccess, "", "This connection is used by WindowsApplication1.") ' FoxPro Connection 'ConnectionManager.AddRequiredDataSourceItem("", "Visual Fox Pro Connection", _ ' DataSourceTypeOptions.VisualFoxPro, "", "This connection is used by WindowsApplication1.") '-- Make the call to SetConnections which will gather the connection information, show the connection wizard ' if needed and set the DataSources collection on the DataLayer class. ConnectionManager.SetConnections() '------------------------------------ ' Setting the data sources manually '------------------------------------ '-- SQL Server 'DataLayer.DataSources.Add(New SqlDataSourceItem("", "myconnectionstring")) '-- Oracle 'DataLayer.DataSources.Add(New OracleDataSourceItem("", "myconnectionstring")) '-- Microsoft Access 'DataLayer.DataSources.Add(New AccessDataSourceItem("", "myconnectionstring")) '-- Visual Fox Pro 'DataLayer.DataSources.Add(New VfpDataSourceItem("", "myconnectionstring")) End Sub |