Author Topic: Determining the project name from the CRepository  (Read 2441 times)

mark.tootell

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Determining the project name from the CRepository
« on: January 31, 2014, 11:30:21 pm »
Hi

The add-in that I am creating has a number of windows forms that are displayed during its configuration and execution. I want to ensure that the dialogs are centered on the EA parent window and know that I can obtain the window handle using FindWindow(). However, I need to know what is displayed in the titlebar. In order to format the title correctly I need to determine what the .eap is called then I can get the handle within the NewFile or OpenFile event handlers.

Can anyone help as I cannot see how to do it?  :-?

Thanks

Mark

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Determining the project name from the CReposit
« Reply #1 on: January 31, 2014, 11:32:43 pm »
Maybe Repository.ConnectionString can help?

q.

mark.tootell

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Determining the project name from the CReposit
« Reply #2 on: January 31, 2014, 11:35:19 pm »
D'oh.  ;D

I knew there had to be something, just couldn't see it!!!!!  :-[

Thanks