C_w's Q&A profile
Windows Forms Application-wide event when focused control changes?
Hi, In my application, I have a panel that displays some help text to the user based on which control they currently have focused. The control could be on the main form directly, or could be buried several layers deep inside nested ContainerControls (e.g. panels, tabs, user controls, etc, etc.) I need two things: 1. To ascertain at an application level which control is currently focused. In the absence of a better solution, I start a ...Show All
SQL Server Using multiple stored procedures in one report
Hi all, I want to use 2 stored procedures in one report, but I could not find what is the way of doing this. I searched this subject on the intrernet, and I found some solutions. However, they used stored procedures in one stored procedure and used in one report. This is not the thing which I want to do, I want only do using 2 stored procedures in one report at the same time. Thanks, for now... Same here, I've got the same problem ...Show All
Windows Forms How to implement copy and paste with DAtagridview
Hello, Can anyone help me how to implement a copy (of rows) in datagridview that of course goes to the clipboard which later I would like to paste in Excel Thanks in advance for help Cesar I spent 2 days to do the same & came up with the following. This may not be the best solution but works. Hope this helps. 1. First of all, you need to add to Excel Object Library reference to your project. 2. Used ...Show All
.NET Development "The request failed with HTTP status 401: Access Denied"
I am currently developing an ASP.net web application to consume web services, but am having an error message on the ASP.net web application whenever i try to run it. The message says " Server Error in 'Client record application', "The request failed with HTTP status 401: Access Denied". How do i resolve this Does this error occur when a webmethod is invoked If so, then the rights being passed to the webservice do not have ri ...Show All
Visual Studio Team System Team Foundation Server availability
Am I correct that the latest version available now is Beta 3 Is this what Microsoft supplies on that trial DVD that one can order from them If above is correct - when the release version be available If we start using Beta 3 now - will it be possible to upgrade to release version later How long will Beta 3 work Team Foundation Server Beta 3 Refresh is the version that is currently available. Team Foundat ...Show All
Windows Forms Simple way to populate treeview from database
What is the simpliest way to populate a treeview from a sql or access database with 1 table (category and subcategory) Thx in advance Thx DMan1, now i know that i have a long way to walk with programing. ...Show All
Visual C# a question on multithreading
Hello, I am using a global variable 'globalvariable' to pass data from main thread control (button click) to a thread (receivedata) i create for doing background work. once started, receivedata thread is suppose to run all the time with infinate loop to do it's work. Now my question is can i keep updating the global varible from the main thread without affecting the background thread. to make it more clear... say.. there are two threads 'm ...Show All
Visual Basic Eliminate ActiveX control
I am making and using activex control on vb6 . i heard somewhere we should eliminate using activex control on .net.. for..eg.. use socket class instead of using winsock.. what should i do use winsock (easy for me) or use socket class (new for me)... ...Show All
Visual FoxPro Receipt Printer Problem
Hi to All! I am using Epson Partial Cut receipt printer for our POS system. my problem is that the printer will eject or automatically cut the paper when the lenght of the paper riches 11 inch from the start of printing. the result is ok if the customer will buy only a few items, but when the customer buy plenty of items the problem start on, the receipt is cut every 11 inch of lenght.i already select the paper for Receipt when i design th ...Show All
Visual Basic Problem with Radio Buttons bound to Application Settings
I am using group of radio buttons which are bound to user-scoped application settings. Problem is on runtime if I try to select some other radio button in the group, I have to actually click it twice to select it. It works fie if the radio button is not bound to settings. I tried using checkbox as well and faced similar problem. What is the reason for this lag in behavior and how can I fix this. Thanks If you could show the ...Show All
.NET Development C# Finalizer for .Net Framework class System.Security.Principal.WindowsIdentity
Ok, first I'll not bark at the obvious poor choice made to not support a 'delete' statement to force finalizing an object; rather I'll assume your approach is correct... According to everything I've read, If you allocate unmanaged resources within an object one should support the System.IDisposable interface and free resources there. This post is to point out that in the Framework 1.1 the class System.Security.Principal.WindowsIdentity allocates ...Show All
Windows Forms Translating menu text with WinRes
When I load a .resx file in WinRes my menus are not displayed as they are in the IDE. The menu resource does appear along the bottom. When I click on a menu resource along the bottom of the screen an 'Edit Menu' prompt appears in the properties box but when I click on this I get an error: 'Object reference not set to an instance of an object' I have found the only way to edit menu text is to use the top-right combo-box and select each item ...Show All
Visual Studio Team System TF30170 Error, When i create a new Team Project
Hi for every one, I need some help, when I try to create a new Team Project, I get one error, TF30170, any idea why Thanks Ray! Could you post more information please The logs during project creation would be the most helpful. Thanks, Jay ...Show All
SQL Server Making outbound HTTP requests from SQLCLR
Hi, I have written a C# console application that adds a message to a SB queue and a C# stored procedure that reads the message from the queue. I have had so many problems that I'm beginning to doubt the usefulness of this, but that is probably just my frustration speaking. I am stuck on putting an XML message into the queue and reading the XML in the stored procedure. The console app has a simple object called Message. This class has ...Show All
Software Development for Windows Vista Creating Custom State Activity
I need to create a custom state activity with a code activity in the StateInitialization activity. Can someone please tell me how to create a custom state activity (what methods i need to override) and how to add the StateInitialization activity to my custom activity Please take a look at this thread and see if it gives the information that you need: http://forums.microsoft.com/MSDN/showpost.aspx postid= ...Show All
