bob yoplait's Q&A profile
Visual Studio Team System Making Area and Iteration Read-Only
I would like to make the fields Area and Iteration appear as readonly to every group except 1. We have our product management team enter these values, so we do not want anyone else to have access to these fields. How would I go about adding this functionality I tried adding the "Read-Only" field for "Not" the Product Management group, and it worked on other fields but did not allow me to do it for these ones. Take a look at the following thread on how to accomplish this. It's a bit of a convoluted task due to the item id info being used versus a more friendly name http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=571711&SiteID=1 If you wish to make this happen consistentl ...Show All
Windows Forms Error Handling - Application level
I know that .NET provides a default run-time error dialog that let's you review an error and then either continue or quit an application. Is it possible to replace this dialog with my own error handling routine I would like to write just one routine that will handle all errors at the application level. I tried to wrap Application .Run( new Form1 ()); in the Try Catch block, and it does work with the exception that I cannot do the Continue action similar to how .NET does it in its error-handling dialog. How can I write code to continue processing Thank you very much for your help! Evgueni The problem is, you don't necessarily want the user to be able to choose to continue. Its entirely possible that the excepti ...Show All
.NET Development Check whether application is signed
Hi all, we use strong names to sign our applications. I'm a developer and have only access to the public key. Then the admin signs it with the private key. What is now the easiest way to see whether the application is already signed by the admin or not ...Show All
Visual C# Help with File Extensions Lookup
Hey all I need some help with file extensions. I want to be able determine which program uses an extension. For example, if I put in .xls, I want it to tell me "Microsoft Excel". Or if I put in .doc, "Microsoft Word". I know Windows Explorer knows which program uses which extension based off the registry. However, I don't know if .Net allows you to get there. If anyone can help me with this in C# or the CLR library I need, please post! Thanks in advance, Nitwit I did find this link http://www.pinvoke.net/default.aspx/shell32.FindExecutable Check it out to see if i'm off base here. ...Show All
.NET Development Extracting public exposed methods from a dll
How can i extract the exposed method signatures from a dll assembly Can anyone help me out.... You can use reflection to examine an assembly. For example: //this is a class from the dll assembly MyClass test = new MyClass(); //get all public, non static methods System.Reflection.MethodInfo[] methods = test.GetType().GetMethods(System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public); //display them in the debug window foreach (System.Reflection.MethodInfo method in methods) { System.Diagnostics.Debug.WriteLine(method.Name); } For a complete example, check out http://msdn2.microsoft.com/en-us/library/4d848zkb.aspx ...Show All
Internet Explorer Development block a website with bho give an error
Hi all i m develop a application in vc++ using ATL/BHO name websapher to block a website from childrens. it work greate but some time it give me error and close the explorer. please help me to make this usefull. my code is: STDMETHODIMP CBlocker::SetSite(IUnknown* pUnkSite) { if (pUnkSite != NULL) { // Cache the pointer to IWebBrowser2. HRESULT hr = pUnkSite->QueryInterface(IID_IWebBrowser2, (void **)&m_spWebBrowser); if (SUCCEEDED(hr)) { // Register to sink events from DWebBrowserEvents2. hr = DispEventAdvise(m_spWebBrowser); if (SUCCEEDED(hr)) { m_fAdvised = TRUE; } } } else { // Unregister event sink. if (m_fAdvised) { DispEventUnadvise(m_ ...Show All
Architecture Security architecture
Hi everybody, I am new in the field of security architecture(software related and not hardware). Can my fellows out here let me know one or two best books on security architecture which will start from basics and can then teach the best practices (Like for Enterprise architecture,martin fowler's book is the best ). Looking for the inputs from your experience. regards I really like this book. It is written by one of the people in charge of the Microsoft security program: http://www.amazon.com/Designing-Secure-Software-Michael-Howard/dp/0072263911/sr=1-3/qid=1167501249/ref=sr_1_3/105-2567489-1573244 ie=UTF8&s=books This is one of the classics - but it's a little expensive: http://ww ...Show All
SQL Server SQLDependency and stored procedures
Hi, Some info about my setup (all on the same local network): Sql Server 2005 Standard Edition running on a Windows Server 2003 Standard Edition R2 development server VS Studio .NET Standard Edition running on my XP Pro x64 workstation. I am working with the source code for transact-sql and console application that can be found here: http://www.codeproject.com/useritems/SqlDependencyPermissions.asp This example works perfectly. I am now trying to get SQLDependency working with a stored procedure. I create a sp via Studio Manager on my workstation with the following transact-sql: SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: Na ...Show All
.NET Development Help for TcpClient on PocketPC
Hallo I have this code: private void readCommand( object stateInfo) { int bytesRead = 0; String clientData = "" ; String xml = "" ; try { while ((( TcpClient )stateInfo).Client.Connected) { bytesRead = (( TcpClient )stateInfo).Client.Available; if (bytesRead > 0) { byte [] bytes = new byte [bytesRead]; (( TcpClient )stateInfo).Client.Receive(bytes); clientData = Encoding .ASCII.GetString(bytes, 0, bytesRead); SystemController .proccessObject( ( ArrayList ) ServerResponse .getInstance().getObjectType(clientData)); } Thread .Sleep(500); } } catch ( Exception e) { MessageBox .Show(e.Message); } } thi ...Show All
Visual Basic Track Machine Logon/Logoff Using Windows Service.
Hi all, i donot know this is the right place to ask this question. ok my problem is i want to track the logon and logoff on a machine using the .net windows service. do anyone of you worked on this type, then please help me. Thankx. But there is a major problem . using windows sevice i can get the last logon time once when windows started. but how can i track each time the user goes to logoff and logon without shutting down the computer. ...Show All
SQL Server Run SSIS package as an sql server job
Hi There, I have sqlserver agent running with a windows user account which is member of administrator group. I try to set up the job to run an ssis package and set up to run as sql server agent service account. For some reason, the job fails and it doesn't give much error info if I look at job History. Can somebody plzz help me I am unable to understand what extra permissions must that user have to run the ssis package as a sql job And how do I configure the job to give more error details Any suggestions are greatly appreciated. Thanks. ...Show All
Visual Basic Disable "Move" for my form
I am writing Windows Application with VB.NET. I would like to have my form occupying the whole screen and disallow the user from resizing it and moving it. I successfully coded it such that the form didn't move when the user dragged the title bar. It was what I wanted but it was not so perfect. When I press ALT+SPACE, a context menu popped up and this menu contains a menu item called "Move". I wanted to disable this menu item "Move" such that it only showed as a gray text instead of a black text. Which function to call I would agree that there are API calls to do almost anything. The question is should you use them Moving into unmanaged code requires careful consideration. Many Window ...Show All
Visual Studio Project Templates Not Appearing in New Project Window?
I just installed VS2005 Pro yesterday, and it seems to me, that there just aren't many project templates appearing when a new project is being created. For instance, I don't see anything for an ASP.Net project at all, where VS 2003 Pro lists an ASP.Net Web App, as well as an ASP.Net Web Service, and others. I found a post for a similar problem with VB Express, and looked in the following path: C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ProjectTemplates\VisualBasic, and found a number of templates in .zip files, however all these templates are the ones which are appearing. I have VS 2003 Pro and VS 2005 Pro running concurrently. Shouldn't there be more templates appearing Any replies would be appreciated. Th ...Show All
Software Development for Windows Vista Development of Windows Vista
Microsoft started work on their plans for "Longhorn" in May 2001, prior to the release of Windows XP. It was originally expected to ship sometime late in 2003 as a minor step between Windows XP (codenamed "Whistler") and "Blackcomb" (now known as Windows "Vienna" ). Gradually, "Longhorn" assimilated many of the important new features and technologies slated for "Blackcomb," resulting in the release date being pushed back a few times. Many of Microsoft's developers were also re-tasked with improving the security of Windows XP. Faced with ongoing delays and concerns about feature creep , Microsoft announced on August 27 , 2004 that it was making significant changes. " ...Show All
Visual Basic Changing connection string at run time??? :(
I have got two connection strings in my application which I am creating in VB.NET 2005, one whose database is installed with my application so i can keep the connection string and other which is already there with the user. I want the connection string of the other database which i am taking from the customer to be installed in the registry which is fine, the string value is stored in the registry from the customer input. Now how do i get that string as the current connection string as systems.settings.connectionstring is read only Is there any ways this can be done because I am working on this project and it needs to be done somehow Isolated Storage may be an option you may want to look into as well. ...Show All
