PaulDotNet's Q&A profile
Windows Forms Connection String
I'd like my app. to connect to the DB in the folder that will be in the user's computer when I install it. I don't want to have to change my connection string path everytime I install my app. on a new computer. Using ADO.NET, how do I make my app. to connect to the DB everytime it's run regardless of the app.'s location eg: Dim csWBoard As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:Projects\Whiteboard\WhiteboardDB.mdb" Will the above code work If not, what will @ Operator. You can use a relative path, if the file is in the same folder ... put only the file name, or change relatively the folder. Examples. You exe is in the C.\Folder\SubFolder\ : If your ...Show All
Visual Basic Regression Equation / Statistics in VS 2005
Is there an easy way to create a regression equation based on certain data located in variables Or do I have to get out the 'ole stats book and write the code manually I couldn't find anything in the help file about this, so I may be out of luck! Thank you! -Corey Sidermans Dark side, sometime you highly misnformed in the things you say. I'n 1970 I was doing linear regression equations on Mini-Computers in Focal a VB predecessor.. Linear regression is very,very EASY to on a computer. It's pretty much like a correlation coeffiient. Unfortunately I am asked to do this once every fifteen years of so and I've forgotten the approach. I remember y = mx + b after to get the coe ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Dream-Build-Play contest question
In case you haven't heard yet here's the link. www.dreambuildplay.com/index.html I was just wondering if anyone knew exactly when it begins and if you need to have a 360 to be able to enter the contest. It sounds like an interesting thing, I'll probably enter my Banshee game... By the way, I don't know if anyone noticed, but the dashes and dots towards the bottom are Morse code for "your world, your game" ...Show All
Visual Studio 2008 (Pre-release) Rubber Banding
Howdy, Ian G did a blog article back in 2004 on rubber band selection in WPF http://www.interact-sw.co.uk/iangblog/2004/02/06/rubberband that showed how to do this by placing a rectangle in the visual tree at an appropriate level. Is this still the way to go Or is there a different preferred method Thanks Paul dave45 wrote: This url gives VB code for a SimpleCircleAdorner class and: myAdornerLayer = AdornerLayer.GetAdornerLayer(myTextBox) myAdornerLayer.Add( New SimpleCircleAdorner(myTextBox)) but doesn't explain how to create an AdornerLayer, (Dim myAdornerLayer as AdornerLayer returns Nothing, how do I GetAdornerLayer is a ...Show All
Microsoft ISV Community Center Forums Dear DMan1 could you just be a little more explicit about how I name the Sub1?
Hi folks, I've written several Subs on different worksheets in Excel but I'd like to set up a batch file to run them all. Is there a command that allows a "stack" of subs to be run one after the after I am sure there must be. Beats me. Hamish. I don't know exactly how this will work. But I would open up the workbook and copy the macro sheet to thisworkbook and then run the macro like thisworkbook.Application.Run("myMacroSheet.myMacro1") Press F1 on Run to see other example and documentation. ...Show All
Visual C# propagation of user-type objects through a webservice
Hello, here is my problem: I have written a webservice with several methods that shall be called by a client application and return data in the shape of a user-defined type. This type contains two string arrays and some numerical information and is defined in a dll. The problem shows up when i want to compile the client; i get the error message: Argument '1': cannot convert from 'Conformity_FTP_Client.localhost.ActualDirInfo' to 'Conformity_FTP_Tools.ActualDirInfo' Here is the critical part of the client sourcecode: Try updating the reference to the web service.... IMHO I have written two successful business web services for two differing companies over the past three years. In both of them I had to pass similar, i ...Show All
Visual Studio Express Editions books for ADO.net
Hi i am new to VB.net windows application. can you please suggest me some good books for ADO.net Thanks in advance http://www.amazon.com/s/ref=nb_ss_/002-4554394-5616821 url=search-alias%3Daps&field-keywords=ado.net&Go.x=7&Go.y=10 ...Show All
Visual C++ C++/CLI Types
Hey All, When I was using Managed C++ back in the old days of VS03, I remember being very careful to use Int16 instead of short, and Strings instead of std::strings. I'm wondering how much of a difference that makes w/ the new CLI. Is "int" equivalent to "Int32" as far as garbage collection and such Also, I caught myself doing this today when I declare variables. String ^str; but when i do my arrays, I put the handle like this... array<String^>^ str; Where is the 'proper' place to put the cap The standard just defines something like this sizeof(char) <= sizeof(short) <= sizeof(int) <= sizeof(long) ...Show All
.NET Development can anyone say how to consult with Printer's PCL files in dotnet?
how to consult with PCL files in dotnet i need to convert them into PDF format.. thx in advance.. JAY VORA 9879354457 ...Show All
SQL Server Next Measure
Lets say I have a set of measures that go like this: Date, Payment October 3, $3 October 6, $4 December 6, $5 December 8, $4 My problem is that I need to get the next payment date and amount. So if for example I am standing in October 3, I would have to get (October 4, $4). If I was standing in october I would have to get (December, $9). Assuming I have a measure called [Payment] and a [Date] dimension ([Year], [Month], [Day]), How can I do this with MDX Thanks in advance Both formulas look for the next time period in the Time hierarchy. If the current time period is Year - they will go to the next Year, if it is Month - they will go to the next month. Jan07 is the next month after ...Show All
SQL Server Calculated measure - visible only in grandtotal
I've seen a topic "disable grand totals for calculated measure." in this forum: is it possible to show calculated measure only in grandtotal ...Show All
Commerce Server error when trying to view reports
Hi all I'm tryung to view the commerce server reports. When trying to view the EntryPage report i'm getting this error: [rsMissingFieldInDataSet] The data set ‘TableDataset’ contains a definition for the Field ‘Measures_Visit_Count’. This field is missing from the returned result set from the data source. [rsErrorReadingDataSetField] The data set ‘TableDataset’ contains a definition for the Field ‘Measures_Visit_Count’. The data extension returned an error during reading the field. There is no data for the field at position 3. as a result i can't see the visit counts of each page(but i do see the top entry pages) If i'm trying to browse the EntryPages Cube via the analysis services , i'm getting the correct data. a ...Show All
Software Development for Windows Vista UnauthorizedAccessException when using MSDTC
Hello everyone, We have a 3-tier application, the client, the server and the databaser server. It was developed using C# 2.0 and .Net 2.0, the database server is MS-SQL 2000 and we have some MSMQ in there. All 3 are located on different machines. The client is Windows XP SP-2, the application server is Windows Server 2003 SP1 and the daatabase server is also Windows server 2003 SP1. Most of the time when the client performs an operation to the application server the database gets updated and something is written to a queue. The writing to the database and queues is performed in the context of a transaction, we use the System.Transactions facilities and MSDTC. When the server performs the writing operation it 'impersonates' ...Show All
SQL Server Maxrows in Drillthrough
Even when I set the maxrows in my drilltrough action to 2500, the data sample viewer still states that 1000 records were sampled. Is this 1) a limitation of the viewer (ie - I would see all of my rows if I used a different application to view the data) or 2) A limitation of SSAS - no more than 1000 rows will ever be returned or 3) Something that the interface has hard coded into the screen that does not reflect what is actually happening. Thanks for the help. Ann It definitely isn't: "(2) A limitation of SSAS - no more than 1000 rows will ever be returned". If you execute this drillthrough query on Adventure Works in Management Studio, 1899 rows are returned - adding "maxrows 1500" limits output to ...Show All
Smart Device Development cf2.0 and my application cab
how to create a msi include my application's cab file and cf2.0 Thank you. hi ilya I have seen your url. and I have seen the url( http://msdn2.microsoft.com/en-us/library/aa446504.aspx ) between your url. It tell me how to package more cab files to a msi file. But I neet to package my application's .cab file and cf 2.0(it is a .msi file) to a .msi file. How to do it . Thank you. ...Show All
