﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » .NET Forums » General .NET Discussion  » totally annoying IDE stuff in VB.NET</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 10 Jun 2026 22:41:49 GMT</lastBuildDate><ttl>20</ttl><item><title>totally annoying IDE stuff in VB.NET</title><link>http://forum.strataframe.net/FindPost5415.aspx</link><description>I have ignored this until now. I hope for the love of God that I am missing a setting somewhere and this is not the way things are in the .NET world.&lt;br&gt;
&lt;br&gt;
When I cut a button (or other control) that has code in one of its events and add it to another container on the form, the new control has no code, the code is stranded up in an event tied to the old (non-existent button).&lt;br&gt;
&lt;br&gt;
Also, if I rename a control this happens as well, what a pain.&lt;br&gt;
&lt;br&gt;
Here is hoping I am just missing the obvious, in VFP I could cut 40 controls and paste them into a pageframe page (panel page) if I wanted to and everything moved. I tend to focus on "make it work", then go back and make it pretty (and fix control names).&lt;br&gt;
&lt;br&gt;
Thanks.&lt;br&gt;
&lt;br&gt;</description><pubDate>Tue, 19 Dec 2006 15:03:57 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: totally annoying IDE stuff in VB.NET</title><link>http://forum.strataframe.net/FindPost5416.aspx</link><description>[quote]When I cut a button (or other control) that has code in one of its events and add it to another container on the form, the new control has no code, the code is stranded up in an event tied to the old (non-existent button).[/quote]&lt;/P&gt;&lt;P&gt;This is actually correct.&amp;nbsp; It is not like VFP where the code is stored within a control.&amp;nbsp; All .NET events are properly handled versus executing an embedded procedure as in VFP.&amp;nbsp; This is actually better because in VFP if you moved a control to another parent or page, then your references died.&amp;nbsp; As you have learned, this doesn't happen in .NET.&amp;nbsp; The code is just a handler of the objects events.&lt;/P&gt;&lt;P&gt;[quote]Also, if I rename a control this happens as well, what a pain.[/quote]&lt;/P&gt;&lt;P&gt;It sounds like you are doing this the hard way.&amp;nbsp; .NET is AWESOME in this respect!!!&amp;nbsp; Instead of manually renaming a variable or method, right-click the method and select "Rename..."&amp;nbsp; This will rename the variable, method, etc. and all references to the old name.&amp;nbsp; Very nice.</description><pubDate>Tue, 19 Dec 2006 15:03:57 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>