clint 2's Q&A profile
Software Development for Windows Vista WF in a Load Balanced environment
I've directly copied this from my blog as no-one seems to know the answer, so I'd appreciate any thoughts... In WF, when a workflow instance is in memory, the "Locked" database field is set (of course assuming you're using the SqlWorkflowPersistenceService) so that it cannot be loaded concurrently by any other App Domain running the workflow engine. In the case of NLB (Network Load Balancing) this means that only one node of the NLB cluster can operate on a workflow instance at a time. Usually, assuming UnloadOnIdle is set on the persistence service, as soon as processing stops for a workflow it is put back into the database and unlocked, therefore making it available at any node for the next request. But when does this ...Show All
Visual Studio Express Editions Can't see the "Windows Control Library" template
Hi. Here's the thing: I want to create custom controls, but I want it done via Windows Control Library, which I cannot find anywhere in my VB 2005 Express. I'm sure there's another way of customizing controls, but I really want it done by this method. The reason why is because I'm following a book about VB2005, and the author created the custom controls via Windows Control Library, and I can't move forward unless I find this template. Can anyone help, please Thank you very much. Windows Control Library is not included in the Express version. See http://msdn2.microsoft.com/en-us/library/b4z62wxz(VS.80).aspx ...Show All
Microsoft ISV Community Center Forums Disable events in userform
Is there a way to disable Userform events within Userform code I am trying to dynamically set scrollbar.max without triggering the Scrollbar_Change event procedure. Hello Joe, I was a bit curious and tried the following: Private Sub CommandButton1_Click() MsgBox ("Command Click") UserForm1.ScrollBar1.Width = 20 UserForm1.ScrollBar1.Max = 100 End Sub Private Sub ScrollBar1_Change() MsgBox ("In Scroll Bar Change") End Sub Private Sub UserForm_Initialize() MsgBox ("In Initialise") UserForm1.ScrollBar1.Max = 15 End Sub The only time the ScrollBar_Change event is triggered is if I clicked on the scroll bar, or the up/down arrows of the scroll bar. The command button ...Show All
SQL Server Catching DML statements by A specific application and emailing all identiy info and T-SQL String
I would like Create a DDL trigger that would intercept all delete,updates,and inserts by a specific application. Than send an email to me about the : user name application T-SQL statement executed The problem I am having is I can't create a DDL trigger for Delete,Insert, or Update statements. Do NOT write send emails directly in the trigger, triggers behave synchronously, slowing down your processing time causing error if e.g. the mail service is down. Better write the events to a separate table and send them using a job (or something like this). HTH, jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual C# How do I access a class from a different project, but the SAME solution ?
hey, I have a solution in which I made 2 projects, one is a windows service, and one is a windows application... they were originally made separate, but I added the win service to the solution of the windows app. so now I have 2 projects inside a single solution. I really need to access some variables in the windows service, and pass them over to the windows app, how would I do this I made a public static class in the windows service and I put the variables and values I want in that class, but how do I access them from the windows app I cant just type in the namespace of the win service in the windows app name because it doesnt see it in the intellisense, and tells me I am missing a reference.... am I missing a step any ...Show All
Visual Basic does form exist?
Is there a way to check if a specific form exist from code Davids Learning To check if an instance of a specific form type exists There is an Application.OpenForms property, I believe, you could iterate through them all and use the is keyword to see if any of them is of the type you're looking for. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. d3dx9d_30.dll
Why do I keep getting an error box saying d3dx9d.dll was not found how do I fix that do i need to do somethink to the directx sdk after it is installed. i get the error when I try to compilie something with xna it does it with the space war start up kit or just if you compilie a new project with nothing done to it. The direct x sdk was downloaded on another computer because i us dialup could it be because it wasn't the redistributable version that they downloaded and its d3dx9d_30.dll i forgot the underscore 30 last time. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA - Microsoft lack of vision
Its real sad that Microsoft, once again, shows this lack of vision for a games development tool: 1: Get visual: Don't force users to write such a lot of code to do just very little. It reminds the Charles Petzold's "Hello Window" hell of code days. 2: Provide visual tools: Let users choose the components, change their properties and write just the required code for the events. 3: Quick development means quick prototype and minimum learning curve. XNA has a lot of things to learn. Definetively it is NOT for students and hobbists. We will have to wait until someone encapsulates XNA framework into a group of visual components, that can be easily drag & dropped, inspected and tested very easily without having to learn lots of n ...Show All
.NET Development Sharing the Server list
Hello, I need to create server/client with such funtionality: Server has list, which is shared with alll clients. This means, that all connected clients see the same list. If any client removes item from the list, server and all other clients must imiadetly refresh their list. If not talking more about specific software functionality, I can list such things about comunication, what I need: Communication between applications would be through WAN (internet), so optimal solution for network bandwidth and server resources is critical. In the beginning there would be ~40 clients and this number can increase to 100. Communication channel must be secure, that no one could read or change traveling data. Au ...Show All
Microsoft ISV Community Center Forums Run Time Error 1004 On Long Running Stored Procedure
I am encountering a "Run Time Error 1004" when I attempt to execute a stored procedure from within Excel VBA. The stored procedure takes about a minute to return results. I have tested with shorter running procedures successfully, so it must have something to do with the amount of time it takes to return results. The For loop is never executed because no results return. The error occurs on the last command where I attempt to set the column names in the spreadsheet equal to the column names from the recordset. Obviously errors because no recordset exists. As you can see I have set the timeout for the command to indefinite. I have also unsuccessfully tried a DoEvents after the command has been executed. Suggestions If ...Show All
SQL Server Function replacement for iterator table?
All: One of the things that I didn't like about the iterator table that I have used for several years is that it adds a table to a schema that initially might look out of place. Over the past year I have been working at replacing the iterator table that I use as a utility with either an view that I could index or a function. I recently came accross this website when I was looking for something else: http://stevekass.com/blog/page/2/ This function uses progressive set cross products within an inline function based on a CTE to generate a set cross product and then uses the ROW_NUMBER function to enumerate a set of integers. I tested this out and it seems really fast and this to me looks like a good candidate to replace my iterat ...Show All
.NET Development Code access security question
I am helping a friend who has a .NET 2.0 Windows forms application that generates an error when installed on our Intranet. I'll paste the error at the end of this message. I can solve the problem by installing the .Net Framework 2.0 SDK on the client machine and running the .NET Framework 2.0 Configuration tool and getting into Configure Code Access Security Policy/Adjust Zone Security and setting the Intranet Zone to Full Trust. This is OK for us to do, but I'd like to find out if there's a simpler way to implement this setting using caspol or something like that without having to install the SDK on client machines, or maybe we can modify all machines on our network to have this setting by default. Thanks for any help, errors below.. john ...Show All
Visual Studio 2008 (Pre-release) Code or DB generated guid key values.
I am designing a new DB schema for an experimental Dlinq project. As a general rule I tend to hook up all the FK table relationships based on Guid surrogate keys. Is it more convenient for Dlinq if Guid surrogate keys are generated in C# prior to insert or should I delegate this to SQL Server My concern is that when committing a block of related new objects Dlinq will have to query for the new Guid keys to keep the C# entities in sync with the DB state. You are correct in your analysis and in most situations you would want to limit the number queries passed to the SQL Server, so it would be more efficient to set the keys on the client (C# program). ...Show All
Internet Explorer Development Items remaining in status bar
Hello developers, I use AJAX library to refresh some parts on the page and faced with a problem when "(xxx) items remaining" appears in the status bar of IE and browser never finishes loading process. Is there any way to find out which resources browser cannot load Any debuggers or something like else Thanks for any advice. Regards, Alexander Kleshchevnikov. ...Show All
Internet Explorer Development Explorer bar in IE7 without reboot Windows
Hi, I have an application that add a Horizontal Explorer Bar in a IE windows. That's work very well in IE6 but when I try to do it in IE7, the user must reboot Windows to have the explorer bar in the menu. I don't understand why The explorer bar just display HTML. Thanks In fact, there is a cache that is invalidated when a "Setup" or "Install" program runs. You can also invalidate it manually by deleting one or all of following registry keys: HKEY_CLASSES_ROOT\\Component Categories\\{00021492-0000-0000-C000-000000000046}\\Enum HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Discardable\\PostSetup\\Component Categories\\{00021493-0000-0000-C000 ...Show All
