Phillip Carruthers's Q&A profile
Visual Basic setting start folder
In VB6 compiled programs you could set the "start in" option in the shortcut. But I VB2005 I can not see how to do this The problem is differnt user's might have differnt folders for there data It maybe in Project Designer Click on "My Project" in Solution Explorer -> Go to "Debug" tab -> Under "Start Options" -> "Working directory" ...Show All
Windows Forms Reference a DataGridView cell from code
Hello All, How do I programmatically reference the exact column and row of a particular cell in a DataGridView on a form Cheers, sfx1 Try this: MyDataGridView.Rows(RowIndex).Cells(ColumnIndex) Tony ...Show All
.NET Development Sorting datagridview prgramatically
I have built a DataGridView called CUSTOMERDataGridView. The data is bound to a dataSet object set up as follows: CUSTOMERDataGridView.DataSource = CUSTOMERBindingSource CUSTOMERBindingSource .DataSource = HFD_1DataDataSet (SQL Server Database) CUSTOMERBindingSource. DataMember = CUSTOMER (database table) Here is my problem: The automatic sorting (when user clicks onthe column header) works great. However when I attempt to duplicate this in code as follows: Sub SortByName(ByV ...Show All
Visual Studio Team System TFS Dual Server Deployment Licensing Question
One doc I read on TFS licensing said that you need a license for every server you install TFS on. That sounds reasonable but what does that mean in a dual server (separate App/Data tier) deployment Does that mean you need to buy two TFS licenses for a dual server deployment I mean it's a single "logical" server, right Yes, you need a license for each machine. Same goes for clustering on the data tier, machines used as warm stand-by, etc. ...Show All
Windows Forms abort thread
I have an app that will import some data into a database. I can't seem to stop my worker thread from running. Am I missing something t = New Thread(AddressOf oPF.ProcessFile) t.IsBackground = True oPF.oCnn = SqlConnection1 oPF.myStream = myStream t.Start() then in my oPF classs i'm going through the motions of parsing the stream and such. My problem comes when i'm tryi ...Show All
Microsoft ISV Community Center Forums Application Error
Hi experts, We have an application written in VBA. The application is failing with the following log entry in the event log. Faulting application: appname.exe Faulting Module: VBE6 Version: 6.4.99.72 Fault Address 0x000dc6f2 Event ID: 1000 The application is running on Windows XP SP2 with Office 2003 SP2. Help would be much appreciated. Thanks Steve Additional information: The application is not a Word or Excel application. It was written in VBA using the VBA SKD 6.2 development environment. We have vba project files that contain forms,modules similar to VB6 project files. The problem here is, ...Show All
SQL Server Joining two fields to single field
If I have a database table with the following columns: ID Other_ID Description And I want to join the two ID fields to one field in another table that contains the following fields: ID Name How would i do that Here is some sample data and what I would like returned TABLE1 ID Other_ID Description row 1 1 2 Number1 row 2 3 1 Number2 TABLE2 ID Name row 1 1 John row 2 2 Bob row 3 3 Bill I want to query TABLE1, row 1 so that I pull back the N ...Show All
Visual Studio Team System Build fails on absolute path in solution file
Hi Got the buil service up and running (thanks to a post on the fact that it had to be installed separately, reminds me of those commercials on Cartoon Network my kids know by hart which goes something like this "bla, bla, sold separately" :-) Anyway, decided to kick off a build of my first Team Project (called Kiosk!). Now I am playing both the independent thinking developer and the buildmanager with a sentralized mind here, so wearing the dev-hat i configured my client workspace to map to c:\Development (as you can see). For the build-setup on the other hand I specified a build directory of c:\Build ...Show All
SQL Server Named Pipes Provider: Could not open a connection to SQL Server [2]
Hi I'm a complete sql/asp.net newbie and want to try this tutorial: http://beta.asp.net/GuidedTour/ First I installed: Visual Web Developer 2005 Express Edition Beta 2 systemsettings\software shows the "sql server 2005 express edition ctp (sqlexpress)" installed mmc\service shows me the SQL Server (SQLExpress) is running Following the guided tour I use the commandline, type cmd, and type in the commandbox: "C:\Program Files\Microsoft SQL Server\90\Tools\binn\SQLCMD90" -S " localhost \SqlExpress" Instead of localhost I also tried computername.smallbusiness.local (thats my fully domain name). However I always receive the er ...Show All
Visual Studio Team System Services disappear when restoring TFS data to a different server
I have been working through the restore to a different server process with TFS Refresh as described in http://blogs.msdn.com/vstsue/articles/500334.aspx . Got to the last step "To make clients to refresh their work item cache data" and I noticed that most of the TFS web services aren't working. For example, http://[applicationTierServerName]:8080/WorkItemTracking/v1.0/ClientService.asmx returns a blank web page. When going to the IIS Manager it was found that services for VersionControl, WareHouse, WorkItemTracking have the same symptoms. (Build & Services services are working). Any ideas ...Show All
Visual Studio Team System Making Targets conditional to Debug build
Hi, I am attempt to execute some targets only on my Debug build, but I want to build both Debug and Release. My attempt was to use target's Condition attribute with %(ConfigurationToBuild.FlavorToBuild) == 'Debug' eval'd. The result was the following error: TFSBuild.proj(188,31): error MSB4116: The condition "%(ConfigurationToBuild.FlavorToBuild) == 'Debug'" on the "UpdateSprocs" target has a reference to item metadata. References to item metadata are not allowed in target conditions unless they are part of an item transform. I can't come up with another approach and was hoping someone else had one. Thanks. ...Show All
Visual C# Visual Studio 2005 fails to reference typelibs
I have both 2003 and 2005 installed. I am able to add a reference to a tlb file into a C# project when using 2003. However, if I attempt to reference the same typelib in a C# project created using 2005, the file does not seem to import. If I double click on the refernce (it has an ! icon), I get a message saying: "This project cannot be viewed in the object browser because it is unavailable or not yet built. Please ensure the project is available and built". What else do I need to do to import a typelib using 2005 Note that setting the "Copy local" property to TRUE does not help. As soon as I do anything, it changes back to FALSE. Bug ...Show All
Windows Forms Finding/Modifying Code
Is there a way to find a certain string of code in a specified file that is inside/loaded into the project and then change this to the text string of a text box For example, if I wanted to change a piece of code in form1, how would I find the code and then replace it with the text string from a textbox on form2 You only can when you have the source files. Get the current stack and then find the associated method, when you found it. Read the code and put this in the textbox. ...Show All
Software Development for Windows Vista Problems with using ICaptureGraphBuilder->AllocCapFile with WMA
I am trying to preallocate space for a file capture using the WMA Mux. I can build a graph using ICaptureGraphBuilder and preallocate space and capture AVI just fine. For instance, if I preallocate 100Mb, the file size will stay at 100Mb whilst capturing. If, however, I select the WMA mux the preallocation works but as soon as capture starts the file size goes to 0 and begins to climb, just as if preallocation was not done. Anybody any insight into this any help greatly appreciated. The ASF Writer filter only supports overwrite mode ( AM_FILE_OVERWRITE), so AllocCapFile cannot be used for WMA or WMA files. Unfortunately the documentatio ...Show All
Visual Studio Express Editions Splash Screen Problem
Good day! I'm going through the VB Express tutorial right now and I'm having problems with adding the splash screen on my application. I tried the following: 1. Create new project 2. Add new form > splash screen 3. In the application properties, I specified "splashscreen1" as the splash screen for the project 4. When I run the app, here's the error: The splash screen shows for a few seconds then instead of showing Form1, the following error message was shown: NullReferenceException was unhandled Object reference not set to an instance of an object. Can't really figure out what the problem is. This same code works in my Windows XP but ...Show All
