scubabbl's Q&A profile
Software Development for Windows Vista How to realize "My task list"?
Dear experts: It is not uncommon that we need a task list in a workflow system, which means the following sample precedures: 1. Mary login the workflow system. 2. The system display all the tasks (lots of are approvments) she need to do. 3. Mary click one of the tasks, and approve or disapprove it. 4. The system push the workflow instance to the next step. 5. Repeat step 2-4 till all her tasks are completed. So my question is how to do the red step As I know about WWF, there is a property called roles in the CallExternalMethod activity, which combines the .NET role-based authentication and authorization. But by which I can only determine whether the user is authorized to do ONE specified activity, but how to li ...Show All
Visual Studio Express Editions Overloading Operator & CType Function: No Error, No Warning,No Message & No Oupt
Hi all, I executed the attached code that was copied from MSDN: How to: Use a Class that Defines Operators (or Overloading the Operator) in my VB2005 Express. I got the Form1 appeared on the screen, but no MsgBox, no Error, no warning, no message and no output I expected. Please help and advise. Thanks in advance, Scott Chang Imports System.Data.SqlTypes Public Class Form1 Public Sub setJobString( ByVal g As Integer ) Dim title As String Dim jobTitle As System.Data.SqlTypes.SqlString Select Case g Case 1 title = "President" Case 2 title = "Vice President" Case 3 title = "Director" Case 4 title = "Manager" ...Show All
SQL Server DB Access from different m/c
when i access the database from different DB server getting the following error Msg 18452, Sev 14, State 1, Line 1 : Login failed for user ''. The user is not associated with a trusted SQL Server connection. [SQLSTATE 28000] Thanks, Ravinder Your SQL Server is set to Windows Authentication only. You need to logon with a user which has granted access to the server. You can’t provide a userId and passwort in the connecting string because this will be ognored in the case of Windows Auth. only. Another option would be, if feasable for your to switch the authentication mode to mixed. HTH, jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual C# Is there any way to implement an application that close other running application???
help me if there is any way to implement an application that close other running application... thanks in advance.. but there is an errors if I make it without array as I posted there is an error --->> can not implicity convert type System.Diagnostics.Process[] to System.Diagnostics.Process and if i make it an array there is another error --->>> system array does not contain a definition for kill what shall I doo ...Show All
Smart Device Development Search box with Treeview
I am using Treeview to display the Contacts like .. Group >>Level 1 Node ConactName>>>Level 2 Node Home No >>>Level 3 nodes Mobile No Office No ConactName Home No Mobile No Office No I want to add a search box (like provided with contact screen).If a user enters some text, i shall be able to update the treeview with matching text nodes. How can i do that I dont see FindMatchingItem type method in treeview. Thnx Maksim, But my requirement is how to find ..is there any solution for treeview (like listbox which i can link with search text box) . The last option will be to traverse thru all the nodes which i want to avoid. ...Show All
SQL Server Populating with dimension hierarchies
Hi, I I want to populate the drop-down-list in a VB(.Net) Form, by retrieving the various hierarchies in the dimensions of the cubes (along with dimensions if possible). This should be done dynamically and in real-time! Can you please help in implementing this Any code/method, etc would be highly appreciated! Thanks in advance. Best wishes! (Software : SQL Server 2005 Enterprise Edition (with Analysis Services and BI Studio), VS.Net 2005 Enterprise Edition, ADOMD.Net) Aranda, Yes, if you want to read dimension members (which are considered data in this instance), you would need to use ADOMD.Net. AMO has no facility for reading data (only object metadata). HTH, Dave Fackler ...Show All
SQL Server Maintenance Wizard error...
Hi, I'm just trying to use the Maintenance Wizard for the first time, but the SQL Server Management Studio shows me an error message about 'Agent XPs' is not running on my server; and I should activate it through 'sp_configure' I've tried to understand 'sp_configure' by searching it on MS TechNet, etc. But of course, because I'm not a SQL Server expert user; I don't even know how to use 'sp_configure' at all.... Anyone know how to work this thing around Appreciate all the help... PS: I almost forgot to mention, that I'm using MS Windows Small Business Server R2 2003 with SQL Server 2005 Workgroup Edition. Chris, Is it really true, you did have the similar problem with Maintenance Wizard li ...Show All
Windows Forms Filling a column with Null in VSC# 2005 (Windows Application)
Hi, I'm trying to fill one of my columns with Null Value using the following code: MyDataSet.Tables[ "myTable" ].Rows[myTableBindingSource.Position][ "Column1" ] = DBNull .Value; this .Validate(); this .myTableBindingSource.EndEdit(); this .myTableTableAdapter.Update( this .MyDataSet. myTable ); But it doesn't work. Am I doing something wrong Thanks, Mathew use this cmd.CommandText = "Insert Into table1 (field1) values (cast ( @var as DateTime))" cmd.Parameters.AddWithValue("@var", m_dtYourDate); and run you transaction... ...Show All
Smart Device Development Removing the Title Bar from the Form using Compact Framework
Hi All, i was wondering if anyone knows of a way that I can remove the Title bar from the UI forms using C#. You used to be able to do this using Win32 dialog boxes, however I can't seem to find out how you can do it using managed code. Anyone know Thanks, Sergey, I already have tried that. I also have removed the minimise, maximise and close control boxes from the title bar. I would think, well hope that there should be a way to do this. Any other ideas Thanks ...Show All
Smart Device Development Please help: How to find out executables path?
Hello and thank you for reading! I am trying to find out the path an executable was started from. In former times a solution was to take the CWinApp member variable "m_pszHelpFilePath", which contained the complete path to the applications help file. So one could cut away the tail of that string, the name of the help file itself: the rest was the applications path: CString cPath(AfxGetApp()->m_pszHelpFilePath); int iPos = cPath.ReverseFind('\\'); cPath = cPath.Left(iPos+1); But in Visual Studio 8 the "m_pszHelpFilePath" member was commented out for CWinApp on mobile devices: #ifndef _WIN32_WCE_NO_HELP_SUPPORT // THIS LINE WAS ADDED // Default based on this module's path. LPCTSTR m_pszHelpFilePath; #endif // !_ ...Show All
Windows Live Developer Forums Restrict VE Map scroll
My client has just asked me this – and I am not sure if it can be done My client wants to limit the outer edge of the map scroll to an area around the UK. (to stop users VE’ing their holiday destinations during work hours) Any suggestions IF this can be done I'd like to know how to do this too. The only way I've worked out so far is to use the onendzoom event to check the new zoom level, and then call SetZoomLevel () to reset the zoom if it falls out your desired range. But... you get an odd 'zoom out / zoom in' thing going on. Be good to hear of a better way - cancelling the zoom event, for instance MDux. ...Show All
Visual Basic Excel Functions within VB
Hey, I'm using the PMT function in excel and in VB 2005. Basically what I'm doing is trying to make my loan calculator an actual program, instead of always having to write everything out within an excel spreadsheet. I have all the needed information and I thought that my VB code was correct, and according to all the help files I can find they are. However the number I get from the function in my VB program is wrong. I'm not sure why the answer is different if all the inputs are the same in both the program and the spreadsheet. Thanks for the insight. Here's my code for the PMT Function in my program, incase you need to see it: MonthlyLoanPayment = -Pmt((InterestRate / 12), Math.Round(MonthsWithoutMedicaid), LoanedAmount) Azrael ...Show All
Smart Device Development Update Database from Dataset / Datagrid
Hi there I'm new to wortking with datasets and dataadapters etc and was hoping someone could tell me if what i want to do is possible and if so point me to some help. I am writing a Windows Mobile 5.0 application in visual studio 2005 which is to store and edit data on a pocket pc using sqlmobile2005 The part of the application i'm stuck with consists of 3 stages, the first two of which i have completed successfully. The Third stage i cant seem to find any help files for which are relevent to my needs. 1) I have a datagrid on a form which uses a dataset as the datasource (this is done on the formload call) 2) The dataset data is then edited using text boxes and buttons (all data is updated in the dataset and the datagrid is ...Show All
Windows Live Developer Forums how many pixels per mile/km
how can i determine how many pixels would equate to a mile for any map/zoomlevel Check out this article first on how the tiles operate in VE: http://viavirtualearth.com/VVE/Articles/WorldWind.ashx That will give you an idea of how to change pixels at zoom to lat/long. Then you need to look into the projection technique used by VE: http://en.wikipedia.org/wiki/Mercator_projection Then you need to find an algorithm to do distance from lat/lon in Mercator. http://www.movable-type.co.uk/scripts/LatLong.html Have fun. John. ...Show All
Software Development for Windows Vista how to use the code in base class defination?
Hi I Change the sample from tom's I have a base statemachine wf with pure code as follow: thanks Tom , that's the point to the xoml with code beside but what i use is the xoml only workflow so ,when I set "ExecuteCode" Property in the CodeActivity and change the method's signature as what you said. the designer catch the error as follows: ...Show All
