<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : VS2008 UserControl</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : VS2008 UserControl</description>
  <pubDate>Wed, 13 May 2026 16:50:15 -700</pubDate>
  <lastBuildDate>Wed, 11 Jun 2008 11:24:08 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=829</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>VS2008 UserControl : Thanks for your response. This...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=829&amp;PID=3063#3063</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=300" rel="nofollow">pucsoftware</a><br /><strong>Subject:</strong> 829<br /><strong>Posted:</strong> 11-Jun-2008 at 11:24am<br /><br />Thanks for your response. This worked.<DIV>&nbsp;</DIV><DIV>Darren</DIV>]]>
   </description>
   <pubDate>Wed, 11 Jun 2008 11:24:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=829&amp;PID=3063#3063</guid>
  </item> 
  <item>
   <title>VS2008 UserControl : Darren,   I have helped many...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=829&amp;PID=3037#3037</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 829<br /><strong>Posted:</strong> 06-Jun-2008 at 8:22am<br /><br />Darren, <DIV>&nbsp;</DIV><DIV>I have helped many customers with this problem.&nbsp; For example, this is a typical response:</DIV><DIV><BR>&nbsp;</DIV><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT><DIV><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">We have resolved your problem.<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><O:P></O:P></SPAN></FONT></DIV><DIV><P ="Ms&#111;normal"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><O:P></O:P></SPAN></FONT></P><P ="Ms&#111;normal"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">You will need to change the load handler for your User Control.</P><DIV><DIV><DIV><P ="Ms&#111;normal"><O:P></O:P></SPAN></FONT></P><P ="Ms&#111;normal"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><O:P></O:P></SPAN></FONT></P><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Change this code:<O:P></O:P></SPAN></FONT></DIV></DIV></DIV><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><O:P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><O:P><FONT face="Times New Roman" color=#000000 size=3>&nbsp;</FONT></O:P></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><FONT size=3><FONT color=#000000>#</FONT><SPAN style="COLOR: blue">Region</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #a31515">"UserControl Events"<O:P></O:P></SPAN></FONT></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><FONT size=3><SPAN style="mso-spacerun: yes"><FONT color=#000000>&nbsp;&nbsp;&nbsp; </FONT></SPAN><SPAN style="COLOR: blue">Private</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: blue">Sub</SPAN><FONT color=#000000> UserControl_Load(</FONT><SPAN style="COLOR: blue">ByVal</SPAN><FONT color=#000000> sender </FONT><SPAN style="COLOR: blue">As</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: blue">Object</SPAN><FONT color=#000000>, </FONT><SPAN style="COLOR: blue">ByVal</SPAN><FONT color=#000000> e </FONT><SPAN style="COLOR: blue">As</SPAN><FONT color=#000000> System.EventArgs) </FONT><SPAN style="COLOR: blue">Handles</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: blue">Me</SPAN><FONT color=#000000>.Load<O:P></O:P></FONT></FONT></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><FONT size=3><FONT color=#000000><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>mPersMgr = PersistenceManager.DefaultManager<O:P></O:P></FONT></FONT></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><FONT size=3><SPAN style="FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT color=#000000>&nbsp;&nbsp;&nbsp; </FONT></SPAN><SPAN style="COLOR: blue">End</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: blue">Sub</SPAN></SPAN><O:P></O:P></FONT></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><O:P><FONT face="Times New Roman" color=#000000 size=3>&nbsp;</FONT></O:P></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><FONT size=3><FONT color=#000000><FONT face="Times New Roman">To this code:<O:P></O:P></FONT></FONT></FONT></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><O:P><FONT face="Times New Roman" color=#000000 size=3>&nbsp;</FONT></O:P></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><FONT size=3><FONT color=#000000>#</FONT><SPAN style="COLOR: blue">Region</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: #a31515">"UserControl Events"<O:P></O:P></SPAN></FONT></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><FONT size=3><SPAN style="mso-spacerun: yes"><FONT color=#000000>&nbsp;&nbsp;&nbsp; </FONT></SPAN><SPAN style="COLOR: blue">Private</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: blue">Sub</SPAN><FONT color=#000000> UserControl_Load(</FONT><SPAN style="COLOR: blue">ByVal</SPAN><FONT color=#000000> sender </FONT><SPAN style="COLOR: blue">As</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: blue">Object</SPAN><FONT color=#000000>, </FONT><SPAN style="COLOR: blue">ByVal</SPAN><FONT color=#000000> e </FONT><SPAN style="COLOR: blue">As</SPAN><FONT color=#000000> System.EventArgs) </FONT><SPAN style="COLOR: blue">Handles</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: blue">Me</SPAN><FONT color=#000000>.Load<O:P></O:P></FONT></FONT></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><FONT size=3><SPAN style="mso-spacerun: yes"><FONT color=#000000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT></SPAN><SPAN style="COLOR: blue">If</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: blue">Not</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: blue">Me</SPAN><FONT color=#000000>.DesignMode </FONT><SPAN style="COLOR: blue">Then<O:P></O:P></SPAN></FONT></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><FONT size=3><FONT color=#000000><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>mPersMgr = PersistenceManager.DefaultManager<O:P></O:P></FONT></FONT></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><FONT size=3><SPAN style="mso-spacerun: yes"><FONT color=#000000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT></SPAN><SPAN style="COLOR: blue">End</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: blue">If<O:P></O:P></SPAN></FONT></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><FONT size=3><SPAN style="mso-spacerun: yes"><FONT color=#000000>&nbsp;&nbsp;&nbsp; </FONT></SPAN><SPAN style="COLOR: blue">End</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: blue">Sub</SPAN></FONT></SPAN><O:P></O:P></P><P ="Ms&#111;normal"><FONT size=2></P></FONT></O:P></SPAN></FONT><P ="Ms&#111;normal"><P ="Ms&#111;normal"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><O:P></O:P></SPAN></FONT></P><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">The reason for this code change is that the Visual Studio Designer will blow up if it executes any PersistenceManager code.&nbsp; Apparently, the Load event occurs in the Designer.&nbsp; By checking whether your code is executing in the Designer (by testing whether DesignMode is true), you stop the assignment of your private PersistenceManager.<O:P></O:P></SPAN></FONT><P></P><P ="Ms&#111;normal"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><O:P>&nbsp;</O:P></SPAN></FONT></P></DIV><span style="font-size:10px"><br /><br />Edited by davidklitzke - 06-Jun-2008 at 8:23am</span>]]>
   </description>
   <pubDate>Fri, 06 Jun 2008 08:22:38 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=829&amp;PID=3037#3037</guid>
  </item> 
  <item>
   <title>VS2008 UserControl : After messing with this some,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=829&amp;PID=3036#3036</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=300" rel="nofollow">pucsoftware</a><br /><strong>Subject:</strong> 829<br /><strong>Posted:</strong> 06-Jun-2008 at 8:00am<br /><br />After messing with this some, I figure that this issue has something to do with deployment of the necessary files. Even though I have all these projects in one solution, and the second project with the user control works correctly, the third project with the windows form is missing something. I made sure that the windows form project had references to all the same devexpress and devforce assemblies that the project with the user control has. This helped but didn't fix the problem. I'm getting a similar message but with different errors. Here is another picture of what I'm getting. <DIV>&nbsp;</DIV><DIV>Darren<img src="http://www.ideablade.com/forum/uploads/20080606_110005_DevExpressError.png" height="527" width="497" border="0" /></DIV>]]>
   </description>
   <pubDate>Fri, 06 Jun 2008 08:00:16 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=829&amp;PID=3036#3036</guid>
  </item> 
  <item>
   <title>VS2008 UserControl : I have created three projects....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=829&amp;PID=3035#3035</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=300" rel="nofollow">pucsoftware</a><br /><strong>Subject:</strong> 829<br /><strong>Posted:</strong> 06-Jun-2008 at 7:21am<br /><br />I have created three projects. One is the DevExpress objects for my data, the second is a user control that uses the first project where I have created a Windows user control to access the data. The third project is a test form that references the first two projects. When I place the user control from the second project on the form I get an error message that a valid configuration file can not be found. This was working but as I continued to build the user control I started getting this error and the user control can't be displayed on my Windows form. I'm including a picture of the error I am getting. Can you tell me what is wrong?<DIV>&nbsp;</DIV><DIV>Darren<img src="http://www.ideablade.com/forum/uploads/20080606_102048_DevExpressError.png" height="482" width="436" border="0" /></DIV>]]>
   </description>
   <pubDate>Fri, 06 Jun 2008 07:21:11 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=829&amp;PID=3035#3035</guid>
  </item> 
 </channel>
</rss>