Greg Wilkerson's Q&A profile
Windows Forms Implementing DataBinding in webControls in asp.net 2.0
Hi , I implemented DataBinding concept in VS 2003 based on the MSDN article http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconimplementingdataboundcontroldesingerwebforms.asp I would like to know how to implement the concept in VS 2005. ...Show All
Windows Forms It seams I found part of the answer my self :)
Oh components, I am writing one of them since a week, too much, I know :) The last think that I was not able to solve is how to make the component discover where he is exactly during initialization, in other words, on what form is bean placed, and in which project. I used a similar code in the components to discover the project in ...Show All
.NET Development The Undo operation encountered a context that is different...
This is not specific enough information for me to know what I did wrong and where. Does anyone have any insight to this It appears to have something to do with asynchronous socket I/O completion. System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"> <TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier> <Description>Unhandled exception</Description> <AppDomain>PPSManager.vshost.exe</AppDomain> <Exception> ...Show All
SQL Server Intallation Error
i'm trying to install MS server 2000 components and I continuously get the same error. "A previous program installation created pending file operations on the installation machine. You must restart the computer before running setup." I've rebooted 100 times, turned the machine on and off, installed other programs, etc. and stil I get the error ONLY when I try to install the components. Please Help!!!! I took a complete answer from this page http://www.kbalertz.com/Feedback.aspx kbNumber=312995 SQL Server 2000 installation fails with "...previous program installation..." error message View products ...Show All
Visual FoxPro Convert month to numeric
Dear all, i using vfp7. Do there a function i can convert "June" to 6 i mean to numeric formats. Thanks in advance. AFAIK there is no function in VFP that does parse a monthname to its numeric format nor parse a date/datetime that contains monthnames (such as June 3,2006 to 6/3/2006). You can create your own MonthName2Numeric function. ie: #define Months "January,February,March,April,May,June,July,August,September,October,November,December" ALines(aMonths,Months,.t.,',') "June is", Ascan(aMonths,'june',1,-1,1,1+2+4+8) ...Show All
Visual Basic How long a computer is on, and writing after some text
Well this is a two Q topic. First i want to know if there is any code for getting the time for how long the computer has been on Comptime.. Second how can i input text after some text in textbox For instance button1.click inputs the text "you" into textbox1.text But if the textbox1.text already has some text like "how are" then when button1 is clicked text should be input after "how are" and the text should be "how are you" If you want to do anything to or with a particular class the first thing you should be doing is reading help topic for that particular class and its member listing. That would have brought y ...Show All
Visual Studio Express Editions having problem with VC++ express edition and SDK
Since I had my VC++ I only been doing C++ console application. now I am doing win 32 API but the program is not compiling .( windows.h ) not such directory. can any one tell me how to install SDK. already install but I need to fallow some direction don' tknow Take a look at the first video at http://msdn.microsoft.com/visualc/learning/vcexpvids/default.aspx Hope this helps! Thanks, Ayman Shoukry VC++ Team ...Show All
Visual C++ including dshow.h compiles not with /clr but with /clr:oldSyntax
Hello, can somebody tell why I get 103 errors with /clr and none with /clr:oldSyntax when I include the dshow header file. I would like to use the new syntax. Win32 console app generated by VC Express with line added to include dshow.h #include "stdafx.h" #include <dshow.h> int _tmain(int argc, _TCHAR* argv[]) { return 0; } Regards, stax You have nailed down the problem: the new C++/CLI syntax is (as its name indicates) just now being released with Visual Studio 2005. Thus, the code inside the SDK from VS 2003 is written using the old syntax and cannot be compiled without t ...Show All
Visual Basic SignTool reported an error 'An internal certificate chaining error has occurred.
I am new to code signing. After I swtich from the temperary test certificate to a real certificate from a CA, when I publish, I got two errors "Error 1 Cannot publish because a project failed to build." "Error 2 SignTool reported an error 'An internal certificate chaining error has occurred. '." and when I checked "Sign the assembly", when I build, it asks for a password, after I entered password, it says "Cannot find the certificate and private key for decryption" Help me. Thanks Wei Hi, Our application doesn’t pass test case 5 (signed files and executables) and I’m not even sure it passes test case ...Show All
Smart Device Development trapping FN key
Currently, on my device, to enter numbers using the QWerty keyboard, i have to press the function key each time, as there is no NumLock function available. So i thought i might be able to simulate this by implementing the following rule: -create a background process that will determine if the function key is pressed twice quickly -if so, i set a private property, _numLock = true; -if the FN key is pressed twice again, i set _numLock = false; -basically, i would like to have a process recieve all keystrokes, if _numLock = true, i can then pass the keystrokes on, but also set what ever needs to be set to indicate the FN key is pressed. i thoug ...Show All
SQL Server "Launch Database Mirroring Monitor" is not an option
Good morning all... I would like use the "Database Mirroring Monitor" to track what's going on. All three of my servers have SQL Server 2005 x64 edition installed with SP1. Server A is mirroring to Server C Server B is mirroring to Server C Following the instructions at http://msdn2.microsoft.com/en-us/library/ms365786(d=ide).aspx : On Server A and C, "Launch Database Mirroring Monitor" appears. On Server B, "Launch Database Mirroring Monitor" does NOT appear. Is there something I have to do to get this tool installed on the machine, or it is an automatic thing Thanks! Forch ...Show All
Visual Studio 2008 (Pre-release) WPF hosted in Winforms. Is there a problem with mouse events?
I've got a WPF UserControl that I'm hosting in a Windows.Froms application and it crashes when I move the mouse over my UserControl. I've switched off handling the mouse move event, but it still crashes. Is there a problem Here's the exception dump: System.NullReferenceException occurred Message="Object reference not set to an instance of an object." Source="WindowsFormsIntegration" StackTrace: at System.Windows.Forms.Integration.ElementHost.InputManager_PostProcessInput(Object sender, ProcessInputEventArgs e) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputManager. ...Show All
Visual Studio .NET-BroadcastEventWindow error on program termination
I get an application error (.NET-BroadcastEventWindow . . .) when closing my application IF I open a Crystal Report. If I run the program without doing any reporting, it closes fine. This problem occurs both on the development machine and with the app deployed to a client machine. The environment is VS2005 Beta 2. In doing some searching, it appears others have had this problem (though not necessarily with VS2005 Beta 2) and seemed to indicate it has something to do with the file crqe.dll. However, I haven't found any solutions. Any help with this is much appreciated. - Tom I have al ...Show All
Windows Forms DataGridView Performance issues with CellFormatting
Hello: I'm using the DataGridView for displaying data to the user. The number of records that will be displayed at a certain time could vary between 0 and 150. I use the CellFormatting event handler to do some formatting like changing the font face and the background colors based on the cell values. Earlier we were iterating through the rows of the gridview to accomplish the same. Since the performance was dreadful, I changed the code to use the CellFormatting. Now, the performance when the gridview loads is a lot faster than the earlier approach. But everytime, we scroll through the gridview the application just hangs, and its bec ...Show All
Windows Forms display multiple lines string in textbox
Hi, I have a multiple lines string and want to display it in a textbox. string comment = "......."; //multi-line string textBox_comment.Text = Program .memberInfo.comment ; I tried the above codes but it displayed all in one line. Anybody can tell me how to display it as the original multi-lines string Thank you in advance. The TextBox has a MultiLine property, it needs to be true. If your string contains NewLines, it will then display properly. ...Show All
