Hi all, I have a ToolBar
on my form. Each button associated to an image from an ImageList
. Why when I disable the button, the button becomes all gray ( and not grayscale image ) ? Do I have to apply a second grayscale image for each button for disable mode ? If so, How do I do it ?
udir
Posts
-
Buttons image are all gray on disable mode on a toolbar. -
How to apply a different color then the system color to the main form menu and to the toolbarsThanks for your help but there is no OwnerDraw property to the main form ( no this.OwnerDraw )and no OnDrawItem() to override from...... What have I missed ? Udi
-
How to apply a different color then the system color to the main form menu and to the toolbarsThanks, Udi Raz
-
JoinMulticastGroupThanks but didn't help much. "System.Net.Sockets.SocketException: An invalid argument was supplied at System.Net.Sockets.Socket.setMulticastOption(SocketOptionName optionName, MulticastOption MR) at System.Net.Sockets.Socket.SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, Object optionValue) at System.Net.Sockets.UdpClient.JoinMulticastGroup(IPAddress multicastAddr) at DVP.Do.AddMsgToLog(String msg, Int32 port, String ip) in c:\\dev\\net\\core\\dvp\\dvp.cs:line 664" I tried to remove the FireWall, but still nothing. Maybe there is a security problem, maybe the XP does not allow communication through the port ???? Thanks again, Udi
-
JoinMulticastGroupHi, When running the following code
try { System.Net.IPAddress multicastaddress = System.Net.IPAddress.Parse("224.0.0.1"); udpclient.JoinMulticastGroup(multicastaddress, 50); } catch ( SocketException e ) { Console.WriteLine( e.ToString()); }
On XP with service pack 2, I am recieving the following excetion : "An invalid argument was supplied" while the same code runs perfectly good on windows 2000 computers. Any idea ? Thanks in advance, Udi Raz -
"using" keyword on methodsHi All, I have to write a mathematics formula with lots of sin and cos fuctions. It is very inconvenient since I have to write
system.math.sin/cos
. I know I can use the using keyword as followed :using system.math
to shortcut a little bit my method to math.sin/cos but it still annoying. I know I can't but why can't I write the followingusing sin = system.math.sin; using cos = system.math.cos;
??? Does anyone has an idea for a clean solution ?? thanks in advanced, Udi Raz -
Stupid problemAre you using Visual .NET 2002 or 2003 ? Udi Raz