Hello All, How to compare two enum types? Thanks
kumar bs
Posts
-
Comparing enums? -
Cursor dissappears on toggle.Hello Guys, My scenario is, i have a mainform with many dockable controls. And each dockable control can have panels and some intrinsic controls (textbox, labels...). If i select text in one of the controls, toggles out and in that selection is disappearing. Basically cursor state is not getting persisted. Is there a way Windows forms take care of this or do i need to write some code on Activate/Deactivate events for persisting cursor state and setting back the cursor position? Thanks.
-
Handling MouseWheel event?I am using third party control (Infragistics UltraComboEditor). Unfortunately, this control is not raising MouseWheel event with Mouse wheel is moved (may its a bug in control). How to handle global mouse wheel event? Somehow i want to handle the mouse wheel moved event in my application, and will check whether currently the focus is in UltraComboEditor and act accordingly, is this possible? Thanks
-
Transparent TextBoxDoes anybody have sample code for creating transparent textbox? I got some sample code in this site (AlphaBlendedTextBox) but it has some problems related to memory leaks and invalidating controls. Thanks
-
Implementing IExceptionHandler from Exception Handling Application Block (EMAB) without Configuration file?Hello, Can anybody give me link or provide sample source as how to let EMAB know about the newly added custom Exception Handler class without adding it to configuration file? Enterprise library depends on Configuration file settings to know about any new custom Exception Handlers, which as a developer we need to configure (add using EL Configuration Console). But i don't want to do that, i just want EMAB to pickup the Class implementing IExceptionHandler from current Assembly. Thanks
-
Exception Handling architecture/framework?Thanks for the reply. Only the thing i want to know is the best design to implement Exception\message Handling, using custom exception classes and resource files contains errors/message keys and descriptions. Thanks
-
Exception Handling architecture/framework?Can anybody give me link or suggestions on implementing good exception handling mechanism in the C# project. Not just try...Catch block but beyond that. I have something in mind, 1. Create something like Error Dictionary (resx file) with user-defined Error Codes, Description and build my own error information with user-defined exception class. 2. This class may accept error code or something for generating good exception object, which can be thrown to the consumer. 3. Exception Consumer will then use this object and pass it to Some class, which eventually will display Vista Type task dialog where atleast Title, Main Instruction and Description of the errors will be shown. Any Inputs are very much appreciated. Thanks
-
Parsing Exception?Hello, Does anybody worked on parsing exception and displaying user friendly messages. I know, this depends on project to project, but i just want to know is there any standard proceedure to parse an exception and come up with good user friendly (Vista type) taskdialog? Thanks
-
TaskDialog?Does anybody have sample project of code for creating simple TaskDialogs in framework 2.0, without any unsafe/unmanaged code? Thanks.
-
Handling Server Exceptions at Client in Remoting?Hello all, I want to create a centeralized exception handling in Client class. There are around 10 public methods in my client class , which can be executed directly. If the server is not available , exception is throw of non-availability of server, which i can catch by writing try...catch block in all the methods. But that will look messy, so , i am trying to create a centralized exception handling method. When there is any type of error from Server it should go to that centralized method at client. Is there anything like interface, which i can implement in client class and implement the methods? Thanks
-
Ways to re-establish connection between client and server on remoting?My scenario is: Based on Remoting concept, Server is listening to client on particular port using TCPChannel. Suddenly Server (Listner) went off, which client does not have information. When client sends a message, error is thrown saying "No connection could be made because the target machine actively refused it". Is there any way to re-establish client - server connection? Here Server is using randomly selected ports, so we can't hardcode port at client. Client is getting information of port from configuration file created at user's local directory. Thanks
-
Checklist for making a class Serializable?Can anybody give me the checklist to make sure when class is decorated with [Seializable] attribute. For eg. if this class referred anywhere , where the other class is serialized or not serialized, or used as collection variable. Thanks
-
Framing JScript Exceptions in C#?Hello, I am executing a JScript class from my C# using Microsoft Jscript Engine, using reflection to invoke JScript. If there is any exception thrown from JSCript, how to frame it properly for end user. I can handle the execption in try catch block, but i am getting TargetInvocation exception, which needs to be framed properly and shown to end user. Any Inputs in framing the TargetInvocation exception and showing to user in meaningful way? Thanks
-
Changing base form UI design, does not reflect in inherited form.Hello everybody. I have a base form "A" with two buttons. This form i inherited to form "B" and saved the project. Now for example if i add one more button to "A", it is not reflecting in form "B". I closed and opened "B" but still it is showing only two buttons. What to do for changes in "A" reflect in "B". I am using VS 2005, C#. Thanks
-
Read Lock a Table in SQL Server?sorry, i am correcting my statement above, "so that other transaction should not be able to atleast execute Select statement"
-
Read Lock a Table in SQL Server?thanks Andy, Actually this is just for testing purpose, i want other transaction to wait till the current transaction releases the lock. Is there any mechanism, where in we can hold the lock on table for few seconds so that other transaction should be able to atleast execute Select command?
-
Read Lock a Table in SQL Server?I want to lock a table in SQL Server, within a transaction. Unless i release lock, no other transaction should not be able to even read (execute select statement) on that table. Any Ideas? kumar
-
OnDragDrop sometimes not get invokedI am writing DragDrop functionality program and using DoDragDrop(...) method of control to fire OnDragDrop(...) method. Some times OnDragDrop is not getting invoked (but sometimes it is). Any Ideas? Thanks kumar
-
DATA GRID sorting problem.In which event should i write this code?
-
DATA GRID sorting problem.My requirement is, i added 50 empty rows to the Data grid. One of the columns of the datagrid is of ComboBoxColumnStyle. Now after filling data into just two rows (remember i have 50 empty rows), when i click on column header of ComboBoxColumnStyle columns it is sorting the total 50 rows, but i want to ignore the empty rows (other 48 rows). Because if i don't ignore the empty rows and sort the rows with data are being moved to end of the grid, leaving all above rows empty. Any ideas, how to sort rows only with data? Thanks kumar