|
Use the String.Replace() method.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
what does this mean?
Additional information: The form that was specified to be the MdiParent for this form is not an MdiContainer.
I tried to assign a class to be the MdiParent of a form and I got that message.
|
|
|
|
|
check that the form to which u r trying to assign as mdiparent
should have its IsMdiCotainer property true.
rahul
|
|
|
|
|
Set your parent form's IsMdiContainer property to true.
Regards,
Wasif Ehsan.
|
|
|
|
|
Hi..
I want to use my custom class ( that contains collection ) as DataSet.
I will send the dataset to report.
How can i do that?
Thanks.
mca
|
|
|
|
|
Create a method in your class which creates/returns a DataSet containing the current state of the object.
Josh
|
|
|
|
|
its a solution but :
there are classes/collections in main class and the sub classes/collections also contains classes/collection..its like a tree and i dont want to do that manualy
by your solution i must write methods to all sub classes/collections in the main class
mca
|
|
|
|
|
Is there some one here who knows of a component that works like the score in cubase.
Let me explain:
I want the capability to add and remove "boxes" boxes which should be possible to drag against a "timeline"
please look at this simple picture for explanation:
http://img140.imageshack.us/img140/6339/example8rm.jpg[^]
|
|
|
|
|
u can use lables to add dynamicaly at runtime
and can drag it run time using mouse.
rahul
|
|
|
|
|
Basically you're talking about a user control. No control can drag with the mouse by itself, you need to code this behaviour.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thanks for your answers,
I am about to implement this behaviour with an ownerdrawn component, built upon one "bar" class, and one "container" class.
I am just asking to see if you know of, or ever have seen a component with these capabilities (or atleast somewhat close to these capabilities)
or if you have any suggestions on how to build this component. I am NOT going to use labels.
Also, the bars have to be containers for other objects which can be retrieved by clicking and so on...(this ain´t a problem though)
|
|
|
|
|
I get the mouse position using Control.MousePosition. How can I convert this global mouse-cords to a windows local cords?
_____________________________
...and justice for all
APe
|
|
|
|
|
Screen coordinates to window coordinates: Control.PointToClient
Window coordinates to screen coordinates: Control.PointToScreen
So you need this:
<br />
windowRelativePosition = ctl.PointToClient( ctl.MousePosition );<br />
_____________________________________________________________________________
I don't expect too much, all I want is your vote for Halbsichtigkeit.
|
|
|
|
|
Just Perfect!! Thanks!
_____________________________
...and justice for all
APe
|
|
|
|
|
I want Code for Repeter Control
suresh babu.k
|
|
|
|
|
|
|
|
|
|
J4amieC wrote: Talking to yourself is the first sign of madness.
Especially if it's a dialog...
---
b { font-weight: normal; }
|
|
|
|
|
|
Hi One & All
This is Naren
I m very new to this environment.c an u give me any idea about how to create message board in c#.Reply may come in recursive with regsrding thread
Thanking u
please help me
|
|
|
|
|
Hi Naren. If by 'this environment' you mean C#, then what have you used before ? Basically I am asking what experience you have that makes you ready to write a message board in C# ? There are free message boards written in C#, in fact I think some exist as CP articles. You should perhaps look at those.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi,
I need to send the Array from C# to ActiveX control which has the following prototype
void CSimpleAdditionAtxCtrl::VarMethod(VARIANT* VarParam)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
}
In C# i have tried with the following code it says Type Mismatch please tell me whats wrong with my following code.
string[] myIntArray = new string[5];
myIntArray[0] = "Sample";
object obj = (object) myIntArray;
objActiveX.VarMethod(ref obj);
|
|
|
|