Tim Getsch - MSFT's Q&A profile
Visual Studio Express Editions How to: Carry a value from a variable from form to form?
I am attempting to carry a value of a variable from one form to another, but when I close or hide the original form and call the value in the subsequent form, the variable looses it's value. Using VB 2005 express. Please help!! The following is one way of doing it in OO Option Strict On Public Class Form2 '\\Private field to hold value passed from form1 Private m_myInteger As Integer '\\CONSTRUCTOR '\\A constructor is a method that is executed each time a new instance of '\\the class is created. '\\The following constructor is passed the value from Form1 when the ...Show All
Visual Basic Detect New Object Focus
I have a form on which there is a text box that must have a value assigned. The exception is that if the user clicks on the "Cancel" button on the form I want to close the form with no further action. I have a LostFocus event on the textbox and in VB6 I used to check to see if the "ActiveControl" was the Cancel button and if so, I exited. This does not work in VS2005. It appears that the "ActiveControl" is still the textbox How can I accomplish detecting if the cause of the "LostFocus" for the textbox is a click on a specific button. Private Sub TextBox1_Leave( ByVal sender As System. Object , ByVal e As System ...Show All
Visual Studio Team System VSSConverter.exe missing from installation?
I have installed TFS successfully on a test server and VS2005 on a client. I would now like to migrate VSS6.0 to TFS VC. I'm following the "Preparing to Migrate" walkthough and have found that, although VSSConverter.exe has been installed on the client machine, it has not been installed on the server, which is where the analysis and conversion must be run. I have Team Explorer on the server, but do not wish to install the entirety of VS2005 here. Am I missing an installation option that would put VSSConverter.exe on my TFS machine If so, why isn't it installed by default, as TFS VC was Any help appreciated... O ...Show All
SQL Server ADO.NET Source Custom Properties - Documentation Wrong?
Ok, so I've looked near and far and have found nothing but info that says data flow properties can not be changed at runtime....then I see in this in the SSIS documentation under ADO.NET Source Custom Properties: SQLCommand String The SQL statement that the ADO.NET source uses to extract data. The value of this property can be specified by using a property expression. Pray tell me how this property can be specified using a property expression, or any other dts variable for that matter Thanks, Adrian Crawford You should be able to use aproperty expression (set it at the data flow level though ...Show All
Visual J# XML to Database
How can I create a database table based on an XML schema and populate it with the XML data. Currently, I am using ReadXml to display the data in a datagrid via a virtual dataset. Can I write the data out into a table or text file without having to define each field and node It looks just like I want it in the datagrid display I just need to get that into an actual file. The following code is what I am using now: fileName = ofdGetXML.get_FileName(); System . String filePathNew = fileName; dsRegNew.ReadXml(filePathNew); dataGridReg.set_DataSource(dsRegNew); dataGridReg.set_DataMember( "SomeDocument" ); dataGridR ...Show All
Smart Device Development Emulator shuts down and exits automatically
The emulator was working fine for me but recently its been shutting down and exittting automatically. Before exitting it saves state. I'm using WM 2003SE as the OS. I've tried hard reset, but still the same problem. any help would be much appreciated. Thanks. Sorry, the V1 Community Tech Preview does not include high-DPI images. I don't believe those OS images are available outside of Visual Studio 2005. Barry ...Show All
Visual Studio How to support "Export the Project as a template"
We are trying to support "Export the project as a template" for COBOL package, and we are looking for the process to support. we understood as follows. 1. When the project is exported as a template, .ZIP file is generated. This ZIP file includes the following files. a) .VSTEMPLATE file b) .Ico file c) project file and all projectitem files 2. When the project item is exported as a template, .ZIP file is generated. This ZIP file includes the following files. a) .VSTEMPLATE file b) .ico file c) specified projectitem file 3. .VSTEMPL ...Show All
Visual Basic VB.NET On Other Platforms
I need to know if anyone out there knows if there is a way to build a VB.NET 2005 application so that it will run on LINUX, UNIX, MAC OS. If anyone could help I would greatly appreciate it, this is time sensitive. Thanks, Mike Short Answer, No. Long Answer.......No. (i'm sure someone will say...'No, but...') but the answers still no. ...Show All
Visual C++ Detect if .NET Framework is installed
I am writing a plugin for a 4th Dimension database where I am using .NET 2.0 for much of the advanced functionality but would like to be able to fallback to native (unmanaged) c++ if the framework is not installed on the machine to provide some basic functionality. Is this possible The plugin is basically a DLL that uses a standard interface with 4th Dimension that is provided as C code. I have my plugin already working so that the unmanaged C++ calls .NET. I would like to be able to return error codes when .NET is not present when attempting to use functionality that requires it. Thanks Mog ...Show All
SQL Server SQL DB Connection or Query Problem?
The best way to state my question/problem is to describe the sequence of events that I am seeing. Here goes: 1. I have a SQL Server 2000 database hosted on a remote server. 2. My web server is also hosted remotely and has a connection to the sQL database. 3. I go to my website (like any other user) and view an ASP page with a recordset. The page returns fine for 8 to 10 requests and then errors and returns a timeout. 4. I call my hosting provider and they take down the connection between the SQL database and the web server and it clears up. 5. After 8 to 10 page requests, we are back to square one. Any ideas ...Show All
Visual C# Multiprocessor builds
I'm looking into buying new machines for my developers and was looking at the new dual core processors from Intel as an option to get faster compiles as compared to a "normal" single core processor. So my question is, does the C# compiler in VisualStudio 2005 take advantage of the dual execution cores or would I just be better off with a faster clocked P4 Thanks in advance for any info. Tom. Hi! I have Intel 830 CPU and I can state that it's working good - my apps are less freezing right now. Also it's good for computational powers - two cores of 3.0 GHz with little overclocking to 3.9 gi ...Show All
Windows Forms how to customize datagrid row based on data?
I am binding a table and a datagrid. The table has, amongst other things, a boolean field which will be false if the data in the row is in error. When this happens, the row should get a red background (or bold text or whatever), and the accompanying text field must become read-only; ie. the user is not allowed to edit the text if it&nbs ...Show All
Windows Forms Improperly Formatted
I am using Visual Studio 2005 Beta 2 and I am having trouble deploying my application. I receive a 'Application Failed: Unable to continue. The application is improperly formatted. Please contact the application publisher." I used to not have a problem with this. Does anyone have any solutions Thanks in advance. nate. When I attempt to deploy my application on Windows Vista the same error occurs: Description of the error is given below: On screen error message: "Cannot continue. The application is improperly formatted. Contact the application vendor for assistance." ...Show All
Visual C++ why does my .net 2003 run so slow on my Compaq Presario R4125?
Hi there, I installed the .net 2003, specifically the part of VC+++, on my Compaq Presario R4125CA Notebook (cpu:AMD 64 3500; momery:512M; HDD: 100G; OS: home-version XP with SP2 ). When I start my .net, it is extremely slow, it takes almost 3 minutes. When try to add a new class to my project, it takes almost 5 minutes to response and my mouse is even been disfunctioned during this period. Please help me out. Thanks! Here's a test: Disconnect from the network and load VS.NET. If it is faster, download VSTweak ( http://www.gotdotnet.com/workspaces/releases/viewuploads.aspx id=b9330ea5-096d-45b7-8a ...Show All
Visual C# Inserting images (.jpg) into SQL Express
I'm using SQL Express and I have a table that has a column of type image. My question is how do I go about inserting and/or updating an image in a row using C# I'm aware that the image type in SQL is simply a BLOB, but I don't know how to insert an acutal picture (.jpg) using C#. I tried something like this: byte [] photo = GetImage ( @"C:\image.jpg" ); SqlCommand command = new SqlCommand ( "UPDATE character" + "SET picture = @Photo" + "WHERE id = @ID" , charTableAdapter.Connection ); command.Parameters.Add ( "@ID" , SqlDbType .UniqueIdentifier).Value = ...Show All
