on 06-27-2008 5:11 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jose,
I need a help to create a windows form and add to the Sap B1.
Please help me.
thanks
kv reddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
Jose,
can you help me to add form to the SAP B1.
Thanks
kv reddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
hi,
Dim f As New Form1
f.show()
f.TopMost = True
you try this .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.