Siddu's Q&A profile
Microsoft ISV Community Center Forums Closing a dependent file in Excel97
I am trying to set up programming for an Excel97 spreadsheet. Because the file (call it Alpha) takes a long time to save, I want to put the code in another file (call it Beta) and call it from Alpha. I have that figured out, and the references set up. The problem is that I want Beta to close automatically when I close Alpha. I tried putting a Close command in the Before_Close subroutine, but then I get an error message telling me that I cannot close the file (Beta) because it is referenced by another open file (Alpha), even though it is itself in the process of closing. How can I order Beta (that is, the file with subroutines) to close when ...Show All
Visual Basic How to Draw Text on an image?
Hi everyone, I'm stuck on a little project where I need to draw Text on an image in a picturebox. I have a TreeView, 2 pictureboxes and a Textbox. The TreeView has a list of pictures in a selected directory, when I click on an image name it displays in the first picturebox (PB1), and I want the text in the TextBox1 to be written on the image and displayed in the second picturebox (PB2) on the fly (to show the user the attempted output). I have only managed to do this with the following code which I have problems with: pb_Orig.Image = Image.FromFile( TreeView1.SelectedNode.Text) Dim Bmp As New Bitmap( TreeView1.Select ...Show All
Visual FoxPro remote data
I want to create a system with 1 database and many users that can access it a solution is the server client model ok lets say we have a database in a remote server(vfp database) i go to each client and make a datasource and a connection to that database 1)the tables of that database will ONLY be viewed by clients through remote views 2)if yes ,i will put the views in the data enviroment 3)if yes,i can insert,delete,update,buffer...etc the views like they were tables 4)must i make a server programm with fox if yes what must kind of functions must i put there 5)does sql pass through has anything to do with all this 6)i think i must make a dat ...Show All
Visual Studio Replace a ProjectItem with another with the same name via DTE
Hi! I'm having another little problem with DTE... I'm using GAT (Guidance Automation) to execute some code when a project template is completely unfolded. In my project template, there is a link item (a file that appears in the project but that isn't in the directory) but because of some GAT/Project unfolding mixup, the link is not pointing at the right place. I'm attempting to solve the problem via DTE after everything is unfolded. Here's what I do : - Find the containing project - Find the ProjectItem that is the bad link - Use Remove() and Delete() on the ProjectItem to get it out of there - Then use the containing project's .Proj ...Show All
Windows Forms How to get a stored procedure instead of a table?
Hi, How to get a stored procedure instead of a table CREATE PROC dbo.myStoredProcedures @tablename NVARCHAR(256), @columname NVARCHAR(256) AS DECLARE @query NVARCHAR(1000) SET @query = 'SELECT ' + @columname + ' FROM ' + @tablename EXEC (@query) Thanks, Adisrod I do not believe it can be done. You can not use a stored procedure in the FROM cla ...Show All
Visual Basic is visual basics easier then C++?
please answer and where do i get it please put URL thank you You will find that VB.NET and C# are both easier to learn than C++. If you're looking to learn a language that will help you with other languages down the road (C/C++, Java, PHP, etc.) then C# is the way to go. If you're looking for the absolute easiest way to write applications, VB.NET is probably a better choice. You can download the express editions of either from: http://lab.msdn.microsoft.com/express/ Hope this helps, Josh Lindenmuth ...Show All
Visual Basic Access Source Code of *.dll File
I still am finding my way around VB.Net(2005)... I have source code from which I have created a *.dll file in /bin/release/ directory. Next I created WindowsApplication1 and added the *.dll file to the ToolBox and then dragged the control to Form1. I see this file in the Source Properties Reference list. Now it is desired to run WindowsApplication1 and have access to the source code of the *.dll file in the UI debug mode. I tried various random combinations of settings but have not had any success to do this. Any suggestions would be most welcome... Thank you... In windowsApplicatio ...Show All
Visual C# C# generics on conversion operator and constructor
I have so far a class Expr with a constructor taking a string, and the following two conversion operators. public static implicit operator Expr ( int expr) { return new Expr (expr.ToString()); } public static implicit operator Expr ( string expr) { return new Expr (expr); } I have various others, but they all get distilled down to a string using .ToString(). So, the obvious question: How would i generalize this with generics The following doesn't work because the C# parser interprets Expr<T> (a generic type) instead of (operator Expr)<T> (a generics parameter o ...Show All
Visual Basic Trimming a string
How would I trim a string that looks like this: 6004-6005_004.txt Into: 6004-6005 Thanks. variablename.remove(Character to start at, number of characters to delete) New variable as string. So I think your code should look something like NewString = OriginalString.remove(9, 4) But if you have trouble with the characters being selected just try playing around with those numbers. ...Show All
Visual Studio Displaying multiple reports in CrystalReportViewer in ASP.NET, VS2005 Beta 2
I am a new VS 2005 b2 user. I have several reports that I want to display simultaneously in one crystalReportViewer on an asp.net page. In Crystal 8.5, this was possible with the ActiveX Viewer. Is there a way to do it in VS 2005 b2, or do I have to upgrade to a new version of crystal If so, which one Thanks for the feedback, I'll make sure that our product group takes a look at this thread. Just to clarify for the rest of the people reading CRAXDRT is our COM based reporting engine. It is not a .NET reporting engine is not shipped with Visual Studio .NET 2002 or 2003. Keith - Business Objects ...Show All
Smart Device Development Deployment issue
Hi, i created a new C# Smart Device Pocket PC Windows Application Project. At that point, all i try to do is build and deploy. The build is successful. When i then try Build->Deploy, i select the "Pocket PC 2003 Emulator", and the the deployment begins (i assume). The emulator is launced with the Programs screen showing, and after a LONG while, it appears as though the deployment fails. this is what i see in the output window ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== ========== Deploy: 0 succeeded, 1 failed, 0 skipped ========== how do i actually test that ...Show All
Visual C++ Merge Module woes with VS .NET 2005
I have an application which comprises several DLLs. All of the DLLs require manifests linking to common controls, ATL80 and MSVCRT80. When I run the app on my machine I have no problems. If I try and install it onto another machine it fails when it is self-registering the DLLs. If I look at the dependencies on the target machine I can see that it cannot locate ATL80 and MSVC80 and this is why it cannot load the DLL. However, my second DLL, which links the same ATL80 and MSVC80 libraries loads in dependency viewer fine . Both DLLs are compiled with ISOLATION_AWARE_ENABLED defined. The installation was created in Wise for Window ...Show All
Windows Forms ToolStrip Color Picker
Hi there, before emarking on a jouney of discovery in custom drawing of ToolStrip items I have to ask the question: Is there a built in Font Color picker for the VS 2005 toolstrip A font and font size combo are also needed!! I'm guessing there isn't one out of the box so can anyone point me in the right direction when I come to implement these in VS 2005 beta 2 please Thanks for your help Graham Hi, You could try using this Built-in Dialogs... ColorDialog, FontDialog. To specify forecolor and font type... cheers, Paul June A. Domag ...Show All
Visual C++ winnt.h(222): Error C2146 ...
All, line 222 in winnt.h reads like this: typedef void * POINTER_64 PVOID64; and creates the error message Error C2146: syntax error: missing ';' before identifier PVOID64. I am trying to throw VC++ 2005 Express on Windows 2000 Pro SP4 at a modifed version of the amcap sample program of DirectShow. This is the version I have downloaded with DirectX 9.0b on 11 Oct. 2004 and have successfully used with VC++ 6 SP5 on the same program. (The DXSDK involved is (one of) the last issue of DirectX that included DirectShow.) I have the platform SDK downloaded, and putting i ...Show All
Visual Basic Shortcut problems
I created a VS 2003 deployment project and I've set it up the way I want, even with a custom installer class. At first I had shortcuts on the desktop and in the program files that were working. Now, the shortcuts will uninstall the program if you double click them. When looking at where they are pointed, they show the installation folder and not the executable. I've recreated the shorcuts and changed other things, but nothing helps. Does anyone have any ideas I figured out how to do this without manually editing the .msi This same question was asked in several different thr ...Show All
