Core Coding Experience in Visual Basic and Visual C# in the Visual Studio 2010 and .NET Framework 4.0 CTP Forum© 2009 Microsoft Corporation. All rights reserved.Wed, 21 Oct 2009 07:09:36 Z3faa1a5e-c290-4e77-849a-969be7ccf1d5http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/8b98d6d6-e7d1-402e-ae62-c1f8e1025a80http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/8b98d6d6-e7d1-402e-ae62-c1f8e1025a80lpszDanhttp://social.msdn.microsoft.com/Profile/en-US/?user=lpszDanGood DLR SampleI want to try running a DLR script within a C# app/web site. I need a good full sample, not just a basic one.<br/>Specifically I am interested to know if the DLR script can get access to any of the objects in my C# or should each one of them be passed to the script &quot;manually&quot;.<br/>Thanks.<br/>DanTue, 20 Oct 2009 07:08:40 Z2009-10-21T07:09:36Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/d731fae1-c5e4-40e2-852b-0788b0cc2ca3http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/d731fae1-c5e4-40e2-852b-0788b0cc2ca3lpszDanhttp://social.msdn.microsoft.com/Profile/en-US/?user=lpszDandebugging DLR<p>DLR looks like a way to implement macroses in applications. But how would those macroses be debugged?<br/>Is there a debugging API for dynamic languages?</p>Tue, 20 Oct 2009 07:05:01 Z2009-10-21T07:09:05Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/07adff8a-a2ff-412d-9dd1-b87a74243ab3http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/07adff8a-a2ff-412d-9dd1-b87a74243ab3Alicia Caleshttp://social.msdn.microsoft.com/Profile/en-US/?user=Alicia%20CalesFORUM LOCKED: Please use the Visual Studio 2010 & .NET Framework 4 Beta 1 Forums<p class=MsoNormal style="margin:0in 0in 0pt 0.25in"><span style="font-size:small;font-family:Calibri">Thank you for visiting Visual Studio 2010 .Net 4 CTP forums.   Since the Beta1 is now available we <span style="color:#1f497d">are </span>closing down the CTP forums and encourage you to visit the new</span><span style="font-size:8pt;color:black;font-family:'Verdana','sans-serif'"> </span><strong><a href="http://social.msdn.microsoft.com/Forums/en-US/category/VSPreRelease,netdevelopmentprerelease,visualstudioprerelease,vstsprerelease"><span style="font-size:small;font-family:Calibri">Visual Studio 2010 &amp; .NET Framework 4 Beta 1</span></a><span style="font-size:small;font-family:Calibri"> </span></strong><span style="font-size:small;font-family:Calibri">forums. </span></p> <p class=MsoNormal style="margin:0in 0in 0pt 0.25in"><span style="font-size:small;font-family:Calibri"><br/>Thanks, </span></p> <p class=MsoNormal style="margin:0in 0in 0pt 0.25in"><span style="font-size:small;font-family:Calibri">Charles Sterling</span></p> <p class=MsoNormal style="margin:0in 0in 0pt 0.25in"><span style="font-size:small;font-family:Calibri">Program Manager Visual Studio </span></p> <p style="margin:0in 0in 0pt"><span style="color:windowtext"></span></p><hr class="sig">Program Manager, Server and Tools Online Operations TeamWed, 20 May 2009 18:48:30 Z2009-05-20T18:49:07Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/cabe62d0-0119-4778-9695-780516f6cb05http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/cabe62d0-0119-4778-9695-780516f6cb05kominbhaihttp://social.msdn.microsoft.com/Profile/en-US/?user=kominbhaiIs Microsoft.VisualBasic namespace going to exist in C#-VS2010?Hi,<br>I'm developing an application in C# using Microsoft.VisualBasic namespace.<br>I heard it might be discontinued in later versions of VS, from VS2010 onwards.<br><br>Is this true? If so, what would be the replacement?<br>How is the current .NET library to be changed like?<br><br>Thanks<br>Fri, 20 Mar 2009 18:54:29 Z2009-05-20T12:15:21Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/1eb74a01-0d50-4a58-b9b3-cdfae5807ef8http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/1eb74a01-0d50-4a58-b9b3-cdfae5807ef8Dustin.Campbellhttp://social.msdn.microsoft.com/Profile/en-US/?user=Dustin.CampbellQuick Search for Files and SymbolsHello all!<br><br>One of the coolest feature in the upcoming release of Visual Studio is Quick Search for Files and Symbpls. This feature gives you a streamlined way to search and navigate to files, types and members in a solution. Quick Search is a very exciting feature because it adds an extremely powerful tool (and fast!) tool to help you get around your code base.<br><br>We are very interested in getting your feedback on the Quick Search tool. Is the workflow effective? Is it fast enough? These are questions we're excited to your feedback on.<br><br>For more information on the CTP itself, check out <a href="http://go.microsoft.com/fwlink/?LinkId=129231">http://go.microsoft.com/fwlink/?LinkId=129231</a>.<br><br>Thanks!<br>Dustin Campbell<br>VB IDE Program ManagerTue, 28 Oct 2008 01:10:19 Z2009-05-20T03:06:28Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/cdb42eba-ca0b-47fd-9203-9ce5f2c4ce7ahttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/cdb42eba-ca0b-47fd-9203-9ce5f2c4ce7aOren Novotnyhttp://social.msdn.microsoft.com/Profile/en-US/?user=Oren%20NovotnyInefficiency in Enumerable.Count with covarianceI didn't see a forum for .NET 4.0 BCL, so here goes.<br/><br/>Now that IEnumerable is covariant, some of the methods in Linq to Objects run slower than expected.  For example. Count().  Count checks to see if the input implements ICollection&lt;TSource&gt; and if so, shortcuts and returns .Count.  With a covariant IEnumerable though, it won't.  The easy workaround is for Enumerable.Count() to also check for the non-generic ICollection and if so return Count there.  As Count (and other similar methods, aren't type-specific, then it works.<br/><br/>I've bugged it here:<br/><a href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=454130">https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=454130</a><br/><br/>Thoughts?Tue, 19 May 2009 21:56:05 Z2009-05-19T22:12:54Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/1c3560ee-ca67-40c0-9d94-fa4c547a23d3http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/1c3560ee-ca67-40c0-9d94-fa4c547a23d3DMegliohttp://social.msdn.microsoft.com/Profile/en-US/?user=DMeglioAre the feature sets locked?I'm just curious, is the feature set for C# 4.0 locked? There is one thing that I feel is a glaring omission, and really hurts C#. The fact that generics do not support operator constraints. This is a huge issue for many of us. Why can't we do:<br><br>public class List&lt;K&gt; where operator+ <br><br>I know this would make my life easier, I guess I'm just wondering if it's definitely been tabled or if it's still a possibility for 4.0Wed, 05 Nov 2008 15:12:20 Z2009-05-16T09:10:38Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/5844d719-3ef6-4000-913c-27c108269e71http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/5844d719-3ef6-4000-913c-27c108269e71TheDoctorMk2http://social.msdn.microsoft.com/Profile/en-US/?user=TheDoctorMk2C# 4.0 Type Constraints: "where T : Enum" / "where T: Delegate"Will C# 4.0 finally allow 'Delegate' and 'Enum' as constraints on type parameters?<br/> <br/> So far it is impossible to write generic methods (classes) with type constraits for these two. Both constraints actually produce valid IL and can also be <strong>consumed</strong> by C# if written in another language (you can declare those constraints in managed C++ or in IL).<br/> <br/> I'm perfectly aware that you cannot <em>explicitly </em> derive from either Delegate or Enum in C#, but any 'delegate' or 'enum' declaration does so <em>implicitly</em> :<br/> Open up the compiled code with IlDasm or Reflector, and any<br/> <pre>enum Foo [...] delegate Bar [...}</pre> <br/> definition will read<br/> <pre>.class public auto ansi sealed beforefieldinit Foo extends [mscorlib]System.Enum [...] .class public auto ansi sealed Bar extends [mscorlib]System.MulticastDelegate [...]</pre> <br/> And it actually makes sense when you want to write generic methods that can only work &quot;on delegates&quot; or &quot;on enums&quot;.<br/> For example recently I tried to write a type safe method to get all values from an enum:<br/> <br/> <pre>public static T[] GetValues&lt;T&gt;() where T: Enum { return (T[]) Enum.GetValues(typeof(T)); } </pre> <br/> Right now (in C# 3.0) I cannot express that constraint on the type parameter. But if I could the compiler would prevent me from calling that method for anything but an enumeration.<br/> <br/> At another time, while I was working with DynamicMethod class from System.Reflection.Emit, I actually would up implementing a ton of code in C++ just because C# wouldn't for the life of me, allow me to constrain a type parameter to a Delegate. While what I wanted to do (and could only do by moving a bunch of code to a seperate assembly written in managed C++) was<br/> <br/> <pre>public static TDelegate GetDelegate&lt;TDelegate&gt;(MethodInfo method) where TDelegate : Delegate { ... } MethodInfo info = ... Action act = GetDelegate&lt;Action&gt;(info); </pre> <br/> all I could have done in C# was:<br/> <br/> <pre>public static Delegate GetDelegate(MethodInfo method, Type delegateType) { ... } MethodInfo info = ... Action act = (Action)GetDelegate(info, typeof(Action)); </pre> <br/> Again - C# due to it's inability to formulate that constraint would have resulted in clumsier, less precise code. <br/> Where the desired declaration with a Delegate type constraint would enforce at compile time that the type parameter for the method was a valid delegate type, the C# workaround does no such thing. It actually let's you pass typeof(decimal) as 'delegateType' parameter without complaint, and nothing prevents you (or more likely your sleep deprived coworker) from ultimately trying to cast the return value to a byte array. The only time you will notice this is at runtime, when your application blows up in your face :(<br/> Also the whole parameter &quot;Type t&quot; signature where you have to follow up with a cast to your desired return type is a constant reminder to the ugly, pre generic .Net 1.0 time.<br/> <br/> <br/> So, I'd really like to suggest relaxing the restriction on the CS0702 compile error:  &quot;Constraint cannot be special class 'identifier'&quot; for System.Enum &amp; System.Delegate.<br/> <br/> As for System.ValueType - I've no problem with keeping that there. You can formulate that constraint with 'where T : struct'.<br/> Regarding not being able to declare 'where T : System.Array' I could make a point very similar to my remarks about Enum &amp; Delegate. But since you cannot 'write' classes that derive from Array, I never checked IL output if arrays actually derive from that type or the runtime just pretends they do ;) <br/> Well - I just setup a demo class library in C++ with an Array, Delegate &amp; Enum as type constraint on a generic method each, and C# correctly warns me, if I use that library and I try to pass in a parameter that is not of the appropriate type - so let's consider that a vote for Array as valid type constraint in C# as well.<br/>Mon, 06 Apr 2009 02:55:01 Z2009-05-15T18:43:31Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/afb90240-1bc1-4191-b48f-d5e3a218b520http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/afb90240-1bc1-4191-b48f-d5e3a218b520AlexTurnhttp://social.msdn.microsoft.com/Profile/en-US/?user=AlexTurnDynamic<p>Hey everyone,<br><br>My name is Alex Turner and I'm the Program Manager on the C# Compiler.  One of the major language features we're adding in C# 4.0 and VB 10.0 is Dynamic, which provides convenient access to object models that were designed around dynamic dispatch.  These object models include the HTML DOM, Python and Ruby libraries, and even COM libraries where the type system often relies on this form of &quot;late binding&quot;.<br><br>We'd love for you to try this feature out and send us your feedback!  There's more information here about the CTP Virtual PC image that contains our preview build of Visual Studio 2010 and a set of walkthroughs you can try, including Dynamic: <a href="http://go.microsoft.com/fwlink/?LinkId=129231">http://go.microsoft.com/fwlink/?LinkId=129231</a><br><br>Thanks!<br><br>Alex</p>Tue, 28 Oct 2008 08:01:31 Z2009-05-13T05:33:54Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/bcb24f92-2449-476c-91ab-36a9b326ce3fhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/bcb24f92-2449-476c-91ab-36a9b326ce3fJustin Etheredgehttp://social.msdn.microsoft.com/Profile/en-US/?user=Justin%20EtheredgeCannot open source fileMy VM of Visual Studio 2010 was working fine but then all of the sudden any time I try to open a source file I get the error:<br><br>&quot;Exception has been thrown by the target of invocation.&quot;<br><br>When I click &quot;ok&quot; nothing happens.<br><br>The only errors in the event log are these two:<br><br>Log Name:      Application<br>Source:        TraceLog Profiler<br>Date:          12/2/2008 10:39:21 PM<br>Event ID:      5<br>Task Category: None<br>Level:         Error<br>Keywords:      Classic<br>User:          N/A<br>Computer:      VS2010CTP<br>Description:<br>TraceLog Profiler failed in initialization due to a lack of instrumentation methods, process ConsoleApplication2.vshost.exe<br>Event Xml:<br>&lt;Event xmlns=&quot;http://schemas.microsoft.com/win/2004/08/events/event&quot;&gt;<br>  &lt;System&gt;<br>    &lt;Provider Name=&quot;TraceLog Profiler&quot; /&gt;<br>    &lt;EventID Qualifiers=&quot;58454&quot;&gt;5&lt;/EventID&gt;<br>    &lt;Level&gt;2&lt;/Level&gt;<br>    &lt;Task&gt;0&lt;/Task&gt;<br>    &lt;Keywords&gt;0x80000000000000&lt;/Keywords&gt;<br>    &lt;TimeCreated SystemTime=&quot;2008-12-03T06:39:21.000Z&quot; /&gt;<br>    &lt;EventRecordID&gt;13937&lt;/EventRecordID&gt;<br>    &lt;Channel&gt;Application&lt;/Channel&gt;<br>    &lt;Computer&gt;VS2010CTP&lt;/Computer&gt;<br>    &lt;Security /&gt;<br>  &lt;/System&gt;<br>  &lt;EventData&gt;<br>    &lt;Data&gt;ConsoleApplication2.vshost.exe&lt;/Data&gt;<br>    &lt;Binary&gt;00000000&lt;/Binary&gt;<br>  &lt;/EventData&gt;<br>&lt;/Event&gt;<br><br>Log Name:      Application<br>Source:        .NET Runtime<br>Date:          12/2/2008 10:39:21 PM<br>Event ID:      1022<br>Task Category: None<br>Level:         Error<br>Keywords:      Classic<br>User:          VS2010CTP\Administrator<br>Computer:      VS2010CTP<br>Description:<br>.NET Runtime version 4.0.11001.1 - Loading profiler failed.  The profiler COM object was instantiated, but the profiler failed during its initialization callback.  Profiler CLSID: '{301ec75b-ad5a-459c-a4c4-911c878fa196}'.  HRESULT: 0x80004005.  Process ID (decimal): 5884.  Message ID: [0x2505].<br>Event Xml:<br>&lt;Event xmlns=&quot;http://schemas.microsoft.com/win/2004/08/events/event&quot;&gt;<br>  &lt;System&gt;<br>    &lt;Provider Name=&quot;.NET Runtime&quot; /&gt;<br>    &lt;EventID Qualifiers=&quot;0&quot;&gt;1022&lt;/EventID&gt;<br>    &lt;Level&gt;2&lt;/Level&gt;<br>    &lt;Task&gt;0&lt;/Task&gt;<br>    &lt;Keywords&gt;0x80000000000000&lt;/Keywords&gt;<br>    &lt;TimeCreated SystemTime=&quot;2008-12-03T06:39:21.000Z&quot; /&gt;<br>    &lt;EventRecordID&gt;13938&lt;/EventRecordID&gt;<br>    &lt;Channel&gt;Application&lt;/Channel&gt;<br>    &lt;Computer&gt;VS2010CTP&lt;/Computer&gt;<br>    &lt;Security UserID=&quot;S-1-5-21-680025851-272716454-1362934670-500&quot; /&gt;<br>  &lt;/System&gt;<br>  &lt;EventData&gt;<br>    &lt;Data&gt;.NET Runtime version 4.0.11001.1 - Loading profiler failed.  The profiler COM object was instantiated, but the profiler failed during its initialization callback.  Profiler CLSID: '{301ec75b-ad5a-459c-a4c4-911c878fa196}'.  HRESULT: 0x80004005.  Process ID (decimal): 5884.  Message ID: [0x2505].&lt;/Data&gt;<br>  &lt;/EventData&gt;<br>&lt;/Event&gt;<br><br>Any ideas?<br><br>Thanks,<br>Justin Etheredge<br> <hr class="sig">http://www.codethinked.comTue, 10 Feb 2009 03:47:02 Z2009-04-30T23:57:20Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/ed8aaaca-20c8-4445-a5c9-b1422ce94da8http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/ed8aaaca-20c8-4445-a5c9-b1422ce94da8Motarohttp://social.msdn.microsoft.com/Profile/en-US/?user=MotaroAsParallel extension method doesn't workI watched &quot;Future direction for Visual Basic&quot; on PDC 2008, where Lucian Wischik showed up AsParallel extension method on integer array. I wrote the same code in my CTP and here's what I got:<br/><br/>My result:                     &quot;10, 20, 30, 40, 50, 60, 70, 80, 90, 100&quot;<br/>Lucian Wischik's result:  &quot;60, 70, 80, 90, 100, 10, 20, 30, 40, 50&quot;<br/><br/>Is it bug?Mon, 27 Apr 2009 10:04:49 Z2009-04-27T10:04:51Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/1f92e681-7e35-4331-9728-af4bdf3bdcebhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/1f92e681-7e35-4331-9728-af4bdf3bdcebmaruthi siva krishnahttp://social.msdn.microsoft.com/Profile/en-US/?user=maruthi%20siva%20krishnadisplay member of a datagrid combocolumn need help  <div class=messageHeader> <div class=creation><span class=postedOn></span> </div> <div class=userRating><img class="icon_MedalDisabled" height=1 src="http://i1.social.microsoft.com/WebResource.axd?d=aCAxpgxGhetaNjvgrXjoNDWvG-UWNcNHZng94iOP4HAYjJP485Cu4w-U1Nvp84DCuSpoUMSA-_sygW-FmwMvIc9djCaxpKsNsH7nqcP642H6GQOreCHq_eWSNXBI4qcZQDoK1H6_c4uMUg3SbAR76lV34vdbiPRmtwjtGewguMol77bS8an1nmoEi1DS03qv0&amp;t=633677142105584722" width=1><img class="icon_MedalDisabled" height=1 src="http://i1.social.microsoft.com/WebResource.axd?d=aCAxpgxGhetaNjvgrXjoNDWvG-UWNcNHZng94iOP4HAYjJP485Cu4w-U1Nvp84DCuSpoUMSA-_sygW-FmwMvIc9djCaxpKsNsH7nqcP642H6GQOreCHq_eWSNXBI4qcZQDoK1H6_c4uMUg3SbAR76lV34vdbiPRmtwjtGewguMol77bS8an1nmoEi1DS03qv0&amp;t=633677142105584722" width=1><img class="icon_MedalDisabled" height=1 src="http://i1.social.microsoft.com/WebResource.axd?d=aCAxpgxGhetaNjvgrXjoNDWvG-UWNcNHZng94iOP4HAYjJP485Cu4w-U1Nvp84DCuSpoUMSA-_sygW-FmwMvIc9djCaxpKsNsH7nqcP642H6GQOreCHq_eWSNXBI4qcZQDoK1H6_c4uMUg3SbAR76lV34vdbiPRmtwjtGewguMol77bS8an1nmoEi1DS03qv0&amp;t=633677142105584722" width=1><img class="icon_MedalDisabled" height=1 src="http://i1.social.microsoft.com/WebResource.axd?d=aCAxpgxGhetaNjvgrXjoNDWvG-UWNcNHZng94iOP4HAYjJP485Cu4w-U1Nvp84DCuSpoUMSA-_sygW-FmwMvIc9djCaxpKsNsH7nqcP642H6GQOreCHq_eWSNXBI4qcZQDoK1H6_c4uMUg3SbAR76lV34vdbiPRmtwjtGewguMol77bS8an1nmoEi1DS03qv0&amp;t=633677142105584722" width=1><img class="icon_MedalDisabled" height=1 src="http://i1.social.microsoft.com/WebResource.axd?d=aCAxpgxGhetaNjvgrXjoNDWvG-UWNcNHZng94iOP4HAYjJP485Cu4w-U1Nvp84DCuSpoUMSA-_sygW-FmwMvIc9djCaxpKsNsH7nqcP642H6GQOreCHq_eWSNXBI4qcZQDoK1H6_c4uMUg3SbAR76lV34vdbiPRmtwjtGewguMol77bS8an1nmoEi1DS03qv0&amp;t=633677142105584722" width=1></div></div> <div class=messageData>Hi friends <br>i am very new to  vb.net .please help me....<br><br>i have datagrid which contains a combocolumn.i am populating the items from the table(database).<br>the items are coming to the combobox .but problem is <br>im am populating the grid (including combocolumn)<br>how to populate the data to combocolumn .<br>populating the combobox<br><br><font size=2> <p>mObjclsUserList.mPrGetComboDetails(mObjDtTable)</p> <p></font><font color="#0000ff" size=2><font color="#0000ff" size=2>For</font></font><font size=2> RowIdx = 0 </font><font color="#0000ff" size=2><font color="#0000ff" size=2>To</font></font><font size=2> mObjDtTable.Rows.Count - 1</p> <p></font><font color="#0000ff" size=2><font color="#0000ff" size=2>Dim</font></font><font size=2> Index </font><font color="#0000ff" size=2><font color="#0000ff" size=2>As</font></font> <font color="#0000ff" size=2><font color="#0000ff" size=2>Integer</font></font><font size=2> = 0</p> <p>mStrRole = mObjDtTable.Rows(RowIdx)(0).ToString</p> <p>clnRole.Items.Add(mStrRole)<br><br></font><font color="#0000ff" size=2><font color="#0000ff" size=2>Next<br>code for populating datagrid is <br><br><font color="#0000ff" size=2><font color="#0000ff" size=2></p> <p>For</font></font><font size=2> RowIdx = 0 </font><font color="#0000ff" size=2><font color="#0000ff" size=2>To</font></font><font size=2> mObjDtTable.Rows.Count - 1</p> <p></font><font color="#0000ff" size=2><font color="#0000ff" size=2>Dim</font></font><font size=2> Index </font><font color="#0000ff" size=2><font color="#0000ff" size=2>As</font></font> <font color="#0000ff" size=2><font color="#0000ff" size=2>Integer</p> <p></font></font><font size=2> </p> <p>Index = dgrUserList.Rows.Add()</p> <p><br><br> </p> <p>mStrUserId = mObjDtTable.Rows(RowIdx)(0).ToString</p> <p>dgrUserList.Rows(Index).Cells(0).Value = mStrUserId</p> <p>mStrUserRole = mObjDtTable.Rows(RowIdx)(1).ToString</p> <p>dgrUserList.Rows(Index).Cells(1).Value = mObjDtTable.Rows(RowIdx)(1).ToString<br>next <br></p></font></font></font><font color="#080808" size=1>dgrUserList.Rows(Index).Cells(1).Value is the combocolumn .<br>but i am not getting same value in all rows <br>please help me <br>its needed </font><br></div>Thu, 12 Feb 2009 05:10:13 Z2009-04-27T10:27:49Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/abd84b21-d587-4cb3-9cf6-32a9199d34bbhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/abd84b21-d587-4cb3-9cf6-32a9199d34bbPedroafahttp://social.msdn.microsoft.com/Profile/en-US/?user=PedroafaDynamic REST Service Calls Hi,<br><br>I saw that the dynamic feature works with json and xml, but works too with csv?<br><br><br>Pedro,Tue, 11 Nov 2008 12:15:51 Z2009-04-06T20:47:38Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/94b3ca1c-bbfa-4308-89fa-6b455add9de6http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/94b3ca1c-bbfa-4308-89fa-6b455add9de6Dave Sextonhttp://social.msdn.microsoft.com/Profile/en-US/?user=Dave%20SextonDynamic improvements on C# null-coalescing operator Hi everyone, <br><br>I haven't actually tried .NET 4.0 yet, but I'm wondering if something like the following code might be allowed by the C# compiler in 4.0 using <em>dynamic </em>and DLR overload resolution: <br><br> <div style="font-family:Courier New;background:white;color:black;font-size:10pt"> <p style="margin:0px"><span style="color:blue">private</span> <span style="color:blue">void</span> GetAndDisplayEmployee(<span style="color:blue">string</span> id)</p> <p style="margin:0px">{</p> <p style="margin:0px">  DisplayResult(</p> <p style="margin:0px">    GetEmployee(id) ?? <span style="color:#a31515">&quot;Uh oh, bad id!&quot;</span></p> <p style="margin:0px">    );</p> <p style="margin:0px">}</p> <p style="margin:0px"> </p> <p style="margin:0px"><span style="color:blue">private</span> <span style="color:blue">void</span> DisplayResult(<span style="color:#2b91af">Employee</span> employee)</p> <p style="margin:0px">{</p> <p style="margin:0px">  <span style="color:green">// TODO: Display employee</span></p> <p style="margin:0px">}</p> <p style="margin:0px"> </p> <p style="margin:0px"><span style="color:blue">private</span> <span style="color:blue">void</span> DisplayResult(<span style="color:blue">string</span> message)</p> <p style="margin:0px">{</p> <p style="margin:0px">  <span style="color:green">// TODO: Display message</span></p> <p style="margin:0px">}</p></div><br>It seems that I often find myself in situations like these where use of the null-coalescing operator would be really slick, but a coercion requirement prevents it.  I guess the solution would be for the null-coalescing operator to return <em>dynamic </em>in these situations?<br><br>- Dave<hr class="sig">http://davesexton.com/blogThu, 26 Feb 2009 10:17:49 Z2009-04-06T20:44:39Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/f1074736-862c-446d-8988-c35a0349bd22http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/f1074736-862c-446d-8988-c35a0349bd22Dmitry_http://social.msdn.microsoft.com/Profile/en-US/?user=Dmitry_WPF SurfaceDesignerDoes anyone know if WPF4 (the one that comes out with VisualStudio 2010) will have SurfaceDesigner that could be used in applications to create your own designer - currently it's not exposed.<br/><br/>Thanks!Fri, 03 Apr 2009 12:54:49 Z2009-04-03T16:15:09Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/82d156d5-a6eb-401d-a646-e41bb2e1dba1http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/82d156d5-a6eb-401d-a646-e41bb2e1dba1DTeubnerhttp://social.msdn.microsoft.com/Profile/en-US/?user=DTeubner#Region and #End Region in VB in a methodHi All, <div>I am very new to VB as my team manger ask me to code in VB instead of C# and I am not sure is this is a silly question. Anyway:</div> <div><br/></div> <div>I like the use of #region in c# also in a method to make the code a little more readable. But it was not possible to use it in VB. I hoped this could change in the next version but I tried it in CTP and get the same message.</div> <div><br/></div> <div>I would like to suggest this or an alternative to the new VB version. This should be implemented that other users on other systems using my codefile could also collaps the code part and see my comment to it.</div> <div><br/></div> <div>If this is really a stupid question please let me know an alternative currently working.</div> <div><br/></div> <div>Thanks</div> <div>Daniel</div>Fri, 03 Apr 2009 08:09:27 Z2009-04-03T16:15:18Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/e541c7f8-2410-4841-bb7f-4b3866a5d00ehttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/e541c7f8-2410-4841-bb7f-4b3866a5d00eAnup_GurusViewshttp://social.msdn.microsoft.com/Profile/en-US/?user=Anup_GurusViewsVisual Studio Project conversion issueI have a solution with about 12 projects in VS 2008 which I copied to the VPC.<br><br>The first time, I opened the solution from Windows Explorer and VS 2010 threw error of &quot;project is in a format not supported. It loaded teh solution but all projects were shown as &quot;unavailable&quot;.<br><br>I closed VS 2010 and re-opened VS2010. Then I selected File-&gt;Open and selected the same Solution. This time, it started the VS Conversion wizard.<br><br>I would have expected the Wizard to kick in when solution is opened from Windows Explorer too.<br><br>Has anyone else experienced this issue?<hr class="sig">AnupMon, 23 Mar 2009 13:58:41 Z2009-03-23T13:58:42Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/25437c44-2ced-40e7-b0e1-1e93c1827de4http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/25437c44-2ced-40e7-b0e1-1e93c1827de4Lachlan01http://social.msdn.microsoft.com/Profile/en-US/?user=Lachlan01Support for GPGPU in .Net 4.0?Hi, with the advent of nVidia's CUDA etc, is there going to be support for programming against a GPU in .Net 4.0? There seems to be a large focus on parallelism as regards multicore CPUs, but haven't seen anything about GPUs.<div><br></div><div>Cheers.</div>Wed, 11 Mar 2009 02:50:57 Z2009-04-03T16:15:28Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/8bfee940-1ba7-409d-b2bb-75dabde19b09http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/8bfee940-1ba7-409d-b2bb-75dabde19b09Marius Bancilahttp://social.msdn.microsoft.com/Profile/en-US/?user=Marius%20BancilaBigInteger implementationI have noticed some helper/utility static methods in the BigInteger class.<br><br>public static BigInteger Abs(BigInteger value);<br>public static BigInteger Add(BigInteger left, BigInteger right);<br>public static BigInteger GreatestCommonDivisor(BigInteger left, BigInteger right);<br>public static BigInteger Divide(BigInteger dividend, BigInteger divisor);<br>public static BigInteger DivRem(BigInteger dividend, BigInteger divisor, out BigInteger remainder);<br>public static double Log(BigInteger value);<br>public static double Log(BigInteger value, double baseValue);<br>public static double Log10(BigInteger value);<br>public static BigInteger Max(BigInteger left, BigInteger right);<br>public static BigInteger Min(BigInteger left, BigInteger right);<br>public static BigInteger ModPow(BigInteger value, BigInteger exponent, BigInteger modulus);<br>public static BigInteger Multiply(BigInteger left, BigInteger right);<br>public static BigInteger Negate(BigInteger value);<br>public static BigInteger Pow(BigInteger value, int exponent);<br>public static BigInteger Remainder(BigInteger dividend, BigInteger divisor);<br>public static BigInteger Subtract(BigInteger left, BigInteger right);<br><br>To me this classes have nothing to do with the BigInteger implementation, and the other way around. They are pure utility functions. They belong to System.Math (where you can find these overloaded for other types). <br><br>So why are they part of this class? Do you have plans to move them to System.Math? Or perhaps another class like System.Numerics.Math?<br><hr class="sig">Microsoft MVP VC++ | www.mariusbancila.ro/blog | www.codexpert.roTue, 03 Mar 2009 05:35:44 Z2009-03-08T17:25:28Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/d66ddbb1-3483-4669-888f-8df0b5b9138ahttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/d66ddbb1-3483-4669-888f-8df0b5b9138aShimmy Weitzhandlerhttp://social.msdn.microsoft.com/Profile/en-US/?user=Shimmy%20WeitzhandlerInline statements in VB: If-Else, For, For-Each, While, Do etc.<div style="border-right:#7f9db9 1px solid;border-top:#7f9db9 1px solid;font-size:11px;overflow:auto;border-left:#7f9db9 1px solid;line-height:100%! important;border-bottom:#7f9db9 1px solid;font-family:Courier New;background-color:white"> <table style="border-top-width:0px;border-left-width:0px;margin:2px 0px;width:99%;border-bottom:#eee 0px solid;border-collapse:collapse;background-color:#fff;border-right-width:0px" cellspacing=0 cellpadding=0> <colgroup> <col style="padding-left:10px;font-size:11px;border-bottom:#f7f7f7 1px solid;font-family:Courier New;white-space:nowrap"> <tbody> <tr> <td><font style="font-size:11px"></font><font style="color:blue">If</font><font style="font-size:11px"> </font><font style="color:blue">True</font><font style="font-size:11px"> </font><font style="color:blue">Then</font><font style="font-size:11px"> somtn</font><font style="color:green">' </font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7"></font><font style="color:blue">Else</font><font style="font-size:11px"> </font><font style="font-size:11px">nuttn</font><font style="color:green">' 'No need for EndIf </font><font style="font-size:11px"> </font></td></tr> <tr> <td> </td></tr> <tr> <td style="background-color:#f7f7f7"></font><font style="color:blue">For</font><font style="font-size:11px"> </font><font style="color:blue">Each</font><font style="font-size:11px"> item in items item.Clear </font><font style="color:green">'No need for Next</font><font style="font-size:11px"> </font></td></tr></tbody></table></div><br>There are many other statements<br><br>Unless you Microsoft guys are sick of VB and decided to kick us as they did 2008 with automatic-propreties and collection initializers or inline delegates. <hr class=sig> Please mark post as helpful if you think it is...<br>ShimmyWed, 04 Mar 2009 00:04:28 Z2009-03-06T02:36:52Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/533dd2f7-f0c1-48d9-b453-6970aee9cf5ehttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/533dd2f7-f0c1-48d9-b453-6970aee9cf5eShimmy Weitzhandlerhttp://social.msdn.microsoft.com/Profile/en-US/?user=Shimmy%20WeitzhandlerMake VB IIf function same as in C# ?: & ?? (if null)<p>As you all now IIf is a function, it's not a language feature, the disadvantage (others would say it is, so in case my feature suggestion is accepted don't delete the existing lol) of it is that a function evaluates all the parameters:</p> <div style="border-right:#7f9db9 1px solid;border-top:#7f9db9 1px solid;font-size:11px;overflow:auto;border-left:#7f9db9 1px solid;line-height:100%! important;border-bottom:#7f9db9 1px solid;font-family:Courier New;background-color:white"> <table style="border-top-width:0px;border-left-width:0px;margin:2px 0px;width:99%;border-bottom:#eee 0px solid;border-collapse:collapse;background-color:#fff;border-right-width:0px" cellspacing=0 cellpadding=0> <colgroup> <col style="padding-left:10px;font-size:11px;border-bottom:#f7f7f7 1px solid;font-family:Courier New;white-space:nowrap"> <tbody> <tr> <td><font style="font-size:11px"></font><font style="color:blue">Module</font><font style="font-size:11px"> Module1  </font></td></tr> <tr> <td style="background-color:#f7f7f7">    </font><font style="color:blue">Sub</font><font style="font-size:11px"> Main()  </font></td></tr> <tr> <td>        IIf(</font><font style="color:blue">True</font><font style="font-size:11px">, MsgBox(</font><font style="color:blue">True</font><font style="font-size:11px">), MsgBox(</font><font style="color:blue">False</font><font style="font-size:11px">))  </font></td></tr> <tr> <td style="background-color:#f7f7f7">    </font><font style="color:blue">End</font><font style="font-size:11px"> </font><font style="color:blue">Sub</font><font style="font-size:11px"> </font></td></tr> <tr> <td></font><font style="color:blue">End</font><font style="font-size:11px"> </font><font style="color:blue">Module</font><font style="font-size:11px"> </font></td></tr></tbody></table></div><br>Running the above snippet will show <strong>two</strong> messages to the user one that shows True and the other False, <strong>TRY IT AND SEE!!!</strong>.<br><br>Conclusion make <strong><font style="font-size:16px">?:</font></strong> &amp; <strong><font style="font-size:16px">??</font></strong> operators applicaple in VB too. <hr class=sig> Please mark post as helpful if you think it is...<br>ShimmyTue, 03 Mar 2009 23:49:16 Z2009-03-06T02:31:17Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/3ec1adbd-80c8-434b-8ce2-21e28680d179http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/3ec1adbd-80c8-434b-8ce2-21e28680d179Shimmy Weitzhandlerhttp://social.msdn.microsoft.com/Profile/en-US/?user=Shimmy%20Weitzhandler++ Operator in VB??<p>What about having increment (and a -- decrement) operators in VB 10??<br><br></p> <div style="border-right:#7f9db9 1px solid;border-top:#7f9db9 1px solid;font-size:11px;overflow:auto;border-left:#7f9db9 1px solid;line-height:100%! important;border-bottom:#7f9db9 1px solid;font-family:Courier New;background-color:white"> <table style="border-top-width:0px;border-left-width:0px;margin:2px 0px;width:99%;border-bottom:#eee 0px solid;border-collapse:collapse;background-color:#fff;border-right-width:0px" cellspacing=0 cellpadding=0> <colgroup> <col style="padding-left:10px;font-size:11px;border-bottom:#f7f7f7 1px solid;font-family:Courier New;white-space:nowrap"> <tbody> <tr> <td><font style="font-size:11px"></font><font style="color:blue">Dim</font><font style="font-size:11px"> x = 5 </font><font style="color:green">'x = 5 </font><font style="font-size:11px"> </font></td></tr> <tr> <td style="background-color:#f7f7f7"></font><font style="color:blue">Dim</font><font style="font-size:11px"> y = ++x </font><font style="color:green">'x = 6, y = 6 </font><font style="font-size:11px"> </font></td></tr> <tr> <td></font><font style="color:blue">Dim</font><font style="font-size:11px"> z = x++ </font><font style="color:green">'x = 7, z = 6</font><font style="font-size:11px"> </font></td></tr></tbody></table></div> <p><br><br>same in decreasing (-- operator)<br></p><br><br><br> <hr class=sig> Please mark post as helpful if you think it is...<br>ShimmyTue, 03 Mar 2009 23:56:59 Z2009-03-05T00:29:20Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/c12a73f5-9b29-4b0d-b985-fc7f95828466http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/c12a73f5-9b29-4b0d-b985-fc7f95828466Shimmy Weitzhandlerhttp://social.msdn.microsoft.com/Profile/en-US/?user=Shimmy%20Weitzhandler.NET 4.0 feature suggestion: Extension Methods & Extension Properties<p>As we all now &quot;Extension methods&quot; are only methods, not getters/setters<br>I would love to have extension properties, I think you would all love...</p> <hr class=sig> Please mark post as helpful if you think it is...<br>ShimmyWed, 04 Mar 2009 00:33:39 Z2009-04-04T18:20:09Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/e34e6a7d-2168-461c-b1dd-7693128eb261http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/e34e6a7d-2168-461c-b1dd-7693128eb261Shimmy Weitzhandlerhttp://social.msdn.microsoft.com/Profile/en-US/?user=Shimmy%20WeitzhandlerI just installed the CTP and took a look, general impression: I AM DISAPPOINTEDHi all!<br>Today, I thought &quot;Shimmy, you must take a look and see what it is all about&quot;.<br>So I downloaded the 7GB VS 2010 CTP (installed it and found out that it's expired so I had to redownload it and follow <a href="http://blogs.msdn.com/jeffbe/archive/2008/12/09/dealing-with-the-team-system-2010-ctp-expiration.aspx">the directions</a> and edited the .vmc file, oooh im tired).<br>Finally I managed to see <strong>Visual Studio 2010 </strong>not less.<br>I was sure everything changed, everything got new world and I saw eeeeem, OK. VS 2010. no problem, to be.<br>Maybe I was expecting differernt levels, I donno I just thought it will be much more than it is.<br><br>But first let me write a few points I was prepossessed from:<br> <ul> <li>The general environment looks better</li> <li>The start page is designed nicely</li> <li>Hot: Brushes design in WPF</li> <li>Hot: <a href="http://channel9.msdn.com/shows/10-4/10-4-Episode-9-Visual-Basic-10/">VB language features</a>.</li></ul>So here is a list of things I would like to have (and I thought it is already implemented, I am not the only programmer after all right?):<br><br> <ul> <li><strong>CODE SYNTAX COLORING!?</strong><br>In C# it's the same as 2008 (to be); but VB??? no nuttn only black and blue for keywords, I really tought now on there will be different colors (or different font weight) for method names, properties, interfaces, classes, enums, constants, modules, access levels, and many many more!<br>Honestly, I got so disappointed!</li> <li><strong>Bug</strong>: new selection color is very nice but oops! <strong>unable to drag and drop code</strong>! what is that supposed to mean</li> <li><strong>Bug</strong>: <strong>Intellisense</strong> doesn't <strong>commit</strong> in VB <strong>only with TAB</strong>, try Class Abc(Of 'here it occurs</li> <li>I really think that microsoft is sick of investing in <strong>WPF</strong>, I mean I cried when I saw there are no and even not 1 new control for Wpf!!! (although let's not forget the brushes editor is really nice, but this is made in honor of Silverlight lol), no even DataGrid, I am crying like mad!</li> <li>I posted a discussion about <strong>EDM</strong> (<strong>Entity Framework</strong>), <a href="http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpdataandxml/thread/576350fd-3a7f-4c04-b5c1-95823a2d84e3">please take a look</a>, I wasn't even doubting, I was so sure it's already implemented }:(</li></ul> <p>That's what I remember right now, I have a lot, will post, please share us with your ideas too! <hr class=sig> Please mark post as helpful if you think it is...<br>Shimmy <p></p>Wed, 04 Mar 2009 00:20:12 Z2009-03-04T03:54:09Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/f789d2d7-3b8f-4a46-9fa3-414f9509b01dhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/f789d2d7-3b8f-4a46-9fa3-414f9509b01dShimmy Weitzhandlerhttp://social.msdn.microsoft.com/Profile/en-US/?user=Shimmy%20WeitzhandlerC# suggestion: var x = 6, f = "Asdf", a = false; like C++ and VBIn VB I can write:<br><br> <div style="border-right:#7f9db9 1px solid;border-top:#7f9db9 1px solid;font-size:11px;overflow:auto;border-left:#7f9db9 1px solid;line-height:100%! important;border-bottom:#7f9db9 1px solid;font-family:Courier New;background-color:white"> <table style="border-top-width:0px;border-left-width:0px;margin:2px 0px;width:99%;border-bottom:#eee 0px solid;border-collapse:collapse;background-color:#fff;border-right-width:0px" cellspacing=0 cellpadding=0> <colgroup> <col style="padding-left:10px;font-size:11px;border-bottom:#f7f7f7 1px solid;font-family:Courier New;white-space:nowrap"> <tbody> <tr> <td><font style="font-size:11px"></font><font style="color:blue">Dim</font><font style="font-size:11px"> x = 5, y = </font><font style="color:blue">&quot;asd&quot;</font><font style="font-size:11px">, b = </font><font style="color:blue">False</font><font style="font-size:11px">, e </font><font style="color:blue">As</font><font style="font-size:11px"> </font><font style="color:blue">New</font><font style="font-size:11px"> TextBox </font><font style="color:blue">With</font><font style="font-size:11px"> {.Text = </font><font style="color:blue">&quot;VB.NET 10!&quot;</font><font style="font-size:11px">} </font></td></tr></tbody></table></div> <hr class=sig> Please mark post as helpful if you think it is...<br>ShimmyWed, 04 Mar 2009 00:11:56 Z2009-03-04T00:29:32Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/bd6a0f0a-6d93-4239-b3e1-5e5afabe8c65http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/bd6a0f0a-6d93-4239-b3e1-5e5afabe8c65Jay_The_CTI_Guyhttp://social.msdn.microsoft.com/Profile/en-US/?user=Jay_The_CTI_GuyPlease, please, please allow URL parameters for network file server based ClickOnce applications<p>Please do not forget about us lowly enterprise developers.  Those of us that develop applications for in-house use only.  Those of working at companies that do not allow IIS.</p> <p>ClickOnce is a great distribution model, but does no good if URL parameters are ignored/not allowed.</p> <p>It would be great if 'ActivationUri' did not return a null for ClickOnce applications started from a file server.</p> <p>Example URL:  <a href="http://servername/ClickOnceApplication.xbap?parameter1=PLEASE&amp;parameter2=YES">http://servername/ClickOnceApplication.xbap?parameter1=PLEASE&amp;parameter2=YES</a></p> <p>These parameters are needed at application startup, and are user specific.</p> <p>I'd even accept another way to leverage user specific parameters at application initialization, if there is such a thing.</p> <p>Thanks.</p>Tue, 03 Mar 2009 22:46:57 Z2009-03-03T22:46:58Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/4ea4dee3-c5b1-4371-adf6-11af71cf294dhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/4ea4dee3-c5b1-4371-adf6-11af71cf294dSchildBhttp://social.msdn.microsoft.com/Profile/en-US/?user=SchildBKeyChar is read only In a VB2010 Smart Device (Mobile 6 Professional) I attempted to use code to upper case entered text by using the following code in the textbox KeyPress event:<br><br>if ASC(e.KeyChar) &gt;= 97 andalso ASC(e.KeyChar) &gt;= 122 Then<br>   e.  &lt;when I get to this point, intellisense states that KeyChar is ReadOnly&gt;Tue, 24 Feb 2009 20:33:33 Z2009-02-26T18:10:50Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/a0fc42d9-7609-4b4a-9ab7-4f4b1b989484http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/a0fc42d9-7609-4b4a-9ab7-4f4b1b989484SchildBhttp://social.msdn.microsoft.com/Profile/en-US/?user=SchildBMobile 6 Professional/Standard SDK The Professional appears to have installed OK, but the Standard would not install.Tue, 24 Feb 2009 20:20:05 Z2009-02-24T21:07:48Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/c1cfeb8a-a066-4416-a1d8-74a623ab4e63http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/c1cfeb8a-a066-4416-a1d8-74a623ab4e63bsaucer1http://social.msdn.microsoft.com/Profile/en-US/?user=bsaucer1New features? I haven't had the oportunity to test the VS 2010 or .Net 4.0, so I'd like to know the status on new features I'm looking for:<br><br>1. New data types like BigInteger, BigNum, Complex, etc. And if there's a &quot;Complex&quot; type, is it based on doubles, floats, bignumbers, etc. This would be useful for drawing fractals and doing science applications.<br><br>2. We have extension methods in both VB and C#. I'd like to see extension operator overloading as well. For example, if I define a &quot;Vector&quot; class where the operators for * and / are not defined, and then define a &quot;Quaternion&quot; class which would extends those two operators for the &quot;Vector&quot; class (vector1 / vector2 = quaternion)<br><br>3. Built-in support for Silverlight 2.0, including drag and drop of controls in design mode, editing of control properties, etc.<br><br>That's all I can think of for now.Wed, 11 Feb 2009 17:23:56 Z2009-02-18T18:36:55Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/de0b72fc-0065-4038-a40a-8f3cdaecc56dhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/de0b72fc-0065-4038-a40a-8f3cdaecc56dSideouthttp://social.msdn.microsoft.com/Profile/en-US/?user=Sideout.NET 4.0 CTP API docs? VM still available or new CTP coming?Is there a way I can download just the API docs?  I understand they'll be pre-release and all.  I'm just looking to get an idea of how things are shaping up without downloading a giant VM.<br><br>It looks like the current CTP VM is expired.  Is there a new one planned soon?<br> Thu, 12 Feb 2009 23:35:40 Z2009-02-12T23:35:41Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/145ce7df-873f-4ae6-af67-7233cff49547http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/145ce7df-873f-4ae6-af67-7233cff49547maruthi siva krishnahttp://social.msdn.microsoft.com/Profile/en-US/?user=maruthi%20siva%20krishnadatagrid combocolumn Hi friends <br>i am very new to  vb.net .please help me....<br><br>i have datagrid which contains a combocolumn.i am populating the items from the table(database).<br>the items are coming to the combobox .but problem is <br>im am populating the grid (including combocolumn)<br>how to populate the data to combocolumn .<br>populating the combobox<br><br><font size=2> <p>mObjclsUserList.mPrGetComboDetails(mObjDtTable)</p> <p></font><font color="#0000ff" size=2><font color="#0000ff" size=2>For</font></font><font size=2> RowIdx = 0 </font><font color="#0000ff" size=2><font color="#0000ff" size=2>To</font></font><font size=2> mObjDtTable.Rows.Count - 1</p> <p></font><font color="#0000ff" size=2><font color="#0000ff" size=2>Dim</font></font><font size=2> Index </font><font color="#0000ff" size=2><font color="#0000ff" size=2>As</font></font> <font color="#0000ff" size=2><font color="#0000ff" size=2>Integer</font></font><font size=2> = 0</p> <p>mStrRole = mObjDtTable.Rows(RowIdx)(0).ToString</p> <p>clnRole.Items.Add(mStrRole)<br><br></font><font color="#0000ff" size=2><font color="#0000ff" size=2>Next<br>code for populating datagrid is <br><br><font color="#0000ff" size=2><font color="#0000ff" size=2></p> <p>For</font></font><font size=2> RowIdx = 0 </font><font color="#0000ff" size=2><font color="#0000ff" size=2>To</font></font><font size=2> mObjDtTable.Rows.Count - 1</p> <p></font><font color="#0000ff" size=2><font color="#0000ff" size=2>Dim</font></font><font size=2> Index </font><font color="#0000ff" size=2><font color="#0000ff" size=2>As</font></font> <font color="#0000ff" size=2><font color="#0000ff" size=2>Integer</p> <p></font></font><font size=2> </p> <p>Index = dgrUserList.Rows.Add()</p> <p><br><br> </p> <p>mStrUserId = mObjDtTable.Rows(RowIdx)(0).ToString</p> <p>dgrUserList.Rows(Index).Cells(0).Value = mStrUserId</p> <p>mStrUserRole = mObjDtTable.Rows(RowIdx)(1).ToString</p> <p>dgrUserList.Rows(Index).Cells(1).Value = mObjDtTable.Rows(RowIdx)(1).ToString<br>next <br></p></font></font></font>dgrUserList.Rows(Index).Cells(1).Value is the combocolumn .<br>but i am not getting same value in all rows <br>please help me <br>its needed <br><br>Wed, 11 Feb 2009 12:47:49 Z2009-02-11T12:47:51Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/3f39fd0d-4059-440a-8ce9-87bdfee48f8bhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/3f39fd0d-4059-440a-8ce9-87bdfee48f8bMike C1http://social.msdn.microsoft.com/Profile/en-US/?user=Mike%20C1Visual Studio 2010I think microsoft needs to realize they have 2 target audiences for their development products. The first is the hardcore techno geeks. The second is the IT folks who are just trying to earn a paycheck builiding applications to make the company they work for more profitable. All the second group really want are tools that allow them to better satisfy the ever increasing demands of their user group.  That would include a. tools that install properly and work as expected b.tools which alow them to build on the hard earned knowledge they have gained through experience in their profession, not invalidate it.  <br><br>Speaking for the second group, I don't suggest that innovation should come to a standstill in order to allow the rest of us to catch up. What I'd like to see is that when new features are are being evaluated,  the key consideration is how they make the user, the Average IT professional, more productive. That also includes making the technology that already exists more dependable and bug free. <br><br>I like the fact that MS Seems to be making an attempt at empowering the joe average developer by putting out documentation and tools which make fundamental software design principles and patterns more acessible and easier to implement.  MVC is an example. I would like to see more of an emphasis in this area rather than language changes and ehancements that might go largely unused. Sun, 08 Feb 2009 01:08:09 Z2009-02-08T23:58:32Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/6686585f-7b2e-42d2-bb62-ca92767d6f79http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/6686585f-7b2e-42d2-bb62-ca92767d6f79Daniel Earwickerhttp://social.msdn.microsoft.com/Profile/en-US/?user=Daniel%20EarwickerWPF source editor and extensibilityReally liked the ScottGu (I think) demo of a new visualization of XML comments that would appear directly in the source editor.<br><br>This raised a lot more questions - what kind of things can I register such an extension to deal with? Could I, for example, provide a visualizer for expressions of a particular type? It strikes me that this is like supporting embedded DSLs with visual editors. It's a very exciting, powerful idea. Could I provide a visualizer for editing string literals, which automatically hides all the details of escaping? Or do the equivalent of XML literals, all with custom editors?<br><br>If this kind of extensibility was capability of associating new GUI elements with particular patterns in our code, then it would be just like having a totally extensible language (with the underlying C# language as the reliable lingua franca behind the scenes).<br><br>Or is it only going to be able to deal with a few coarse-grained predefined things?<br><br>Also, does the custom visualization have to take up exactly the same amount of screen real estate as the underlying code? I noticed that was the case for the XML comments demo. Seems limiting if true.<br><br>And will it gracefully deal with two extensions trying to handle the same thing?<br><br>--Daniel<br><br> Sat, 20 Dec 2008 13:10:32 Z2009-02-05T13:35:22Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/880bd1c3-a32d-4100-8c8b-96967b8bc825http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/880bd1c3-a32d-4100-8c8b-96967b8bc825raichttp://social.msdn.microsoft.com/Profile/en-US/?user=raicWPF Text scrolling issues...VS2010 Still seems to have the text scrolling problem described here:<br><br>http://www.gamedev.net/community/forums/topic.asp?topic_id=445078<br><br>Will this be fixed in the release/betas?<br> Thu, 05 Feb 2009 02:13:13 Z2009-02-05T02:13:15Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/58e24bcf-f989-4f7e-99e9-b09f0cea1643http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/58e24bcf-f989-4f7e-99e9-b09f0cea1643Ovais Khanhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ovais%20KhanProblem with datagridview cell backcolorHi,<br><br><br><br>Ther is some problem with my datagridview cell backcolor property. What i m doing is ..<br>First i am creating the column with default backcolor of black.<br><br><br><br> <div style="border-right:#7f9db9 1px solid;border-top:#7f9db9 1px solid;font-size:11px;overflow:auto;border-left:#7f9db9 1px solid;line-height:100%! important;border-bottom:#7f9db9 1px solid;font-family:Courier New;background-color:white"> <table style="border-top-width:0px;border-left-width:0px;margin:2px 0px;width:99%;border-bottom:#eee 0px solid;border-collapse:collapse;background-color:#fff;border-right-width:0px" cellspacing=0 cellpadding=0> <colgroup> <col style="padding-left:10px;font-size:11px;border-bottom:#f7f7f7 1px solid;font-family:Courier New;white-space:nowrap"> <tbody> <tr> <td><font style="font-size:11px">    class Col : DataGridViewTextBoxColumn  </font></td></tr> <tr> <td style="background-color:#f7f7f7">    {  </td></tr> <tr> <td>        public Col(int n)  </td></tr> <tr> <td style="background-color:#f7f7f7">          </td></tr> <tr> <td>        {  </td></tr> <tr> <td style="background-color:#f7f7f7">            </font><font style="color:red">this.Width</font><font style="font-size:11px"> = </font><font style="color:blue">10</font><font style="font-size:11px"> * n;  </font></td></tr> <tr> <td>            </font><font style="color:red">this.DefaultCellStyle.BackColor</font><font style="font-size:11px"> = Color.Black;  </font></td></tr> <tr> <td style="background-color:#f7f7f7">        }  </td></tr> <tr> <td>      </td></tr> <tr> <td style="background-color:#f7f7f7">    }  </td></tr> <tr> <td>} </td></tr></tbody></table></div><br><br>but when i checking it with the code below it is giving message &quot;EMPTY&quot;.... but i want it to show BLACK.<br><br><br> <div style="border-right:#7f9db9 1px solid;border-top:#7f9db9 1px solid;font-size:11px;overflow:auto;border-left:#7f9db9 1px solid;line-height:100%! important;border-bottom:#7f9db9 1px solid;font-family:Courier New;background-color:white"> <table style="border-top-width:0px;border-left-width:0px;margin:2px 0px;width:99%;border-bottom:#eee 0px solid;border-collapse:collapse;background-color:#fff;border-right-width:0px" cellspacing=0 cellpadding=0> <colgroup> <col style="padding-left:10px;font-size:11px;border-bottom:#f7f7f7 1px solid;font-family:Courier New;white-space:nowrap"> <tbody> <tr> <td><font style="font-size:11px"> MessageBox.Show(&quot;&quot; + DG2[e.ColumnIndex, e.RowIndex].Style.BackColor.Name);  </font></td></tr> <tr> <td style="background-color:#f7f7f7">//DG2 is datagridview </td></tr></tbody></table></div><br><br><br>Plz help...<br><br> <hr class=sig> Ovais KhanTue, 03 Feb 2009 11:44:58 Z2009-02-04T05:02:33Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/c66e3161-4cfb-43fd-a841-821048aa9ba0http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/c66e3161-4cfb-43fd-a841-821048aa9ba0Rafał_Polandhttp://social.msdn.microsoft.com/Profile/en-US/?user=Rafa%u0142_PolandStatic interfaces<p>For a long time now I was thinking that it would be nice to have something like static interfaces. It would allow creation of generic type that could use operators on instances of classes that it is working on. As it is now it's impossible to write code like this:</p> <div style="border-bottom:#7f9db9 1px solid;border-left:#7f9db9 1px solid;line-height:100% !important;background-color:white;font-family:Courier New;font-size:11px;overflow:auto;border-top:#7f9db9 1px solid;border-right:#7f9db9 1px solid"> <table style="border-bottom:#eee 0px solid;border-right-width:0px;background-color:#fff;margin:2px 0px;width:99%;border-collapse:collapse;border-top-width:0px;border-left-width:0px" cellspacing=0 cellpadding=0> <colgroup> <col style="border-bottom:#f7f7f7 1px solid;padding-left:10px;font-family:Courier New;white-space:nowrap;font-size:11px"> <tbody> <tr> <td><font style="font-size:11px"></font><font style="color:blue">static</font><font style="font-size:11px"> </font><font style="color:blue">interface</font><font style="font-size:11px"> IAdd&lt;T&gt;  </font></td></tr> <tr> <td style="background-color:#f7f7f7">{  </td></tr> <tr> <td>    </font><font style="color:blue">static</font><font style="font-size:11px"> T </font><font style="color:blue">operator</font><font style="font-size:11px"> +(T obj1, T obj2);  </font></td></tr> <tr> <td style="background-color:#f7f7f7">}  </td></tr> <tr> <td> </td></tr> <tr> <td style="background-color:#f7f7f7"></font><font style="color:blue">class</font><font style="font-size:11px"> GenericType&lt;T&gt;  </font></td></tr> <tr> <td>    : where T : IAdd&lt;T&gt;, </font><font style="color:blue">new</font><font style="font-size:11px">()  </font></td></tr> <tr> <td style="background-color:#f7f7f7">{  </td></tr> <tr> <td>    T obj1 = </font><font style="color:blue">new</font><font style="font-size:11px"> T();  </font></td></tr> <tr> <td style="background-color:#f7f7f7">    T obj2 = </font><font style="color:blue">new</font><font style="font-size:11px"> T();  </font></td></tr> <tr> <td> </td></tr> <tr> <td style="background-color:#f7f7f7">    T Sum()  </td></tr> <tr> <td>    {  </td></tr> <tr> <td style="background-color:#f7f7f7">        </font><font style="color:blue">return</font><font style="font-size:11px"> obj1 + obj2;  </font></td></tr> <tr> <td>    }  </td></tr> <tr> <td style="background-color:#f7f7f7">} </td></tr></tbody></table></div> <p>Now I have no way of stating that T type has + operator short of writing it in a base class which is unacceptable or even impossible in many scenarios.</p> <p>Furthermore on several occasions I wanted to force another programmer to give me particular set of static properties in his pool of classes. I could then access those properties through reflection. Now I can only ask him to do it and we have to manually check for each one of them. With static interfaces it could be done automatically.</p> <p>Is anything like this going to be added to .NET framework? If so what version of framework it would be implemented in?</p>Sun, 25 Jan 2009 15:08:04 Z2009-01-25T16:13:31Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/0d71f8f3-9ace-46e1-bb29-b6c0dec07e84http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/0d71f8f3-9ace-46e1-bb29-b6c0dec07e84sukaanhttp://social.msdn.microsoft.com/Profile/en-US/?user=sukaanNew features in VS 2010.Can anyone share the additional features that are available in vs2010. Thu, 22 Jan 2009 06:13:44 Z2009-01-22T14:07:00Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/f65362ca-27ce-44c6-8f41-a2d101f6f298http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/f65362ca-27ce-44c6-8f41-a2d101f6f298Robweshttp://social.msdn.microsoft.com/Profile/en-US/?user=RobwesNamed parameters in C# - use of ":" or "="<p>Hello,<br><br>I would like to know what the reasons for choosing the &quot;:&quot; for named parameters for method calls are (as is mentioned in the word document on <a href="http://code.msdn.microsoft.com/csharpfuture/Release/ProjectReleases.aspx?ReleaseId=1686">http://code.msdn.microsoft.com/csharpfuture/Release/ProjectReleases.aspx?ReleaseId=1686</a>). <br><br>This seems inconsistent with how other similar constructs behave. <br><br>Similar constructs:<br>1) Named parameters on Attributes<br>Example:<br><br></p> <div style="border-right:#7f9db9 1px solid;border-top:#7f9db9 1px solid;font-size:11px;overflow:auto;border-left:#7f9db9 1px solid;line-height:100%! important;border-bottom:#7f9db9 1px solid;font-family:Courier New;background-color:white"> <table style="border-top-width:0px;border-left-width:0px;margin:2px 0px;width:99%;border-bottom:#eee 0px solid;border-collapse:collapse;background-color:#fff;border-right-width:0px" cellspacing=0 cellpadding=0> <colgroup> <col style="padding-left:10px;font-size:11px;border-bottom:#f7f7f7 1px solid;font-family:Courier New;white-space:nowrap"> <tbody> <tr> <td><font style="font-size:11px">[MyAttribute(</font><font style="color:red">MyFirstValue</font><font style="font-size:11px"> = </font><font style="color:blue">&quot;somevalue&quot;</font><font style="font-size:11px">, </font><font style="color:red">MySecondValue</font><font style="font-size:11px"> = </font><font style="color:blue">3</font><font style="font-size:11px">)]  </font></td></tr> <tr> <td style="background-color:#f7f7f7">public void Foo()  </td></tr> <tr> <td>{  </td></tr> <tr> <td style="background-color:#f7f7f7">} </td></tr></tbody></table></div> <p>2) Constructor initialization (even though the relation to this construct is more distant, it is at least similar)<br>Example</p> <div style="border-right:#7f9db9 1px solid;border-top:#7f9db9 1px solid;font-size:11px;overflow:auto;border-left:#7f9db9 1px solid;line-height:100%! important;border-bottom:#7f9db9 1px solid;font-family:Courier New;background-color:white"> <table style="border-top-width:0px;border-left-width:0px;margin:2px 0px;width:99%;border-bottom:#eee 0px solid;border-collapse:collapse;background-color:#fff;border-right-width:0px" cellspacing=0 cellpadding=0> <colgroup> <col style="padding-left:10px;font-size:11px;border-bottom:#f7f7f7 1px solid;font-family:Courier New;white-space:nowrap"> <tbody> <tr> <td><font style="font-size:11px">Person </font><font style="color:red">john</font><font style="font-size:11px"> = </font><font style="color:blue">new</font><font style="font-size:11px"> Person() { </font><font style="color:red">Name</font><font style="font-size:11px"> = </font><font style="color:blue">&quot;John Doe&quot;</font><font style="font-size:11px">, </font><font style="color:red">Age</font><font style="font-size:11px"> = </font><font style="color:blue">37</font><font style="font-size:11px">, </font><font style="color:red">City</font><font style="font-size:11px"> = </font><font style="color:blue">&quot;Boden&quot;</font><font style="font-size:11px"> }; </font></td></tr></tbody></table></div> <p>In both of those cases, the &quot;=&quot; character is used. The only places where I can recall the &quot;:&quot; to be used is for inheritance (public class MyClass: MyBaseClass), generic constraints (public class MyClass&lt;T&gt; where T: class) and the ?: construct ( string myString = ((bool)useName) ? &quot;Name: &quot; + name : string.Empty;).<br><br>There might be something I'm missing here, but wouldn't using the &quot;=&quot; for named parameters when calling a method feel more consistent with the rest of the language? Personally I feel &quot;=&quot; to be a much better choice and also that the code would be more pleasing to the eye. :)<br><br> Kind regards<br> Robert</p>Fri, 31 Oct 2008 16:35:47 Z2009-01-14T03:52:17Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/d37cd027-dfa0-4bbd-958e-765446dd3476http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/d37cd027-dfa0-4bbd-958e-765446dd3476Karen Liu MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Karen%20Liu%20MSFTTest-driven Development Support with the Generate From Usage FeatureHi all - <br><br>My name is Karen Liu and I'm the lead program manager of the C# and VB IDE's.  One direction we've taken in this release is to provide great support when you're writing code to consume an API before it even exists (one example is in test-driven development where you write tests first).  Check out our new generate from usage feature -- it allows you to generate stubs for any class, constructor, method, or property you use before it exists (think about VS as laying down the train tracks for you).  <br><br>We'd love your feedback on the workflow and scope of the feature!  Do you wish we generated something else? Are there scnearios you use often that we're missing?<br><br>For more information on the CTP itself, check out <a href="http://go.microsoft.com/fwlink/?LinkId=129231"><font color="#0072bc">http://go.microsoft.com/fwlink/?LinkId=129231</font></a>.<br><br>Thanks!<br>Karen Liu<br>Lead Program Manager C#/VB<hr size="1" align="left" width="25%">Program Manager, Visual C#Tue, 28 Oct 2008 18:33:06 Z2009-04-03T16:13:32Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/a82f7c93-ef0d-41fe-90f3-778ff4404dd3http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpvbcs/thread/a82f7c93-ef0d-41fe-90f3-778ff4404dd3Bazulhttp://social.msdn.microsoft.com/Profile/en-US/?user=BazulCan I double click on a tabbed code window to go full screen and Esc to exit yet? Easier than ALT+SHIFT+ENTERMon, 05 Jan 2009 21:43:11 Z2009-01-05T21:43:12Z