Armadon's Q&A profile
Windows Forms Disable ALT + F4; .....
Hy, a have an application and i must disable the follow combination of keys: ALT+F4 ALT+TAB CTRL+ALT+DEL CTRL+ESC. For ALT+F4 i can disable the conbination with: protected override System.Boolean ProcessCmdKey(ref System.Windows.Forms.Message msg,System.Windows.Forms.Keys keyData) { if ((msg.Msg == 0x104) && (((int) msg.LParam) == 0x203e0001)) return true; &nb ...Show All
SQL Server "No Such Interface Supported" Exception 0x80004002 - HELP!
AAAAARRRRRRRRRRRGGGGGGGGG! I finally figure out why I can't connect to the SQLEXPRESS on this computer (technically, I was a remote connection), get everything installed (Advanced edition), and then... It keeps telling me that "No Such Interface is Supported" and "Unable to cast COM object of type "System._ComObject" to Interface type..." I grabbed it in a screen capture and will try to get it to a server tonight when I get home. Any ideas on this problem Jason http://members.cox.net/pamela444/errorwindow.jpg Well, it won't let me insert a link, but the ph ...Show All
Visual Studio Team System Running regular websites on same server as TFS
We installed the TFS on our new AppServer. We also want to put our intranet sites on the same server. I know there were a few issues with this, but for some reason I cannot find any documents explaining how to set up regular ASP.NET websites to run on the same server. What we currently do is set up a website on our internal server, then use our DNS server to point say: MyIntranet to 192.158.1.123. We don't use local "hosts" files. Any advice Create your own application pool seperate from all the TFS ones and make sure your applications run in that pool and you should be ok. You might want seperate app pools for your .NE ...Show All
Visual Studio Team System Team Foundation RC install Failures, Dr Watson
Hi, I have been trying for serveral days to try to figure out what the heck is going on with this install. The issues I have ran into was during the install on TFS (RC), I keep getting these watson failures. I am so stumped on why this is doing this. I have everything else working fine such as sharepoint, reporting/SQL. Here is the last line of the error log file. [03/23/06,20:32:24] Setup.exe: GetGlobalCustomProperty({4F8791EE-486F-44B5-952B-F28F9FD58BD0}) [03/23/06,20:32:24] VSServerUI: ISetupManager::GetGlobalCustomProperty() failed to find global prop in CProgressPage::RunningComponent() [03/23/06,20:32:24] VSServerUI: {4F8791EE ...Show All
SQL Server DateTime format question
Hi all, When I query my results on my database that have datetime format, it will show something like "2006-03-13 12:26:07.390" but when I query the same result in reporting services, the format changed from previous to this format "2006-03-13 12:26:07 PM" . How can I changed the format back to having the ".390" for my report Anyone know how to go about it please let me know... Thanks in advance. Daren Check the MSDN documentation on datetime format strings and set the format property on the textbox accordingly. * http://msdn.microsoft.com/library/en-us/cpguide ...Show All
.NET Development windows service process flow
I have created a windows service in c# and it works fine but i have a question in my mind: In my service constructor i call a method to initialiaze all variables which are defined from app.config. and in OnTimer method, service does what it should. So at each interval it starts its job. I was thinking about process flow of my service application and i thought it should work like this : when i start Service i am actually making one instance of the service and variables will be initialized. Then at each interval, service uses those initialized variables. When service is stopped and started again, another instance of service will be made and al ...Show All
SQL Server Help with Report Filter on bit field
I have this filter for my report table : expression operator Value =Cstr(Fields!work.Value) = 'True' My report's table isn't returning data, but in preview but if I run the dataset, there is clearly some valid records tha contain 'true' for the f ...Show All
SQL Server Stuck between "Failed to generate user instance" and "An attempt to attach...failed"
I wrote an application using Visual Studio 2005 beta 2 which uses a SQL Express .mdf file, included in the project, for the database. After installing Visual Studio 2005 RC and the SQL Express that comes with it (I followed all of the uninstall instructions first) I can no longer add a SQL Express database to any of my projects, nor can I open the SQL Express database in my original project. When I try either of these tasks, I get the "Failed to generate user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed." I read the thread which dealt with this er ...Show All
SQL Server SOS!! Proc written in C# throwing errors !!
I have a stored proc which is being called by reporting services. It is written in C# and is a wrapper for executing other procs dynamically.It generates the following error time and again. Any help would be hugely appreciated as this is a production level issue. Thanks Shai Error Message: System.InvalidOperationException: The context connection is already in use. System.InvalidOperationException: at System.Data.SqlClient.SqlConnectionFactory.GetContextConnection(SqlConnectionString options, Object providerInfo, DbConnection owningConnection) at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions o ...Show All
Visual Studio Is it possible to control the width of the dropdownlist in the parameter toolbar?
I have a SQL Server Reporting Service report(server mode) that has only one string parameter (retrieved from a database) , thus the report parameter toolbar displays a dropdownlist. Is there a way to control the width of that dropdownlist in SSRS2000 What about SSRS 2005 For example: make the dropdownlist fixed width Currently it is automatically sized to the longest string in the list so it is adding a horizontal scroll bar and my users dislike having to scroll to the right. Many thanks in advance. I am using a multivalue parameter input control. My label value for the drop down list is frequently w ...Show All
.NET Development execute scalar daab 2.x
Hi All, Ok so I am about to pull my hair out! Using vs2005 and ent lib 2.0 I want to retrive a single value using the execute scalar method : Public Function GetWhseStockId1() As Integer Dim _Pstldb As Database = DatabaseFactory.CreateDatabase() Dim i As Integer Dim strCommand1 As String = "SELECT IdWhseStk FROM WhseStk WHERE WHStockLink = 5774 and WHid =68" Dim dbCommand As DbCommand = _Pstldb.GetSqlStringCommand(strCommand1) i = CInt(_Pstldb.ExecuteScalar(dbCommand)) Return i End Function this function is called in a button event handler : Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As Syste ...Show All
.NET Development Print file using Microsoft Office Document Image Writer
If Microsoft Office Document Image Writer is installed on IIS can asp .net be used to call it and write out a file in its format which would be saved to the server If so any code examples Thanks In Win32 you could set the lpszOutput member of a DOCINFO structure to the filename and that FileDialog won't pop up but I have no idea how to do this in .NET (except PInvoke of course). ...Show All
Visual C# Warning MSB3042 : How To suppress?
Our company writes a lot of tests (test driven environment) In 2.0 we are now receiving the following warnings for existing code Warning 8 A namespace or class definition was found within a conditional compilation directive in the file "TestForm.cs". This may lead to an incorrect choice for the manifest resource name for resource "GUI\Grid\Internal\Testing\TestForm.resx". ZArchitecture C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.CSharp.targets : warning MSB3042: A namespace or class definition was found within a conditional compilation directive in the file "TestForm.cs&quo ...Show All
.NET Development How to Maintain Cache Information in Sync with all the servers in a Web Farm Environment
Hi, I am developing a Sample web application which uses Caching Concept, For the first time, the data is loaded and added to the cache. For the subsequent calls the value is retrived from the cache and shown to the end user. This works fine in a Single Server Environ.ment. If i try the same in a Web Farm, i am unable to execute the application because the Cached informaion is machine specific. I want the Cache item to be in Sync [Insert, Delete, Update of Cache Item] with all the servers in the webfarm environment. My Requiremrnt is not to use Sql Server to store the cache environment. Is there any way to overcome the pr ...Show All
Visual Studio Express Editions Image source for ToolStrip button
Dear All, I need to create a single customize toolstrip that contains both standard items(New, Open, Save, Cut, Copy, Paste)and navigation items(Move First, Move Previous, Move Next, Move Last), can anyone let me know where can I get those standard images for me to use for those buttons Thanks very much Gary Ng http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=145877&SiteID=1 ...Show All
