cancel
Showing results for 
Search instead for 
Did you mean: 

Load user form

Former Member
0 Kudos

Hi,

I created a new menu item named "Booking". However, under the MenuEvent procedure, I have no idea how to activate another User Form in another VB.NET project.

Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent

If (pVal.MenuUID = "Booking") And(pVal.BeforeAction = False) Then

SBO_Application.MessageBox("Menu is Clicked")

....

....

....

End If

Please help.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thanks for your reply.

I am still confused.

This sample call-up another form in the same class.

But my question is, I've already defined a user form in another VB.Net project.

How can I call the defined user form from this vids.vb.

Pls adv.

Thanks

Former Member
0 Kudos

Hi,

I'm not 100% sure how to do this, but maybe you could try one of the following options?

1. If you just need the form and are going to use it differently in the other project, then you can export the form to XML in the first project and then import it from XML in the second project.

2. However, I would guess if you want to reuse the form ,you also want to reuse it's functionality? If this is the case, I would suggest just copying the code from one project to another.

3. Finally, is it possible to just run both add-ons at once?

Perhaps someone else has a more direct way of doing it, but off the top of my head these would be the three options I would consider.

Regards,

Niall

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,

Please check this sample it will give u the complete Idea,

The sameple is found in the following path.

C:\Program Files\SAP\SAP Business One SDK\Samples\COM UI DI\VB.NET\UIDIBasicApp\VIDS

Hope it helps u..

Vasu Natari.