Customers.AsEnumerable().OrderBy(obj => obj.LastName).Select((obj, index) => new {Index = i++, obj}); Or something like that...
bonkers
Posts
-
ROW_NUMBER Conversion -
WF - TreeViewomg ... tnx a lot ! That helps ^_^ I will buy that one ... hope it's a good read !
-
CreateUserWizard control button problemmmm.... javascript. I am not too familiar with javascript, and I only recently stepped into the as world ^_^ How would you do that?
-
Is there a limit on the amount of concurrent workflows?It was pointed out to me that only 5 concurrent Workflows are allowed, and to fix it : In the Program file, import the System.Workflow.Runtime.Tracking namespace so that you can use the types in that namespace. C# Copy Code using System.Workflow.Runtime.Tracking; In the Program class, create a static Int32 field named maxSimultaneousWorkflows, and assign it the value 1. C# Copy Code static int maxSimultaneousWorkflows = 1; In the Main method that is defined in the Program class, add the DefaultWorkflowSchedulerService to the WorkflowRuntime. Use the AddService method, and pass the number of maximum simultaneous workflows that the DefaultWorkflowSchedulerService can schedule as a parameter. C# Copy Code workflowRuntime.AddService( new DefaultWorkflowSchedulerService(maxSimultaneousWorkflows)); Note, this was copied directly from the help file....
-
Is there a limit on the amount of concurrent workflows?Hi, I have an app that kicks of miltiples of the same Workflow, but it almost seems like only 5-15 concurrent workflows are running at a time. Is there a default limit to the amount of concurrent workflows and how can this limit be adjusted? Kind regards :confused:
-
Passing an Object to a WF and persisting it.Hi, I am creating a workflow that runs an Ldap search, containing the different LdapEntry vals. I then get the current LdapEntry by iterating through it. I then invoke the workflow, and in the invoked workflow, I get the LdapEntry. The problem is that in the main workflow, new entries are obtained (in a while loop), and the current LdapEntry changes, which changes the entry in the invoked workflow. Thus, how can I send an entry to the invoked workflow and ensure that the object obtained by the invoked workflow will not change.... a copy in a sense. Kind regards, H :confused:
-
DateTimePickerm_TimePicker.SetFormat(..... etc);
-
PostMessage problemYou need a class that handles the post msgs....
void FACTORY::addWindow(HWND hWnd)
{
m_Windows.push_back(hWnd);
}thus, regsiter all the windows with this class with the function above. (FACTORY::instance().addWindow(m_hWnd);) then, you send these messages to the different classes that registered to this via the PostMessage function....
void FACTORY::PostMessage(UINT Msg, WPARAM wParam, LPARAM lParam)
{list<HWND>::iterator i; int count = 0; HWND hWnd; for( i = m\_Windows.begin(); i != m\_Windows.end(); i++) { hWnd = \*i; ::PostMessage(hWnd, Msg, wParam, lParam); }
}
Then simply post the message and catch it in the class....
FACTORY::instance().PostMessage(THE_MESSAGE, (long)VAL1, (long)VAL2);
and "catch" it in you PretranslateMessage functions....
if(pMsg->message == THE_MESSAGE)
then get the vals...
int VAL1 = (long)pMsg->wParam;
int VAL2 = (long)pMsg->lParam;OR SOMETHING LIKE THAT....
modified on Tuesday, June 24, 2008 3:04 AM