Intellisense Not Showing Properties and Methods

Posted by: mcmahling on 8 September 2017, 12:38 pm EST

  • Posted 8 September 2017, 12:38 pm EST

    I am testing the FPSpread for Win Forms. I wrote a simple program to create a fpSpread at runtime. The program runs but my problem is that the properties and methods are not showing in intellisense. Can anyone suggest the reason why? When I drag a control to the form intellisense does recognize the instance as belonging to the FarPoint namespaces. My code is below.











    Imports FarPoint.Win.Spread

    Imports FarPoint.Win.Spread.SheetView



    Sub CreateRosterSpread(ByVal dataset1 As DataSet)



    Dim rosterSpread = New FarPoint.Win.Spread.FpSpread

    Dim rosterSheetCover = New FarPoint.Win.Spread.SheetView

    Dim rosterSheetActiveVols = New FarPoint.Win.Spread.SheetView

    Dim rosterSheetDepartedVols = New FarPoint.Win.Spread.SheetView

    Dim rosterSheetProjectCodes = New FarPoint.Win.Spread.SheetView

    Dim rosterSheetInfo = New FarPoint.Win.Spread.SheetView



    rosterSpread.Dock = DockStyle.Fill

    rosterSpread.Name = "Roster"

    rosterSpread.RetainSelectionBlock = False

    rosterSpread.Sheets.AddRange(New FarPoint.Win.Spread.SheetView() {rosterSheetCover})

    rosterSpread.Sheets.AddRange(New FarPoint.Win.Spread.SheetView() {rosterSheetActiveVols})

    rosterSpread.Sheets.AddRange(New FarPoint.Win.Spread.SheetView() {rosterSheetDepartedVols})

    rosterSpread.Sheets.AddRange(New FarPoint.Win.Spread.SheetView() {rosterSheetProjectCodes})

    rosterSpread.Sheets.AddRange(New FarPoint.Win.Spread.SheetView() {rosterSheetInfo})



    rosterSheetCover.SheetName = "Cover"

    rosterSheetActiveVols.SheetName = "Active Vols"

    rosterSheetDepartedVols.SheetName = "Departed Vols"

    rosterSheetProjectCodes.SheetName = "Proj Codes"

    rosterSheetInfo.SheetName = "Info"





    'This code adds the spreadsheet to the form controls collection and allows it to be seen

    Me.Controls.Add(rosterSpread)



    End Sub

  • Replied 8 September 2017, 12:38 pm EST

    What version are you using?  I tried this code and it worked and intellisense brought up the appropriate properties...

    Imports FarPoint.Win.Spread.FpSpread
    Imports FarPoint.Win.Spread.SheetView
    Imports FarPoint.Win.Spread
    Imports System.Windows.Forms.Control
    Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim fpSpread1 As New FarPoint.Win.Spread.FpSpread()
    Dim shv As New FarPoint.Win.Spread.SheetView()
    fpSpread1.Location = New Point(10, 10)
    fpSpread1.Height = 200
    fpSpread1.Width = 400
    Controls.Add(fpSpread1)
    fpSpread1.Sheets.Add(shv)


    End Sub
    End Class
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels