GGardiner's Q&A profile
Windows Forms Sort Icons in ListView Control Header
Hi, How can I add sort icons (symbols like up arrow and down arrow) in a ListView Control's header If you look at the ColumnHeader class, you'll see that it has ImageIndex, ImageKey, and ImageList properties. So create an ImageList with the two icons, connect it to the column headers ImageList property, and set the ImageIndex/ImageKey property, and away you go. Only problem is that the image is to the LEFT of the text, not the right. If it HAS to be to the right, I have sometimes just used small V ("v") and Caret ("^") after the header text. ...Show All
SQL Server RunningValue question
I have a form that uses some header information (like client ID with name, address, etc) and then uses a table for orders that customer has placed. I now need to print something like a page number (but not in the header or footer). When I try RowNumber, this does not work as the dataset is returning multiple records for the first customer and then the next item in the list (the next customer ID) skips the number of records from the first. So I need the first one to have 1, the second to have 2 and so on. I tries RunningValue, but for each record it starts back at 1. What I need is like a counter. How would I go about this and thanks for the help. Using this I get an error message about aggregate functio ...Show All
SQL Server SSIS Validating Data
Hi there, I have a Problem with my SSIS and it is that when you open the package it says "Validating <Data Flow>" and it takes a loooooong time to finaly open ( by long I mean like 3 or 4 hours to just for open!!!). In 3 of the DF, I have conections to a Unisys server and in exactly in this DF is where it takes its time. This Unisys system its kind a slow but not that slow. I am running on a server that have 4 G and 8 processors, so it cant be the machine. my question is, How can I make it validate faster I have tried to work Offline but when I run the package I need to be online. Any Ideas Am I doing anything wrong here thanks! Thanks for providing such a quick response! I think j ...Show All
Visual C++ Problem with DialogBox-will not halt the program
Hi all. I hope this question is in the right place... I have a confirmation box in my program, and i wish for it to stop and wait for confirmation before continueing. I use this line: MessageBox(hDlg,"CONFIRM","CONFIRM", MB_YESNO | MB_ICONINFORMATION|MB_APPLMODAL); But the program keeps receiving and handling messages although it should wait for me to click on the confirmation box. What should I do to correct this Thanks in advance, Moshe OK, thanks - but I have a few questions: 1. The situation is caused only because I call a messagebox, or the program will process new messages even if it's still in the middle of handling old ones 2. How does the system handle this ...Show All
Visual Studio 2008 (Pre-release) BindingList<T>, works via remoting but not via WCF
I have a custom list EntityCollection<T> which inherits from BindingList<T> When I try and get one of these custom collections through WCF I get an error similar to that below; >> Type 'System.DelegateSerializationHolder+DelegateEntry' >> with data contract name is not expected. Add any types not >> known statically to the list of known types - for example, by using >> the KnownTypeAttribute attribute or by adding them to the >> list of known types passed to >> DataContractSerializer. Im not using a generated proxy, I am using the same assembly both on the client and the server (this is a closed system) this seems to work fine via .NET remoting - how can ...Show All
Visual Studio Express Editions Automatically Resizing Data Grid View Control
Hi, is there a property I can set to automatically resize the data grid view control as rows are added The rows will be added programmatically. Thanks in advance. Peter Winson Thanks Thiru but I don't want scroll bars. What I would like to happen (automatically of course) is for the data grid view control to resize itself to just show 3 rows of data if I have three rows of data. And If I add another row, it will resize to only show four rows. I know you can do this by writing some code, but is there a property I can set Sort of like the AutoSizeMode property for forms. Pete ...Show All
Visual Studio Team System LoadTest PerfCounters and 64Bits WebServer
Hi all. I'm running ASP.Net2.0 in a 64b server. When I run LoadTests from a 32b machine, the ASP.Net related perf counters are empty. To see this counters with perfmon (locally in the server) I changed the key: HKLM\System\CurrentControlSet\Services\Sysmonlog\imagepath to %SystemRoot%\syswow64\smlogsvc.exe It works fine in the server, but not when I use perfmon from remote (32b) machines How can I include 64b the perf counters in the LoadTest Session inside a VS 32b Thx in advance rido check out the following link. Reading 32-bit counters on a 64-bit machine ...Show All
SQL Server Data does not fit....
I am doing a simple update statement but am getting an error. Cannot create a row of size 10675 which is greater than the allowable maximum of 8060. The statement has been terminated. I am inserting data that is as big as 7500 characters into a varchar(7500) field. I have made sure that my column is 7500 in length. the only way it fits is if I cut it down to 4950 characters... Any Ideas this table gets populated by a process that limits the data to 7500 CREATE TABLE [dbo].[Search_hold] ( [id] [char] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [credits] [varchar] (7500) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ) ON [PRIMARY] When I do a simple update to this table is where I g ...Show All
Visual Studio Express Editions grrrr - registering
For some reason the registration page says my email address is invalid so i can't get the key, but its the same one i logged on with. Help Thanks!! swizzle, if you are using the online installation the registration key will be on the webpage you get to after login in to and confirming your profile. It will not be in the e-mail. If you missed it you can re-register. If you used the offline (cd/dvd) installation you can register but you will not get nor need a registration key. Just ignore the naging that you should register. ...Show All
Visual C++ How to make a compiler link with __CxxFrameHandler instead of __CxxFrameHandler3
How to make a compiler link with __CxxFrameHandler instead of __CxxFrameHandler3. Is there is any option available. We are developing printer drivers for Vista Operating system, for the XPS print path, using PT/PC support. Problem: Though we could install the binaries on the Vista OS, we were not able to install the Vista binary set on a XP operating system. We have installed the .Net3.0 on XP Operating system. Issue: On investigation, we found that one of our DLL was referring to some functions like : * strcat_s, * _itow_s, * __CxxFrameHandler3, * _except_handler4_common The issue is that the above functions "are not" exported by MSVCRT.DLL available on XP SP2 OS. Build Setup: We are currently building the dll ...Show All
SQL Server SQL Cluster Connection issues
We have a cluster that keeps experiencing intermittent connection problems. Everything from replication falling over (and working perfectly when started again) to SSIS packages failing (and working perfectly when restarted again). Errors messages vary but all pretty much have the same in common - no connection. Eg. TCP Provider: The specified network name is no longer available;Connection may not be configured correctly etc. We have another cluster setup in pretty much the same way, with pretty much the same processes, also replicating.This cluster never has issues. The ssis packages are run from a different server connecting to the clusters, and the distributor both clusters use is also on another server. This seems to be, in my ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 1280x720 For Space War??!?!?
OK... maybe it's just me but... The SpaceWar starter kit requires that the machine is capable of 3D display of 1280x720 isn't that a little bit big for normal users For an actual game, yes that would be appropraite for the 360 and high end systems. But SpaceWar is supposed to be a starter kit demonstration for students and beginner programmers to learn with, most normal notebooks which students around my area carry only supports displays of up to 1024x720 and with rudimentary graphics acceleration. The aging Toshiba M200 which I use have a GeforceFX but it also can't muster up a 3D display of 1280x720 (code died trying to run). I changed the code so that the window would be smaller, but the whole game seems to be hard coded to wor ...Show All
.NET Development How to map enumerated types in .Net WMI provider?
I am trying to create a C#-based .Net WMI provider to instrument an application I am developing. Classes and events work well except I would like to have an event that provides a member which is an enumerated type. Example: public enum StatusList { Running, Paused, Stopped } [ InstrumentationClass ( InstrumentationType .Event)] public class StatusChange : System.Management.Instrumentation. BaseEvent { public StatusList Status; } It seems to me that WMI supports enumerated types because they appear in the server explorer. Also when I generate C# WMI classes using that class generator, I get enumerated types in those classes. When I run the code above, I get the following err ...Show All
Visual C# Code convention
Hello, As a development team leader I have a difficulty to exlpain logically the following case: We write code in c#, designing classes that will hold data(stored in SQL DB). Let's say for example a class which will hold the DB user information. The DB table will hold the followin columns: [UserID],[UserFirstName],[UserLastName],etc... Now the class will hold the following properties: UserId,FirstName,LastName. The question is why using "UserId"(as the property name) and not just "ID" like any other native objects in the .net framework Thanks, Itzik Paz. I always name the properties the same as column names in my table. About your question, you can of course name the p ...Show All
Visual Studio Express Editions Lesson 10 code manually entered = errors - Help
Great lessons, even with a few small errors, but cannot get around this in l.10: System.IO. StreamReader sr = new System.IO. StreamReader (@cars.xml); MsgBox: '...the name'cars' does not exist in the current context'. Have copied cars.xml into the dir's Projects\...\bin\debug as told, but cannot get around error so cannot execute. What am I missing Read this webpage for the meaning of '@' ...Show All
