tfieldho's Q&A profile
Windows Forms MessageBox in .NET 2.0
I am using VS 2005. I am writing a DeskTop application. I want to create a messagebox to display some information. The compiler does not like my using statement: using System.Windows.Forms; Have the classes that encapsulate the MessageBox method changed Here is the compiler error message I am getting: Error 1 The type or namespace name 'Windows' does not exist in the namespace 'System' (are you missing an assembly reference ) ...Show All
Windows Forms "Security error" with threaded app
I have an app that calls a Sub via the Thread class: Dim POPThread As New Thread(AddressOf ProcessPOP) POPThread.IsBackground = True POPThread.Start ...Show All
SQL Server Connection Pooling
I am using SQL 2000 and am trying to use sp_setapprole to set up user access. I am also using VB.NET with the MS Patterns and Practices Data Application Library for the database connection. I have discovered that connection pooling has to be set OFF for this SP to work. My question is this: If I have set connection pooling to OFF to run sp_setapprole, can I then set it back to ON and still run in the same session To explain a little more: Appli ...Show All
Software Development for Windows Vista How much of WWF designer support in VS is managed by the project system?
Hello, In order to create a new workflow in VS, one normally selects a template from the Workflow node of a C# or VB.NET project type in the New Project dialog. I tried creating an empty C# project (not of the workflow variety), copying the .cs and .Designer.cs files to this project, changing the namespace, and adding the same references to my empty project system that are present in the one created explicitly from the C ...Show All
SQL Server stored procedures, parameter, tablename
Hello, I would like to pass into a stored procedure the name of a table. Following code does not work. USE pubs GO CREATE PROC test1 @tableName varchar ( 40 ) AS SELECT * FROM @tableName EXEC test1 @tableName = 'authors' I would appreciate it very much if someone could help me with this. Thanks Hello. I think you just need to change your SP as follows: CREAT ...Show All
Visual C++ Application closes really fast.
Hello. Im trying to learn c++, but when I made "Hello World" then there comes problems. I had some errors when compiling - I found guides how to fix them here. But now I have this weird thing, on compiling there comes no errors, but when I want to open .exe file then it opens for 0.01 second and closes - It just flashes for a really, REALLY short time. And when I try to debug release, then it doesnt find any errors, but also - open ...Show All
Visual Studio Team System How to add some perticular tests in to metadata file
Hi, Nice to meet you all through this forum.. I would like to add some of my unit tests to metadata file which was created with the solution.I am trying to add 5 tests out of 370.But I could'nt make this happen. please help me. Scenario: 1.Opened Test Manager window in the solution and select 5 tests and added under list of tests . 2.Selected that list and I click on load metadat file. 3.Executed metadata file in t ...Show All
Visual Basic Double-Precision floating point number
I have the value -> 20.116840233680467360934721869444 When I use it in my program it truncs it to -> 20.116840233680467 I declare it as a double. Is there a way to make it not trunc Declaration/Assignment: Private chains As Double = 20.116840233680467 Thank you. Hi there, Joining a little late but I'd just like to add a little bit to what the luminaries who have already posted have said already. From my experience, the Decimal data ...Show All
Windows Forms Problem Setting Control Width in FlowLayoutPanel
I've created a custom UserControl, WidgetFlowLayoutPanel, that inherits the FlowLayoutPanel. Its purpose is to contain one or more custom WidgetControl controls. When a WidgetControl is added to the WidgetFlowLayoutPanel, I want to set WidgetControl.Width to the ClientSize.Width of the WidgetFlowLayoutPanel. I've tried this two different ways, neither of which works: First, I did an override of OnControlAdded , and added... ...Show All
SQL Server I'm retarded and need help with Derived Column or Script Task
I am moving data from an oracle database to sql server. Two of the source fields are dates, which sometimes contain values I know to be incorrect ('0001/01/01' and '1900/01/01'). I'd like to use either the derived column or script task (or any other appropriate one) to update these incorrect values (in both columns) to null before inserting into sql server, smalldatetime field. In sql 2000 dts, I would simply use a VBScript IF statement, b ...Show All
Visual Basic Singleton Pattern - Shared/Synclock confusion...
Given the code below, I am trying to implement a "double-checked" constructor for a singleton pattern essentially.... What has me confused is how I should handle my locking. In examples I found it often showed the simple "SyncLock Me" approach to lock a section of code. When I try to use this in VB.NET 2005 (Beta 2) I get an error stating that Me isn't allowed for non-instance members. In this case, using a shared co ...Show All
Software Development for Windows Vista workflow design for enduser
In my application, workflows can be created by VS2005 and compiled in DLLs. Can WWF give a way for enduser to design extra workflows and integrate into the app Thanks You have to do a little work, but the workflow foundation comes with a workflow designer control that you can host in WinForms, WPF, or IE apps. There are samples in the SDK related to hosting the designer including the workf ...Show All
Visual Studio Team System Is there a GUI for some common source control queries?
As an ex-VSS user I'm interested in a couple of common queries: - finding out what differences there are between what I have on disk and what is in source control. - finding out all the files currently checked out Now I know I can do this from the command line using "h status /user:*" and "h difference RootFolderName /recursive /noprompt" , but is there any way of doing this from a UI Is there an admin UI that I've just not found yet - e.g. ...Show All
Visual Studio Team System Build errors when creating unit test with wizard
I just installed VS 2005 RC to investigate using the automated unit testing but I can't get the wizard generated unit test to compile. It seems like there was an install issue or something. Here are the build errors for a stock wizard generated unit test in CPP: CLogicalServerUnitTest.cpp .\CLogicalServerUnitTest.cpp(6) : error C3083: 'VisualStudio': the symbol to the left of a '::' must be a type .\CLogicalServerUnitTest.cp ...Show All
Visual C++ When is operator void* invoked.
I have a class A and it has an STL container as a member. I also have a class A_Iterator which provides functionality to iterate over the member variable within A, in different ways. When I want to use this iterator , I do something like main(){ A a; A_Iterator iter(a); do{ // do some stuff; } while (iter++); } For the while loop to exit, I am having to provide a conversion function within A_Iterator of the for ...Show All
