cancel
Showing results for 
Search instead for 
Did you mean: 

Show windows form on SAP

Former Member
0 Kudos

Hi.

I am opening a windows form and have this problem.

When open the form this show on the taskbar. But it doesn't maximize.

I am need that this form maximizes. How can I do this?

Regards,

Jose

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi All,

I can open and connect the new windows form with sap b1 through an new menu in SAP B1 through code. Now my query is how do i make a exe and ard so that i can deploy my program. I tried using the B1DE for VS2005, but it gave me some error. Whhich files do i need to map while making the ard and exe file.

I aslo tried to make a windows based setup but could not run the application. It did not run and gave an error.

Pls help me out how to deploy this application which is a windows based integrated with SAP B1.

Regards,

Murtaza.

Former Member
0 Kudos

Jose,

I need a help to create a windows form and add to the Sap B1.

Please help me.

thanks

kv reddy

Former Member
0 Kudos

Hi ragno liver.

What do you want create a windows form or Sap form?

I need to know what do you want to do?

To understand and can help you.

Regards,

Jose

Edited by: Jose Villarreal on Aug 6, 2008 11:41 PM

Former Member
0 Kudos

Hi Jose,

here is my criteria and plan.

actually i have created windows interface which enables to create Sales order from the flat files and send acknowledgement send to the clients and so on. and i created interface using C sharp and window form.

now i wanted to include this from in SAP B1 as a Add on. so users can go that screen and do their work.

please provide me steps to create this add on in SAP

rl

Former Member
0 Kudos

Hi ragno liver.

1- On the menu bar access projects then properties and on Debug you will find the Command line add the following:

0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056

2- Add References SAPbouiCOM and SAPbobsCOM

3- Add a module call SubMain to your project

4- Go to project properties then to the application and then uncheck Enable Application framework. And select SubMain on the starud object.

5- On the SubMain module add this code:

using System;

using System.Windows.Forms;

class SubMain {

static void Main() {

// Creating an object

MyClase oMyClase = null;

oMyClase = new MyClase();

// Start Message Loop

System.Windows.Forms.Application.Run();

}

}

  • Where MyClase are located the code to create your menu and the call to your form.

Regards,

Jose

Former Member
0 Kudos

Jose,

can you help me to add form to the SAP B1.

Thanks

kv reddy

Former Member
0 Kudos

Hi Ragno.

I insert this code in my event:

Dim t As New System.Threading.Thread(New System.Threading.ThreadStart(AddressOf ThreadStart))

t.SetApartmentState(System.Threading.ApartmentState.STA)

t.Start()

And use this code to open the form:

Private Sub ThreadStart()

Dim f As New MyForm

f.Top = (1)

Application.Run(f)

End Sub

Regards,

Jose

Edited by: Jose Villarreal on Aug 6, 2008 11:27 PM

Former Member
0 Kudos

hi,

Dim f As New Form1

f.show()

f.TopMost = True

you try this .

Former Member
0 Kudos

Hi Rengan .

When I use the topmost show this message:

LoaderLock was Detected

Attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang.

And close the form.

Regards,

Jose

Nussi
Active Contributor
0 Kudos

Hi Jose

YourFormName winForm = new YourFormName ();

winForm.WindowState = System.Windows.Forms.FormWindowState.Maximized;

winForm.Visible = true;

winForm.ShowInTaskbar = true;

winForm.TopMost = true;

winForm.Show();

lg David