beginer_max's Q&A profile
Software Development for Windows Vista WorkflowMonitor in ASP.Net
Hi All, There is a sample in the \Microsoft SDKs\Windows WorkflowFoundation\Samples\Samples\Applications\WorkflowMonitor , it's so cool! It's a window form application, but I want to display the graphics in a asp.net page. So I did below: changed the Mainform to a Window User Control named MainUserControl. add the line to the default.aspx. <object id="workflowActiveX" height="900" width="1024" classid="http:/workflowWebSite/workflowMonitor/WorkflowMonitor/bin/Debug/ wfmon.dll#WorkflowMonitor.WorkflowUserControl "> </object> Set the permission in the .net ...Show All
Visual Basic Overflow???
This code is generating an overflow exception and I really don't think it should be: Dim u64HiBit As UInt64 u64HiBit += &H8000000000000000 or u64HiBit = u64HiBit or &H8000000000000000 In my understanding this is simply setting the hi-bit in an unsigned integer. It certainly shouldn't cause an overflow unless it's not really a 64-bit entity. There is a worse possibility which is that it truly isn't supported with the CLR. But this behavior is really sort of strange. Everyone needs some luck programming :) Anyway, what's going on is operator precedence - boolean and bitwise operators have lower p ...Show All
Windows Forms Multiple Selection in DataGrid?
hi, I am a new programmer in C#. I have 2 questions. Question 1: I been working with datagrids. I have encountered a problem. I need to select multiple cells by dragging the mouse to form a rectangle to select the cells much like the function used in Microsoft Excel. However datagrid seems to only able to select a single cell instead of multiple&n ...Show All
Windows Forms DataGridView and ContextMenuStrip
Hello all, 2 questions about using ContextMenuStrip in conjunction with DataGridView: 1. How can I get a ContextMenuStrip to open only if the user right-clicks on a cell, and not a cell header/row header/background/etc My current solution is to associated the CMS with the columns, and not the DataGridView, i.e.: datagridview1.ContextMenuStrip=Nothing For Each c As DataGridViewColumn In datagridview1.Columns c.ContextMenuStrip = dgvContextMenu Next Is there a better way 2. How can code handling a click event on the CMS determine what cell the cursor was over when the context menu was activated I have a partly-working solution, which ...Show All
Visual Studio Team System Work Item Query Question - State Field Value dropdown list
While creating some new work item queries and using the State Field as part of the criteria, I have noticed that the Value list for State contains values in the dropdown list that I do not want. I have looked through all of the Work Item Type xml definitions for State and Transition and cannot find where the incorrect values showing up in the work item query are being pulled from. Can anyone point me to where the values located in the work item query State Field dropdown list are defined Thanks. Allowed values in the query builder aren't scoped to a work item type - they combine together all ...Show All
SQL Server Forcing Users to log out of SQL 2000
I am a begginer to SQL. I am truly limited with SQL language. Every month we have to do a month end closing for our company. In order for us to do this we need to get everyone off the database to proceed. This process is horrible and generally takes at least 1/2hr to 45 min. to do so. i am looking for a command that i can use in query analyzer if possible to force the users out of the database. if that isnt an option can you recommend another program in which i can do this. i am at a loss and need some help..... thanks Did you have a look in the BOL for ALTER DATABASE ALTER DATABASE SomeDatabase SET SI ...Show All
Visual Studio 2008 (Pre-release) determining length of audio sound in MediaElement
how can we find the time length of audio file loaded in MediaElement, and is there some event through which we can find that audio playback is finished (All of these apply to both MediaElement or MediaPlayer classes) Lenght: NaturalDuration property. Please note that most MediaElement properties are only valid after the MediaOpened event is fired (once you give it a Source, we open the file asynchronously). In order to know when playback has finished, MediaEnded is your event. Thanks! Ed WPF PM ...Show All
.NET Development trying connect txt file but getting exception
hi iam trying to connect to a text file but getting an Exception as "Could Not Find Installable Isam" My connection string is conn= new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\main directory\sub directory\sub directory\sub directory\active.txt;Extended Properties=text;HDR=Yes;FMT=Delimited "); I had the same problem. It turned out that I had formatted my connection string incorrectly. In my case I'd specified DataSource=... (wrong; no space) rather than Data Source=... (correct; includes space). In another thread somebody mentioned a website ...Show All
Visual Studio Team System Project Creation Problem: Unable to connect to the Windows SharePoint Services
After installing TFS Beta 3, everything seems ok. Can connect to it, manage it, etc. However I cannot create projects sucessfully. When I try to I get this (excerpt from log): Event Description: TF30162: Task "SharePointPortal" from Group "Portal" failed Exception Type: Microsoft.TeamFoundation.Client.PcwException Exception Message: Unable to connect to the Windows SharePoint Services at TEAMSYS1 Exception Details: The Project Creation Wizard was not able to connect to the Windows SharePoint Services at TEAMSYS1. The reason for the failed connection cannot be determined at this time. Because the connection failed, the wizard was not able to ...Show All
SQL Server Restore a database from Yukon to SQL 2000 SP4 edition?
Hello, I have a siuation that need restore a testing database that currently running on Yukon server to SQL 2000 SP4 staging server. I am getting an error when I go with filelistonly option to see if its possible. ### Error Starts ### Server: Msg 3169, Level 16, State 1, Line 1 The backed-up database has on-disk structure version 603. The server supports version 539 and cannot restore or upgrade this database. Server: Msg 3013, Level 16, State 1, Line 1 RESTORE FILELIST is terminating abnormally. ### Error Ends ### Yes, I am trying to downgrade it, any way that I can do Thanks in advance. Sunny Jung ...Show All
Smart Device Development Does a custom Setup.dll work with WCELoad?
Does WCELoad.exe call codeINSTALL_EXIT Or, is it only the Application Manager (CEAppMgr.exe) that does this I've been trying for a couple of days to create a dll that would fire off after installing my cab file using WCELoad.exe. Please tell me if this is not possible so I can stop trying to make it work. Yes it does. CeAppMgr.exe runs on desktop, it has nothing to do with CAB's setup DLL. Basically it just copies CAB to the device and invokes WCELoad.exe. As to your problem, please make sure your DLL is compiled for correct CPU and exports all required entry points. This DLL can not be managed. There ...Show All
Visual C++ VC++ Solution explorer filters blues
Software: Visual Studio 2005 Pro Hi, I am using the "filters" ( the folders looking icons ) under my solution for better files organisation. All is good. But when I give the code to someone who is trying to make sens of my project without loading it in Visual C++, the files on the file system look like a mess. I have a large number of files under almost 10 filters. Example of my filters are "Interfaces", "implementations", "headers", "source" etc... Would it be possible to actually have a 1:1 mapping on the file system as per the filters structure Right now I have to create all my folders ...Show All
.NET Development Soap Serializer does not support serializing Generic Types.
I tried to serialize an object contains list (List<>) of objects and I got this exception: Soap Serializer does not support serializing Generic Types : System.Collections.Generic.List. It works fine with the BinaryFormatter. Yeah, Let me post more codes about the configuration. What I am doing here is, I have a remoting server start, also to have the capability for a client to event call back to server, we defined a delegate and an event wrapper as the book "Advanced remoting said". Here is the definition: public interface IFactory { IWorker getNewWorker(); } public del ...Show All
Visual Studio Team System Build FAILED: A database error occurred (SQL error 8152) ---> String or binary data would be truncated.
Hi, I'm running Beta 3 Refresh in a single server environment. I've started moving our source code from StarTeam to TF Version Control, but have run into a problem with the build. I started out with a small sample and a simple build file and everything worked fine. Now I've checked a major part of our source code into TFVS and have set up a team build. The build have multiple solutions with multiple projects and several thousand source files. The problem now is that both the large build and the small sample build(that worked fine before I checked in all the source code) fail while checking out from version control. Everything still works fin ...Show All
Visual Studio Team System Beginner's question
Hi, What does it mean when it says that one of the dependant requests failed I see that my web test fails. If I expand the request that shows as failed, then I see that one of the dependant requests failed and it looks like it's an image. There's a "404 Not Found" in the HTTP Status column for it. I'm not really sure whether it means that there's a reference to an image file in the code that's not there anymore or something else. Also, I'm not sure why when I just go to that page in the Internet Explorer it works just fine and does not fail to load. This is probably basic, but I would appreciate any pointers. I'm confused. :) ...Show All
