SmokeyPete's Q&A profile
Windows Forms Browse through list of databases on server
Hi, I would like to allow users of my ADO.NET application to browse through a list of the available databases on a given server. INFORMATION_SCHEMA in SQL Server Books Online doesn't describe how to do this. How can I do this TIA, Royce For SQL Server 2000, that information is contained in the sysdatabases table, which is in the Master d ...Show All
Visual Studio Express Editions 'System.EventArgs' is a 'type' but is used like a 'variable'
Whats wrong with my code below Can you correct it private void txtusername_TextChanged( object sender, EventArgs e) { if (EventArgs (e) == Keys .Enter) this .txtpassword.Focus(); } } Try the KeyPressed Event and it will work fine. private void txtusername_KeyPress( object sender, System.Windows.Forms.KeyPressEventArgs e) { if (e.KeyChar == ( char )Keys.Enter) { Console.Write("a"); } } Let me know if this is helpful. ...Show All
Visual J# Any good Add-Ins for VS 2005/J#?
Hi; In the java world I use IntelliJ and in the C# world I use Visual Studio wit ReSharper & nunitaddin. Is there anything like this for VS 2005/J# ReSharper flat-out does not work with J# (they officially don't support it and most of it's features are turned off in J#). And nunitaddin does not understand J# (for a main()) or junit. And Visual Studio doesn't come close to having the features found in ReSharper & nunitaddin. Anythinf out there I feel like I'm back in the dark ages of IDEs. thanks - dave Hi Dave, If you drop me a line through my blog (http://weblogs.asp.net/nunitaddin/contact.aspx), I'll see what I can do about a ...Show All
Visual Studio Express Editions Converting project from .NET 2002 with compilation error c1083
Hi, I converted my project from .NET 2002 and when i'm rebuild it i'm getting compilation error: " fatal error C1083: Cannot open precompiled header file: C:\EM2obj\Debug/test.pch': No such file or directory a.cpp" I'm getting this error for all files. Gil Thanks for your answer. I just opened the "ms c++ express 2005", then upgrade wizard appears, and i followed the instructions and then i tried to rebuild ! ! ! I didn't do any changes on the source code files. Gil ...Show All
Windows Forms After running application (F5) Controls disappear from designer, now invisible
I wish I could post my entire form on here for inspection. Anyway I will try to explain the best I can on what is happening. I developed this application using VS 2003. I have a form with a tab page with 5 pages on it, on each page I have a few controls including TextBoxes and NumericUpDowns that are binded to a DataView on my form from a method called from my constructor. My NumericUpDown controls are set to display tenths and have an increment of 0.1. In .NET 1.0 I had an issue that the value would not be validated correctly when I clicked off the control. For example.. I type in 15 as the value (at runtime). I click off ...Show All
Windows Forms Bending the DataGridView...
Hi, I'd like to extend the DataGridView a little bit to basically look like this: http://kingvest.de/dgv.png However, I'm stuck at one point: How can I do the month aggregation as shown Pretty important is the visual aspect of it. So it should be centered and not on the left hand side like the DataGrid does to show several tables. I think what's probably best is to do a custom aggregation in one table rather than actually using multiple tables. So I could give one of the Month rows a specific style and use an owner drawn button for the expanding. Please let me know if that is the way to go or if there is any better solution. Thanks, Tom ...Show All
Visual Studio Express Editions How to resolve error LNK2019
Hi guys!! I have a big, big problem. I'm using Visual C++ 2005 and i'm tryng to compile 2 projects one is a library .lib and in the other one I put my function Main: this is the code: Proj1 : .h #include <iostream> using namespace std; template<class T> class Test { friend ostream& operator<<(ostream&, Test&); template<typename T> friend ostream& operator << (ostream&, Test<T>&); }; and in .cpp : #include "TestMicro.h" template<typename T> ostream& operator<<(ostream& os, Test<T>& tt) { return os; } PROJ 2: Main function #include "TestMicro.h" ...Show All
Visual Studio SourceSafe v6 and v2005
I am running Visual Studio 2005 Team Suite Beta 2 and have my source code in VSS 6.0. Can VS 2005 recognize VSS 6 It doesn't appear to. To use Visual SourceSafe with Visual Studio Team Suite, ensure Visual Studio is configured to use the Visual SourceSafe source control plug-in: How to: Switch Source Control Plug-ins http://msdn2.microsoft.com/library/fy98ye1k(en-us,vs.80).aspx ...Show All
Windows Forms ArrayList problem
Hi i am having a bit onf a difficulty understanding this.. I have this code in a form For intCounter = 1 To dropMultiChoice.SelectedItem.Value strAnswers.Add("txtChoice" & intCounter) &n ...Show All
SQL Server Overwriting SSIS package logs
Is there a way to set the SSIS log provider for XML files to overwrite each time the package runs ...Show All
Visual Studio Team System Webtest "hangs" while Submitting
Actually, it appears to be hung before the request is sent, because the Request Detail window says "Request not yet submitted". I've got a webtest where, on a specific page, it always "hangs" while executing... The main Test Progress window shows "Submitting" under the HTTPStatus column, and it stays this way for at least 4 or 5 minutes. Test Results pane shows the test as "In Progress". If I try to start the test again, I can't: "The test could not be run because of the following exception: Cannot start more than one local run." (The app is responsive, so it's not exactly "hung" but the test In Progress is n ...Show All
Visual Studio Express Editions I can´t create a new Website!
When I try to create a new web site, I get this error "the number separator information specified in the numberformatinfo in ambiguous for parsing" and the project isn't created. I can create new single files but no project. My Windows is XP danish I trying to create asp.net Web Site version 2.0.50215 My mail Haniiraqi@hotmail.com you also could try to change the decimalseparator to , and groupseparator to . in your xp settings. works fine with me ...Show All
SQL Server can 2 people view the same report using different parameters at the same time?
Hi, I am using sql server 2005 entreprise edition. I am just wondering when I have a report with parameters and the report uses stored procedure to retrieve the result set for use in the report, if two people from different places are trying to view the report at the same time, and each of them use different set of parameters. Will they be able to view their report correctly Yes, each user will have different session and in each session report will be executes with user's parameters and users will see different report outputs. ...Show All
Windows Forms Force Uppercase
How can I specify uppercase in a textbox in the DetailsView ...Show All
Windows Forms New to Programming, Please help! :).
Greetings all. I am looking for some advice/suggestions on where to get started in Programming. I been doing Desktop support/Lan support for a couple of years now and I want to learn how to program and possibly switch my career track to programming. At this point can anyone please suggest on the best way to go about it I have ...Show All
