|
|
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
|
|
|
|
|
my problem:
I have to port a Project from C++ to C#
there is a DLL, i can load
[DllImport("blabla.dll")] <br />
public extern static void CancelSearch();<br />
.<br />
.<br />
.<br />
and use it...
and then end the programm BUT there is a deadlock,
cause the FreeLibrary(); is never called
by C#
(if I remove the FreeLibrary(); in C++ then the C++ App hangs too)
any idea how to unload the DLL?
|
|
|
|
|
At the command line prompt change to the directory the .dll is registered in and then type the following:
regsvr32 -u blabla.dll
You should get a prompt saying it has been unregistered.
HTH
Nick Parker
|
|
|
|
|
no, the DLL is not registered.. its just a normal DLL ...
it waits till I call the FreeLibrary(); function
.... but I have no idea how to do this in C#
|
|
|
|
|
So are you only trying to call the FreeLibrary(); function from this .dll? If so and it is non .NET then you will need to use COM Interop.
HTH
Nick Parker
|
|
|
|
|
Normal DLL's dont use COM, and thus COM-interop will not be useful here.
|
|
|
|
|
Christopher Lord wrote:
Normal DLL's dont use COM, and thus COM-interop will not be useful here.
Isn't it . I must have been spacing off when I was typing my response, please forgive.
Nick Parker
|
|
|
|
|
trying use app domains - put the dll calling code in a sep domain - then when you unload the domain the dll should get unload as well...
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
thanks! I think this may work.... but I can't find any sample code with AppDomains
do you know a link?
|
|
|
|
|
see msdn article^
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
As far as i know the dll never gets loaded, u can only call static methods and the dll gets used to perform the function by Interop Services. Any dll (assembly) that gets loaded will be written to the debug console when they are loaded.
MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc for more info.
|
|
|
|
|
|
What part of the RichEditView do you wish to use? There is a RichEdit Control on the tools panel. You can anchor that so that it cover the entire window and streches as the window is resized.
Rocky Moore
|
|
|
|
|
is there any way to retrieve data from DataTable using regular SQL
statement, especially aggregate funcs like AVG(column) or SUM(column)
looks like DataTable.Select("AVG(column)") doesnt work, because it only uses
the agrument as a filter expr, not SQL
(i dont want to access the source database again using OleDBCommand, because the SQL command involves a few inner joins and it just takes too long)
manson
|
|
|
|
|
Look at the "DataColumn.Expression Property" in the help. It shows ways to use Aggregates and "DataView" has more information on filtering and sorting.
Rocky Moore
|
|
|
|