Form to always appear in the front of the worksheet (using VSTO)
Posted on 2004-09-20
Hi Experts, I am writing a VSTO (Excel) application using VB.NET. I have an Excel worksheet as the main interface. When I double-click on the cells, I want to call up my Windows Form - frmMain. I have able to call up the form but the form always goes behind the worksheet despite of me typing frmMain.BringToFront().
In VB6, the instruction frmMain.Show vbModeless, Me will do the job. However in VB.NET, the show method accepts no argument. Please advice me on how to make this frmMain always appear in front of the Excel worksheet.