|
Andres Manggini wrote:
What about SuspendLayout ? did it work ?
No. I tried it also, but I have to call it for each control (for the toolbar, status bar, outlook bar, different panels, and so on) and when I called ResumeLayout for each, the same flicker occured because it first did everything for the toolbar and painted, then the outlook bar and repainted, and so on... But thanks anyway for your help,
-- LuisR
──────────────
Luis Alonso Ramos
Chihuahua, Mexico
www.luisalonsoramos.com
"Do not worry about your difficulties in mathematics, I assure you that mine are greater." -- Albert Einstein
|
|
|
|
|
I meant to use the method on the form, not each control, I thought that was what you were looking for.
Andres Manggini.
Buenos Aires - Argentina.
|
|
|
|
|
I first tried calling the form's method, but nothing happened differently... As I understood the documentation, calling SuspendLayout acts only on changes in the control's own Location, Size, Dock and Anchor properties, not on its children's.
-- LuisR
──────────────
Luis Alonso Ramos
Chihuahua, Mexico
www.luisalonsoramos.com
"Do not worry about your difficulties in mathematics, I assure you that mine are greater." -- Albert Einstein
|
|
|
|
|
Anybody knows how to implement the Context Sensitive Help? I looked into the MSDN there is no example and no hint how to do it, also I worked with HelpProvider class but unable to achieve it. Is anybody can help me in this or send me link where I can get the info about it.
Thanks in advance.
|
|
|
|
|
i have a static arraylist Commands , and a struct SvrCmd
i have used the following code to create a static member of type SvrCmd, and also add that static member, to the Commands array list
public static SvrCmd Abor = new SvrCmd();
Abor.Cmd = "ABOR";
Abor.Description = "Abort Transfer";
Commands.Add(ServerCommand.Abor); and i get a whole load of errors.
oh yer, the SvrCmd struct has public string members Cmd and Description
Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk "All programmers are playwrights and all computers are lousy actors."
|
|
|
|
|
|
|
Nnamdi Onyeyiri wrote:
Commands.Add(ServerCommand.Abor);
What is ServerCommand? You say you have a SvrCmd type.
MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc for more info.
|
|
|
|
|
lol
ServerCommand is the class that the code is in.
SrvCmd is just a struct, wiv two variables string Cmd and string Description
Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk "All programmers are playwrights and all computers are lousy actors."
|
|
|
|
|
Hi again,
It must be late or I'm just plain thick, but what is the purpose for the members to be static?
MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc for more info.
|
|
|
|
|
its holding information. i just didnt want to have to create instances, fore what i had in min,d i didnt see the point.
Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk "All programmers are playwrights and all computers are lousy actors."
|
|
|
|
|
|
im not - thats why its static.
Abor is in a class called ServerCommand
SrvCmd is a struct, which ive used to make the Abor object.
Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk "All programmers are playwrights and all computers are lousy actors."
|
|
|
|
|
Nnamdi Onyeyiri wrote:
im not - thats why its static.
You are!!!
public static SvrCmd Abor = new SvrCmd();
MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc for more info.
|
|
|
|
|
im iticating a static member of type svrcmd in another class, because i want each of the static variables to hold two pieces of information.
anywayx, no need to get ur knickers in a twist, rama solved it for me, i had to put the code where i assigned a value to Abor in a constructos.
Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk "All programmers are playwrights and all computers are lousy actors."
|
|
|
|
|
|
Thanks to help from several people I can now get my NotifyIcon to display text instead of an image, and it can change at run time. Very cool. The next logical step, of course, is to display text instead of an icon.
Basically, I'd like to replace the System Tray clock with my own clock so I can setup different formats, etc.
So, my question is, how can I draw TEXT in the system tray instead of an icon?
thanks
|
|
|
|
|
I have this class that I have derived from DataGridColumnStyle and all is working well apart from one issue.
In my test program I have created a DataSet at runtime and created a table with 3 columns, the table is set to the datasource for the grid. One of the columns is set to readonly.
Now my problem is that I can't seem to find anyway to detect this from within my derived DataGridColumnStyle class. The DataGridTextBoxColumn class seems to manage this feat somehow. For me I just get an exception thrown from DataGrid.CommitEdit() telling me that an object reference is not set to an object when I try to commit the change.
Anyone got any ideas on how I could dected the the DataSet.DataTable.DataColumn is read only?
Thanks
Stephen.
|
|
|
|
|
hello
I'm looking for a nice class containing high level math or statistical functions. Indeed I only know System.Math that isn't enough.
Notably, I've to use the normsdist function (an excel statistical function)
Does anybody know if such a class exist in .net or on the web, or how to create this function
Excel Help :
Returns the normal distribution for the specified mean and standard deviation. This function has a very wide range of applications in statistics, including hypothesis testing.
Syntax
Returns the standard normal cumulative distribution function. The distribution has a mean of 0 (zero) and a standard deviation of one. Use this function in place of a table of standard normal curve areas.
Syntax
NORMSDIST(z)
Z is the value for which you want the distribution.
Thanks a lot
|
|
|
|
|
|
thx Richard
but what I need isn't the density function, that is calculable from the Math class, but the integral of this density.
But with the other post, I will surely find what I need
thx for your help
troz
|
|
|
|
|
there is the cumulative fonction in addition of your first formula
caution : this is an approximation, found on http://www.pitt.edu/~wpilib/gaussfaq.html
this is only available for y>=0, the precision is 5 digits
and it's only for mean =0 and stdDev = 1
public class Stats
{
static readonly double root2Pi = Math.Sqrt(2.0 * Math.PI);
public static double normDist(double y)
{
return Math.Exp(-(y*y)/2.0) / root2Pi;
}
public static double normDist(double y, double mean, double stdDev)
{
double yStd = y - mean;
return Math.Exp(-(yStd*yStd)/(2.0 * stdDev * stdDev)) / (stdDev * root2Pi);
}
//Attention : CumulnormDist est une approximation (à 10^-5 pres)
//De plus, elle n'est correcte que pour x>=0
//et pour m=0 et sigma = 1 !
public static double CumulnormDist(double y)
{
double t = 1/(1 + 0.33267 * y);
double norm = Stats.normDist(y);
double p = 1 - norm * (0.4361836*t - 0.1201676 *t*t + 0.9372980 * t*t*t);
return(p);
}
}
|
|
|
|
|
|
thx a lot, it seems nice
troz
|
|
|
|
|
Hi all,
Is there a way of changing (or setting ) attributes (specifically ReadOnly) at runtime? I have looked at the CustomAttributeBuilder class but it seems to be difficult to understand and apply . I could be wrong.
Anyone?
Thanx all
MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc for more info.
|
|
|
|