stevemcisaac's Q&A profile
Windows Forms find out in MDI-Form which Control has the focus
hi, i have a MDI-Form. I want to find out, which control (Textbox, Textfield) currently has got the focus. these controls may be in a TabControl. bye Hi, You can do that by looking in the ActiveControl property of the form. It contains the control that has the focus. Check if the type is one of the container controls (panel, groupbox or tab) if it is then also look at its active control property or t ...Show All
Visual Studio Publishing project with MSBUILD
I am running msbuild on our build server, the server has the .NET v2 beta 2 runtime and SDK installed, it does not have DEVENV installed on it. When I try to publish the project with msbuild from the command line on my local PC that has DEVENV installed it all seems to work. When I try running the some command on the build server I get: “C:\WINNT\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets : warning MSB3482: SignTool repo ...Show All
SQL Server SQL Express and selling as a hosting service.
Hi, Can a web hosting company charge clients for using an SQL Express instance on their network E.g. The host charges the client $x per month per instance. Is this legal MIcrosoft provides SQL Express Free Of Charge, if the hosters choose to charge you for the usage they can do that, I presume the charge covers the cost of hardwre, bandwidth etc. ...Show All
.NET Development Can't update database from datagrid
Hi, I've bound a Datagrid to a Dataset, which works OK, however the update isn't working correctly, I think the problem may be that I am using a DataAdapter generated with a wizard with stored procedures to select and update. The binding code works OK, combining a number of tables into a single table in a dataset and displaying it, here's the sp: CREATE PROCEDURE proc_GetSampleAss (@patientCode varchar(15), @procedureDate datetime, &nb ...Show All
Visual Studio Team System Extending Project Portal with Custom Web Parts
I am trying to extend the project portal by creating custom WSS web parts. I have seen a few posts saying that it's possible to create web parts for WSS SP2 using VS 2005. However, I can't find any concrete examples. Are there are samples which I could study in order to understand how to create custom web parts using VS 2005 Thanks in advance. Here are some relevant links for this topic of persona ...Show All
Windows Forms clear data grid
I want to create a procefure to reset all controls of form to "". I knew how to set text box.text to "", how to set data grid text to "" You can set the datagrid.datasource = nothing and that should&n ...Show All
SQL Server DataDir Property - Is it possible to store files on more than 1 drive?
The "DataDir" property for an AS 2005 instance seems to only allow for one path to be specified. I am working with a very large data set that is being updated frequently and I would like to be able to reference more than on LUN on my disk array. Yes, you can. Take a look at the StorageLocation property of your partition. Edward Melomed (MSFT) -------------------------------------------------------------------- ...Show All
SQL Server Major problem with REPLACE-expression in the Derived Column Transformation
I'm importing a csv-file delimited with semicolons. Firstly I LTRIM the columns "in place" and the data imports fine. All the numbers in right columns in the target table. Then I add another Derived Colum Transformation to replace decimal character comma (,) to a dot (.) in order to convert the string/varchar value to numeric. But here I run into trouble. Running the task ends in success but the result in the target table (same as abov ...Show All
Visual C++ project is always 'out of date'
I recently upgraded a vs 2003 project (standard C++ console application, reasonably complex, links to several libraries including Boost, Blitz++, and fftw). For some reason, since the upgrade, one of the projects in the solution (the startup project in case this is relevant), is always out of date when I do a compile, or run in the debugger. All files in this project are always recompiled, whether any of them have been changed or not. Any ...Show All
Visual Studio Express Editions database again
Sorry to bother everyone again with more database issues. First, I have read many of the posts regarding the solutions when the database does not update i.e. the copy output setting etc. I tried several approaches with no resolution. So I thought I would publish my app and see if it works and updates the database. So I did and the app works fine except that the database does not update when I add data to one of the datasets - the Users database. ...Show All
.NET Development ReadOnly List<>?
Is there a way to get a ReadOnly List<> We could do that with ArrayList with: public class EmptyArrayList : ArrayList { public override bool IsReadOnly{ get { return true ; } } public override bool IsFixedSize{ get { return true ; } } private void OnPopulate() { Console .WriteLine( "Warning: Attempted to populate a static empty ArrayList" ); Console .WriteLine( new System.Diagno ...Show All
Architecture Design pattern for interactive communications between users
We have a need for two users to communicate interactively over a VPN connection through a DMZ. We are considering a smart client (internet side) talking to a web server (in the DMZ) talking to a smart client (within our network). Wondered if anyone knew of a design pattern (or any other solution) to this problem. Ok that seems to make some sense with all players at the same table being on the same ser ...Show All
Windows Forms IssueVision Question
The IVDataSet.cs says that it was generated by a tool. What is the tool to generate this code TIA -Tim I see this was posted nearly three weeks ago, so I am betting you have already found your answer. For the benefit of those that haven't (hoping these forums have more longevity than the gotdotnet forums did :(): IVDataSet is a strongly typed DataSet inheriting directly from DataSet. A strongly typed DataSet provides the advantage o ...Show All
SQL Server Print Issues with Reporting Services
I developed and deployed a report using VS.net. Reporting Services gives you the option on the web page to print the report or export to another format. When choosing to print, I am unable to get the report to print in landscape mode on standard letter paper. What is the relationship between the margin properties (which seem to have no impact) on the report the body of the report and the printer The report size doesnt seem to matter (10 x 7 ...Show All
Visual Basic Checking for a previous instance
To check for a previous instance of your apllication (App.PrevInstance in VB6) the help file for '05 suggests you check the "Make Single Instance Application" box in the project's properties and then add an event handler for "Me.StartupNextInstance." This is great if you're using the application framework and starting the project with a form (I don't think a "Sub Main" has a 'me' object does it ). Anyway, I'm not using the app ...Show All
