Running multiple applications(Microsoft Teams(Teams.exe), custom Windows App (.exe)) side by side

%3CLINGO-SUB%20id%3D%22lingo-sub-2014147%22%20slang%3D%22en-US%22%3ERunning%20multiple%20applications(Microsoft%20Teams(Teams.exe)%2C%20custom%20Windows%20App%20(.exe))%20side%20by%20side%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2014147%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20Integrate%20the%20teams%20in%20our%20windows%20application%20that%20appears%20side%20by%20side%20on%20the%20window%20screen.%3C%2FP%3E%3CP%3EAs%20of%20now%20we%20have%20split%20the%20window%20with%20browser%20to%20control%20Microsoft%20web%20teams%20where%20the%20user%20has%20to%20login%20every%20time%20whenever%20the%20application%20opens.%20so%20user%20does%20not%20want%20Web%20Teams%20as%20it%20have%20the%20drawback%20.%3C%2FP%3E%3CP%3ESo%20can%20you%20please%20let%20us%20know%20the%20way%20of%20integrating%20the%20Microsoft%20teams%20executable%20file%20into%20windows%20form%20(c%23%20%2CVB%2Cetc.)%20Below%20is%20the%20reference%20view%20that%20should%20appear%20on%20the%20window%20screen%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Capture.PNG%22%20style%3D%22width%3A%20634px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F242697iC458C821A36BEA24%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Capture.PNG%22%20alt%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2014147%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3E.NET%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Evb%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ewindows%20forms%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2017570%22%20slang%3D%22en-US%22%3ERe%3A%20Running%20multiple%20applications(Microsoft%20Teams(Teams.exe)%2C%20custom%20Windows%20App%20(.exe))%20side%20by%20sid%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2017570%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F910947%22%20target%3D%22_blank%22%3E%40Anitheswari%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20order%20to%20have%20multiple%20sessions%20of%20Teams%20you%20will%20have%20to%20use%20the%20web%20version%20of%20Teams%20(which%20you%20mentioned).%20You%20can%20avoid%20the%20need%20to%20log-in%20every%20time%20by%20selecting%20%22Yes%22%20for%20the%20%22Stay%20Signed-in%20Prompt%22%20after%20sign-in%20on%20your%20web%20browser.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3CBR%20%2F%3EAdil%20Yoosuf%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2017633%22%20slang%3D%22en-US%22%3ERe%3A%20Running%20multiple%20applications(Microsoft%20Teams(Teams.exe)%2C%20custom%20Windows%20App%20(.exe))%20side%20by%20sid%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2017633%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F731665%22%20target%3D%22_blank%22%3E%40adilyoosuf%3C%2FA%3E%26nbsp%3B%20I%20want%20to%20open%20Microsoft%20Team%20application%20(Teams.exe)%20in%20windows%20form%20and%20not%20web%20version%20of%20Microsoft%20Team.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20to%20open%20Teams.exe%20in%20windows%20form%20in%20VB%20.net%20but%20it's%20opening%20separately%20as%20a%20executable%20file%20in%20Windows%20OS.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECode%20snippet%20is%20as%20below%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%20%20%20%20%20%20%20%20Dim%20p%20As%20New%20System.Diagnostics.Process%0A%20%20%20%20%20%20%20%20p.StartInfo.FileName%20%3D%20%22C%3A%5CUsers%5Cxyz%5CAppData%5CLocal%5CMicrosoft%5CTeams%5CUpdate.exe%22%0A%20%20%20%20%20%20%20%20p.StartInfo.Arguments%20%3D%20%22--processStart%20%22%22Teams.exe%22%22%22%0A%20%20%20%20%20%20%20%20p.Start()%0A%20%20%20%20%20%20%20%20p.WaitForInputIdle()%0A%0A%20%20%20%20%20%20%20%20SetParent(p.MainWindowHandle%2C%20Panel2.Handle)%0A%20%20%20%20%20%20%20%20SendMessage(p.MainWindowHandle%2C%20WM_SYSCOMMAND%2C%20SC_MAXIMIZE%2C%200)%0A%20%20%20%20%20%20%20%20Me.BringToFront()%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2021970%22%20slang%3D%22en-US%22%3ERe%3A%20Running%20multiple%20applications(Microsoft%20Teams(Teams.exe)%2C%20custom%20Windows%20App%20(.exe))%20side%20by%20sid%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2021970%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F910947%22%20target%3D%22_blank%22%3E%40Anitheswari%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUnderstand%20your%20requirement.%20It%20would%20help%20if%20you%20can%20share%20your%20objective%20to%20open%20multiple%20instances%20of%20the%20Teams%20desktop%20application.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EAdil%20Yoosuf%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I am trying to Integrate the teams in our windows application that appears side by side on the window screen.

As of now we have split the window with browser to control Microsoft web teams where the user has to login every time whenever the application opens. so user does not want Web Teams as it have the drawback .

So can you please let us know the way of integrating the Microsoft teams executable file into windows form (c# ,VB,etc.) Below is the reference view that should appear on the window screen


Capture.PNG

 

5 Replies

Hi @Anitheswari 

 

In order to have multiple sessions of Teams you will have to use the web version of Teams (which you mentioned). You can avoid the need to log-in every time by selecting "Yes" for the "Stay Signed-in Prompt" after sign-in on your web browser.

 

Regards,
Adil Yoosuf

@adilyoosuf  I want to open Microsoft Team application (Teams.exe) in windows form and not web version of Microsoft Team.

 

I tried to open Teams.exe in windows form in VB .net but it's opening separately as a executable file in Windows OS. 

 

Code snippet is as below:

 

        Dim p As New System.Diagnostics.Process
        p.StartInfo.FileName = "C:\Users\xyz\AppData\Local\Microsoft\Teams\Update.exe"
        p.StartInfo.Arguments = "--processStart ""Teams.exe"""
        p.Start()
        p.WaitForInputIdle()

        SetParent(p.MainWindowHandle, Panel2.Handle)
        SendMessage(p.MainWindowHandle, WM_SYSCOMMAND, SC_MAXIMIZE, 0)
        Me.BringToFront()

 

Hi @Anitheswari 

 

Understand your requirement. It would help if you can share your objective to open multiple instances of the Teams desktop application.

 

Regards,

Adil Yoosuf

@adilyoosuf 

 

Our requirement is to integrate Microsoft Teams into our Windows Application. This application will have windows form which will have 2 panels. One panel to bind Microsoft Teams(.exe) that runs with in the panel and other panel to bind other application(.exe).
 
Regards,
Anitha.
I don't think you can get Teams Desktop running inside your application. Playing with web version might be possible (apps like Franz does this).
Perhaps you could take a look at the requirements and think the goals there and how to meet them. It might be easier to create the app that runs inside Teams instead.