Stigern's Q&A profile
Windows Forms Grouping
Has anyone had any luck creating a control that is derived from the DataGridView that implements grouping This control is a major letdown without it. What specifically do you mean by grouping Have you check out the TreeGridView sample that I built on top of the DataGridView http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=194921&SiteID=1 -mark DataGridView Program Manager Microsoft This post is provided "as-is" ...Show All
SQL Server DTS Fully process dimensions code
Using the following code to fully process dimension in a catalog on SQL Server 2000. for each objDimension in dsoDatabase.Dimensions dsoDimension = objDimension dsoDimension.Process processFull Next However this appears to do an incremental process of dimension rather than full process. (I would expect the cubes to be unprocessed after a full process. Whats wrong with the code. Cheers. Mark. for each objDimension in dsoDatabase.Dimensions dsoDimension = objDimension dsoDimension.Process (1) Next Have tested this and believe it to work. Still do not understand why above did not work. ...Show All
Visual Studio How to create a component designer type designer?
I'm looking for help or preferably an example in creating something that pretty much does the same thing as the Componet Designer. Ideally I would like a developer to pick my object type from the add new item class, which would create <classname>.cs/vb and <classname>.designer.cs/vb files. My user control would be created to use as the design surface, and my designer would have control over the <classname>.designer.cs/vb file using CodeDom to generate the partial class implementation. I am working on an IRootDesigner implementation right now, but I suspect that that will not be completely sufficient and I keep getting hopelessly lost looking at things like TypeCodeDomSerializer,etc. Any help is appreciated. Darre ...Show All
Windows Forms Simple Control Binding to objects
Ok, I feel like an idiot but I cannot get simple control binding to work. I've set up a DataSource and mapped it to my custom object. Assigned the DataSource and the Databinding to several of the properties of the object on the actual control. But when I run the form - no databinding. What am I missing Apparently there needs to be something to trigger the binding, but looking through the method interface there appears to be nothing there... Also, anybody have a link to where databinding basics are described for Winforms 2.0 I've searched around and there are all sorts of articles that talk about list binding and using the navigator control. I'm looking for something more basic that talks just about simple control binding and manuall ...Show All
Visual C++ Memory leak in vc2003 and vc2005
hi i have a c++ application that does not use MFC or any windows headers. it is a console application that uses 2 external libs. namels jpeg64.dll and vl.lib [for matrices] . my application was leaking memory and i fixed most of it and the remaning leaks where fixed using insure++. But insure++ still shows memory leaking and this hapens inside the winMainCrt function, malloc.c and calloc.c, for which i have not control of. Now i tried to write a simple c/c++ program like this int main(int argc, char **argv) { return 1; } and the same leak is reported. So i went and downloaded the Borland c++ editor and then ran the same program and insure++ reported no leaks for the program above!! whts exactly is hapening here, anyone s ...Show All
Visual FoxPro auto increment
I have a table that I want to add a auto increment integer field. I go into the database designer, Right click on the table I want to add the field to then select modify. Then I insert a field and give it the name client_id set the type to Integer (autoinc) it defaults to a width of 4. Then I tell it to index it accending. This works but on all the existing records it sets the field to 0. If I add a new record it does increment. Thank You AutoInc fields are readonly and if you do add to an existing table then existing records are initialized to 0 (you cannot change them in a loop). However you can do this: ALTER table myTable ADD COLUMN myAIColumn i AUTOINC NEXTVALUE RECCOUNT ()+ 1 STEP 1 DEF ...Show All
Game Technologies: DirectX, XNA, XACT, etc. how to get input from various keyboards with directinput
First sorry for my bad english... I want to get input from various USB keyboard, and I need to know from which keyboard I get the keystroke, I prove the directinput objects in VB 2005. This are the code that I use in the declaration section (in this case I use 2 USB Keyboard) Implements DirectXEvent8 Private MiDirectX As New DirectX8 Private MiDirectInput As DirectInput8 'the object to my first keyboard Private diDev As DirectInputDevice8 'the object to my second keyboard Private diDev2 As DirectInputDevice8 ' Private keyState As DIKEYBOARDSTATE Private keyState2 As DIKEYBOARDSTATE Private ManejaEvento As Long Private ManejaEvento2 As Long ------------- ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Copying between textures
Hi, I am currently working on a tile map engine and need the ability to build a texture (map) from my tile set which is a texture with all my tiles contained within it. I have been able to create a new texture but cannot see how I can copy sections of my tile set into this texture. If someone could give me some pointers, it would be much appreciated. TIA, Andy Lee, Please feel free to use the code. Using it, I have been able to complete my tile engine. Unfortunately I am finding a bit of a performance issue rendering the map when it is scrolled which I will need to look into. Any improvements I make to the previously posted code to speed it up, I will post here. Best Regards Andy ...Show All
Visual Basic Generating Reports using SQL Server 2005 from a VB Application?
Can i use SQL Server 2005 for my report generation and is there any possibility to call that service frm my VB application ...Show All
SQL Server Database Diagram error on SQL 2005
I upgraded from SQL 2000 to SQL 2005. The database owner is sa and I am logging in as sa in Management Studio. But when I click on Database diagrams I get the following error "Database diagram support objects cannot be installed because this database does not have a valid owner. To continue, first use the Files page of the Database Properties dialog box or the ALTER AUTHORIZATION statement to set the database owner to a valid login, then add the database diagram support objects." How can I fix it hungfut wrote: Can you run the sp_dbcmptlevel to check the db compatiblity level for the db you are having problem If it's 80 or lower could you try to set it again to 90 to see if t ...Show All
Visual Studio 2008 (Pre-release) How to make a WCF Service "live" until user shutsdown the service.
I have a WCF service which is loaded in a Win32 service through COM interop. This WCF service starts when the Win32 service starts and should only die when the Win32 service is shutdown. WCF Service is defined as singelton and it has to serve all the clients using the same instance. [ Serializable ] [ ServiceContract (CallbackContract = typeof ( IMy Service Event ))] public interface IMy Service {} ---------------------------------------------------------------------------------------------------------------------------------------------------------- [ Serializable ] [ ServiceBehavior (ConcurrencyMode = ConcurrencyMode .Multiple,InstanceContextMode = InstanceContextMode .Single)] public class My Se ...Show All
Visual C# How to convert string in ABCD format in to Unique integer
hi Is there any way to convert string in this format ABCD into a unique integer like 1234 Example: GWRS = 5232 SRWG = 7845 WTMS = 15 YOMS = 142 int X = ConvertMyString("GWRS"); private int ConvertMyString(string sTring) { } and so on ...... You are right, I skipped the method name. int n = BitConverter .ToInt32 (Encoding.ASCII.GetBytes ("ABCD"), 0); Sorry. --mc ...Show All
Software Development for Windows Vista Passing DependencyProperty parameters into a dynamically created activity?
Our project goal is to make a Workflow Manager of sorts that will, based on a given datatype passed into the workflow via ExternalEventArgs, dynamically load the correct associated activity to complete specific business processes related to the datatype. Once the ExternalEventArg parameter is sent into the workflow, a policy determines what datatype it is and what activity to load based on the datatype. Unfortunately, due to what appear to be limitations in the Rule Set Editor, string versions of the datatypes must be used and reflective invokation of the activity was required. Dynamic loading of the activity was loosely from Lab 9 of the Windows Workflow Foundation Labs (Modifying Workflow Models at Runtime with Workflow Change) and we we ...Show All
Visual Studio Team System Unable to Merge
I have been unable to merge changed files from a Source to a Destination. I select the Source project and Merge. I then select the Destination and tell it to use a specific changeset. The changed file then appears in the Pending Changes tab. I select the file and Check In. A resolve files dialog then appears. There are two options: Undo local changes and Igrnore Conflict. If I select Undo local changes the file disappears from Pending Changes but never is actually merged and does not appear in the History. If I select Ignore Conflict the file still appears in Pending Changes and nothing ever happens. Is this a bug and, if so, how do I work around it I tried tf merge and tf resolve and never go ...Show All
Visual C++ VC++ won't run from source control: "The system cannot execute the specified program"
Hi, I've installed VS 2005 C++ Express into source control and it won't work. I've wasted the better part of a day so far trying to get it to work. The error message I get when trying to run something as simple as lib.exe is: "The system cannot execute the specified program." When I load up the .exe in the dependency walker (depends.exe), it says: Error: The Side-by-Side configuration information in "y:\compilers\Microsoft Visual Studio 8\VC\bin\LIB.EXE" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001) . The only dependency shown for LIB.EXE other than KERNEL32.DLL is MSVCR80.DLL. I've tried copying all t ...Show All
