|
Okay I found the answer for my first question.
|
|
|
|
|
|
|
I used the WM_NCLBUTTONDBLCLK Event
|
|
|
|
|
In this way i create a class inherited from PictureBox, but if i want that it inherit also from Label class what i have to write?
public class MyClass : PictureBox
{
...
|
|
|
|
|
|
You could use interfaces.. But you prolly need more then just a definition of members..
|
|
|
|
|
Im wishing to view all of the files in a document library in a tree view format. How can I do this? I have not found any controls at all in the API to assist me in my cause.
Sincerely,
Jim
|
|
|
|
|
Hi
I would like to ask if there is any lib, comercial or not, that allow me play sound (async and sync) in .Net compact framwork in a managed way?
regards
Leonardo Paneque
WEBOO Group
University of Havana
|
|
|
|
|
Ok.. i want to remove the side header (well.. where cursor appears to indicate the selected row) from the data grid control.... is there any way to remove it or is there any way to reduce it's width... if you don't understand what i mean... please email me i will forward you the pic.
thanx in advance
|
|
|
|
|
ronin,
I think what you are refering to is called the "Row Selector" or "Record Selector". If you are using Microsoft's built-in control, I do not think there is a way to this. Some 3rd party controls allow for this flexability but of course they cost money. Hopefully, Microsoft will add this in for VS2005.
Joel Parmer
Black holes are when GOD divides by zero.
|
|
|
|
|
|
Hello:
From JavaScript I need to execute a function write in C#.
I have not found the way to do it not using __doPostBack, but problem is that using __doPostBack is generating a post back event from a script that is into a link button.
I’d like to see the way to execute a function write in C# from JavaScript avoiding a post back.
If somebody knows how to attain it, I Hill thank very much.
A.L.
El Hombre que tiene Amigos ha de mostrarse Amigo...
|
|
|
|
|
That simply is not possible. Javascript executes on the client, ASP.NET code on the server. You can work around that by opening a new window and posting contents to the server using that window.
Regards
Senthil
|
|
|
|
|
If you were trying to call into a .NET Framework control hosted on the client machine, then, yes, it is possible to do COM Interop between Java and a C# control.
But calling a method on the server? Only if it was part of a Web Service could you do this from JavaScript. You can't call an ASP.NET control or code, server-side, from client-side JavaScript without doing a postback.
BTW, this question really belongs in the ASP.NET Forum. It has nothing to do with C#, even if you wrote your ASP.NET pages with it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi all,
I am now designing a pluggable application system in C#, which means there
is a main program, and additional application (in form of a dll) can be
plugged onto the main program at run time. And each pluggable application
can exchange or share object with another pluggable application, so all the shared objects are put into another common dll(another namespace) to be accessed by all pluggable applications. The problem comes when new pluggable application are designed and created, new shared common object are added to
the common dll (the old common dll is overwrited by a new common dll consisting not only the new shared objects but also the original set of shared objects). And I think this overwriting process violates the principle of pluggable application. How can I redesign the software to avoid this problem ?
Thanks
|
|
|
|
|
pyhtang1 wrote:
(the old common dll is overwrited by a new common dll consisting not only the new shared objects but also the original set of shared objects).
Well, that's probably not a good idea. As I've written about in my AAL articles, I'd suggest a container that wraps each piece of data. The data should also be stored in some "universal" format--use the built in value types, string, and DataTable/DataSet, for example. Then the "data hub" can be used to acquire the data in the format that the plug-in wants.
Of course, you can't store class instances this way, but you probably don't want to because then it creates interlinking dependencies between the assemblies.
Marc
MyXaml
Advanced Unit Testing
YAPO
|
|
|
|
|
Why not have a core set of shared objects in one dll and have user defined objects in their own dlls?
Regards
Senthil
|
|
|
|
|
Thanks for your reply.
But the problem is that the core set of shared objects (in one dll) will be also increased as new applications are created, so it seems not good that
when new app are created, the core sets need to be overwriten also.
|
|
|
|
|
|
|
One way I found is to wire up an event for Layout or Resize, then check the WindowState property.
Thanks! If anyone has a better way, let me know!
Marc
MyXaml
Advanced Unit Testing
YAPO
|
|
|
|
|
Don't know if the following is a better way, but it was recommended when I asked the same question here some months ago.
Personally, I think that your solution is probably better, cause not every message for the form is checked, but thought it won't hurt to mention it anyway
public class YourForm : Form
{
protected override void WndProc(ref Message m)
{
if (m.Msg == 0x0112)
if (((int)m.WParam & 0xFFF0) == 0xF020)
{
}
base.WndProc(ref m);
}
}
www.troschuetz.de
|
|
|
|
|
Hi Marc!
I've used the Resize event for this once (to make a form disappear whenever it's minimized).
You can query the form's WindowState in the event handler to find out whether the window is minimized or not.
Regards,
mav
|
|
|
|
|
mav.northwind wrote:
You can query the form's WindowState
Thanks! That's just what I discovered. Too bad there isn't a WindowState change event.
(I think I'll write a simple article about it )
Marc
MyXaml
Advanced Unit Testing
YAPO
|
|
|
|