Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

InitializeComputer being altered by Form Designer

Status
Not open for further replies.

bstineman

Programmer
Mar 19, 2003
9
US
I've run into an odd issue. I've got a page that inherits from a customer page class and recently, for yet unknown reasons, every time I work with the page in the form designer, the designer inserts lines into the Initialize Component Sub.

Before:
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub

After:
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.ImagePath = &quot;&quot;
Me.PageTitle = &quot;Federal Loan Consolidation Program&quot;
Me.PhoneNumber = &quot;1-866-562-6672&quot;
Me.ProgramName = &quot;Consolidation&quot;
Me.SectionType = &quot;Consolidation&quot;
End Sub


I know the values being inserted are coming from the class my page inherits from. But I've run into a snag in that the ImagePath value isn't inheriting properly and therefore is causing my pages, when built, to not display properly.

Ideally I don't see why these values are being brought in at all since my page should simply inherit from the base class. If anyone knows how to stop the form designer from doing this, I'd really appreciate it.
 
Ug, title should have read &quot;initializeCOMPONENT&quot;. its been a morning. :p
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top