a.s.viswa's Q&A profile
Microsoft ISV Community Center Forums I need to copy a linked table - as structure and data, not as linked
Using VBA, do you know the code to copy a linked table, paste as structure and data locally. ...Show All
Windows Forms Why is combobox_SelectedIndexChanged() invoked when exiting my application?
I have a combobox and use the selectedindexchange event. But every time i close my application, i will get the following error in the code inside my selectedindexchanged event: System.NullReferenceException was unhandled Message="Object reference not set to an instance of an object." I don't understand why this code is run when i close my application I have not created any events for closing or something like that... BonnieB wrote: Is your ComboBox databound What's the code in your SelectedIndexChanged event Yes, it's databound. Is that the problem That when a form is closed, theres "background-activity" with the datasources The code in the event is a single ...Show All
Visual Basic Graph Help
Hi Not sure if this is the right place (part of the forum) to ask this: Is it possible to have an EXCEL graph but with a slider bar along the bottom to scan through the x-axis data values - I have graphs with several thousand data points with share trading data and an associated EXCEL VB coding that tests trading systems. Im using EXCEL with visual basic in the back of it, but I have Visual Studio and can use that if I have to. Basicallly, can anyone make me/get me a graph viewer or program that displays graphs with a nice slider along the bottom Thanks Hi, You can use ZedGraph to do this in .NET : http://www.codeproject.com/csharp/zedgraph.asp You generate your graph and specify an ...Show All
SQL Server Large Sample Database required for testing
We are creating a search engine in MS SQL using FullText etc. we need to run some tests against a database that is near to realistic data. We have been able to generate a database of thousands of usernames, first names etc. but we can't figure out where to obtain a database full of data that contains product descriptions, product titles etc. Does anyone have any idea where we could obtain (or even buy if need be) a large database (over 10,000 records) of sample data that we could run test queries against, so that we can optimise the queries, provide execution time estimates etc. We have downloaded the adventureworks sample database, but there are not nearly enough records in it. Any help would be much appreciated. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Determining if (part of) traingle passed depth buffer test/got rendered
My problem is simple, I want to draw an triangle (or anything for that matter) and then want to know, in the fastest possible way, if anything actually got rendered. I want to use this for a kind of portal engine. Basicly I want to draw part of a complex scene, with depth buffer enabled for read/write. Then I want to draw an transparent triangle (with depth buffer writing disabled), if part of this triangle is actually rendered (thus is within the viewing frustum and passes depth buffer test) I want to know this, so I know that which is behind it, is also visible. I need to do this several times per frame and want to keep my framerate up, so I want to do this as fast as possible. Does anybody has an idea how to do this ...Show All
Visual Studio Team System Error message when trying to do a merge
I'm getting the following error message when I am trying to merge from one branch to another. Error No matching items found in $/My/branch/path/here at the specified version. This occurs when I use the merge wizard. On the first page I choose my source branch, I choose selected changesets, and I choose my target branch from the drop down, and click next. On the second page I select the changesets I want to merge, and click next. On the third (and final) page It tells me that all necessary info was collected (among other things), and I click finish. After I click finish, that error message appears instantly. There is no delay like it is going out to the server, it just immediately pops up, I click okay, and the whole merge wi ...Show All
Visual Studio Crystal Reports VS.NET 2005 "Invalid Keycode"
I am creating a new ASP.NET web site and dropping a CrystalReportViewer on it in VS.NET 2005. I create a report source, I create a new report and when I choose ok, it tries to open the report to design it and I get an "Invalid Keycode" message. I found the information on the VS.NET 2002 and 2003 registry keys, but they don't exist in VS.NET 2005 of course, so that didn't help. I've gone through the repair option on the DVD, and verified that the Crystal Report section is all selected, but that hasn't helped. Does anyone know how to solve this provblem Thanks I guess the rule of thumb here is: when nothing makes sense, uninstall the piece, reboot and reinstall That corrected it for me. Now the key shows up ...Show All
Visual Studio Team System MSBuild script question for VSDBPro
I'm trying to integrate a solution that has two VSDBPro projects into my automated build. Here are some snippets from my build script file: < PropertyGroup > < TargetConnectionString > Data Source=DevServer001;Integrated Security=True;Pooling=False </ TargetConnectionString > </ PropertyGroup > < ItemGroup > < DBSolution Include = " DatabaseSource\DBProjects.sln " /> </ ItemGroup > < Target Name = " BuildDBSource " > < MSBuild StopOnFirstFailure = " true " Projects = " @(DBSolution) " Targets = " Build;Deploy " Properties = " $(TargetConnectionString) " ...Show All
Windows Forms Associate Data Source with CurrencyManager ??
Hi, is there a way to associate a Data Source with a CurrencyManager I'm facing a problem that I have a ComboBox from another table, and need to add the key in the master table. I was using this line of code when I was using BindingSource, but I faced some problems with navigation and the only way I found to solve it was using CurrencyManager, but now the problem is that I don't know how to associate the comboBox with the CurrencyManager. this .comboBox_grupo.DataBindings.Add( new System.Windows.Forms. Binding ( "SelectedValue" , this .produtosBindingSource , "CodGrupo" , true )); I implemented the CurrencyManager using this link: http://msdn2.microsoft.com/en-us/library/system.windows.forms.currencymanager ...Show All
Visual Basic Extracting numbers from strings from a textbox
Hello, I'm using a textbox tool to load a 460kb text file using this: '=========== Try Open.OpenFile() myStreamReader = System.IO.File.OpenText(Open.FileName) TextBox1.Text = myStreamReader.ReadToEnd() Catch ex As Exception =====end of code======= the text looks like this: SPINDL/ 70.0000,RPM,CLW GOTO / -9.00000, 0.00000, 12.00000 GOTO / -9.00000, 0.00000, 2.00000 GOTO / -9.00000, 0.00000, -5.00000 GOTO / 0.00000, 0.00000, -5.00000 i need to extract the numbers 9.0 , 0.0 and 12 from the textbox once the file is loaded in the text box, how do i do this is there a way to perform a search thank you for your assisstance. you can use Regex, regular expressions, can be expensive however but powerful! I am not great on Regex ...Show All
Visual C# Getting cpu usage...PerformanceCounter not working!
Hello all,<br>I'm trying to get the cpu usage using the PerformanceCounter class as described in the thread: <br> http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=774833&SiteID=1 <br> The problem is, whenever I run the program, it throws an exception stating that the category is not found. I don't seem to have the Processor or Memory categories on my system. I checked the Performance Monitor console, and neither category is present. I hope that made sense.<br>BTW: running fully up to date XP Pro SP2. Can somone please help me out and tell me what I'm missing! I seem to be the only one with this problem. Thank you Sure, When I run it, it throws ...Show All
Visual C# Changing Type during runtime
In response to my previous thread which can be read here , I've decided to create a new thread because although I mention this problem in my previous thread, this is a different subject. To recap, I have a class Shape, which will have many inherited types. In a class Physical, I have a Property which returns a Shape object. Many classes inherit from Physical, and each inherited class will need the capability of allowing the user to change the Shape Type during runtime. I came up with a decent solution, but was wondering if anybody knows, or can think of a better way(s) to solve this: [ BrowsableAttribute ( true ), ReadOnly ( false ), TypeConverter ( ty ...Show All
.NET Development Access query to transpose table data
Hello, I have the following table structure in my database and would like to create a query or table that displays a single record for each country with the three different RatingsType1 across the top as column headings with the respective rating filled in. Something like this: Country Rating1 Rating2 Rating3 US AAA CCC Baa1 where Rating1, Rating2, Rating3 are one of the three types of ratings from the tblRatingsType1 table. Here's the table structure: tblCountry CountryID (PK autonum) CountryName tblCountryRating CountryRatingID (PK autonum) RatingType1ID (FK to tblRatingType1) Rating RatingDate tblRatingType1 RatingType1ID (PK au ...Show All
Visual Basic Extending Windows Explorer
Hi, I would like to add a tab to the fle properties dialog that would show and allow changes to user information about a file, much like Office apps add their stuff. Searched but can not find any kind of examples. Is it possible in VB Google for IShellPropSheetExt or "shell property sheet handler". I found this C# project at codeprojects. ...Show All
Visual Studio Team System Suggestion - Forum Re-organization
Could it be possible to further categorize this forum into topics that address more system level performance testing and lower level unit tests There are different sets of tasks and objectives that are being achieved in VSTS for Testers and the delineation within this forum has become blurred. For a start your list looks good. Here's a few additional suggestions: Installation Reporting Enhancements Feedback ...Show All
