No-spam Sam's Q&A profile
Software Development for Windows Vista Custom EventListener Activity no longer works in RC2 or RC4
I created a custom EventListener Activity that creates a queue and then subscribes to it. However, when add a queue item to the queue, it is never processed by the activity. I also have a custom Scheduler Service, so I know work is being scheduled and executed for this workflow instance. The QueueNames are correct. The workflow instance in question executes until my EventListiner activity. It then persists and unloads. After some external work is completed, an item is queued up and the workflow is reloaded and schedule for execution. It then persists and unloads without running my activity This worked in Beta 2.2 and I haven't read anything that would indicate a change to how this worked. Any help would be greatly appreciated. ...Show All
Visual Basic Date Problem
Hi everyone~ I’m stumped on something that I thought would be simple. I’m trying to figure out how to determine if the LastModifiedDate of a file was yesterday. Not 24 hours ago, but simply yesterday. I have a third party program that converts files and moves them to a specific folder. Anything converted and moved after midnight gets a new date in the file name (MM/DD) and continues doing it’s thing. I want to set up an event that will work with only files that were created yesterday, even if they are less than an hour old. I don’t know if I am on the right track, but so far I have one variable (TodaysDate) as 09/03/06, and the file’s DateLastModified (FileDate) as 09/02/06. But now I can’t figure out how ...Show All
Visual Studio Change property value on decorator double click
Hi, I would like to implement the following feature: I have a text decorator on a relation, mapped on a property, which value is an enum. I want able the user to click on the text decorator, so the value is incremented. I have surcharged the OnDoucleClick() method of the TextField Class: internal class ClickableTextField : TextField { public override void OnDoubleClick( DiagramPointEventArgs e) { base .OnDoubleClick(e); // Do some code to change value of property associated with decorator } public ClickableTextField( string fieldName) : base (fieldName) { } } I have also overrided the initialisation of decorator so my class ClickableTextField is created in place ...Show All
Windows Forms ToolStripMenuItem
I have a form to which I have added a MenuStrip. In the MenuStrip I have added a ToolStripMenuItem to which I have added several other ToolStripMenuItems. I wish to control the enabled property of these ToolStripMenuItems by binding the enabled property to an ApplicationSetting (User scope). If the ApplicationSetting to which the enabled propety is bound changes from true to false, I would expect to see these controls switch from enabled to disabled. This is not the case. I then added a Button control to the form, and binded it's enabled property to the same ApplicationSetting, and it works as I expect. The ToolStripMenuItem's enabled property does respond to the ApplicationSetting when the form is first initialized, but does not respo ...Show All
SQL Server Dedicated Administrator Connection
Hi: I am trying to connect to my local instance of SQL Server 2005 using Dedicated Administrator Connection by using Admin:Servername\Instancename and I end up with the following error. Dedicated administrator connections are not supported. I enabled the connection in the SQL Configuration Manager and still get the error. Any ideas on how to resolve this error . Note: SQL Browser service is running. Thanks Ak The query below should return 1 row if you are connected using dedicated admin connection. It should not return any rows if you are not connected using DAC. select * from sys.dm_exec_connections ec join sys.endpoints e on ( ec . endpoint_id = ...Show All
Windows Live Developer Forums Problem Photo Upload Dialog: "THis folder has a new image format. The COnverter is downloading."
Does anyone have any insight as to what is causing the photo uploader not to recognize any photos in the My Pictures folder It shows "No photos in this folder" (when there are) and when you change to another folder containing photos it gives a dialog box " There are images with a new format in this folder. The converter is downloading". Well, there are the typical jpg photos in the folder, and when the dialog box goes away by itself, it still shows "no photos in folder". I've tried the whole reinstallation procedures, clearing cache, removing objects, etc. Every reinstall has the same problem. Any insights please -David This problem is driving me crazy. the photo upl ...Show All
.NET Development hi!! plz hurry up help ....i have a queue linklist data structure..
hi!! plz hurry up help ....i have a queue linklist data structures.......now in this queue objects are being stored.....problem arises when........i use the peek() function returns the object from the begining of the queue ,,,,,means it returns the first object ,,,,,but i have to returns all the object means first object ,second object ,third object,,,,in this queue,,,,,is there any function in c# which returns all the objects of queue or is there any way to do it..plz write a code in this respect,,,,,,,,,,,, thank u... You can read any of the data in the Queue by using an enumerator. Suppose your Queue is called q. The following code prints each member of the Queue without removing them. System.Collections.IEnumerator en = ...Show All
Visual Studio Print Layout mode showing incorrect # of pages at first
Sometimes when switching to Print Layout mode, it will say page 1 of 1, switch back to Interactive Mode and back to Print Layout mode again, and then it will display the correct # of pages. Anyone have any idea how to correct this FYI: I am using the report viewer in local mode. Most reports work just fine. I have re-installed SP1 and checked version nubers etc. but still get the same issue. Does anyone know of a workaround or whether there is another hotfix available which has not been included in SP1 Thanks, Mike ...Show All
Visual C++ Deployment
Hey guys, I know this may not be the most appriopriate place to ask a question liek this, but I really did nto know where else to ask it. I have made a CLR dll, and I'm really proud of my work, especially becuase it's my first real C++ project; do you guys know of a place where I could post my zip folder containing the dll and its doucmentation to share with the community I think other .NET devopers might find it a useful tool. also do you guys know of a place where I could get it peer reveiwed and tested for bugs You can submit it to The Code Project :- http://www.codeproject.com/info/submit.asp ...Show All
SQL Server top n'th within a group
Hello All! First of am using SQL Server 2000, so still in the dark ages, i am afraid. I have the data below SKU Date Qty E3013G/3 23/06/2006 10 E3013G/3 16/11/2006 100 E3013G/4 16/11/2006 150 E3015/3 15/08/2006 50 E3015/4 15/08/2006 250 E3015/5 23/06/2006 1 E3015/5 07/07/2006 6 E3015/5 15/08/2006 200 what i essentially want my data to look like is below SKU Date1 Qty1 Date2 Qty2 Date3 Qty3 E3013G/3 23/06/2006 10 16/11/2006 100 NULL NULL E3013G/4 16/11/2006 150 NULL NULL NULL NULL E3015/3 15/08/2006 50 NULL NULL NULL NULL E3015/4 15/08/2006 250 NULL NULL NULL NULL E3015/5 23/06/ ...Show All
SQL Server last time a table was used
Any way without a trigger to determine the last time a table was accessed we have duplicate tables accross some databases, and suspect we don't need a few of them. ;) They won't let me change the names and see who squeals. Yeah, forgot to mention I only have developer rights. <<sigh>> I was hoping there was an additional magic microsoft faerie out there that would somehow know. ...Show All
Visual Studio Express Editions how do we update our program?
how do we update our program for example i have a finish product and i install it to user's computer...in form1 i have datagridview and a button!!! i want to update my program and put some search button and textbox... how do we do that i saw some option when i publish my work to update... it require's a server... can we do that in shared computer how can i update my software install it again This option allows your compiled program to check for updates on a given folder which contains the solution files and updated versions. During initialization (program startup), once it sees that you have done an updated version it will ask you if you want to update your program. Not necessarily that you have a "server", you can also ...Show All
SQL Server populate Fulltext Perfomance issue
I am in the final stages of testing 2005 for our upgrade path... I have 4 catalogs: 3 are attached to large tables but the columns that are indexed are small (varchar(500) or less)... These catalogs had an increase in population speed decreasing the time of population by 20-40% which we are very happy about. However, the 4th table has many columns indexed 4 of which are varchar(max)... This table seen a decrease by such a magnitude that it is causing concern. It went from taking about 90 minutes with update index in background set or 35 minutes with that option not set to 13 hours.... I don't see an option for updating index in background. During the population it seems to be hogging the CPU a lot. The server still performed fine but ...Show All
Software Development for Windows Vista Test Case 1 - embedded manifests and MSIs
I am able to embed a manifest into my executable with mt & a custom action, but it does not work when I put it in an installer. I can verify that the manifest is being embedded into the executable that I am building but when I create an msi, using a standard setup project, and install it, the executable no longer has the manifest. Do I need to run mt on the .msi Is the execuable being placed in the .msi before the post build events Or is there just something wrong with my setup project Yes, it is. I also created a second installer project with all the default settings, except that I added the project output to it. This installer also installed the .exe with no manifest. I also verified (again) that ...Show All
Visual C++ Issue compiling x64 natively
Sometime back we had ported our application binaries (exe's + libraries) to x64 using the VS 2005 x86_amd64 crosscompiler due to shortage of AMD64 boxes. The resultant binaries that were created were 64-bit and used to run perfectly on the AMD boxes. Recently, due to our build dependency with another component, we have to move to native x64 builds. We had initally estimated that the only change would be to use the compiler under amd64 directory, keeping all our compiler options same. However it turns out that the object files created are smaller in size and the end library is not loadable by our applications. To load the older cross compiled library still works. Could anyone let me know what might be wrong. I use the MS VS2005 ...Show All
