Alquimista09's Q&A profile
Smart Device Development MouseDown like event in Windows Mobile 5.0 for Poket PC
Dear All, My application should consists of 1 Button that akts as follows: if user holds the Button pressed during 2 seconds then method pressed() should be executed if user clicks this button then method clicked() should be executed My Problem: If I create a Windows Mobile 5.0 Poket PC then Button object does not have the MouseDown event. I can register and use MouseDown event for the Form object: myForm.MouseDown += new System.Windows.Forms.MouseEventHandler(myForm.Form1_MouseDown); How can I achieve the same for Button Dear Figo, Thank you very much for your help. I managed to run it for WindowsApplication: public class CustomButton : Button { protected ...Show All
Visual Studio Express Editions TableAdapter query question
I need to add following queries to my TABLEADAPTER that return a SINGLE VALUE using QUERY BUILDER: 1- Calculate and return AVRAGE value of FIELD1 of a series of rows that contain only a specific value of FIELD2. 2- Calculate and return AVRAGE value of first half (or second half) rows of FIELD1 while sorting on the basis of FILED2. What would be the query builder procedure and what should be the error frees SYNTAX for the above TABELADAPTER queries. I am using a MDF file as database. Thanks 1. SELECT AVG(FIELD1) FROM TABLE WHERE FIELD2 = "VALUE" 2. SELECT TOP 50 PERCENT AVG(FIELD1) FROM TABLE ORDER BY FIELD2 ASC 'this one would return the fi ...Show All
Visual Studio Is there any MSBuild Interface available?
Hi all, Has anybody had call MSBuild via api interface from win form application Currently, I'm able to call msbuild.exe from win form using process.start() method; however, I think it would be nice if I could call msbuild directly from api interface. Best Regards, Eugene, I've tried and it seems work; however, I do have 2 issue: 1. how do I pass in target and configuration parameter For an example, in command line I could passing /t:build /p:configuration=debug. Below is my code 2. how do I display compile output to rich textbox public void PerformBuild ( string s_solutionfile) { // Instantiate a new Engine object Engine engine = new Engine (); // Point to the ...Show All
Visual Studio 2008 (Pre-release) Application.ProductVersion in WPF
How do I get the ProductVersion as I did in Windows Forms Application .ProductVersion What is the WPF Syntax Thanx Itzik That is the only way I've found to get the assembly version. However be warned that if you try to access it in an XBAP then you will get a security exception. I've contacted some of the Microsoft staff on this issue since it essentially prohibits you from knowing the assembly version when running in an XBAP context. ...Show All
Visual Studio Team System Application Diagram problem with WSE 3.0
I have a solution that contains an ASP.NET web service that uses WSE 3.0. It also uses a custom UsernameTokenManager. The application compiles and runs properly. However, when I attempt to open an Application Diagram, Visual Studio locks the diagram and displays the following error: Application definition MyWebService is locked because there is an error in C:\MySolution\MyWebService.web.config. WSE040: Type MyProject.MyUsernameTokenManager, MyProject could not be loaded. Please check the configuration file. The configuration file is correct, since the application works fine, and has worked fine for a long time. The web.config lines in question are: < microsoft.web.services3 > &l ...Show All
Audio and Video Development Video Events
How can I handle video events in the script For example, when new chapter started. Or when certain frame reached. Listen to the chapter event for chapter changes -- if you have the spec, the events are defined in Z.6.2-1 Example code: addEventListener( "chapter" , handleChapter, false ); function handleChapter(evt) { var oldChapter = evt.oldValue; // int or NaN if no previous chapter var newChapter = evt.newValue; // int of new chapter number // do something useful... } For knowing when certain frames are reached, you can either use scheduled events (in the playlist) or you can have cues in the markup bound to the title clock that fire ev ...Show All
.NET Development C# App <> Managed C++ Lib : Bug with global unmanaged functions?
Hi, I'm running VCS Express and VCPP Express. I have the following code in a DLL project in VCPP: namespace pm_managed { public ref class ManagedPortMIDI{ public : int Pm_Initialize(){ ::Pm_Initialize(); return 0; } }; } Where ::Pm_Initialize() is a global function defined in an unmanaged .LIB file. This compiles no worries to give me a managed DLL (and also a manifest file). Then in VCSE I add a reference to this DLL (which I have placed in the build directory of the C# App) and access the stuff inside like this: ManagedPortMIDI mpm = new ManagedPortMIDI (); int err = mpm.Pm_Initialize(); I know this is working OK so far, because I get intellitype prompts showing me the class and its ...Show All
.NET Development file upload to https server not working
i am sending a file to a https server and i am not getting back the same results as iexplorer is, or the same page. my page has an error that its displays, which is "Error: Cannot find bean: "UploadBean" in any scope" i captured the stream from iexplorer and my app and its the same thing being sent. any ideas here is the file that i am sending using multipart-form content type StringBuilder^ sData = gcnew StringBuilder(); sData->Append("--" + sBoundary); sData->Append("\r\n"); sData->Append("Content-Disposition: form-data; name=\"firstTime\""); sData->Append("\r\n\r\n"); sData->Append("F"); sData->Append("\r\n"); sData->Append("--" + sBoundary); sData->Append("\r\n"); sData->Append("Content-D ...Show All
Visual C++ OracleConnection Not Found
I am new to Visual C++ and .NET. I am trying to connect to an Oracle DB. When I try to compile the code, OracleCOnnection can not be found. I have included System::Data:OracleClient in the namespace. Is there something I need to set in the project Are you using VC++ 2005 Then use the new C++/CLI syntax OracleConnection^ myCon = gcnew OracleConnection(ConnString); Did you put a using namespace System::Data::OracleClient; in your code Otherwise you will need to use a fully qualified name System::Data::OracleClient::OracleConnection -- SvenC ...Show All
SQL Server Output Data Bandwidth Standards?
All: One of the new tests that we are running have to do with load testing an application with a constrained network pipe. I like this. One of my beefs has been related to stored procedures that return bloated result sets. This new set of tests potentially gives me some more amunition to use when I review stored procedures. A piece that I would like to produce as a result of this has to do with establishing an output bandwidth standard for our database servers. I have a few biased ideas but I would like to know if any of you have any similar pre-existing standards along this line. Any help Dave What we have found is that the toughest test is when bandwidth is constrained to a 128Kbps pipe. Ho ...Show All
SQL Server END CONVERSATION WITH CLEANUP, Is this bad? Records pile up in queues without it.
I have read from a variety of sources that using the "WITH CLEANUP" option on a "END CONVERSATION" statement is bad and unnecessary. (Question #1) Is this true My code does not work properly if I don't use the "WITH CLEANUP" option. My code leaves closed conversation records in the queues if I leave out the "WITH CLEANUP" option. The "END CONVERSATION" statement is executing properly and flagging the conversation record as closed but the records don't get deleted. All the messages are going back and forth properly too. My code is based on the HelloWorld ServiceBroker sample which does not use "WITH CLEANUP". When I run the sample scripts everything works great ...Show All
Visual Studio Can not install Microsoft SQL Server 2005 Compact Edition Tools for Visual Studio 2005
I am trying to install Microsoft SQL Server 2005 Compact Edition Tools for Visual Studio 2005 SP1, but I keep getting the following error, then the installer closes: The upgrade patch cannot be installed by the Windows Installer service because the program to be upgraded may be missing, or the upgrade patch may update a different version of the program I have Visual Studio 2005 SP1, MS SQL Compact Edition runtime, and MS SQL Compact Edition SDK all installed. Any ideas why this wont install Here's the help information: Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600) Microsoft .NET Framework Version 2.0.50727 Installed Edition: Professional Microsoft Visual Basic 2005 77626-009-0000007-41059 Microsoft Visual Basic ...Show All
Visual Studio Express Editions Going back to Originating Form
Okay, This may seem like a newbie question, and it probable is. How does one go back to an originating form when the originating form could be one of many, many options. So for example: You have twelve forms. Each named (for simplicity sakes) Form1 through Form12. Form1 can take you to each of the twelve forms. Forms 2-5 can take you forms 6-12. Forms 6-8 can take you forms 1, 2-5, 9-12 or they make go back to themselves (From Form 6 to Form 8 and vice versa) Forms 9-12 can take you 1, 2-5, 6-8 or they make go back to themselves (From Form 9 to Form 12 and vice versa) All Forms can always go back to Form 1 (which easy enough) But if I am on Form 9 and I want to go back to 5 (an orginating For ...Show All
Visual Studio Team System Load Test with Web Unit Test Problem
I'm trying to create a load test that runs a Web Unit Test, but I cannot see the test in the list of available tests. When I remove the HostType ( "ASP.NET" ) attribute from the test, I can see the test in the list. Unfortunately, the unit test is no longer runnable without that attribute. Does anyone have any suggestions Thanks, Kris Unfortunately we do not support running unit tests hosted in ASP.NET in a load test. The amount of cross-process traffic was too high to make these useful, so we decided to not support it (rather than invest the time to fully test the solution). Ed. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. space on Storage device
how mucth space can we use on the xbox360 using Storage device Michael Hansen wrote: if i make game say 270 mb and can i save on the harddisk Don't see why not. Michael Hansen wrote: if my frend is a member of the creator club can i save on a memory card and go over to my frend on his xbox360 and play the game Read my post above - no, you can't. ...Show All
