|
Why do people always assume the worst, namely that this guys is flooding on purpose?
He probably sent it, saw that his message was not shown and then sent it again - without realizing that maybe his proxy was the culprit.
Is it really that hard to stay polite and friendly?
Why don't you simply write "You accidentally posted this twice." instead of
" _STOP_ _FLOODING_ !!!1!!1 one exclamation-mark eleven !".
You are gonna have a heart-attack before thirty, mark my words.
Oh, and a few things to consider:
a) That any reply will never stop anyone who has his mind set to flood a BBS.
b) Being unfriendly might actually hurt someones feelings.
c) If he was a troll, you would have given him reason to continue by getting emotional.
SEB
--
Contra vim mortem non est medicamen in hortem.
-- modified at 1:49 Wednesday 10th May, 2006
|
|
|
|
|
Sebastian Schneider wrote: Why don't you simply write "You accidentally posted this twice."
More than twice, and same problem with different header.
I call this "flooding", how about you ?
And, finally - he can delete thess messages after "multi-posting", but he don't do that.
Anyway, respect to you. I agree with your "polite" opinion.
Best regards, Alexey.
|
|
|
|
|
public delegate void OnMyEvent(FiresMyEvent sender);
public class FiresMyEvent : System.Windows.Forms.Control
{
public event OnMyEvent MyEvent;
protected override void OnClick( EventArgs e)
{
if( null != MyEvent)
MyEvent( this);
}
}
and yes "Stop flooding"
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum
led mike
|
|
|
|
|
Development Environment: C#/VS2005
I have an interface for doing a time consuming back end operation,
the caller is a GUI program, I want to inform the caller that % of job
completed in frequent intervals.(say for example 25%, 50% and 75% completed).
With event can we achieve this? That is event will be raised from the
interface and caller will wait for the event? Any ideas or Sample code?
Regards
Sarma
|
|
|
|
|
Development Environment: C#/VS2005
I have an interface for doing a time consuming back end operation, the caller is a GUI program, I want to inform the caller that % of job completed in frequent intervals.
(say for example 25%, 50% and 75% completed) . With event can we achieve this?
That is event will be raised from the interface and caller will wait for the event?
Any ideas or Sample code?
Regards
Sarma
|
|
|
|
|
skrishnasarma wrote: With event can we achieve this?
Yes.
Best regards, Alexey.
|
|
|
|
|
Then how we achieve this?
|
|
|
|
|
As you say:
event will be raised from the interface and caller will wait for the event
But, from class of this interface, not from interface.
Best regards, Alexey.
-- modified at 0:57 Wednesday 10th May, 2006
|
|
|
|
|
Thanks Alexey, Shall I get any sample code on this?
|
|
|
|
|
|
I have to do some WYSIWIG rendering.
Because I need to know exactly where is what and have to have the same output on both the screen and the printer I decided to change my Page unit to Inches.
As I was testing my first thought was to draw red outline of some relevant rectangle.
And here I had my 1st encouter with those infamous Windows strangeness....
Even though I had set my line width to 0, GDI+ draw 1 inch thick rectangles...
What's that?
How could I fix that?
Below is a code sample showing the problem,
just try it: big rectangle:
==========================
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
e.Graphics.PageUnit = GraphicsUnit.Inch;
using (Pen pen = new Pen(Color.Red, 0))
{
pen.Width = 0;
e.Graphics.DrawRectangle(Pens.Red, 0, 0, 8.5f, 11);
e.Graphics.DrawRectangle(Pens.Red, 1.5f, 1.25f, 5.5f, 8.5f);
}
}
|
|
|
|
|
Never mind, obvious bug in my code.... :->
|
|
|
|
|
Hi,
If two interfaces have a method of same signature and If we inherit both the interfaces in our class,what happens!
Thank you!
Deepa,
Be the Change you want to see!
|
|
|
|
|
You must describe methods evidently, for example:
<br />
public void IInterface1.Method1()<br />
{<br />
<br />
}<br />
<br />
public void IInterface2.Method1()<br />
{<br />
<br />
}<br />
To call one of this methods, you must cast your class for requered interface:
<br />
((IInterface2)myObject).Method1();<br />
But, you must avoid this situation.
Best regards, Alexey.
|
|
|
|
|
Does anyone know how to build a sudoku game with c#? i really want to make a PC sudoku game! If noone knows how to make one with c# does anyone know any other language i can use? Thanks!
|
|
|
|
|
alwaysaskin?`s wrote: Does anyone know how to build a sudoku game with c#?
Yes I know how.
What is sudoku?
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum
led mike
|
|
|
|
|
|
We currently have an MFC application with 2D output using GDI. We draw points, rectangles, polygons, etc. (I am looking at creating new portions with C#).
Moving forward, I would like to have each separate item as an individual selectable and moveable component. In other words, I want the user to select the rectangle (a sawline for my specific case) and change its angle, or move it around. Perhaps even show a dark outline when the mouse enters into the rectangle's space.
I currently allow users to move the points (in the MFC version) but I traverse through each point, figuring out which one they have actually selected. I would like self-knowledgable components which know, themselves, when the mouse has entered or a mouse button pressed.
I know with GDI+ I can create points, rectangles, and polygons, but is there some type of framwork in place to create these types of components? Do I derive my own Component class and add the Events I am interested in using?
Thanks for any help.
|
|
|
|
|
There is nothing like that built into the framework.
You can look at GraphicsPath though
|
|
|
|
|
Thanks. I had not seen GraphicsPath before. It may be useful for what I am planning to do.
|
|
|
|
|
I accidentally stumbled on a project which does exactly what I am looking for.
http://www.codeproject.com/csharp/drawtools.asp
I showed this to my manager and it's perfect. It's more likely I will need to stay in the MFC world (similar sample app is DRAWCLI), but the DrawTools sample is EXACTLY what I am looking for should we decide to implement it in C#.
|
|
|
|
|
I was wondering, I probably don't quite know enough about the painting events.
I have an application that I created and when I start with processing data, the progress window becomes the up most window and The lower one gets partially blanked as a result of the heavy working. The same happends If I press on another application and then return back to mine, everything is blanked, I can't see the progress.
How can I overcome the problem.
What events should I catch, and what functions for repainting ?
Thank you,
Clint
|
|
|
|
|
If you do your processing on a worker thread that gives up a CPU cycle now and then, the main GUI thread will handle repainting itself.
--
I've killed again, haven't I?
|
|
|
|
|
|
I know that one conext menu can be associated with multiple controls, however I need to change the view of ListView depending on the respective ListView that was clicked.
I found some stuff on msdn that talked about ContextMenu.SourceControl but for some reason I am not able to use it on Click event. I am getting a null for ContextMenu.SourceControl .
Any ideas as to how I can do that ?
private void tsTile_Click(object sender, EventArgs e)
{
if (lvCD == ContextMenu.SourceControl)
{
lvCD.View = View.Tile;
}
if(lvDisk == ContextMenu.SourceControl)
{
lvDisk.View = View.Tile;
}
}
Thanks in advance.
|
|
|
|