Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FEC not visible on VB.NET Form

Status
Not open for further replies.

jmainland

Programmer
Jun 6, 2007
15
0
0
CA
Hello,
I've added a Field Edit Control to a VB.NET Form. When I run the app the FEC doesn't appear visible on the form. I've set the DataSourceName on the FEC and run the following code;

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load

Dim Session = New AccpacCOMAPI.AccpacSession
Dim Signon = New AccpacSignonManager.AccpacSignonMgr
Dim SessionID As Object

Try
Session.Init("", "CS", "CS0001", "53A")
SessionID = Signon.Signon(Session)
If Session.IsOpened Then
dsItem.Session = Session
dsItem.Active = True
Else
MsgBox("Failed To Open Accpac Session")
End If
Catch ex As Exception
Dim strErr As String
MsgBox(ex.Message)
End Try

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top