data_art's Q&A profile
Visual Basic mortgage planner
hello i am trying to write a mortgage planner. i have worked out some of the code, albeit a bit iffy. i have searched the help section and found a mortgage calculator but it is in C, and i need VB. i am assuming that C & VB are at odds in hte language area, the code i am trying to use for fixed payments is : fv(rate, NPer, Pmt) i would be greatful for any help, thank you Hi AprilLouise, There is a difference between help and assistance. If we "helped" and did your homework for you then you wouldn't learn. If you receive "assistance" then you could reall ...Show All
.NET Development Using Generics with a DataGrid Control Returning an Index -1 after appending to the Collection
Hello Everyone, What I am doing is simply this .. I have a collection say named List<Persons> persons; And I have a datagrid Control that has its DataSource set as follows - dgView1.DataSource = persons; now when I say use the context menu on the datagrid control and I add to the collection after adding the new object to my collection and then setting the datasource to null and back to the persons List Collection so that the DataGrid control refreshes its contents and shows the new item in the collection (Which works) if I click anywhere in the DataGrid control or even move from one tabbed window and back to this window I get an Ind ...Show All
Visual Basic Does calling a function from a dll created from VB class library spawn a new thread when run or it uses the thread that call it?
Hi all Just to check, when i created a dll using the VB class library. Does the application spawn a new thread when i call function in the thread or it used the thread that call it Regards Soon Lee typically. . . no. execution blocks until the function, actually method is the correct term, returns and the execution is in the same thread. that is, unless you asynchinvoke a delegate to the function. ...Show All
Visual Basic Upgrade to VS 2005
I have a functional program developed under VS 6.0. It compiles and runs. I am trying to move it over to VS 2005. I get the following error. Unregistered MSFLXGRID.OCK or missing program. Is there something about the active X control that i must install or register I thought I bought a full up version. John The flex grid is not a bought component. You should probably change your code to use datagrids, which do the same thing and a whole ton more. If it works in VB6 on the same machine, then the error is misleading, if it's registered, then it's registered. ...Show All
Visual Studio Tools for Office How to get/calculate the character width in MS Word?
BEFORE a lot of text strings are written to a Word file using Office Automation, I need to know the width of each string. Is there any way to do it Please note that office automation cannot be used, because the Word file is NOT available yet. Thanks. It's not really a VSTO related question, but besides that I think you are not in a position where you can determine the width of the string before knowing what font is used, the size of the font etc etc. Every font (except the fixed fonts) has its own width. A Verdana string can turn out to be of a different length compared to an Arial string. ...Show All
Visual Studio Team System SharePoint Services 2.0 with SP1 not installed
I'm trying to instal TSF Beta 3 on W2003 with SP1 ENU but the System Health Cheacks always reports SharePoint Services 2.0 with SP1 not installed although it is installed. Any ideas Hi, You could install WSS SP2 and then try: http://www.microsoft.com/downloads/details.aspx FamilyID=9c552114-dc9a-43ee-9281-b080b7c280b4&DisplayLang=en Regards, Vikram ...Show All
Visual Studio Express Editions Standard Library missing?
Hi, I've recently started a Univercity course and I am required to do a small amount of C++ programming such as make calculators etc. These are made in the command line part of the compiler (looks like DOS) and they run there too. My question is how do I get the standard header files in Microsoft Visual Studio 2005 Express Edition to work I mean like when using: #include <iostream> The <iostream> part appears in red and says that it can't find it. In Uni I am using the Microsoft Visual Studio.net (I think that's it's name) and it has a similar look to this one I have, but I can't seem to call upon the head ...Show All
SQL Server Changing Connection string in multiple packages.
Scenario: 130 dtsx packages using 4 matching connections. 3 of those connections are stored in an SSIS Configuration table in an Operational database. The last connection is in a shared data source and points to the Operational database so the packages can grab the others. Problem: It's time for deployment and all of those connections must change to production servers. The 3 are no issue, just change the ConfiguredValue in the SSIS Configuration table on the production box to point to the other production servers. However, the fourth one... I had made an assumption that when you changed a shared data source it filtered down t ...Show All
Visual Basic Reference compiled assembly
Hi, I have a solution with two projects, one class library and one windows application. The class library has a reference to compiled assembly (dll). The windows application has a reference to the class library project. The windows application is the startup project. The problem is: when I rebuild the solution if I look the bin directory of the windows application the compiled assembly (dll) does not exists. What happend Thanks. Gemazz. Yes, but if the windows application has a reference to the class library, when I rebuild the solution the assemblies necesary for execute the class library m ...Show All
Windows Forms Fill a rectangle without drawing border?
I'm trying to fill a rectangle without drawing its border. I want to fill the rectangle with a LinearGradientBrush. Unfortunately, FillRectangle seems to use the ending color of the gradient range as a border color. This creates a line, in the ending color, just where the beginning color first appears. Any ideas Karen Kenworthy Josh Lindenmuth wrote: One idea is after filling the rectangle with a brush, redraw the rectangle using a pen to ensure the border color is what you'd want. If you don't want a border, you could use the background color as the border. ...Show All
SQL Server Problem with remote replication
I have a number of dialup users who are trying to replicate against a master database.The first few times worked fine.but now each user is getting the following message "The process could not change generation history at the publisher" Any help or pointers gratefully received many thanks David J. 1) How many days has it run smoothly and end up with that error 2) What is the number of transaction run per day 3) Is this transactional replication ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectDraw deprecation question
From what I understand, Microsoft's definition of deprecated APIs like DirectDraw means its not being updated anymore. It doesn't mean it's removed completely from being usable. For me, I'm learning it for 2d education and the book series migrates to D3D9 later. But when I ask questions on MS's forums about DirectDraw and having a problem with an issue, I can guarantee that someone will say it's deprecated and that I shouldn't use it. But if COM is all about backward compatability and pick & choosing whatever API is needed for the project (say DirectDraw, DirectMusic, etc.), why am I being told not to use it It's a C ...Show All
Visual Studio Invalid handle
I'm a long time user of VSS, and our current setup existed as VSS6d for 2 years. Our VSS7 has been installed for 4 months and this week started giving us "Invalid Handle" errors. The files check in - but we are getting the "Invalid handle" error and then later are prompted to run Analyze whenever we use the Admin panel I've run the standard Analyze and no errors were found. I've rebuilt the shadow directories, and am not aware of any network changes (i.e. machines, names, IP's, etc) that might impact this. The files come off the server, to my local work area, and back again, but these errors are annoying - and potentiall ...Show All
.NET Development count total rows in text file
Hello all. I am using text files (using File stream) to store email addresses. I have four files which email addresses are stored in. I have a stream reader that reads through the text files (File stream). I have put a FOR LOOP that counts the text files ie. for ( int i=1;i<=4;i++) { FileStream fs=File.OpenRead(Server.MapPath("..\\")+"emails\\"+"test"+ i +".txt"); StreamReader sr= new StreamReader(fs); for ( int j=0;j<5;j++) { mailAdds=sr.ReadLine(); } } now what i want to do is that when reader reads throught the text files it should know how many rows are there in each text file. I have hard coded 5 here as I don't ...Show All
SQL Server Text Qualifier {"} Not Working
I have installed Standard SQL 2005. I have a problem to import text file in db because of text qualifier {"} not working. Does anyone have the same problem Is it a problem in my installation Thanks for ant comments. Jian Try running the following line first: SET QUOTED_IDENTIFIER OFF Have a look at the following for details: http://msdn2.microsoft.com/en-US/library/ms174393(SQL.90).aspx ...Show All
