<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Slide Range Limits Do Not Transfer from Code to Designer in Measurement Studio for .NET Languages</title>
    <link>https://ni.lithium.com/t5/Measurement-Studio-for-NET/Slide-Range-Limits-Do-Not-Transfer-from-Code-to-Designer/m-p/247241#M2012</link>
    <description>&lt;P&gt;Changing "Copy Local" to false fixed everything.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeff S1949&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 27 Jul 2005 20:06:28 GMT</pubDate>
    <dc:creator>Jeff S1949</dc:creator>
    <dc:date>2005-07-27T20:06:28Z</dc:date>
    <item>
      <title>Slide Range Limits Do Not Transfer from Code to Designer</title>
      <link>https://ni.lithium.com/t5/Measurement-Studio-for-NET/Slide-Range-Limits-Do-Not-Transfer-from-Code-to-Designer/m-p/247219#M2007</link>
      <description>I am developing a GUI application using Visual Studio .NET and C# that
uses a slide control.&amp;nbsp; If I modify the Range, SlideStyle or
ScalePosition in the designer the code generated looks good and
compiles and runs correctly,&amp;nbsp; However, if I close Visual Studio
and re-open it and open the designer, the control no longer looks the
same.&amp;nbsp; In the tasks list there are several instances of the
message "Object type cannot be converted to target type."&amp;nbsp; I have
tried setting the same values that the control defaults to but I get
the same message.&amp;nbsp; Now, if I make any modifications to the GUI
using the designer, I have to set all of the control parameters back to
the correct values before I save the code.&amp;nbsp; Is there a fix or
workaround for this?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Jeff S1949&lt;BR /&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Jul 2005 19:25:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Measurement-Studio-for-NET/Slide-Range-Limits-Do-Not-Transfer-from-Code-to-Designer/m-p/247219#M2007</guid>
      <dc:creator>Jeff S1949</dc:creator>
      <dc:date>2005-07-27T19:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Slide Range Limits Do Not Transfer from Code to Designer</title>
      <link>https://ni.lithium.com/t5/Measurement-Studio-for-NET/Slide-Range-Limits-Do-Not-Transfer-from-Code-to-Designer/m-p/247226#M2008</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;
For each of the following assemblies, go to the References node in Solution
Explorer, right-click on the assembly, and click Properties:
&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;NationalInstruments.Common.dll&lt;/LI&gt;
&lt;LI&gt;NationalInstruments.UI.dll&lt;/LI&gt;
&lt;LI&gt;NationalInstruments.UI.WindowsForms.dll&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;
Is the Copy Local setting for any of these assemblies true?  If so, that is
probably the cause of the problem.  The Copy Local setting for each of these
assemblies must be false.  If it is set to true, the Windows Forms designer
will load the assemblies multiple times (once from the local copy and another
from the GAC) and will cause type conflicts (such as the "Object type cannot
be converted to the target type" message that you're seeing).  Note that this
issue is a general issue with the Windows Forms designer and has nothing to do
with Measurement Studio assemblies.  For example, try changing the Copy Local
setting for the System.Windows.Forms.dll asembly tro true, close the designer,
and re-open the designer.
&lt;/P&gt;

&lt;P&gt;
If that is not the problem, please look at the properties for the references
that were listed above and post the value that is shown in the Properties
window for the Path and Version properties.  Also, please go to the
C:\Windows\Assembly folder in Windows Explorer and post the versions of the
following assemblies that are in your global assembly cache:
&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;NationalInstruments.Design.dll&lt;/LI&gt;
&lt;LI&gt;NationalInstruments.Common.dll&lt;/LI&gt;
&lt;LI&gt;NationalInstruments.UI.dll&lt;/LI&gt;
&lt;LI&gt;NationalInstruments.UI.WindowsForms.dll&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;
- Elton
&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2005 19:43:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Measurement-Studio-for-NET/Slide-Range-Limits-Do-Not-Transfer-from-Code-to-Designer/m-p/247226#M2008</guid>
      <dc:creator>Elton Wells</dc:creator>
      <dc:date>2005-07-27T19:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Slide Range Limits Do Not Transfer from Code to Designer</title>
      <link>https://ni.lithium.com/t5/Measurement-Studio-for-NET/Slide-Range-Limits-Do-Not-Transfer-from-Code-to-Designer/m-p/247241#M2012</link>
      <description>&lt;P&gt;Changing "Copy Local" to false fixed everything.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeff S1949&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Jul 2005 20:06:28 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Measurement-Studio-for-NET/Slide-Range-Limits-Do-Not-Transfer-from-Code-to-Designer/m-p/247241#M2012</guid>
      <dc:creator>Jeff S1949</dc:creator>
      <dc:date>2005-07-27T20:06:28Z</dc:date>
    </item>
  </channel>
</rss>

