Analyst Chad's Q&A profile
Windows Forms TableAdapter Problem.
I am using VB.Net 2005, my windows application bind to two data tables which is member(memberId, name, phone, joinDate) and payment(paymentId, memberId, year). I need to implement the following SQL into tableadapter: SELECT memberId, joinDate, phone, name, FROM member WHERE (joinDate > ) AND (NOT EXISTS (SELECT 1 AS Expr1 FROM payment WHERE (humanId = member.memberId) AND ([year] LIKE ))) But when I finish created the tableadapter, it only accept one parameter, FillByFee,GetDataByFee(joinDate) What’s wrong What should I do How to create an tableAdapter that can accept two p ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Announcing a new XNAStage release on CodePlex
XNAStage http://www.codeplex.com/xnastage is a set of 2D sprite and text classes that can be either used independently or added to a "stage" where they can then partcipate in timeline-based logic and effects. XNAStage contains some built-in "tweens" to animate sprites and text easily creating motion, rotation, scaling, and color effects. You can also create your own Sprite, Tween and Button classes to extend the capabilities of XNAStage. The latest version adds support for animated sprites and button handling. By simply adding Button sprites to the stage, and specifying what types of input to accept, the stage will automatically handle button navigation, animation (mouse-over and click effects, etc), and the same ...Show All
Visual Basic Interfaces and Non-Project References
I have the following situation: Proj1 Proj2 - has a reference to Proj1. Declares an interface. Proj3 - has a reference to Proj1 and Proj2. Has an implementation for the Proj2 interface. The problem is that any method declared in the interface that requires a class from Proj1 fails. The error messages say that there is no matching sub on the interface. Any method that doesn't include a Proj1 object works fine so it's obviously the references. When Proj1, Proj2, Proj3 are in a single solution everything works fine but I need Proj2 and Proj3 to be in a solution with a file reference to Proj1. I have it setup so that Proj1 is compiled and copied into a lib directory in Proj2 and Proj3 and they have a reference to their respective l ...Show All
Visual Studio Error when creating a project from the file menu
When I try to create a project using the file | New | project, I get the following error: The web server reports the following error when attempting to create or open the Web project located at http://localhost/MyFirstApplicationVB . If I right click on the solution, click Add, then New Project, it works, is this something I shold worry about and if so, how can I fix it I'm new the all this (I'm studying for my MCSD). While you're at it, will someone please tell me just what I need to download along with Microsoft Visual Studio 2003 in order for it to run properly. Thanks Before Hand E. G. Slaughter (AKA Radarman) ...Show All
Visual Studio Team System Shared assemblies amongst projects
We have multiple products that have common shared asseblies. We are migrating from SourceSafe and we are trying to figure out how to set things up currently source safe looks something like this Product1 Product1.sln Product1.csproj Product1 source Product2 Product2.sln Product2.csproj Product2 source Product3 Product3.sln Product3.csproj Product3 source SharedComponents Component1 Component1.csproj Component1 source Component2 Component2.csproj Component2 souce the Solution for Product1 includes the product's csproj and multiple projects from the shared components Product1's solution needs to include the shared components so they can be stepped ...Show All
Visual Studio 2008 (Pre-release) DLinq designer not installed correctly
I've installed the latest August CTP version and when following the DLinq designer walkthrough I don't see a DLinkObjects template in the add new item dialog. Somehow this is not installed correctly (I also tried a repair but it didn't work). If I create a file with a .dlinq extension it does open up the designer and I can drag tables from the server explorer. Any advice is welcome. Tx, Harry First of all, the DLINQ Designer was a feature of the May 2006 CTP, not the August ADO vNext CTP. Since the May CTP was a prereq for the August CTP, I assume you have installed it. As for the DLINQ Object template, I suspect you are working with a LINQ Web site. By default, the designer is not present ...Show All
.NET Development Problem with the GZipStream class and small streams (apparently smaller than 4096 bytes)
Hello! I have a problem using the System.IO.Compression.GZipStream class. I wrote the following methods to compress and decompress arrays of bytes. private static byte[] Compress(byte[] array) { MemoryStream stream = new MemoryStream(); GZipStream gZipStream = new GZipStream(stream, CompressionMode.Compress); gZipStream.Write(array, 0, array.Length); return stream.ToArray(); } private static byte[] Decompress(byte[] array) { MemoryStream stream = new MemoryStream(); GZipStream gZipStream = new GZipStream(new MemoryStream(array), CompressionMode.Decompress); byte[] b = new byte[4096]; while (true) { int n = gZipStream.Read(b, 0, b.Length); if (n > 0) stream.Write(b, 0, n); else break; } return stream. ...Show All
Visual Studio Express Editions save text box input to a string after I close the form
How would I save what a user enter as a string, for later uses in the program if the form he or she entered it in, has since been closed Thanks Store them to a variable which - which is still in scope for the duration of the application. This may be a variable in a module which you read from when you populate the form and write to when you close the form. Save it to some persistent - this could be a simple text file which you can read and write using the My.Computer.Filesystem.ReadallText and Writealltext methods. Or you could use use the My.Settings to save and retrieve these details. Ultimately there are many solutions as to whether you want to persist this data only for the lifetime of t ...Show All
Audio and Video Development Authoring software
Hi guys. Please excuse my more basic question that is not about advanced content. I have a SD DVD I need to convert to HD DVD. I've used the now defunct DVD Maestro to do all my authoring and I am proficient with it. I need a tool, preferably XP compatible, that will allow me to do some HD DVD authoring with that level of flexibility. The only thing I know of is Scenarist and that may be a stretch for my pocketbook. Are there any other options It is important that the authoring process does not do any recompression of the content. Thanks, Scott Like all new standard it is hard at beginning. I remember , to my mind, the problem with DVD project and DVD players i ...Show All
Visual C++ Positioning the abstract keyword for class declaractions
The Microsoft C++ Compiler that is used by Visual C++ 2005 appears to require one to define an abstract class as follows: class Foo abstract { public: void performOperation(int i) = 0; }; i.e. it wants the "abstract" keyword to appear *after* the class name. My Question: Is this standard C++ practice or is it Microsoft specific Is there a way around it (I want to put the abstract keyword before the class name) My Motivation: this positioning of the abstract keyword messes with Doxygen, which thinks that "abstract" *is* the class name. The result is a long list of well documented classes, all named "abstract". Alternative Solution: this might be a well known problem with Doxygen, not an issue with the position of the abstract ke ...Show All
Windows Forms How to handle JavaScript event in WebBrowser control?
Hi All, Can somebody help me in how to handle JavaScript functions in WebBrowser control. Thanks in Advance Ashish Hi, Ashish Dwivedi May be you need this example. http://msdn2.microsoft.com/en-us/library/system.windows.forms.webbrowser.objectforscripting.aspx Hope this can help you.Regards. Ye. ...Show All
Visual Studio Tools for Office Debug deployed solution
I can launch my deployed VSTO doc, then switch to my VS solution and debug-attached to the correct Word process and debug things. But how can I debug ThisDocument_Startup as there is nothing to attach to at this point I need to be able to fully step through a deployed Word VSTO solution. TIA Yes you can, I do this often. Just add a MessageBox as the first line in ThisDocument_Startup ... when your message box displays, go to attach to the process, find WINWORD.exe (should be only one of these), attach to it, set your break-point in your code, then click the 'OK' button on your message box ... assuming that you have set a valid break-point, VS should stop on it when it gets hit. Hope this helps ...Show All
Windows Forms C# Respond to Windows Shutdown
I have a C# app that primeraly displays an icon in the system tray. The main form doesn't close but only get hidden when the close button is pressed. To shut down the app the user must right click the system tray icon and select exit from the popup menu. Everything works fine except when I got to shutdown windows and this app is running it doesn't respond to the system shutdown and remains running forcing windows to stay running. How can I have the app responde to the system shutdown message and close so windows can shut down properly I figured it out. I added the below code to my form and it solved the problem. Now when I click the close button the form hides when when ...Show All
Software Development for Windows Vista listening to internal events
Hi! I have a little problem handlig some events raised by activities within a workflow. This s the code: public partial class Activity1 : RaiseExternalEventActivity, IEvents { public Activity1() { InitializeComponent(); evento += this.eventoRaised; } protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext) { OnEvento(this, new ExternalDataEventArgs(this.WorkflowInstanceId)); return ActivityExecutionStatus.Closed; } #region IEvents Members public event EventHandler<ExternalDataEventArgs> evento; private void OnEvento(object sender, ExternalDataEventArgs ea) { if (evento.GetInvocationList() != null) evento(sender, ea) ...Show All
Windows Forms Aligning text in Label
How to align text in a Label control to right I set the RightToLeft = True but it doesn't work! Thnk you! I will change the text of the label programatically. If i change the AutoSize property, will it resize correctly It does not reside in the same right position! Thnx! Kapalic ...Show All
