View Complete Post
I'm trying to use a UserControl in Silverlight and I want to handle some key events. The user control is a network diagram, laying out data points in a circle and showing the relations between points. It consists of a canvas to which various shapes (ellipses
for data points, lines for relations between points). I'd like it to be focusable and receive mouse and keyboard events to add support for things like rotation, scaling, and randomizing the layout of data points (how readable the diagram is depends on the
data and where in the circle related data points are located, but I'm not going to attempt any smart layout logic that figures out where to put the points; instead, I simply allow the points to be laid out in random order along the circle); I was thinking
F5 (with it's "reload/refresh" connotations) would be a neat key for this.
Trouble is, I am never ever receiving any key events. Mouse events apparently do bubble up to the canvas, but only from labels - the data points have labels - so I can handle them there. Currently this allows me to resize and rotate the diagram by scrolling
the mouse wheel (with the shift key down to rotate, without to scale) if and only if the mouse cursor is over a label. Not *quite* what I want!
After some quick googling I've attempted to set IsTabStop to true on the UserControl containing the Canva
We developed an ActiveX plug-in for PowerPoint on Windows The control allows content to be created in some graphical application, transferred to a PowerPoint presentation, and manipulated in 3D in PowerPoint in a view-only manner. Graphical application
is a scientific application which provides ability to create atoms, molecules, defining their bonding and defining surfaces, so user basically create molecules, proteins into the application and transfer it into ActiveX control using copy-paste.
We want to shift this technology from ActiveX to other, so that it can be used by any software like Microsoft Word, SharePoint, Web browser, and Microsoft Excel.
Can someone tell me alternative of ActiveX? What other technologies can be used to develop same functionality in Microsoft domain? Any pointers indicating for Advantage and disadvantage of using ActiveX and other proposed technology?
I heard about Silverlight, but I do not know anything how it would be useful and how it is beneficial over ActiveX?
What I am trying to do is create a RichTextBox control on my form. I want the RichTextBox control to only be able to contain 32 characters per line. I am using Courier New font, which is a fixed width font. I can set the width of the control so its long
enough to show 32 characters, which works. The problem I am having is that after 32 characters, if I set the WordWrap property to true, it will wrap the last word. I do not want the last word to wrap. I simply want it to go to the next line. I do not want
any carriage returns added to the code. I just, visually, want the control to jump to the next line, without wrapping any words. If I set WordWrap to false, then it doesn't wrap at all. it simply keeps going past 32 characters.
Does anyone know a way to make this control wrap text at 32 characters?
Can anybody tell me how to count the Number of characters ,while entering in the RichTextBox control and have to display the no of characters in the above