sgmuser's Q&A profile
Visual Basic full file path of running process/instance
Hi Experts, Can anyone know how to findout the full path( ex: c:\rama\bbc.xls) from the curently running instance "bbc.xls". I dont mind accepting VB6\.NET\Windows script solution for the same as i'm desperate to find the full path from ruinng instance. Lets say I've opened saved bbc.xls file and i know the currently opened instances from Process library and i can get the title("bbc.xls") but i dont know how to get the full path("c:\rama\bbc.xls") For more details please have a look at the following link. http://forums.microsoft.com/MSDN/showpost.aspx postid=1206503&siteid=1 -- Cheers, Rama Hi, I got the solution in the following ...Show All
Visual Studio Tools for Office Purpose on signing assembly
Hi, What's the purpose of signing my assembly Does it help security to trust my assembly For info: my VSTO solution is a 'code behind' solution (for Word 2003) Thanks, Claudia Douglas H. Troy wrote: Well darn-it, Cindy, ya beat me to the punch again. I know the feeling <g> It sometimes feels as if the forums should have a "check-out" system... ...Show All
Visual Studio Team System Refresh in Project 2007
I am having problems with doing a Refresh in Project 2007. There seems to be no data being brought over from Team Foundation Server. I can make changes to tasks in Team Server, save them and when I select Refresh in Project 2007, Project remains unchanged. I can also select tasks in Team Server and request it to Open Selection in MS Project. The result is the list of tasks all with a duration of 1 day estimated, a start date of today, 0 remaining work. This seems to have started around the time I upgraded from Project 2003 to 2007. Publish does seem to work OK with current information in Project updated to Team Server. Anyone have any ideas Do you have TFS SP1 installed on the machine I ...Show All
Visual Basic How to activate "Track Change" facility for Excel 2003 using vbscript
Hello friends, I'm facing a problem and not able to find out the solution. The problem defination is as follows: After opening the excel file from the vbscript, I want to enable the "Track change" property of the file directly through the vbscript code. The code is as specified below: Workbooks.Open ("c:\33619.xls") ActiveWorkbook.KeepChangeHistory = True ActiveWorkbook.HighlightChangesOnScreen = True With ActiveWorkbook .HighlightChangesOptions _ When:=xlNotYetReviewed, _ Who:="Everyone" .ListChangesOnNewSheet = False End With ActiveWorkbook.Save The problem is that when i explicitly set the " Track change while editing. This also shares your workbook " option in the Tools &g ...Show All
Visual C++ doubt regarding type conversions.
Hi all, I have a small and confusing doubt regarding the implicit and explicit conversion. I know this is not related to VisualStudio, but just need ur help. I have the following code. double d1 = 10.456; double d2 = 10.156; If I have a long expression like this.. ling l = (d1-d2)*10*10; What should be the value of long supposed to be According to my knowledge, it should be 0.3*10*10 that is 30. but strangely I'm getting 0. Since it is an assignment expression, right to left associativity, it should be 30.000 implicit conveted to 30. I'm using VC 6.0. -- Pratap Because of the way conversion from floating to integer is done. That helps when you want to convert the range [x, x.5) to x and ...Show All
Windows Forms "Do you want to run the application?" message...
Hi, I want to add a question at the end of the install process asking if the user wants to run the application they just installed. Ive tried to do it using custom actions to start a mini-program that will fire my main application but the custom action is called before the end of the install process. Is there a way to do this properly Thanks Todd There are other 3rd party installer tools that support this ability, but our setup projects never have. We hope to get a whitepaper out sometime this year on how to do it, but I haven't played with that yet, so I can't really help. My apologies. ...Show All
Visual FoxPro Error in Building EXE when reportlistener used
Hi All, I use reportlistener for my reports and i have this piece of code in my prg to run reports procedure repoDemo lparameters tcLanguage, tcForm, tcDest, tcPrompt, tcCall, tcTitle, tnFlags local oPrevCont, oRepListner, lcLanguage oPrevCont = null wait window _reportpreview do (_reportpreview) with oPrevCont oRepListner = createobject("ReportListener") oRepListner.listenertype = 1 oRepListner.previewcontainer = oPrevCont report form (tcForm) object oRepListner release oPrevCont release oRepListner endproc && repodemo i use the windows default ReportPreview Container and ReportListener Class. i run my exe from the VFP IDE, we have this facility to run the Exe in the VFP IDE and i can come back to the IDE from the exe. ...Show All
SQL Server Merge Replication-Apply BCP files
How can i apply a BCP files generate by Distributor in the Suscribers. I don’t know wich parameters BCP.EXE need. Thanks I thinks I am having same requirements like Jorge, See What I am looking for is quit similar to Jorge's case, I have 2 Database Servers, I have set Merge Replication (Pull) between them, But Sometimes The Connectivity between both of them is not available for many days, still data needs to be transfered through CD. I thinks this problem is relavant, if not pls ignor, and pls give some solution ...Show All
Visual Basic Need to know when a program has been closed
Hi, I have a program in Visual Basic (P1) that needs to detect when a certain program P2 (developed in VC++) gets closed. This programs P2 can be opened in any time during the execution of P1. P2 is launched from a third program P3 (VC++). Since the program I need to detect its closing (P2) is set as TOPMOST, I've tried to catch the form_focused event from P1 so it would detect when the P2 is closed and the P1 gets the focus. But it didn't work. It only entered the form_focused at the begining of the P1. What I'm doing wrong Is there other way to know when P2 is closed Is there any way that P3 can notify P1 that P2 has been closed Thanks in advance. Try out your hands on ...Show All
Visual C# Can create a mailbox in Active Directory with Exchange 2003?
Hello, I have a Server with W2003, Active Directory and Exchange 2003. I can create one user with C# programming in Active Directory but, How can create a boxmail for exchange 2003 in account create . Thank You. Here are two great support articles: How to programmatically create a mailbox for an existing user in the Active Directory by using CDOEXM (VBS) How to create a mailbox-enabled recipient by using Visual C# ...Show All
Game Technologies: DirectX, XNA, XACT, etc. just starting with errors
I have recently just installed Visual C# Express and installed the xna framework and the xna game studio express. Before that I uninstalled all versions of Visual Studio and uninstalled directx sdk and .net 2. I wanted to start fresh. After the installation I opened a project successfully (MySpacewarWin1). When I try to execute this sample program I get an error saying that the method call is invalid for drawDepthBuffer = new DepthStencilBuffer (graphics.GraphicsDevice,FixedDrawingWidth, FixedDrawingHeight,pp.AutoDepthStencilFormat, pp.MultiSampleType, pp.MultiSampleQuality); if I comment this off a new error occurs at graphics.GraphicsDevice.Clear( ClearOptions .DepthBuffer, Color .CornflowerBlue, 1.0f, 0); with the same prob ...Show All
Visual Studio Team System How to use TDD for User Interface in Web apps
Good morning to all, Much dcumentation has been written about UI testing (no matter language is Java or .NET) but almost all refers to WinForms based apps (or swing or awt applications). Testing those kind of apps seems easier than in Web apps, because forms are, at the end, another kind of objects. Some techniques pretend to encapsulate the aspx apge inside another one and perform tests by javascript coding in the encapsulating page. Seems too much inoperative, mainlly if we pretend to perform these tests programatically. My doubt is: how should we perform TDD techniques for testing UI in Web Sites Anyone has worked with this kind of scenario Anyone knows any useful link for this Any help would be greatly appreciated. Thank ...Show All
Visual C# Free version control tool
Hello, Is there a free version control tool with .net API Thanks. there is not a version control supplied with the .net framework. you may want to look at Visual SourceSafe or Team System which are version control system from Microsoft. There is also CVS or SubVersion which are free version control systems available. ...Show All
.NET Development sql problem inc#
INSERT SomeOtherTable (SomeColumn) SELECT SomeColumn FROM SomeTable I want to take the data from one field in table 1 and insert it into a field in table2 in c#. So Database1.InsertCommand = "INSERT INTO TABLE2 (field1) VALUES (@ then I loose it there What if you write the query you are looking for and execute it using C#.... Is there any reason you are looking for calling Database1.InsertCommand = "...... ...Show All
.NET Development Design using properties in derived components
I am developing a series of components, where a number inherit from others which are themselves usable components. In the derived components I often want to hide from the end-user properties which were exposed in the base class component but which are being used in the derived component internally and should not be modified by the end-user. Unfortunately there appears to be no way in the .Net architecture to do this gracefully. My properties are all virtual so I can certainly override them in the derived class, but I see no way of hiding some of them from the end-user in the derived class other than to override the property and use the Browsable(false) attribute. This still does not stop the end-user from accessing the property in run-time ...Show All
