Context_1 : Danish India was the name given to the colonies of Denmark (Denmark–Norway before 1813) in India, forming part of the Danish colonial empire. Denmark–Norway held colonial possessions in India for more than 200 years, including the town of Tharangambadi in present-day Tamil Nadu state, Serampore in present-day West Bengal, and the Nicobar Islands, currently part of India's union territory of the Andaman and Nicobar Islands. The Danish presence in India was of little significance to the major European powers as they presented neither a military nor a mercantile threat. Dano-Norwegian ventures in India, as elsewhere, were typically undercapitalised and never able to dominate or monopolise trade routes in the same way that the companies of Portugal, the Netherlands and Britain could. Against all odds however they managed to cling to their colonial holdings, and at times, to carve out a valuable niche in international trade by taking advantage of wars between larger countries and offering foreign trade under a neutral flag. For this reason their presence was tolerated until 1845, when their alliance with a defeated France led to the colony being ceded to the British East Indian company. Context_2 : Lose Control is the debut album by Silk. The album went to number-one on the R&B Albums chart. Included the hit single "Freak Me" which peaked at number one on the "Billboard" Hot 100 chart and was later covered in 1998 by British band Another Level. "Lose Control" was certified platinum by the RIAA in 1993. Context_3 : Serampore (also called Serampur, Srirampur, Srirampore, Shreerampur, Shreerampore, Shrirampur, Shrirampore, Srerampore) is a famous and historical city in the Indian state of West Bengal. It is the headquarter of the Srirampore subdivision. It is a part of the area covered by Kolkata Metropolitan Development Authority. It is a pre-colonial town (city) on the west bank of the Hooghly River. It was part of Danish India under the name Frederiknagore from 1755 to 1845. Context_4 : "Shinshoku (Lose Control)" (浸食 〜lose control〜 , Erosion) is the thirteenth single by L'Arc-en-Ciel. It was released simultaneously with "Honey" and "Kasou" on July 8, 1998. The single reached number 2 on the Oricon chart. It was re-released on August 30, 2006. Context_5 : Lose Control is the solo debut extended play by Chinese singer and actor Lay (Zhang Yixing), a member of the South Korean boy group EXO. It was released on October 28, 2016 in South Korea and China by S.M. Entertainment and distributed by KT Music. The EP features six tracks in total, including the two singles "what U need?" and "Lose Control". Context_6 : "Lose Control" is a song recorded by Canadian pop rock band Hedley for their sixth studio album "Hello" (2015). It was written by lead singer Jacob Hoggard with Jarrett Holmes, Brian Howes, and Jason "JVP" Van Poederooyen, and was produced by all but Holmes. "Lose Control" was released March 4, 2016 through Universal Music Canada as the album's third official single. Context_7 : Joram Metekohy, (born January 7, 1983) better known by his stage name Wildstylez, is a Dutch hardstyle DJ and record producer. Having previously released hardstyle records under the alias 'Seizure', Joram Metekohy had his first solo release as Wildstylez in 2007 on the Scantraxx sub-label Scantraxx Reloaded. In 2010 he started the record label 'Digital:Age' in collaboration with Noisecontrollers. After he stopped releasing on 'Digital:Age', and its subsequent collapse, Wildstylez had a string of releases on Q-Dance Records and also released many tracks for free via social media. In 2013, Wildstylez founded his own Hardstyle label, 'Lose Control Music', under the parent label 'Be Yourself Music'. As of 2014, he and Max Enforcer now release their own music through 'Lose Control Music'. Context_8 : Gold Mother is the third studio album from English band James, originally released June 1990. The album was recorded for Rough Trade Records, but James asked to be released from their contract with them and moved to Fontana. After the success of the Flood mix of "Come Home" and the non-album singles "Lose Control" and "Sit Down", the album was re-released almost a year later to include these tracks, replacing other tracks on the album. In 2001, it was re-released again, this time with all of the original tracks in addition to "Lose Control" and "Sit Down". Context_9 : "Lose Control (Let Me Down)" is a song performed by American recording artist Keri Hilson featuring Nelly, taken from her second studio album, "No Boys Allowed" (2010). The song was produced by Norwegian duo StarGate, who wrote the song with Nelly and Ester Dean. "Lose Control" was sent to rhythmic contemporary radio in the United States on May 10, 2011, as the album's fourth single. Context_10 : "Lose Control" is a single recorded by Chinese singer Lay for his debut extended play "Lose Control". The song was released on October 28, 2016 by S.M. Entertainment. fact_1 :  It was part of Danish India under the name Frederiknagore from 1755 to 1845. fact_2 :  For this reason their presence was tolerated until 1845, when their alliance with a defeated France led to the colony being ceded to the British East Indian company. Question: When did Denmark lose control of Frederiknagore?
Output: until 1845, when their alliance with a defeated France led to the colony being ceded to the British East Indian company.