|
Hi everyone,
I need to write a shell extension in C#. Particularly, anytime someone right clicks on a WORD file, there should be an entry in the context menu and it should do something. I really do not have much idea about how to do this? Can someone out there help me? Links to some source code/explanations would be greatly appreciated
Thanks,
Pankaj
Without struggle, there is no progress
|
|
|
|
|
Hello Friends,
Is anybody having any idea, how to associate progress bar with status bar and how to use it exactly.
Basically i'm having Save Button Click method. During the process of saving data, I want to show the progress in progress bar, which should gradually increase and should reach to maximum after completion of data saving. This progress bar should be on status bar.
Thanks in advance.
Pranoti
Pranoti
|
|
|
|
|
check out:
http://www.sellsbrothers.com/tools/genghis/[^]
This is a library with a ton of interesting things for .NET. Look at the ContainerStatusBar class; it allows any form control to be dragged and dropped on to it and then associated with a ContainerStatusPanel . It is pretty cool (IMHO).
Hope it helps,
Nathan
---------------------------
Hmmm... what's a signature?
|
|
|
|
|
Hello
First, does anybody know a more useful component than MSChart ? Because it seems to be very unsafe and hard to use.
Otherwise, I've two big problems with this properties :
grpGraphique.Plot.SeriesCollection[Col].Pen.VtColor.Set(Color.Maroon.R,Color.Maroon.G,Color.Maroon.B);
Sometimes, when I set this property VtColor, it handles the exception :
"System.Runtime.InteropServices.COMException (0x800A045F): Object is uninitialized or invalid.
at MSChart20Lib.VtColorClass.Set(Int16 Red, Int16 Green, Int16 Blue)"
It seems very unsafe and unsteady
This is the problem with VtColor
The other is with :
grpGraphique.Plot.SeriesCollection[Col].DataPoints :
this returns a collection of Datapoints, that can be counted, that can be accessed in their totallity by DataPoints[-1], but I can't access any single DataPoint, even if I use the method Datapoint.get__Item(short Index) ...
Does anybody already saw these problems ? It would be so helpful...
Thanks
Troz
|
|
|
|
|
I am looking for an example using a datagrid, and using an array of strings to populate the grid. I have a need to present configuration based information that gets transformed before being stored to a database. This transformation means that I need to manipulate and even duplicate some of the data I need to display. I would be very thankful for any help.
|
|
|
|
|
I know there are examples on ASP.NET [^] under the tutorials link.
Soliant | email
"The whole of science is nothing more than a refinement of everyday thinking." -Albert E.
|
|
|
|
|
I have two programs on the same PC. I want to send some strings from one of them to the other.
I can do this with sockets. I know I can do something with Windows.Forms.Message but I can't send the strings. But there is a Messaging.Message class which I think may do the job just I don't know what is its purpose.
Or may be there is better solution?
|
|
|
|
|
The System.Windows.Forms.Message struct represents the underlying win32 message which all Windows programs use at some point in their operation. (Windows is considered a message based operating system because information is relayed from the OS to the programs by messages).
The System.Messaging namespace is used to "[provide] classes that allow you to connect to, monitor, and administer message queues on the network and send, receive, or peek messages." This requires a particular server to be used; but knowing nothing about it I'll leave it at that.
Next you have socket based communication; this could work well and given the simplicity of what you are trying to do (send basic strings) this is the option I would go for.
Microsoft's recommended solution for interprocess communication is to use remoting. Nish has written a pretty good article on the very basics of remoting, Absolute beginner's introduction to remoting. However, since you are just sending basic strings from one application to another I don't think the added overhead would be worth it.
You could also try using the PostMessage API function, to send a message to the other program (this relates to the first thing I talked about) but you'll have to get into Marshalling which you may not be ready for.
Good luck,
James
"And we are all men; apart from the females." - Colin Davies
|
|
|
|
|
can u tell what are the equal code of vc++
sendmessage
postmessage
getmessage
peekmessage
in System.Messaging ?
plz help mee becuze i am doing mine final project and couldent get these things yet?
r00d0034@yahoo.com
|
|
|
|
|
I need to find out if a control intersects with a given Rectagle
(that is to say if given Rectagle overlaps in anyway with a given control).
But I need to find the rectagle of the control.
After the bounds of SelectionRect have been set I'm trying to do something like:
if ( SelectionRect.IntersectsWith(button4.???) ) {}
where SelectionRect is my Rectagle and button4 is the control.
I've looked at button4.Region.GetBounds() but that reqires a Graphics object. I'm wondering if there is a better way.
Thanks
|
|
|
|
|
The Bounds property will give you that; no need going through the region
James
"And we are all men; apart from the females." - Colin Davies
|
|
|
|
|
Thanks James,
Thats just what i needed.
if(button4.Bounds.IntersectsWith(SelectionRect))
|
|
|
|
|
is it possible to cahnge the colour of text in a richtextbox with out actually selecting it with the SelectionLength and SelectionStart proprties?
Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk "All programmers are playwrights and all computers are lousy actors."
|
|
|
|
|
Not to my knowledge; unless you were to modify the underlying RTF data (you can get it via the Rtf property).
I assume you don't want to disturb what the user is doing when you change the color of the text; so the 'simple' solution is to: Save the SelectionStart and SelectionLength properties, do your modification to the color, then restore the SelectionStart and SelectionLength properties.
James
"And we are all men; apart from the females." - Colin Davies
|
|
|
|
|
|
Yeah, thats the biggest problem with using that approach. I haven't looked (MSDN isn't installed on this computer) but perhaps there are some control messages that can be sent to the control that would set the color?
James
|
|
|
|
|
Hey Nnamdi
B4 you break your head like i did, i'll send you derived RichTextBox (i call it the RicherTextBox ). I converted this from a VB.Net ( I know nothing of VB anymore, but it seems VB.Net is reverse C# example on GotDotNet. Thanx [s orbit] for the great code.
New properties:
- SelectionBackcolor (from VB.Net example)
- FreezePainting (from VB.Net example)
New funtions:
- SelectionReverse (My own)
FreezePaiting will solve all your problems with the typing, just set to true b4 formatting and to false when done
I'll email u the class and should add it as a user upload soon , next 2 / 3 days.
Have fun
MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc for more info.
|
|
|
|
|
|
Hi,
I want to introduce software that can be useful for work with web service.
Web Service Invoker (WS Invoker) is a tool that can help you to access and debug any web service. It is not important how this web service was made (what programming language was used and what operation system is used to run it), because WS Invoker used pure WSDL definition for work.
If you are web service developer, you can find WS Invoker useful to debug and test web service you developed.
If you are web service consumer, you can use WS Invoker to request any web service. You do not need any other software to query any web service.
You can find all details here - http://www.soft-studio.net
Regards,
Vyacheslav Pedak
|
|
|
|
|
|
|
i have a control that needs to call a method in the parent form, any ideas how to do this?
i tried setting the form as the parents control using the Parents proprty, and the using this.Parent.Method() but it tries to call Method() from the Control class.
Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk "All programmers are playwrights and all computers are lousy actors."
|
|
|
|
|
I gave the parent form an interface
class MyForm : Form, ITest
then called that interfaces method, and it worked.
((ITest)thi.Parent).Method();
Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk "All programmers are playwrights and all computers are lousy actors."
|
|
|
|
|
|
Hi all - i'm currently using DotNetBar v1.0.0.15 and have found that if you add a shortcut to a main menu item (ie Ctrl+O when opening files)
the character 'O' gets added to the currently focused control after the shortcut code is run. This results in my currently focused richtextbox getting an additional character each time i try to open a new document.
I've tried trapping the key events but my shortcut code (an open dialog box)gets processed first before the key event handlers, by which point the Ctrl keys are long since deselected and event handler doesn't fire as expected.
Does anyone know of a reason or fix for this strange behaviour between DotNetBar and currently focused text.
boxes?
Cheers
|
|
|
|