|
Try searching the site for SuperToolTips. The one that I remember mimics the interface of Office 2007 and allows you to have a custom tooltip that can have a title, piture, color scheme, text, help button, etc. It may help.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
I have a program with
textBox1 , textBox2 and button1 .
And my friend have that program.
How to do this:
When i insert in textBox1 his IP address, and insert some text in textBox2 , when i click on button1 to send him the text entered in textBox2 .
How to establish a communication like this.
I have Visual Studio 2003.
Vasildb
|
|
|
|
|
If the two computers are part of the same network you can use the API command NetSend. The command just takes the paramters of the ip address and the string to send.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
Hi,
I have 2 classes
1. Race
2. RunningRace.
The first one is the base class and the other one Inherits from the first.
I need to add method "ComperTo" for each of the classes - - so i add Inherits of the interface IComparable for each of those classes.
My question are
1. Is there is other way to do it ?
2. I have 2 method with same name in this case and i cant add 'Virtual' keyword to any method so i have some problem that i don't know how to solve ...
3. If the base class Inherits interface - is the class that Inherits from him also must add the pure virtual method ?
Thanks for any help.
|
|
|
|
|
Hi,
Add the "CompareTo" only to the Race class.
Declare it as a virtual method (Just add the virtual keyword to its declaration).
Provide an overrding to the "CompareTo" method in the RunningRace class.
<br />
public class Race : IComparable<br />
{<br />
...<br />
public virtual int CompareTo(object obj){...}<br />
...<br />
}<br />
public class RunningRace : Race<br />
{<br />
...<br />
public override int CompareTo(object obj){...} <br />
...<br />
}<br />
Uri
|
|
|
|
|
Toda Gever.
|
|
|
|
|
Hi, I want that when my service installs, an icon appear in the notification area.(the installation starts the service).
I've arrived to do this.
But now, I want that the icon appears on start; and on stop, it changes without desappearing.
It appears on start but on stop, it disappears.
This code is in the OnStop() event
{
notifyIcon.Icon = iconStop;
}
Any Idea?????????
|
|
|
|
|
balboul wrote: Any Idea?????????
When your service stops the executable is unloaded, along with the icon. If you want the icon to remain even while the service is stopped then you need a secondary application that manages just the icon.
|
|
|
|
|
Please can you give me more information?
How to do the second application and to related it to the service.
|
|
|
|
|
I created a help file in windows workshop and that file i want to access through C#.Net. I used the web browser control and access it. file also open but it will give message that "You want to save or open the file".
that i don't want. I want that help file directaly open.
so if you have any other idea then please tell me
-- modified at 5:20 Saturday 13th January, 2007
|
|
|
|
|
Take a look at the HelpProvider component.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
hi
I want to draw 2 or more circles and determine if they crossed
if they crossed i want not draw the inter section lines
any help??????????
|
|
|
|
|
Well, this is basic pythagorus, as far as I can see. There may be better algorithms for detecting circles crossing. In the first instance, work out if the squares cross, if they don't, nothing more complex is needed. Then, it's pythag, unless there's something else out there. But, you need to calculate the points on the circle anyhow, if you want to draw between them ( a call to a flood fill algorithm will fix that, if it's one color circle on a solid background )
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
CheckOut GraphicsPath class it has some function like path.Contains(point) ,
i am not sure . This is from my old memory.
If u can Dream... U can do it
|
|
|
|
|
Two ideas:
1)
point is inside circle if (deltaX)^2 + (deltaY)&2 < radius^2
(deltaX is x difference between point and center of circle)
Similarly two circles intersect if (deltaX)^2+(deltaY)^2 < (rad1+rad2)^2
which is the cheapest way of saying distance between both centers is less than sum of both
radii.
In both cases there is no need to calculate a square root, which is rather expensive.
2)
I am not sure what you want to achieve exactly.
Maybe you want a white background, and N circles, each filled with its own color.
Areas covered by multiple circles would remain white.
If so, and performance not too important, you might create two nested for loops
(over x and y) so traversing all points, and test whether pixel is inside zero, one or more
circles (using first idea).
A first optimization would be to have only one for loop (varying y, so calculating one
"scanline" at a time), and for each scanline calculate the intersection points of that
line with each of the circles, sort these, then determine again inside zero, one or
more but now for each line segment.
Hope this is helpful
Luc Pattyn
|
|
|
|
|
Exactly I want :
When N circles intersect the intersection area disabled and the circles be as one shape(just with closed boundery of the circles)
All of that over an image
Thanks for help
|
|
|
|
|
I still dont know what it is exactly that you want. What are the inputs, what is the
output?
You might want to include and run the following code snippet:
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
public static void drawSomeCirclesToAFile() {
GraphicsPath p=new GraphicsPath();
p.AddEllipse(200, 200, 120, 120);
p.AddEllipse(100, 200, 120, 120);
p.AddEllipse(300, 200, 120, 120);
p.AddEllipse(200, 100, 120, 120);
p.AddEllipse(200, 300, 120, 120);
Bitmap bm=new Bitmap(500,500);
Graphics g=Graphics.FromImage(bm);
g.FillRectangle(Brushes.White, 0, 0, 500, 500);
g.FillPath(Brushes.Black, p);
bm.Save("circles.gif", ImageFormat.Gif);
}
So the suggestion is: be more specific, or have a look at the following classes:
Graphics, GraphicsPath, Region
Luc Pattyn
|
|
|
|
|
Hiii
For testing a NMS (network management system) , we need to create virtual networks of different types having different devices such as WinXp machines, printers, scanners etc.
There are softwares available to do this, but we want to develop our own.
Any hints on what needs to be done ??
i mean how can i create virtual systems by writing some code ?? which dlls , which APIs etc ??
If you know it , Please help !!!
In God We Trust. Everything Else We Test.
|
|
|
|
|
>>we need to create virtual networks of different types having different devices such as WinXp >>machinesprinters, scanners etc.
(include Mac's and so on...????)
The best solution of this problem, that i know(understand) this problem, using C# and components of .NET (2.0 or 1.x) such as System.Net; System.Net.Sockets - this tool's make's very shortly time_develop!
Read about that in MSDN!;)
|
|
|
|
|
Hi !
Thanks so much for the reply !
I dont know about Macs, but to start with, it will be great even if i achieve simulation of a few Windows machines.
I'll try MSDN, and if you have already spotted some article on it, it will be great if you give me the link !
Thanks again !
|
|
|
|
|
Please do not cross-post in multiple forums.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hi
iwant to have a masked textbox that add separator for digits when textbox is changing it means i want to have separators after enter each digit not after leave textbox
thanks alot
|
|
|
|
|
did you try typing "masked textbox" in the search facility on CodeProject ?
It is a good subject !
Luc Pattyn
|
|
|
|
|
hi all,
I had develop a user control to display chart in real time without flickering(using buffered Graphics).Now i am facing problem that the graphics(chart) will erase when the prompt box move over the area of display chart. My question is, how can i prevent chart from erase when prompt box move over it?
May be my question is abit confusing, if anyone would like to give me a hand to slove this problem, i will send you a exe file to test the problme(please give me yours email add).
Any hits are welcome..
thanks in advance,
cocoon
|
|
|
|
|
Hi,
Send me the file if you will, I will study it
|
|
|
|