Any one help me in .NET deployment. I am deploying an project which was created using c# 2005. In this i want to ask the user to enter for an serial key. I tried using the Custom information serail key option, but i feel that it's not good and more secured. I want to keep my own key as serial key and want to validate it. How to do this. plz giude me....
I am getting some serial inputs and storing them into a buffer when I want to place the contents onto the textbox from the buffer...a cross thread violation error comes up...I am running the textbox from the interrupt function of the serial comm. any advise?
Maybe you could edit your original reply where you suggest to disable the check? People who read it might not follow the link to the previous discussions and actually think they have found a solution. And as it often appears to work after a quick test they would be in the dark why their GUI hangs.
I'm working on WPF project in which I need to implement ZoomIn / ZoomOut on Scrollviewer object with seperate pan zoom window. There are two types of transformation which can be applied i.e. Layout Transform & Render Transform. Now the problem is I want to use the best of both kind of transformation.
I have a pan zoom window which shows the view of my scroll viewer object.When the view of my scrollviewer object changes i notify to pan zoom window to reflect the view of scroll viewer object.
For transformation, scrollviewer object's three properties are important. ViewPortSize, ExtentSize and Offset. When ZoomIn is performed, ViewPortSize and ExtentSize remains same in both Layout and Render transformation while Offset value gets changed in layout transform but in Render transform scrollviewer object's offset value is not changing. Because of this in render transform, even if the view(or layout) of my scrollviewer object in main canvas has changed still I can not send the changed information to pan zoom window (as offset value is same).
So my problem is my ZoomIn / ZoomOut related requirements are perfectly satisfied using Render Transform but if I use Render transform I can not update my view in Pan Zoom Window. Can any one suggest me the work around for this problem.
(I want to implement the zooming in the same way as implemented in Microsoft Visio. Pressing ctrl key n mouse wheel move wil provide the zooming operation in visio)
Below I'm pasting one link in which the problem described is I think somewhat related to my problem.
Hope I have been able to put up my question in proper way. Pls revert back in case more clarification needed. Thanks in advance.....
So, when I press ctrl+right I'd like to focus on a text box and select all its text. But the right arrow press is processed by something else and so the cursor ends up at the end of the text box text with nothing selected. What's processing that right key press? How can I have ctrl+right select the text and not perform a right press in this one instance? Thanks for your help.
"Call the IsInputKey method to determine whether the key specified by the keyData parameter
is an input key that the control wants. This method is called during window message
preprocessing to determine whether the specified input key should be preprocessed or sent
directly to the control. If IsInputKey returns true, the specified key is sent directly to the
control. If IsInputKey returns false, the specified key is preprocessed and only sent to the
control if it is not consumed by the preprocessing phase. Keys that are preprocessed include
the TAB, RETURN, ESCAPE, and the UP ARROW, DOWN ARROW, LEFT ARROW, and RIGHT ARROW keys."
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google