Sameer C T's Q&A profile
Windows Forms ListView columns
Can a ListView control contain columns with objects instead of just text I want to be able to add columns with checkboxes, but it doesn't appear to support this. I know there is a checkbox property, but that only adds one checkbox column. If ListView doesn't support this, what control does Thanks, I'll give that a try. One  ...Show All
Visual Studio 2008 (Pre-release) Using svcutil /dconly on 3rd party schema
I am trying to create a data contract based on a 3rd party schema and am having no luck. Here is what I tried and the results that ensued. %program_dir%\svcutil.exe /dconly /l:cs /d:%output_dir% /o:%outputname% %files% ------------------- Original schema ------------------- Error: Type 'AbstractLocation' in namespace cannot be imported. Abstract on type is not supported. Either fix the schema to conform to DataContract type rules or use ImportXmlType or use a different formatter If you are using the /dconly option to import DataContract types, consider using xsd.exe instead. If you are trying to generate service proxy code ...Show All
Visual Studio Express Editions The resource editor
I have downloaded Visual C++ 2005 Express Edition and it generally appears good but one feature I am missing is the resource editor. Which version of Visual Studio would I need to buy to get the resource editor. Mog0 AFAIK there is no resource editor in the VC++ Express. You need the standard version at least. Maybe its possible to add a exiting resource file into the project and it will compile. AFAIK tis works. ...Show All
Visual C++ msdia80.dll installed with C++ 2005 Redistributable
After I ran vcredist_x64.exe on my computer (Windows x64), I have msdia80.dll copied on my C: drive (by the way my Windows is on the D: drive). The equivalent in 32 bits, vcredist_x86.exe, does not have the problem. The installer is version 2.0.50727.42 Anyone has seen this Is there a more recent version available I don't believe msdia80.dll should go directly on the C: drive. If this is the case then please log a bug at http://lab.msdn.microsoft.com/productfeedback/default.aspx . Thanks, Ayman Shoukry VC++ Team ...Show All
.NET Development Returning an object from remote server
Hi all, I have a window service as a remote server. It has a RemotingHelper component registered as a well known service. This component expose a method GetServiceObjec(string serviceObject) which accepts type information and returns the instance of it. The code is some what like this. public object GetServiceObject(string serviceObject) { object serviceInstance = Activator.CreateInstance("MyDataLibrary", serviceObject); return serviceInstance; } My client, an ASP.NET application, requests for the 'RemotingHelper ' component and invokes the GetServiceObject method passing the required type information. Code tha ...Show All
SQL Server Schema versioning - change schemaLocation, but keep same namespace ?
Where you have an XSD schema, and want to create a new version of the schema that adds a couple of elements, is changing the schemaLocation hint a sensible way to indicate that an XML document is using a newer version of the schema Or is changing the targetNamespace the way to do this For example: notice the different value for schemaLocation: <mt395 xmlns="urn:incident:mt395" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:incident:mt395 mt395-1.xsd" > <mt395 xmlns="urn:incident:mt395" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" x ...Show All
Visual Studio Team System Strange results for Code Coverage for a class using generics
Hi, I have a very strange result when I run code coverage. The result look like this (as I am not able to post a picture here, please look at http://spaces.msn.com/ralfkret/blog/cns!5AA01457E351459A!116.entry ). As you might notice I have a method "MoveNext" selected in the Code Coverage Result pane. But the class "ObjectConnector" does not have such a method. The code hightlighting in the editor window looks kind of strange to me as well: There are holes punched out of my perfectly good code (;-). Could it be, that there is a problem with code coverage for classes that use generics ralf p.s. I hope you can reach t ...Show All
SQL Server Simple Query Help
Not sure how to solve this syntax issue: SELECT rm . rmsacctnum , sum ( rf . rmstranamt ), rp . RMSRCVPCPL FROM RMASTER rm INNER JOIN RFINANL rf ON rf . RMSFILENUM = rm . RMSFILENUM INNER JOIN RPRDBAL rp ON rp . RMSFILENUM = rm . RMSFILENUM WHERE rp . RMSRCVPCPL = sum ( rf . rmstranamt ) GROUP BY rm . rmsacctnum , rf . rmstranamt , rp . RMSRCVPCPL SELECT rm . rmsacctnum, sum ( rf . rmstranamt ), rp . RMSRCVPCPL FROM RMASTER rm INNER JOIN RFINANL rf ON rf . RMSFILENUM = rm . RMSFILENUM INNER JOIN RPRDBAL rp ON rp . RMSFILENUM = rm . RMSFILEN ...Show All
Windows Forms Relational DataSet and Datagrid Insert
Hey All, I am having some issues getting my dataset and datagrids working together to insert relational data. Basically I have a contacts dataset with two tables a "Contacts" table with name, email, etc info and an "Address" table with address info and a foreign key contactId. 1 contact -> many addresses. Also have the relationship defined in ...Show All
Visual Studio Express Editions Saving and loading and conversion of saved file to a readable file
Alrighty here's my deal, I used this code to enable my program to save... I'm making this for all of you to use, please get the simple beta program I've made so far from http://www.johnplaird.com on the upper left hand corner is a download link called ("VB Pad"), anyway here's the problem... ' from tool box get a save dialog form to put on your form, or this wont work. ' The code private sub is automatically loaded. Private Sub SaveFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles SaveFileDialog1.FileOk ' this is what you need Try My.Computer.FileSystem.WriteAl ...Show All
Smart Device Development Serial port support
I am trying to attach the serial port 1 of the emulator to the GPS receiver connected to my desktop. I can either use USB or Bluetooth GPS receivers, and they work fine on the desktop. However I can't seem to get it to work on the emulator USB: setup works (can select port) but no data is transmitted Bluetooth: COMport cannot be opened, setup fails. Are you saying that only plain old serial GPS receivers connected to COM1 on the desktop are supported Didn't they stop producing serial GPS receivers a decade ago FWIW, you may also want to check this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1134808&SiteID= ...Show All
SQL Server connect to local SQL2000 server from IDE
Can I connect to a local SQL2000 server from the IDE. I saw the "SQL Server Instance Name" option and tried to change it to both (local) and SQL2K, but it then tries to connect to ./SQL2K etc and fails. I can only seem to (1) connect to a named instance (./namedinstancename), which I do not use. (2) be able to attach a new mdf, rather than connect to an existing db I know that the express edition is restricted to local dbs, but is it also restricted to named instances Thanks If the SQL2k instance is a default instance then you can connect just by using . or (local) or <<machinename>>. There is n ...Show All
Visual Studio Team System Problem accessing Performance Counters
I'm running some load tests and I'm getting errors when trying to access SQL stats. I see several msgs like the following at the start of the run: Exception LoadTestCounterCategoryNotFoundException The performance counter category 'SQLServer:Access Methods' cannot be accessed on computer 'sqlsrvname (Category does not exist.) ; check that the category and computer names are correct. Needless to say, the computer name is correct and it is running SQL. What do I need to do to get these counters initialized properly Matt A few things to check. Can you view these counters using perfmon Bring up perfmon on the machine whic ...Show All
Visual C# how do i prevent "show desktop" or "windows key+m" from minimizing my program?
hi, i don't want my program to be on "TopMost" but i also don't want it to minimize. Never. even if i disable the minimize feature, the program can still be minimized by clicking on the "show desktop" icon or pressing Windows Key+M. I'd like to prevent that. Can someone tell me a possible way to do it btw, the "show desktop" button doesn't trigger the 'resize' or 'changesize' event in the form. Thanks, For the heck of it...I tried to to do this with Desawares subclassing ocx. (the best I know of) You can stop the minimize event with this....but WinKey m...will always minimize it. Looks like the only way is ...Show All
Windows Forms Is ListBox the only control in Forms to allow multiple selections?
I'm having a terrible job getting a mutli-select listbox to work from a dataset... just keeps crashing my app and it appears to be something to do with the fact I have SelectionMode = MultiSimple. Before going into my crashes etc here is there any other reliable way in Windows Forms I can use a multi-select dropdown or listbox style control Can ...Show All
