|
Hello
Usercontrols don't handle drag/drop events by themselves. You have to do it maually and check the DesignMode boolean value to see if this drag/drop event is at design time or at run time.
Also there is Control.ControlsAdded event which you might want to handle as well
A better approach -if it doesn't contraindicate your goal from the control- is to inherit it from another Control similar to yours -eg. MenuStrip, ToolStrip, StatusStip, ToolStripContainer, etc..- Then it'll take care of everything for you. You just have to add a final touch to the code
Regards
|
|
|
|
|
Hi everyone
I was thinking is it possible to develop a application in c# that can intercept a telephone number using a dialup modem every time a phone call comes thru answered or unanswered the app should be able to log the number.
Thanks in Advance!
-- modified at 3:48 Friday 21st July, 2006
|
|
|
|
|
I think you can start to search there:
http://www.codeproject.com/useritems/IVR.asp
|
|
|
|
|
i know that this question doesn´t belong here, but i always get perfect answers here.
i´m working with reporting services and i have to make some graphs and i really don´t know how. there are only 2 report types - tabular and matrix. i also have problem with drill down option when using matrix, it´s not working correctly, i mean it´s hiding rows and columns, but it´s not sumarizing values.
cellardoor
cellardoor
|
|
|
|
|
It seems you forgot to post the question. You've got the problem but no question
|
|
|
|
|
hello
can you tell me how can I compare two double vars in my app
i tried:
if (var.Equals(.4))
but it's not working... and i am sure the two var contains the same value (i used MessageBox to print the vals)
please help me
|
|
|
|
|
Hello
the Equals() method is usually used to compare two reference types -Yet it still can compare value types-.
Instead you should take a shorter approach in comparing two value types by using the == operator
double A = 5.4;
double B = 2.3;
if (A == B)
{
}
else if(A == 2.7)
{
}
Regards
|
|
|
|
|
hy,
have you tried to compare something like:
double a;
double b;
if (a <= b)
{ }
if (a >= b)
{ }
it works just fine with double as with integers.
Do your best to be the best
|
|
|
|
|
may be a better way to compare double will be
if(Math.Abs(var-0.4) < 1e-14)
Regards
Shajeel
|
|
|
|
|
You better use decimal instead of double in such circumstances.
|
|
|
|
|
My Oracle SoreProcedue return a table.How Can I get it from c#?
|
|
|
|
|
Hello Friends,
Can anyone tell me how to print a datagrid in a window application using C#. Iam having a very big grid. first it should be shown to a printpreview page and from there it has to be printed. Help me to get the entire grid to a printpreview page.
Vipin
|
|
|
|
|
There is a VB.Net code snippet that does what you want to do here[^] - you should be able to convert it to C# (or compile it and import the compiled class)
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
The article u gave worked.Thank u so much for the information.
Vipin
|
|
|
|
|
|
hi all, i have a windows application built using C# .net 1.1, the application when installed on a pc running English Windows XP runs properly, but when it is installed on a system running Chinese Windows XP it is not displayed properly , the text boxes appear out of place, the images are out of place. Please if anyone knows what the problem could be let me know soon.
Thank you.
From,
Usman Zaheer Jaswal.
|
|
|
|
|
hi
can you please tell me how can I create a local var that doesn't get destroyed after exiting the method?
thanks
|
|
|
|
|
I'm a bit confused by your question, as objects become eligible for garbage collection when no references to them remain in the code.
Could you provide specifics on what exactly you're trying to do? What kind of variable is this, and what do you plan on doing with it when the method returns?
|
|
|
|
|
I am wondering if it's possible to create a variable in a method as follow:
string tttt = "Gggg";
and then after exiting the method i can still access that var
|
|
|
|
|
No, I think!
But, somebody correct me please.
-- modified at 3:38 Friday 21st July, 2006
|
|
|
|
|
Hello,
If I understand you right???
You have to declare your variable inside your Class and not in the Method.
Or you have to store the Value external (Database or XML).
Hope I helped you.
All the best,
Martin
|
|
|
|
|
Hello
One of the main ideas of C# -if not the main- is being managed by the garbage collector. That's why they call it a managed code -while there is an unmanaged code-. This task is quite advanced and is concerned with memory locations. Even then you'd have to store the memory location -otherwise known as pointer- somewhere to access the value.
You still can do something similar to that in C# with reference type only using WeakReference class. Revise it in your MSDN
Yet again what's exactly your point? Sometimes something that's possible is not always the best solution for a matter!! I'm sure there is a better approach to solve your problem -if it's not a mere programming challenge of some sort-
Regards
|
|
|
|
|
Hi friends,
Please tell me while converting C# gridview to excel how to autofit the columns in excel. Please Help Me.
Thanks & Regards
Prya
|
|
|
|
|
As far as I know, you can select all cells in the gridview and Ctrl+C, Ctrl+V them to Excel.
So nothing special there
WM.
What about weapons of mass-construction?
|
|
|
|
|
Hello
aaraaayen wrote: how to autofit the columns in excel
Do you want to do this in the code -ie programmatically- or just like WilliamM told you??
Besides, what does "autofitting" have to do with C# forum?!!
Regards
|
|
|
|