PS iu's Q&A profile
Visual Studio 2008 (Pre-release) next linq release
Any comment on roughly when the next Linq release is scheduled, and what kinds of changes we can expect Keith, I'm guessing that what Henrik was asking is if it will be easy to do something like do a DLinq query in a Web Service to get an object out of a database, send this object (or a graph or list of objects) to a Web Services client, modify the object in the WS client, then, send it back to the WS and have DLinq update the data in the database. I guess it's more of a Web Services question. But, it would be interesting to know if the ability to do this easily is something that Microsoft is thinking about. I haven't had a ch ...Show All
Visual Studio Express Editions How to disable, and hide a single Tab Page
I have a problem on my program. I have a Tab Control consist of 3 tab pages. I want to hide or disabled the second tab, How can i do it Please help me:( Hi, There are 2 ways of doing this. 1. If you do it the normal way of disabling thetab page it will disable all the contols on your tab page. e.g: TabPage2.Enabled = False This will render the controls disabled. Also the intellisense does not pick up the .enabled function, but it still works 2. you will have to remove the tab on load or whatever you decide to do. e.g: TabControl1.TabPages.Remove(TabPage2) Rem ...Show All
Visual C# enumeration was modified operation may not execute
Hi all; i am using the following fuction to close some open forms with tag "NOTMAIN" in my application. private void CloseOldForms() { FormCollection frmColl = Application .OpenForms; foreach ( Form tempFrm in frmCOll) { string tempFrmTxt = tempFrm.Tag.ToString(); if (tempFrmTxt.Equals( "NOTMAIN" )) { tempFrm.Close(); } } } But the application stops after executing foreach loop for only one time, with an exception i.e enumeration was modified operation may not execute i.e FormCollection enumeration was modified.can someone plz tell how to handle it or ...Show All
.NET Development How to find Install folder of an Assembly which is in GAC
Hi, In .NET 1/1.1 to find the install directory of an assembly in GAC, we could read the __AssemblyInfo__.ini file present in GAC and get the install folder of the assembly by reading URL=file:///. For example : [AssemblyInfo] Signature=sda8sd6as6d98a7s9d87a9s7fa MVID=24h23kj4hk23h4k23h4k2h34k2h34 URL=file:///D:/MyInstallDirectory/Bin/MyAssembly.dll DisplayName=MyAssembly, Version=3.1.1.0, Culture=neutral, PublicKeyToken=xxxxyyyyxxxx But now in .NET 2 the file __AssemblyInfo__.ini has been removed. So it is not possible to find the install folder by the previous method. Is there any method by which the install dir can be found out for .NET 2 ...Show All
SQL Server .Net Framework for SSRS 2005
Hi, We are plannning to upgrade to SSRS 2005 from SSRS 2000. Does it mean that our clients/users will have to upgrade to framework 2.0 from framework 1.1 inorder to see the SSRS Reports Thanks in advance ! siaj Only the report server installation requires .NET 2.0. If your users also want to use the new ReportBuilder in SSRS 2005, they will need to have .NET 2.0 installed on their local machines. If it is not installed, trying to use ReportBuilder for the first time will provide a notification about the missing .NET Framework 2.0 and ask if the runtime should be downloaded and installed. -- Robert ...Show All
Visual Studio Express Editions .net System namespace issue...
I just set up Visual C++ express, and I'm attempting to fool around with threads a bit. Unfortunately, whenever I declare the namespace System, it states that it isn't a valid namespace. Anyone have any ideas What am I doing wrong d:\visual studio 2005\projects\test\test\test.cpp(4) : error C2871: 'System' : a namespace with this name does not exist When I place that line at the start, it says it must be run with the /clr option. When I do that, I get this error cl : Command line error D8016 : '/RTC1' and '/clr' command-line opt ...Show All
Visual Basic Updating underlying table
I have a form based on a BindingSource. The text controls' Data Source Update Mode are set to OnPropertyChanged. The FormClosing method (I almost said "event") has the line Me.nameBindingSource.EndEdit() Changes to the data in the fields on the form are not saved when the form is closed. How can I do this The BindingSource object allows binding and navigation of the underlying data. There should also be an associated TableAdapter object. You need to call the Update() method of the TableAdapter and pass it the updated data. (This is assuming you're bound to a database.  ...Show All
.NET Development GridView wont display records if LIKE is used in Query
I have an Access Query named "TestQuery". The Query selects users with "678". Condition is: Phone LIKE "678*". Any time the dataset that is used by GridView1 is assigned to "TestQuery" it doesn't return any records. (Even though in Access it does). If I modify "TestQuery" and make the condition anything that doesn't include a LIKE it works. Am I missing something Vincent Fournier If I change the Criteria on the Access Query to: Phone LIKE '678%' like you recommended it doesn't select any records when I run the Query within Access but it does in the GridView. When the Query is: Phone LIKE '678*'. & ...Show All
.NET Development Remoting Fundamental
How Remoting works internally i.e. When I write Activator.GetObject and when I write following code... (What .net does internally) HttpChannel chnl = new HttpChannel(1234); ChannelServices.RegisterChannel(chnl); RemotingConfiguration.RegisterWellKnownServiceType( typeof(MyRemoteObject), "MyRemoteObject.soap", WellKnownObjectMode.Singleton); How channel binds to remoting object Hi khaatu, that's a pretty broad question, but luckily there's some good information already available on the binding process. To start, check out this FAQ entry at Thinktecture: http://www.thinktecture.co ...Show All
.NET Development How can i use C# dll in vc6.0 ?
I am a freshman for c#, Now i have a problem. I write a Class Library with c# as a dll file. But i don't konw how to use it in VC6.0 Please hlep me . Waitting.......... Hi, You must create a COM wrapper for your dll in C#. Coz C# is a .net managed code, whereas VB6 is a COM based product... Just search the docs on how to create COM wrappers.. cheers, Paul June A. Domag ...Show All
Visual Basic Can it show that?
Hello, can i find out, if the Internet Explorer can show a File from the file extension For example: My String Path="C:\Documents\my.exe" This file cannot be shown in Internet Explorer. Now i want, that the String Accept="No" The answer to the core quesion is "no". Here is a quote from a MS Security Bulletin : "No. Internet Explorer does not determine file types by the file name extensions that they use." IE will attempt to open a file and look for things it recognizes (such as MIME type data). I think the best you can do is to create your ow ...Show All
Visual Studio VS 2005 Debugger does "run" instead of "step into"???
I am debugging a Win32 native application written in C++ with VS 2005 Professional, and everything goes well, I can step through the code, step into (and step out of) functions, can see the values of the variables, etc. EXCEPT that at some specific function (in my code), when I press F11 to step into it, the debugger "runs" instead, as if I'd have pressed F5. This happens only with one function (so far), I can step into other functions without problems. The function does not have any attributes that would somehow make it different from other functions in the same .cpp file, no special optimization, no #pragmas, nothing, just a regular C++ ...Show All
Visual Studio Remote debugging
Hi. I am trying to, for the first time, attach a remote debugger (if it is possible) in my application I basically have a webservice, everything works fine locally (created in .NET 1.1) but when uploaded to my web site, it fails for some reason and want to debug on where it fails and why. Other webservices works well! How can I attach a remote debugger in VS.NET 2005 for a WebService that was written in .NET 1.1 Is it possible So pretty much if I step through my code in the debugger locally, when the client calls the webservice I want to be able to go to that remote webservice and step through and see what ...Show All
Microsoft ISV Community Center Forums Help with simple program
Hi, I’m new at this whole thing. I’m trying to help a friend with a macro (VBA for Excel). Its very simple, he has all these country codes on a spreadsheet. We want the program to read the code and the write the country code next to it. We’ve created a two dimensional array with all the codes and country names. Here’s the code: Dim selNum As String Dim trim As String Dim Arr(70, 1) As String Arr(0, 0) = 809280 Arr(0, 1) = "Argentina" . . . Arr(70, 0) = 809641 Arr(70, 1) = "Zambia" For i = 2 To Selection.Rows.Count selNum = Cells(i, 1) ...Show All
.NET Development How do I change the date format in a form? Havin a major nightmare!!!
I have a DataTable with a column defined as a date type. The Data Table is not linked to a SQL database or MS Access but I read and write to it from text files. This date column is databound into a Form as a Text Box. The DataTable takes format “Month DD, YYYY” e.g. "May 04, 2005" This is displayed in the form as “DD/MM/YYYY HH(24):MI:SS” e.g. "04/05/2005, 00:00:00" How do I change the form display and accept user input in a more friendly format, e.g. something like “O4-MAY-2005” Hi, Upon binding the Table to the textbox you can specify your own format: ...Show All
