iljforever's Q&A profile
Windows Forms Custom displaymember and valuemember in a bound Combobox?
I have created a form with a combobox that is bound to the database table field "State". The State field use numeric values 0,1,2,3,4 according to the state. The problem is that i don't want to show the exact same values it retrieves from DB, i rather want to display a list of possible "States", with custom text corresponding to the value. Example: The value 0 actually means "Stopped". So i want it to add the option "Stopped" (displaymember) in the list, with value 0. Whenever i select "Stopped" in the list and save the form, i want the value "0" to be saved in the database. How do i do this I k ...Show All
Software Development for Windows Vista Trouble with WebService and Persistence
Hello all, I'm newer to the workflow world and I have a few questions : First, a little background: I've currently got a very simple sequential workflow wraped in WebServiceInput and WebServiceOutput and all interfaces and everything are setup correctly. I use the publish as web service option and all is well. I then try to execute the web service using the "Invoke" button that is on the default web service form: I then get this error: System.InvalidOperationException: The workflow hosting environment does not have a persistence service a ...Show All
Windows Forms How do you get the row number from datagridview
I added a datagridview to a form programmatically. One of the columns is a combobox and one of the columns (caseID) is not visible. All columns execpt for the combo box are text boxes. When I add a new row I need to know the number of that row so that I can set the caseID cell to its new value. When I used a datagrid I was able to get the number with this syntax: datagridx.currentRowIndex What is the correct syntax to get a datagridview row number datagridviewx.currentrow.index doesn't work. Thanks. Okay thanks ...Show All
Smart Device Development Visual Studio 2005 Beta 2 - Emulator problem
Hi! I've got a problem and wonder if anyone else has it (and has resolved it ) My problem is as follows .. I create a new device application and try to run in in emulator.. the emulator starts just fine, but it won't connect to it! At all! The error is "Connection failed. The system cannot find the path specified." Thanks in advance, Tadej I had the same problem so from a previous tip for vs.net 2005 beta 1 I added the service Virtual Machine Network Services to my network connection. I still got the same error so then I saw this tip and deleted the CoreCon directory and it worked fine. (I tried removing ...Show All
SQL Server Lookup - full caching vs partial caching vs no caching
I needed to do lookup on tables with approx 1 million records (how else do I know if record already exists ). Full caching: SSIS caches all million records (consuming around 1 GB RAM) and cripples my lowly system with only 1GB physical RAM. This works for now, but the lookup tables will keep on growing. This means that full pre-caching may not scale for this scenario. Partial caching and No caching: I don't really know how SSIS works in these modes. I can make my guesses but it will be great if someone can explain those. The behavior that I see when I use partial cache of varying sizes or when I use no cache at ...Show All
Visual C++ very dissappointed with visual c++ 2005
I was astonished on how c++ gained so much added bulk... PLZ... VC++ 2005 is anything but iso C++ compatible... "99.9% iso c++ compatible"... it has like 30 extra keywords that shouldn't be there in the first place... Looks like I will have to go with either c# or start getting to be friends with an old pal called GCC. This is just a feature request. TOMDX wrote: TOMDX wrote: I was astonished on how c++ gained so much added bulk... PLZ... VC++ 2005 is anything but iso C++ compatible... "99.9% iso c++ compatible"... it has like 30 extra keywords t ...Show All
Windows Forms Multiple Columns With Same Mapping Name?
I have a situation where it would be desirable for me for the datagrid to either: a) support having multiple columns with the same mapping name b) allow me to control the evaluation of matching mapping name to properties. Basically I have a custom object like: Public Class Person Public Property Name() As String Public Property Ad ...Show All
Visual Studio Help!
I downloaded both the framwork and the SDK (2.0), installed them... now what I still cannot use the System.Collections.Generic I think my visual studio has not realized I installed some stuff ^^ The 2.0 framerwork only works in the 2005 ide. . .you are forced to use the command line compiler or the express editions. . . Hope you didn't pay alot for that VS 2003. :( hurry and you can still get a good deal on an upgrade! ...Show All
Visual C# Convert VC 6.0 to C#
I have a source code written in VC 6.0 and I want to convert it to C# Is there any tool can do that Thks No, that is not possible, you'd have to rewrite the app. C# and C++ are totally different languages, supported by different libraries, only the most trivial code would convert without changes. ...Show All
SQL Server How can I run SQL Server??
Hi there. How can I run SQL Server in my PC. I am using windows xp, SQL server Express 2005 and it is in my local pc. thanks in advanced Hi, sure you can use it on your computer, just install it and make sure you turn on tremote connections if cou want to connect from antoher computer to your installation. HTH, Jens Suessmeyer. ---- http://www.sqlserver2005.de ---- ...Show All
Visual Studio VSS Automation - Error
Hi This is my first attempt at a post and also at using VSS integration so bear with me. Using example code taken from what looks like the most popular post re Automation, I created a small VB6 app to look at the status of a file. It doesn't work!!! On the .Open call, I get an Automation Error/Unspecified Error. I was then asked to look at an app that a colleague had written some time ago that again uses VSS automation but in a more complex way, it worked on his machine but not anyone elses. I got the code and ran it on my machine and got exactly the same error as above. From what I can make out, the only difference between his machine and ...Show All
Visual Studio Team System "Currituck WITs" failure whilst trying to create a new project...
I am getting a "Currituck WITs failed" when I try and create a new project, the exception has the following... System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'PK__@members__24C087ED'. Cannot insert duplicate key in object 'dbo.@members'. The trouble is I can't seem to find which database or table this is refering too. Anyone any idea Cheers Simon All fixed. i did a complete removal of everything and reinstalled. Worked perfectly. Thanks for your help. Cheers S ...Show All
Visual C++ Copy contents of int to float
I'm trying to copy the contents of an int variable into a float variable... In native code I could just do a memcpy, but I'm having trouble figuring out how to do it with the new .NET code in Visual Studio 2005. So for example, I have an integer value of: 1073741824 or 0x40000000 in hex, and I want it to copy it into a float variable thus having a value of 2.0. Basically I want to preserve the bits, but have the variable be a different type. I don't want C++ to do any conversions behind the scenes for me. You could use a union. As an example, the following C++/CLI code outputs "2": union IntFl ...Show All
Visual Studio Can't run the Guidance Package
Dear Sir, Hello. I have installed the SC-BAT, and have been able to execute the sample application but can't seem to run the Guidance Package or enable the Guidance Package Manager. I have followed the instructions for doing both but to no avail. When I build the guidance package solution (GuidanceAutomation.sln), I get the following output: ------ Build started: Project: Library, Configuration: Debug Any CPU ------ Library -> C:\Program Files\Microsoft SC-BAT\GuidancePkg\Library\bin\Debug\GATLibrary.dll ------ Build started: Project: SmartClientDevelopmentInstaller, Configuration: Debug Any CPU ------ SmartClientDevelop ...Show All
Software Development for Windows Vista SqlTrackingQuery comments and questions
I've just installed beta 2, and I'm glad to say I find things much more robust in general, and somewhat faster (though the fact that I got a new machine might have something to do with it ). Anyway, I've been checking the new SqlTrackingQuery facilities and I gotta say it's very nice to have something like this; it really seems like it is something useful in building more robust implementations and providing tooling for problem diagnose and stuff like that. However, I do have a few comments and questions on it. The first one is: Why is the API so based on the use of List<T> My main reason for asking is that exposing List<T> types ...Show All
