Albert_Khor's Q&A profile
Software Development for Windows Vista OSWorkflow vs WWF
Hi I have been playing around with WWF beta 2 for a couple of days to see if it would be interesting for my upcomming thesis. Then i stumbled on OSWorkflow from opensymphony which basicly looks alot like WWF. Does anyone know who came first with this XML descriptive aproach to workflow I mean. Who has learned from who Thanks in regards Anders Jacobsen From what I know, the first to describe business processes via XML (with a public specification) were: 2001 BPMI - language BPML 2001 Microsoft - XLANG 2003 Microsoft/BEA/IBM - BPEL respectivly BPEL4WS ...Show All
Visual C# Query Output in C# differs from output everywhere else
I have a stored procedure that returns a calculated field. The query looks kinda simliar to the following: SELECT ISNULL(udf.SomeID, t.SomeID - 1) - t.SomeID + 1 AS IsHappy -- SomeID is an integer greater than 0 -- t.SomeID will always exist -- udf.SomeID is either NULL or == to t.SomeID -- IsHappy should == 0 if udf.SomeID == NULL and 1 otherwise FROM SomeUDF() AS udf, SomeTable AS t This sp has been used for months by various applications without a hitch. ...Show All
SQL Server How to group many details per master record
Assume there are a Project, Contractor, and ProjectContractor table where it represents a many to many relationship with the linking table. How can I manage the data to get it Basically converted from a multiple row output to a single line output project A contractor 1 Project A contractor 2 Project A contractor 3 into Project A contractor 1, contractor2, contractor 3 I believe I can do it in a SP, but I need it in a view so i can query from it, let's say from crystal reports The Pivot operator is only available in 2005, and so I am assuming you are using 2000 still li ...Show All
Windows Forms Problems while navigating with a DataGridView
I'm having trouble with a the behavior on a form I'm creating to edit a simple table in a Dataset. The form has a BindingNavigator at the top to which I've added a few comboboxes so the user can specify filters on a few key columns of the table. Right below the BindingNavigator is a DataGridView that shows several rows of the table (the filter columns as well as a few others). The grid is bound to a BindingSource that is itself bound to the specific table in the Dataset. And the rest of the form (the "details section") contains ALL the fields from the table. Essentially, about 25 textboxes (across a TabControl) where each Tex ...Show All
Visual Studio Express Editions creating dynamic menu
Hi all; I would like to create a dynamic multi-level menu, and after I choose a choice it returns the path from the beginning, (as desktop toolbar in windows), like this: <img src=" http://abdnour.4t.com/images/Mnu1.bmp "> after creating the menu, and clicking on 'file2', it will return "C:\folder2\file2"; Please notice the provided picture or link. Can any one help. What part do you need help with Getting the full path of the menu item selected You could just use a while loop and get the navigateToolStripMenuItem.OwnerItem where navigateToolStripMenuItem would be set to th ...Show All
.NET Development Multithreading on database server side
Hi, should I take a care of threading synchronization when accessing the database I mean, what happens if one thread executes SELECT and the other one DROP at the same time What about transactions If I have transaction, some DROP and DELETEs within it, isn't it possible that both fails if executed parallely Thanks. This will not happen because as soon as either thread1 or thread2 delete the row inside of a transaction, this will block the other thread until the transaction is either completed or rolled back. So say thread1 deletes the row and then thread2 attempts to delete the row. Thread2 is completel ...Show All
Visual Studio Express Editions Detecting user changes to data on form
I have a form which is used to make changes to a database. When the form first opens the form fields are populated from the database. How can I tell if the user changes any of the fields. I would like to be able to detect this so that if the user tries to close the form I can prompt them to see if they wish to save the changes. Thanks Hi Carl, you can use the HasChanges method of the DataSet or the GetChanges method of the DataTable objects. For example: If (myDataSet.HasChanges) Then ' Prompt user here End If Or for a typed dataset you can do If (myDataSet.MyTable.GetChanges() IsNot Noth ...Show All
Windows Forms MDI Child Forms in Panel Controls
Would like to know how to place Child forms in a Panel (Panel1) on the main form (Form1). I have the Panel docked to the left of the main form. Currently I have a Tree View object docked in the panel. I want to change from the Tree View to a Folder Viewer object and visa versa in the panel. Thanks Only For ...Show All
Visual C# Asynchronous Method Calls - Whats the max?
I have a class that creates worker threads using Asnychronous Method Calls using an Array of Delegates each one is invoked by iterating through the array and calling BeginInvoke (have posted an excerpt below *not the actual code*). My question is what is the suggested maximum number of Asynchronous items to have working in the background at the same time. I know each is a new thread and by default there is a maximum of 25 threads available in the pool on a normal single processor workstations. I also know that when the maximum is reached the additional ones are serialized and put into a holding area (qued ) until another thread becomes avail ...Show All
Visual Studio Express Editions Visual C# 2005 Express Beta 2 Debugger Fails to Start
If I create a simple Windows application under beta 2 of Visual C# 2005 Express without adding any code and attempt to start debugging, I get the following error message: "Microsoft Visual C# has encountered a problem and needs to close'. If I start the program without debugging, it runs fine. A blank windows form pops up. Also, the "Add Connection" under beta 2 of Visual C# 2005 isn't working for me. When I attempt to connect to an existing database(*.mdf), I get the following error message: "Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The ...Show All
Windows Forms How to set start form
I had a single window form compiled in a winform project. Now I add a new form, rename the old form with ".sav" extension, move it to an archive folder in the project, recompile the project and am surprised to see the old form shows instead of the new form. How can I set a start form among many like on a webform project T ...Show All
Visual Studio Package load failure AND can't import settings (on another machine)
Visual Studio 2005 RC1 installed on a machine where August CTP was previously installed. --------------------------- Microsoft Visual Studio --------------------------- Package Load Failure Package 'Visual Studio Explorers and Designers Package' has failed to load properly ( GUID = {8D8529D3-625D-4496-8354-3DAD630ECC1B} ). Please contact package vendor for assistance. Application restart is recommended, due to possible environment corruption. Would you like to disable loading this package in the future You may use 'devenv /resetskippkgs' to re-enable package loading. --------------------------- Yes No --------------- ...Show All
Visual Studio Express Editions Writing to a text file
I am trying to write text to a disk file. I dimensioned a variable, sr, as StreamWriter and used the line sr.WriteLine(strPage) to write the text to the file but all it does is open an empty file and does not write the text to the file. I know there is something in strPage because I also write it to a textbox on my form. Can someone please help Don Dim tempFile As String = My .Computer.FileSystem.GetTempFileName Dim sw As New IO.StreamWriter( New IO.FileStream(tempFile, IO.FileMode.Open Or IO.FileMode.CreateNew)) sw.WriteLine( "hello" ) you can use FileStream to contr ...Show All
Windows Forms Fotovision Enhancement
I to everyone i've just (quite) finished a little mod on fotovision. I've added the possibility to use accounts to access different website. It's now possibile to manage more that one website. So, let's say you have www.yourisite.com/friends and www.yoursite.com/parents. Now you can manage uploaded albums and photos for these sites without any kind of problem. If you have ...Show All
Windows Forms Esc in maskedtextbox
Is there any solution for the Esc keystroke to change text back to its last state Just like regular Textbox. Wei, The idea is your solution....it is not easy and you will have to code your solution: Private Sub TextBox4_KeyPress ( ByVal sender As Object , ByVal e As System . Windows . Forms . KeyPressEventArgs ) Handles TextBox4 . KeyPress Dim MyString As String = TextBox4 . Text If Asc ( e . KeyChar ) = Keys . Escape Then TextBox4 . Text = MyString End If End Sub Don't know what you are trying to accomplish but that should give you an idea of ho ...Show All
