|
It sucks to be you, then.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
See this[^] article.
/ravi
|
|
|
|
|
Can someone point me to an article on how to create subclasses of forms and the controls that go onto them? What I want to do is to first subclass the base form in C# and add my own custom properties and methods that my apps will use when I develop a module. Then I want to do the same thing with textboxes, comboboxes, and any other typed of control that I can place on a form. I want then to be able to (at design time) see and select my derived/subclassed forms and controls on the toolbox and be able to select from that list.
I understand this is possible but I've not found an article on how this is done. If someone is aware of an article on how to do this I'd greatly appreciate the help!
Thanks!
Jim
|
|
|
|
|
|
CP MVP again? If I didn't know any better, I'd swear you were
amassing outstanding achievements...
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
You as well! However since you are a VC MVP it's almost required right?
Have a great year Mark
led mike
|
|
|
|
|
How can I learn a computer's machine name and user name by using IP adress?
Can you help me please?
Thanks in advance.
|
|
|
|
|
An IP Address won't reveal that information unless your application is on the target machine. If it is, you wouldn't use the IP address either way.
Why do you keep changing your forum name?
|
|
|
|
|
I don't know first I used my real name then I decided not to use my real name.
Thanks for the answer
|
|
|
|
|
I have to go I have a roll call.
|
|
|
|
|
you can lookup the host name of a computer on a network like this:
System.Net.Dns.GetHostEntry("127.0.0.1").HostName
|
|
|
|
|
That will give you the DNS hostname, not necessarily the Windows Computer Name.
|
|
|
|
|
ok, hopefully that's better than nothing
|
|
|
|
|
I just hope the OP knows the difference.
|
|
|
|
|
The code works for my computer's IP address but when I try an another IP address it gives the IP address of the target computer.
|
|
|
|
|
Here is the code
It works.
Thank you.
System.Net.Dns.GetHostByAddress(IPaddress).HostName.ToString();
|
|
|
|
|
But I have an another problem. I can't send ping every computers. Can you help me with it?
|
|
|
|
|
My.Computer.Network.Ping[^].
BTW, pinging a machine only tells you in the network stack of the target computer is working, up to a certain point, and that's only IF it doesn't have a firewall blocking ICMP traffic. It will NOT tell you if the target server you're trying to connect to is actually listening.
|
|
|
|
|
|
I want to update values of combobox in HTML pages by combobox in Windows Form by language C#
Thanks
|
|
|
|
|
how to clear this graphic? if i draw graphic to screen
example: public static void DrawToScreen(int pointX, int pointY)
{
IntPtr deskDC = UnmanagedMethods.GetDC(IntPtr.Zero);
Graphics g = Graphics.FromHdc(deskDC);
GraphicsContainer cont = g.BeginContainer();
g.SmoothingMode = SmoothingMode.AntiAlias;
g.SmoothingMode = SmoothingMode.HighQuality;
g.FillRectangle(new SolidBrush(Color.FromArgb(255, Color.Blue)), pointX, pointY, 2, 2);
g.EndContainer(cont);
g.Dispose();
UnmanagedMethods.ReleaseDC(deskDC);
}
this fucntion fill rectangle to screen.
if i need to clear screen(clear desktop), how i do?
please give some tips or hints for me
thanks a lot....
|
|
|
|
|
Why do you need to paint to the Desktop? Have you considered using a full-screen application instead?
|
|
|
|
|
Maybe it is a hoax.
Tan Li
I Love KongFu~
|
|
|
|
|
i can't using fullscreen
because i need to draw to screen when i drag mouse
now i can draw when drag but can't clear that screen
if draw on form, can use invalidate()
if not on form, how can i do?
please give some hints or tips to me
thanks a lot....
|
|
|
|
|
I'm really guessing now, but have you tried using Invalidate? It may force Windows to redraw the desktop (it is, after all, just a different kind of window). If not, I'm afraid I'm stumped, sorry.
|
|
|
|