paolob's Q&A profile
Microsoft ISV Community Center Forums VBA w/ Word 2000 - keep form on top of all applications
Does anyone know of a way to make a form stay on top of all applications or even on top of all open Word documents I want a form that stays on top even if I minimize its parent Window (the document from which it was launched). I want it to stay on top even if I click on another Word document. Is it possible I've used the SetWindowPos function, but as soon as I minimize the form's parent, the form minimizes as well. I've tried using the SetParent function and the GetDesktopWindow function to make the desktop the forms parent, but for some reason the GetDesktopWindow seemed to return the same handle as the form's parent Word document. Any help would be greatly appreciated. That's called a modal fo ...Show All
Visual Studio Team System Question of build?
Hi, I have this scenario, I have some Team Project called "W" I did some branch of code from W version 1.1, so, I want to know if I run or build my Branch Project this automatically takes all componets from the base project in this case "W" My branch project have only for expample the version 1.2 so what happens when I build my branch project Hello Ray: The build of branch Project doesn’t affect the base project. It only takes the needed files in the branch project. When you create a build type the wizard will let you choose which project to build. The branch has a complete copy of the project file. The TFS does it well at the efficiency and the isolation. ...Show All
Visual Studio Team System Will two versions of .NET interfere with builds..
I'm just looking for some assurance. On our TFS box we have team projects built with .NET 2.0 and we're adding some projects which will be using .NET 3.0 - will there be an issue using TeamBuild Is there a chance of any part of the .NET 3.0 framework interfering the code using .NET 2.0 - even though they're seperate team projects The .NET 3.0 framework has not been installed on the server itself, only on local clients/workspaces. Any information would be greatly appreciated! Thank you. You should be able to install it anywhere as it's just some extra assemblies. The different versions of .NET are designed to run side by side. ...Show All
SQL Server The error code is 2380. Error opening file for write: 5. GetLastError: SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Setup.
I get the following error message when I install sqlserver 2005. TITLE: Microsoft SQL Server 2005 Setup ------------------------------ The installer has encountered an unexpected error. The error code is 2380. Error opening file for write: 5. GetLastError: SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Setup. For help, click: http://go.microsoft.com/fwlink LinkID=20476&ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.06&EvtSrc=setup.rll&EvtID=2380&EvtType=sqlca%5csqlsecurityca.cpp%40Do_sqlGroup%40Do_sqlGroup%40x5 ------------------------------ BUTTONS: &Retry Cancel ------------------------------ Anybody got an idea Thanks Thanks for the reply, although I am a ...Show All
Visual Studio Debugger looking for CRT0.C
Hey guys, When I'm running my debugger, I am getting a strange problem that keeps occuring. If I click run, the debugger follow throughs the whole source code and gives me an access violation of 0xC0000005. If I do a run to cursor, then I am forced by the debugger to provide the location of CRT0.C. The program runs fine without the debugger, just doesnt output the correct results. Would anyone know the reason for that Thanks Robbie It sounds like you have an access violation somewhere in your code. I believe crt0.c is the source for winmain. It's probably where the access violation is being caught. Did you try handling exceptions as they are thrown (Under Debug | Exceptions ... and then pick access violation under Win32 Exc ...Show All
Visual C# Is there anyway to clear all handlers for an event?
hi, I am just thinking if there is a way to remove all handlers for an event, like button1.Click += new MyEventHander(OnButton1Click); button1.Click += new EventHandler(OnButton1StandardClick); ... I think you can hook up as many as you want handlers to a single Click event. The question is how to remove all of them Is it the only way that remove one by one by using -= Thanks. ...Show All
SQL Server comparing two integers and returning a third
I am having difficulty trying to figure out how to compare two integers stored in a table to return a third. I have two integer fields in one table and two in another like this: Table1.SomeNumber1 = 1 Table1.SomeNumber2 = 2 Table2.SomeNumber1 = 2 Table2.SomeNumber2 = 1 I need to be able to compare the first number from the first table to the first number in the second table. If the values are different I need to set a variable or field to 0. If the numbers are the same I need to set my variable or field to 1. I need to follow the same procedure comparing the second number in the first table to the second number in the second table. In addition, I need to be able to do it in a single select statement. Does anyone have ...Show All
SQL Server connection problems
Hi, I've installed VWD, SQL Express and IIS successfully using Windows autentication. Everything went smoothly and I did have a functional connection to my new database. But suddenly without any obvious reason I could not connect. When I try to connect inside VWD I receive the error: "An error has occurred while establishing a connection to the server. When connection to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error 26 - Error Locating Server/Instance Specified)." When I try to connenct through SQL Server Management Studio Express I receive the error: Cannot connect to I6000\SQLExpress. Additio ...Show All
Visual Studio 2008 (Pre-release) OutgoingMessageProperties Usage
Hello, I have attempted to populate an outgoing message property and then read it from within my operation, but it does not appear to work (the message never shows up on the incoming side). Is this the proper procedure I'm using named pipe binding. using ( new OperationContextScope (( IContextChannel )channel)) { OperationContext .Current.OutgoingMessageProperties[ "test" ] = "testvalue"; channel.MyMethod(); } ... void MyMethod() { Debug.WriteLine( OperationContext .Current.IncomingMessageProperties[ "test" ]); } Using a message header instead works. That's by design. Properties are used to flow information locally and d ...Show All
Windows Forms AVOID THE REPLACE FILE QUESTION
I`ve export the data of a data grid to an excel file, but everytime that i run the app the question doyo wan to replace it (the file shows, con anyone help me Sub entrar() 'Start a new workbook in Excel. oExcel = CreateObject( "Excel.Application" ) oBook = oExcel.Workbooks.Add 'Create an array with 4 columns and 100 rows. Dim DataArray(99, 3) As Object For r = 0 To 99 DataArray(r, 0) = "ID" & Format(r + 1, "000" ) DataArray(r, 1) = blu(r) DataArray(r, 2) = bla(r) DataArray(r, 3) = fecha.Text Next 'Add headers to the worksheet on row 1. oSheet = oBook.Worksheets(1) oSheet.Range( "A1" ).Value = "Id" oSheet.Range( &q ...Show All
Visual Studio Tools for Office events not firing
I have 2 VSTO projects. 1. vsto_addin.xls 2. vsto_workbook.xls I have bot vsto-addin.xls and vsto_workbook.xls currently open, I run a routine in vsto_addin.xls that inserts a worksheet into vsto_workbook.xls Events are not getting fired in vsto_workbook.xls essentially worksheet_activate or any other events for that matter. Is there any way that a routine in vsto_workbook.xls can be called from vsto_addin.xls Thanks Weird, when I am trying to add worksheet programmatically (workbook.sheets.add) I do get the Workbook.NewSheet event raised. Is it possible your event handler is just Garbage Collected because of the way you declared it Do you get an event raised in VBA ...Show All
SQL Server Parameter not working
I am pretty new to reporting services and hope some of you experts can help. I created a report from AS cube that has a column "Description" with 30 distinct values. The report has a multi-value parameter "Description" with the following details: Data Type : String Value Field: Description Label Field : Description The filter that i have on the table is =(Fields!Description.Value) = Cstr(Parameters!Description.Value(0)) When i preview the report i only see the top 1 item from the values that i select from the parameter list. What am i doing wrong Any help is appreciated. Thanks Rookie, I played around with this for a bit, I was able to return mu ...Show All
Visual C++ Problem in Add Reference (static library)
Hi I am reading ( http://msdn2.microsoft.com/en-us/library/ms235627.aspx ) this article. I created static lib But i can't achieve this part: "To use the math routines that were created in the static library, you must reference it. To do this, select References… from the Project menu. From the Property Pages dialog, expand the Common Properties node and select References. Then select the Add New Reference… button. The Add Reference dialog is displayed. This dialog lists all the libraries that you can reference. The Project tab lists all the projects in the current solution and any libraries they contain. From the Projects tab, select MathFuncsLib. Then select OK. For more information on the Add Reference dialog, see ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 2D Engine Using GameComponents and no Scene Manager Design Help
I'm currently working on a small scale 2D engine. I have a simple Sprite:DrawableGameComponent class which loads a texture, rotates, scales, and draws to the screen. I then inherited a Player and an Enemy class from Sprite. (My thinking was that sprite already has most of the data stored that I need for an Enemy class, and I can just add update code for AI in the overridden component update method.) So my first question is this: Is that the wrong way to go about this Would it be better if I had the Enemy class inherit directly from DrawableGameComponent and store the Sprite data inside it Now currently everything works, I have Enemies popping up all over the place and the player moving around. Fun stuff. My next step was adding collision ...Show All
Visual Studio Express Editions .NET Framework 1.1
Ok so I made my first application in VB2005EE. Problem is - to run it .NET Framework 2.0 is required to run it. How can I change this so that to run the application .NET Framework 1.1 is only need to run the appliction .ZIP SOURCE - http://www.supanode.com/vssetup/vssetupsrc.zip This is the source to my project - I would have no idea what to do to be able to do this. Any help is much appreciated! Thanks! I don't think you can do this with VB Express. There's no option that I could find in VB Express to deploy (publish) to different .Net Framework versions. In VS 2003 Professional, you can choose which .Net Framework to publish to. I'm assuming it's the same with 2005. You'd have to upgr ...Show All
