|
try showing it on the menubar but with position offset so it'd look like it's the button's tooltip
life is study!!!
|
|
|
|
|
I want to create a user control in which a button is there now when I am clicking the button it has to invoke some event which has to be handled by the form which is using this control.
Same task in vb can be achieve easily as follows:
In the user control
public event MyEvent()
...
public sub Button_click(byval Sender as Object...)Handles Button1.click
raiseevent MyEvent
end sub
...
In the Front end
public sub USercontrol_MyEvent() handles USercontrol.MyEvent
...
end sub
In C#, is there any option like this
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
M. J. Jaya Chitra wrote: In C#, is there any option like this
Of course, see, for instance http://msdn2.microsoft.com/en-us/library/aa645739(vs.71).aspx[^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Thanks for your immediate reply.
I got the code I will try this in my application.
I will get back to you if I want any more clarrification
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
|
You seem to have a tendency to not RTFM first and asking concrete questions afterwards. This is considered rude, please stop it!
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
|
How can we use printdialog in an application?
|
|
|
|
|
Do not spam the message board. You have been told how to use it and not to spam
|
|
|
|
|
how to checking the video and audio equipment have installed ?
Thanks.
|
|
|
|
|
Detect it using DirectX.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
is too bad .
I have never used the DirectX.
Can you give me more hints。
Thank you.
|
|
|
|
|
There are multiple articles on code project about detecting video hardware using DirectX
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hello all..
i am a newbie in this software designing field...
can any1 guide me as to how i can plot graphs using visualC#?
|
|
|
|
|
Create a Bitmap, create a Graphics object from the bitmap and use methods on the Graphics class to draw on it
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I am developing a small project.And My program takes a bmp as input.the output should be the backgroud color of that image .
I want to know that how can i get the background color of that image.
Reply soon
Thnx
|
|
|
|
|
There is no background color property in a bmp image.
You can load the file into a Bitmap object and use the GetPixel method to get the color of specific pixels. You have to choose a method to determine some color that can be used as background color. I would suggest that you examine the corner pixels of the image.
---
single minded; short sighted; long gone;
|
|
|
|
|
GetPixel should do it, if you assume that a particulal pixel ( such as 0,0 ) is always the background color. Otherwise, it can't be done, not without a ton of work. How do you define the background color ? How do you detect which color is the 'background' ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
You could find the color that is predominant in the picture and assume that it's the background color. Most of the time you'll be right. Also, as a second test, checking the corner pixels and other regions near the edges for that color would be a good idea.
Sometimes, the predominant color may be that of human skin, so you could have an range of skin color, and rule out a possible background color if it falls in between that range.
|
|
|
|
|
hi
I'm trying to do this:
for (i=0;i<100;i++)
{
Point p = new Point(i,100);
this.Location = p ;
}
but the form is not responding ,
I put this code after calling initialized component method.
in the constructor of the form
what is the problem?
|
|
|
|
|
It's happening so fast that you cant see it, try to break every loop using
System.Threading.Thread.Sleep(20);
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Try adding Application.DoEvents() to force the page to redraw itself.
I'm also not sure if the Location property is the right one, try setting the Top and Left properties instead.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
How do you check/uncheck all the items in a check box list control?
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Loop through the items in the Checkbox list
<br />
ListItemCollection list= CheckBoxList1.Items;<br />
foreach (ListItem item in list)<br />
{<br />
item.Selected = true;<br />
<br />
}<br />
But when you want to make all items to be selected ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Thanks but I said checked, not selected!
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|