ajeeshco's Q&A profile
Visual Basic updating totals
I have a form which shows total sales from an Access database, via a SQL string, when it is loaded. My form also allows me to add additional sales, however, I am unable to update the total sales field without closing and reopening the form - could anyone help me please Happy Christmas. I am using VB2005. Yes, thanks that's how I started - it doesn't work which is why I am asking the question. I agrree the logic seems simple which is why its frustrating when you draw a blank. But thanks for your help. ...Show All
Visual Basic No classlist?
Hi! I'm using VS2005-PE and more specifically VB.NET. In the help files you can get the classes grouped by the namespace they're in, but I can't find a way to get a raw list of all available classes. Is this possible In Javadoc (java) you can and I think it's a great way to search for a suitable class if you're not entirely sure what you're looking for. Am I making sense :) Hey Magos, The object browser is your best bet for browsing all classes in the framework....It has several settings to allow you to cusomize the view....you can turn of viewing namespaces and view the containers...but as far as just getting a raw list of classes to browse...the object browser is your friend ...Show All
SQL Server Where to Install SQLServer's program files?
Hi, I'm after some advice. I have a server containing two mirrored HD's connected to a SAN. I have to install SQL Server 2005 onto this server, I intend to put all data/log files on the disks that are in the SAN but my question is: where is the best place to install SQLServer itself, the local disk (ie. C:) or disks within the SAN Thanks I have just gone through a SAN Migration from one old system to another new system. What I did was to install the core program on the main server but have the database files stored on the SAN Drives. In other places I have always used Clusters with the SAN, and in this case the systems files where installed on each of the cluster servers with the database ...Show All
Visual Studio Team System CTP6 bug - Lost file association for .sql files
2 and ahalf minutes into using CTP6 and I'm already reporting what I think is a bug Thankfully its not a biggie. Prior to installing CTP6 I could double-click on a .sql file and it would open up in SSMS. Now I get an error dialog: "This file does not have a program associated with it for performing this action. Create an association in the Folder Options control panel." Easily fixed of course! Anyone else get that -Jamie I have now. https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=229354 -Jamie ...Show All
Visual Studio 2008 (Pre-release) internal members on dlinq classes
I am getting a run-time error if I makr any members on the dlinq generated classes as internal (I don't mean the generated members, i mean custom members on the other side of the partial class). I've taken quite a long look through the dlinq source using reflector (love reflector :) and it appears that it is a bug in the dlinq framework itself - anyone else having the same problem That actual exception that is thrown (well the actual error is a TargetInvocationException - but thats no good to anyone :) is an ArgumentNullException, details as follows: Exception Details: System.ArgumentNullException: Value cannot be null. Parameter name: method Source Error: Line 24: public System.Data.DLinq.Table& ...Show All
Visual Studio Express Editions Just-in-time debugging warning for Studio Express
Suddenly when I boot my Win XP Pro computer, I am getting an error message regarding the enabling of Just-in-time debugging. Since I have only the Express versions of Studio I don't think I have this feature. How can I avoid the error message when I start my computer Thanks. Kim What is the exact error message you are receiving Can you also check your system event viewer to see if any relevant errors appear: 1. Start->Run->eventvwr 2. Check the System and Application logs and see if anything related to JIT compilation comes up. Let me know. ...Show All
Visual Studio Express Editions Clipboard Help
Hello all, good morning :) need some help with this one please: I have 6 textboxes on my form. I need to assign each textbox with a shorcut key (eg. alt + 1, atl+2 etc..) and then copy the contents to the clipboard. I take it that I would have to put the code in a timer event & would the shorcut keys still work even if the form is not displayed on the screen Thanks, Stuart Hi there. I've been thinking and thinking about what you are proposing about taking in input when the form has no focus and I think it's an awful idea. I'm not really huge on standardization but the potential problems go beyond simply standards but cross proper system functioning. The api routine you ...Show All
.NET Development Process.GetProcessesByName and case sensitivity/uppercasing of process name
When listing processes using Process.GetProcesses() I sometimes see “notepad”, and sometimes I see “NOTEPAD”, sometimes I find process named “iexplore” sometimes “IEXPLORE”. (This is consistent with Task manager displaying “notepad.exe” vs “NOTEPAD.EXE”.) What is even stranger the following code ProcessStartInfo startInfo = new ProcessStartInfo(“notepad”); Process result = Process.Start(startInfo); Resulted on couple of occasions with “NOTEPAD” process being launched as opposed to “notepad”. Unfortunately, using Process.GetProcessesByName(“notepad”) will NOT return any hits for processes with process with name “NOTEPAD”. This looks to me like a bug, if process name should be either consistently case sensitive or not, if it i ...Show All
Visual C++ Using a Windows Form User Control in MFC
Hello VC++ Forum, Our application is written in C++. And we are looking to develop a C# User Interface for It. So we try to host a windows form user control as an MFC view. By default, MFC application is based on the Document/View Architecture. In order to create an MFC application hosting a winform, here are the step by step instructions: http://msdn2.microsoft.com/en-us/library/ksw1x03b(VS.80).aspx I've added a CWinFormView to my MFC MDI project to show a .NET 2.0 control. Really really nice and working fine :) using doc/view architecture. The problem is that our ...Show All
Visual Studio login Failed
I have a windows app that connects to a sql database. I now want to do reporting from it. I have created a CR report (from the buit-in VS2003 version of CR) that is going to be used to display the information. When I run the app I get a login prompt for the database. No matter what I enter into the prompt CR returns "Login Failed". Searching the web the only references to try and solve the problem deal with using CR for reports on the web which are of no use to me. Searching Business Objects website I find references to webpages using CR and unless there is an option I'm missing I can only see snipits of the reply messages (even when clicking on the exact reply) again not help. Questions ...Show All
Visual Studio 2008 (Pre-release) I can't get LinQ installed
When I double click the Install file, it says "Cannot find a valid Product to installl LINQ with". But I have already had a VS2005 Team Edition SP1 Installed. Can someone help me My OS is WinXP sp2, by the way my VS is Chinese Version thanks Benelf If you search the archives of this forum, I believe someone posted a fix to enable LINQ on some non-english versions. I don't know if it would work on the Chinese version. In addition, I have heard some reports that there are issues with the MAY CTP along side VS SP1. Jim Wooley http://devauthority.com/blogs/jwooley ...Show All
Game Technologies: DirectX, XNA, XACT, etc. best way to do 2d parallax floor sprite
I need to do a 2d parallax floor sprite. (I want to closely emulate the style of an older game). Let me explain. I have a long, short rectangular floor texture. I'm rendering it as a texture on a 2 triangle (to make a square or rectangle) set of primitives, that is normally the same size as the texture, and the upper left corner is mapped to 0,0 of the texture, and the lower right corner to 1,1, etc. What I want to happen is when the screen scrolls to the left or right, the top line scrolls slower than the bottom line, and the lines in between scroll an appropriate amount somewhere in between. One way I could do this would be to draw one rectangle for each pixel in the texture's height, so that each can have a different x position. However ...Show All
SQL Server well i need alittle help..
dear sir, i am facing problem while making perspectives in sql server2005(Analysis Services) through C#.perspectives are made well but cant update within a Cube...i mean cant be added to a cube... i dont know what is the problem.so if someone can help me in this regard i will be really thankful to u. Thanks. Edward, Can you point us to anywhere that details what the three ProcessingOptions enum values actually mean ! ! Thanks, Steve. ...Show All
Audio and Video Development MF_ProtectedPlayback Sample doesn't work for Video on Vista Beta 2:
1. Installed Vista Beta 2; 2. Installed Vista Beta 2 SDK; 3. Build MF_ProtectedPlayback Sample from provided samples; When starting both Release and/or Debug versions of MF_ProtectedPlayback Sample with both Adminitrative and not-Administrative priv. as well as with DRM and not-DRM Video content => getting complain in the form of 3 Message Boxes: "Windows -- Bad Image: X is either not designed to run on Windows or it contains an error...." Followed by the crash... Works fine for DRM/not-DRM Audio Files... My guess: Video is not implemented yet That explaines. However, if WMP11 does determine that MF playback is impossible and "falls back" to DShow, w ...Show All
Microsoft ISV Community Center Forums Help Deploying VBA changes across hundreds of Word Temlates
I have been asked to "clean up" existing Word templates that have VBA code in them. Basically what I need to do is to remove the old code that is currently in the ThisDocument class module of the template and replace it with the new code. I've exported the "good" code to a .bas file and I have worked out how to import it back into the Word Template but the only problem I have is that I am importing it as a new module and the original code for the template is stored in the ThisDocument module. I don't know how to either clear the ThisDocument module programmatically (using VBA) or how to replace the contents of it with the "good" code. There are hundreds and hundreds of these templates and I am looking fo ...Show All
