M Johnston's Q&A profile
Windows Forms Multiline Attribute used in TextBox.Text property
Hi, Anyone know of the attribute I need to apply to my own text property on a custom control in order for it to behave like a textbox - text property In the textbox - text property it shows a little drop down box in the property editor to allow multiple lines to be added. What I want to do is to use the same attribute on a different property of a custom control to allow for multi-line input. Any ideas Thanks, Pete. ...Show All
Windows Forms Flat TextBox Problem
I am writing a textbox control that has a flat appearance (all white, except for a pixel-thick line around the border). When the mouse is over the control or when it has focus, the line around the edge is painted in the color "SystemC ...Show All
.NET Development crystal report dont show data .. but dataset contains data
Hi all, I want to generate a crystal report which will be using data taken from a stored procedure. for this.. I did the following steps. 1. added a blank crystalRepot item to the solution. CRPT.rpt 2. added a crystal report viewer to the form CRPTV 3. with in the form load method, populated the dataset with data by executing the storedproc. DataSet = DS 4. bind the data source to report viewer like below. ...Show All
Software Development for Windows Vista Problem creating a parallel version of the ForEach example activity
I am trying to create a custom activity that is similar to the ForEach example posted in the custom activity gallery: http://www.windowsworkflow.net/ControlGallery/ControlDetail.aspx Control=2222&tabindex=2 The code below is basically modifications to that sample (i.e. the activity inherits from CompositeActivity, etc.) The difference is that I want the set of activities executed to be done in parallel rather than serially ...Show All
SQL Server Log of Executed SQL
I am sure this is a very newbie questions, but... How do you view what SQL statements have been run on your DB I have written an application in C#, and for some reasons some rows are being dropped. I would like to look up what SQL has been run against the Database to make it lose the rows. I was able to do this in MySql, but can not figure out how to do it in SQL Server/Express 2005. Thanks for any help, Norm ...Show All
Visual Studio Text Lines OverLaps in the Help Menus Display Window
Hi, When i am crusing the help files I keep running into sections of text that have overlaped in the display. Is it just me (MyVidCard) or has anyone else come across this, or do you know the fix Thanks in advance for any help. Steve Somebody else reported this recently. I don't think we've had a chance to debug it yet. Can you tell us what video card you have and what driver you're using You can get this information from the Adv ...Show All
Software Development for Windows Vista No integrated help for November WinFX
I have upgraded from the WinFX September CTP to the November one, and corresponding versions of .NET and VS2005. Unfortunately the WinFX documentation is no longer accessible in VS2005. Does anyone know it there is a way to force the WinFX help documentation to be visible in VS2005, or indeed visible anywhere else Lori is correct. The filters for Nov CTP are a bit busted. We're trying to fix them for the next ...Show All
Visual FoxPro how could i shortened the time of looping in an SCAN...ENDSCAN?
i have here a part of my code below which work fine for me...but the only problem is that it takes time to show the result. My product profile has only 8,500 records & the tables that were search for exact match has approximately 50,000 or more records added every month. Maybe my coding is not the right way. Can anyone teach me the right code just to shortened the time in accessing the actual output. LOCAL EachItemPurchases, lcpurchases, ...Show All
Visual Studio Team System VSTS Dual Server Performance problem
We have 2 environments of VSTS – one single server and the second dual server. We are encountering performance problem (During checkout, check-in operation) in the dual server configuration (the operation are performed from a client that is installed on the server (it eliminates a network problem) only. Is there is any additional server configurations that we should consider (and that is not mentioned in the installation guide). ...Show All
Visual J# drag and drop
I am creating chess game and I want to move chess. How can I drag and drop chess Chess is picture. Thank you. If you are using VS 2005, you can Drog and Drop PictureBox item from ToolBox. Choose image source as your chess image. ...Show All
Smart Device Development Call/SMS blocking code sample
Does anyone have code sample for doing Incoming call/SMS blocking for WM5 It is sad that Microsoft does not release any tool for faking incoming call in WM5 (I know that there is something for WM2K3). ...Show All
Visual Studio Team System More ways to minimize instrumentation output?
I know about /INCLUDE /EXCLUDE and I know about /START... and API. I was just wondering if it possible to for example disable stack collections. I might be happy running whole application and just seeing the times of the functions and call count. I generally know what my call stacks might look like. I wrote a sample profiler with just profiler api (not anywhere near as fancy as vs profiler) and just collect times and counts and it's almost not n ...Show All
SQL Server Surrogate Key Generation
Hi, I'm trying to use the SK script from Donald Farmers book but the code isn't accepted Imports System Imports System.Data Imports System.Math Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper Imports Microsoft.SqlServer.Dts.Runtime.Wrapper Public Class ScriptMain Inherits UserComponent Dim CurrentKey As Integer Public Overrides Sub PreExecute() CurrentKey = CInt ( Me .Variables.FILCodesSK) ...Show All
Visual Basic Problem with SQL Connection
Hi, I installed the AdventureWorks database, and can connect with SQL Express Manager or Visual Studio 2005 data tools to this database. The problem is that while writing the follwoing code: Dim connectStringBuilder As New SqlConnectionStringBuilder()connectStringBuilder.DataSource = ".\SQLEXPRESS" connectStringBuilder.InitialCatalog = "AdventureWorks" connectStringBuilder.IntegratedSecurity = True connectStringBuilder.UserInstance ...Show All
Visual C++ command line build up-to-date when it shouldn't be
I have a problem where a command line build of a *.vcproj file using the VCBuild task returns "BaseLib - up-to-date" when it really is not. BaseLib.vcproj produces the output library BaseLib.lib, and one of the *.cpp files in the project includes BaseLib.h. BaseLib.h has a last modified date of 5/30/2006, and BaseLib.lib has a modification date of 5/16/2006. The project is out-of-date right BaseLib.h *is* explicitly in the project. ...Show All
