komomomo's Q&A profile
.NET Development Delegate help?
In a VB app... A system timer callback method is reading external hardware. The callback method generates data to be displayed on a win form, but the callback method writes to the form have no affect. I think it is because the callbacks are a diffferent thread( ) than what owns the form. I also think I need to create a delegate for the callback to use to access the form. I'm not a total newbie, but I don't understand the msdn docs on creating delegates. Can someone please get me started in the right direction Steve InvokeRequired() returns False System.Timers.Timer.Elapsed most definitely runs on another thread. InvokeRequired() would only return False if the form wasn't yet created. That ...Show All
Connected Services Framework Identity Manager - Tools and Utilities
Hi, IDM Spy and SSOManage utilities was there in CSF 2.5 for Identity Mapping. I want to know about CSF 3.0, either same utilities are available or any any new utilities are included Rgs Vasu We have replaced those tools with MMC for IDM. Using the Management console for IDM you could create an Application as well as Secondary credentails in SSO. This also enforces you indirectly to follow the best practices of having the services registered in Service Catalog. You could use the MMC for AD to perform the rest of the operations like Creating User / Group / Org. Thanks ...Show All
SQL Server Use regular DataTables for a local SQL report?
Hey all, I have a local Sql report. Right now I am using the DataSet objects and table adapters with binding sources to get all the data for my reports. I would like to just use my DAL, which returns regular DataTables. Can I bind these and add them as sources to the report How would I fill in the fields of the report without using the DataSet object Is this possible Thanks. Why not create a new dataset with the one table as the single item HTH, Jens SUessmeyer. --- http://www.sqlserver2005.de --- ...Show All
.NET Development Problem sharing custom data types across web services
Hi all, I'm having a bit of trouble sharing some user defined objects across multiple web services. FYI I'm using visual studio team system, and adding my web services using the application designer, so most of the web service code is auto generated. Alright, this is the situation. I have a class library in which my custom data types are defined, lets say the namespace for this class library is clibrary, and there is a class representing a custom object within this library called CustomObject. I also have two web services, service 1 and service 2, with different namespaces ws1 for service1 and ws2 for service2. Both web services have a reference to the library containing my custom object. Service1 has a web method GetCustomObj ...Show All
SQL Server SQL Server 2005 Service Pack 2 -- Now Available
SQL Server 2005 Service Pack 2 has been released to the web. Many of the questions asked on this forum will be solved by applying Service Pack 2. Please take the time to read about the many benefits this service pack provides. SQL Server 2005 Service Pack 2: http://www.microsoft.com/sql/sp2.mspx SQL Server 2005 Service Pack 2 blogs: http://blogs.msdn.com/sqlrem/archive/tags/SQL+Server+2005+-+SP2/default.aspx Paul A. Mestemaker II Program Manager Microsoft SQL Server Manageability http://blogs.msdn.com/sqlrem/ What is new in SP2 http://download.microsoft.com/download/2/b/5/2b5e5d37-9b17-423d-bc8f-b11ecd4195b4/WhatsNewSQL2005SP2.htm#BKMK_DatabaseEngine list of Bugs fixed http://support.microsoft. ...Show All
Visual Studio Express Editions I am so lost.
I have downloaded MS Visual C++ Express, and I simply want to take the below code, "Compile it and run it on my computer". I have no idea what "project" template to use, how to compile it so I get an executable program, and which items are "constants". Any help would be appreciated. (I just spent 20 minutes searching for a way to turn off smilies - they are munging my script.) Note: this won't compile on VS2005 because MS is apparently using "wide strings". So you have to convert all the char stuff to WCHAR. You also need to put an L in front of all the constants, like this: L"Hello, world." // slice.cpp : Defines the entry point for the console application. // #include L&quo ...Show All
SQL Server Drop Stored Procedure causing Dropped Tables
Hey guys, has anyone ever seen this happen: Try to move stored proc from one DB to another using DTS, errors on create proc. Create proc manually. Three tables referenced by that stored proc have been dropped and re-created with the same table structure. I'm not 100% certain that it happened at exactly the same time, but it seems to be around the same time. Any ideas Anyone seen this happen before You will have to check the options you picked for the Transfer task in your DTS package. Did you ask it to move dependent objects also For more help on the DTS package/tasks, please post in the SQL Server Integration Services forum. ...Show All
Visual Studio Team System Build with tests fails with no indication of where
I have setup two builds on my TFS project - one to run when code is checked in that only verifies that the code will build, and one to be run automatically that will run our tests. The first build appears to work correctly, but when I run the second (from my VS) it fails. When I look at the BuildLog.txt file, I can't see any failures, and the build results in VS show red "X"s next to the "Running tests" and "Running tests for Any CPU/Debug" entries. I have looked at this post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=673795&SiteID=1 and based on that tried installing VS Test edition on the build machine, with no change in the results. I am running Team Suite on my machine. Can anyone ...Show All
Visual FoxPro Where does the code go when adding to a grid
My grid is programatically created. I would like to "fire" the Thisform.grditem.column1.text1.programaticChange event , however It does not exist visualy to do so. The value of the text box is altered but I do not know how to change the main table. Where would the code go My goal has been to change the value in the main table from a select statement cursor. Any help would be appreciated. Richard Richard, When you are working with a grid, you are working with the grid's underlying cursor. (Note that a cursor has a RecordSource not a RowSource.) For this reason, you don't really have to worry about programmatically changing the data in the grid. Instead, cha ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Global profile settings
I was playing around with the RocketCommander game and immediately realized I needed the Y axis inverted. Is there any way to read the profile global settings from XNA If not, I suppose each XNA game will need to duplicate these settings. The profile settings aren't currently exposed in XNA. Please file a suggestion over on the Connect site if you think this feature would be important to have in future versions. ...Show All
Visual Studio Express Editions I want that my form will be stretch for any size that the user want??
Hi, In the property of the form I change: autosize => True Autosizemode=> GrowAndShring but when the application run and I shrink the form it doesn't stretch to the new size and I lose details from the right and down of my form. What more I need to do Regards, Yaniv It is a large topic, I'll try to be brief. Set the form's AutoSize = false, AutoSizeMode = GrowOnly. Drop 4 labels on the 4 corners of the form, a textbox in the middle. Set the labels' Anchor property to the corner they're in, the textbox to left,right. Run and resize the form and observe. You can use the Dock property to make a control always fill with width and/or height of the form. For m ...Show All
SQL Server SELECT with INSERT
Hi. I have 3 tables: Table1: AccountInfo AccountInfoID bigint <-- primary key AccountNumber char PostingDate datetime TransactionReferenceNumber char SequenceNumber numeric Table2: LodgingSummary LodgingSummaryID bigint AccountInfoID bigint <-- foreign key LoadTransactionCode tinyint NoShowIndicator decimal CheckInDate datetime DailyRoomRate decimal TotalOtherCharges decimal Table3: Load_LodgingSummary LodgingSummaryID bigint LoadTransactionCode tinyint AccountNumber varchar PostingDate datetime TransactionReferenceNumber varchar SequenceNumber numeric NoShowIndicator numeric CheckInDate datetime DailyRoomRate numeric TotalOtherCharges numeric I need to insert the AccountInfoID from AccountInfo along with ...Show All
Visual Basic VS 2005 - Reading XML config file
My solution consists of a Windows Library (that creates a DLL), an EXE that is the Windows Service and a Setup project for deployment. The Windows Service references the DLL project. Everything is installed and deployed. 1. When I run the service, my code needs the current directory of my installed windows service application and library (c:\Program Files\Perf\PerfService in this case) but when I use the following code: path = My .Computer.FileSystem.CurrentDirectory It returns : C:\WINDOWS\SYSTEM32 How do I get where my DLL and EXE are installed 2. I am using a My.Settings config file (app.config) to store application settings for the DLL. How do I include this in my Setup project so that I can manually change settin ...Show All
Visual C++ Automatically setting focus to edit box in a dialog box
I have a modeless dialog box that has an edit box and a button on it. A command is typed into the dialog box and then the user clicks the button (or just hits the enter key) to dispatch the command. The program has several other windows running, but when the program starts, and after each command, the focus is properly set back to the dialog box. The problem is, you must still click with your mouse inside the edit box to get the cursor there and be able to type the command. Is there a way to make it so that when the focus goes to my dialog box, the text box is already active so that I can just start typing without having to use my mouse to click in the text box In case it is relevant, I am working in VC++ 6.0. ...Show All
Visual Studio Express Editions Using grips to move
Ok I've been trying to do this for like 3 weeks now. I see that there are a bunch of things such as the toolstrip and statusbars that have grips on them. The only problem is that they don't do anything. I can't seem to figure out how to access the grips so that a user could actually USE them to move the object around. I've developed the code for using them.. Now I just have to figure out how to use the grips.. Isn't there like a ToolStripGrip.Click or something It's cool. I think it turned out to be a lot easier to just draw my own grips and use them along with a code similar to the one you posted ...Show All
