Teddy79's Q&A profile
Visual Studio Tools for Office Bug?
The following line gives error "Activate method failed" when the oExcel workbook was previously open when the program is run. oExcel.Worksheets( 5 ).cells( nPositions, 1).activate() However, it does work fine when the oExcel object was not open and is opened by the GetObject. All other manipulation of oExcel works fine independently of whether oExcel was previously open or not. The related relevant code is Dim oExcel As Excel.Workbook oExcel = GetObject( "C:\Documents and Settings\Antonio\My Documents\inventory.xls" ) oExcel.Application.Visible = True (manipulation of oExcel) oExcel.Worksheets( 5 ).cells( nPositions, 1).activate() The descr ...Show All
Visual Studio Team System Version control API - basic recipes
I'm working on writing a simple client using the version control API and I'm having trouble with a couple of basic concepts related to server names, local paths and server paths. I'm hoping someone can fill in the gaps with a few recipes - I've looked at some of the samples on various blogs, but haven't found solutions to these basic issues: 1. Given a local path, determine the name of a TFS server that has a mapping for that path (if such a server exists). The code from the example on Buck's blog ( http://blogs.msdn.com/buckh/archive/2005/10/26/485458.aspx ) doesn't seem to work - it never finds a server name. 2. Given a local path, determine the exact name of the server path that maps to it. 3. Given a server path, determine the ...Show All
.NET Development .Net 3 apps require .net 2?
If in visual studio I compile an app to .net 3 and dont use any of the new features do I require .net 3 on a server or .net 2 Thanks Ross For more questions about how the .NET Framework interacts with .NET Framework 2.0 please reference the .NET Framework 3.0 deployment guide, http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnlong/html/netfx30.asp under How .NET Framework 3.0 Relates to .NET Framework 2.0 and Earlier . All of the deployment guides can be found under the sticky announcement: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=888269&SiteID=1 . ...Show All
Visual FoxPro Clipper bug in record 1220?
we had an error during rebuilding indexes in a clipper program. we run the records by 100s to see what is really wrong with it. when it reached the last record, that is 1220, an error appeared. but when we added a blank record, the program run smoothly. what could have caused the error SharathMum wrote: can u post the error message error in line 99 where 99 is just the line number. the line number consists of set index to abcd where abcd is the indexname ...Show All
Windows Forms Funky text / polygon-shaped text
Hey All, I would like to create a very psicodelic screen saver for my computer. This screen saver will display a string and it will shape the string to a randomly generated polygon, like this: EEE L H H E L L OO HHH EE L L O O H H E L L O O EEE L L L OO LLL LLLL H H L O H H L L O O HHHH EEE L L O O H H Ee L L O O H H EEE L LLL O LLLL So basically "hello" pulled and pushed in all directions. (For those who have watched Futurama and know who Hypnotoad is, the effect I want to achieve is the same as its eyes) I am right now looking at Graphics.Transform but I am lost there. Your help will be appreciated. Cheers, Hey I'm almost positive that the code here is NOT wha ...Show All
Windows Forms Run form over network
After building the windows form I put the .exe file on the server and want users that have access to the server through My Network to be able to run the file and use the windows form. But when I try to run an the application it gives me an error. It works fine when it is on the local computer been does not work when you try to access it over the network. I am guessing that it is because of some security issues but I don't know how to resolve this issue.The error is:test.exe has encountered a problem and needs to close. We are sorry for the inconvenience.and then it has the "tell Microsoft" text and buttons.TIA Check this blog post , it describes what most likely is the issue you are dealing with ...Show All
SharePoint Products and Technologies stsadm.exe SecurityException
Hi, I've unistall and install stsv2.exe again. Then find problem when installing stsv2.exe. I found that the problem is caused by stsadm.exe I've tried to run stsadm.exe, but have following exceptions: C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\BIN>stsadm -o upgrade -forceupgrade Unhandled Exception: System.Security.SecurityException: Failure decoding embedded permission set object. at Microsoft.SharePoint.Administration.SPGlobalAdmin.get_ServerCulture() at Microsoft.SharePoint.StsAdmin.SPStsAdmin.Main(String[] args) Kindly please help, I can't find any real solutions... Many thanks. Kind Regards, zoe Hi all, I found a solution, it works. Go to C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 and ...Show All
Software Development for Windows Vista How do I: WF - WS ?
I hope that's a right place to ask for this. Yesterday i've completed my workflow (i was beating it up for 2 weeks). So now it works great with my web site. But my boss said that workflow can not handle as many calls as web site provides so it almost certain to fail after 30 minutes of work. He said I should expose my workflow as a webservice instead. The problem is: my only experience in WF-WS was a hand-on lab which is build on already made components. And i got nothing from it. I need to add web service input.. than interface type Should i declare it somewhere or make my own library And these methodNames and WSoutput... i need a jumpstart quick! Can anyone help me with some links (basic tutorials, guides, lessons on wf-ws ...Show All
SQL Server Unable to connect if mirror down
We have an application running with a principal, mirror, and witness. If we bring the principal server down, it looks like failover occurs successfully, but the application is not able to access the database. If we bring the server back (so it is now functioning as the mirror), the application is now able to connect to the database. Why isn’t the application able to connect without the mirror up Any suggestions We solved the problem by setting the timeout on the connection string to 60. When the Primary DB is taken off line, the Mirror becomes the Principal. The web application must use the fail over partner (specified in the connection string) to connect. The initial connection takes 40+ sec ...Show All
Windows Forms SendKeys help
I am having a tough time getting SendKeys to work with a lowercase cedilla (ç). Other extended characters like or  work in SendKeys, and even uppercase Ç. I also tried doing a SendKeys.Send("%(0231)") to try and type it in as ALT+0231 (that works on the keyboard) and couldn't get that working either. Anyone have any suggestions on how I can get this character to work & ...Show All
Windows Forms Adding Menu Separator to a ComboBox
I would like to be able to add menu separator items to a ComboBox control. I'm guessing I'm going to have to create a derived class and override the OnPaint() method. Any suggestions on the best way to draw it Are there any existing examples of doing this - be great if I could avoid re-inventing the wheel! Many thanks in advance, John If you set the DrawMode of a ComboBox to OwnerDrawVariable, you can handle the MeasureItem and DrawItem events; you don't need to derive your own class. If you maintain a List of item indexes before which you want a separator, you can add some extra height to those items in the MeasureItem event, and draw the line in the DrawItem event, something like this: private ...Show All
Visual Studio 2008 (Pre-release) DirectionalLight and different materials
Hi! I am trying to make an animated 3D model of the solar system. I am having problems with lights and materials. Is it possible to make a object that emits the light (directional) For now I am using only sun and earth. I am using DirectionalLight to make earth visible but I don't want the sun to be enlightened by that light. If I use only EmissiveMaterial for the sun it looks OK, but when the earth should go behind the sun it appears in front of it. Is this a bug It looks like a bug. If I change only the material of the sun the earth goes behind it as it should. But DiffuseMaterial is enlightened by directional light and it does not look like the sun any more. Does anybody have an idea how could I achieve the proper li ...Show All
.NET Development Optimizing performance with GC
Does anyone have any tips on optimizing a program's performance with respect to garbage collecting I am writing a 2D game programming library using Managed Direct3D. But I am having problems related to garbage collection; The framerate will drop from 75 down to around 50 when a collection occurs, which creates noticable lag in the game. I have run the program with the CLR profiler, and I see a large number of System.Int32 being created and collected, which surprised me. I thought only reference types would be subjected to garbage collection Is this entirely due to boxing There is no place in my code where value types should be boxed, so I my guess is this is happening someplace in the framework libraries. What are common places this ...Show All
Visual Studio VS.Net 2003 and VS.Net 2005 at the same machine
First, excuse my english Can i have installed VS.Net 2003 VS.NET 2005 together in the case of compatibility problems, please indicate me if are available patchs and other solutions to that. I have been running them side by side since the Betas of 2005 with out a problem.... The only thing that I can suggest is to make sure that you install the 2003 versions first then the 2005 versions. What I found is that when you install the versions the other way around the file assosiations get assigned to the lower version. When you install then in the proper release order the files will open in the correct application when you select them. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA in comparison
Hello, what would you recommend for game developing with c# TV3d or XNA where are the advantages/disadvantages of both which have more modern features thx TV3D is a high level graphics API with scene management and animation support. XNA is a low level graphics API with support for XBox360 and Windows. Comparing them would be apples to oranges. If you want to release games on XBox360, you need to use XNA or the Torque game engine that is being built on XNA. Comparing Torque with TV3D would be a more realistic comparison, but if you want to release on XBox360, you must use XNA. End of story. ...Show All
