|
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)
(><)
|
|
|
|
|
Muammar© wrote: Thanks but I said checked, not selected!
Its same thing if you view the html content if your aspx page the Check property will show checked
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... "
|
|
|
|
|
Sandeep Akhare wrote: if your aspx page blah blah blah
Thank you very much Sandeep for your precious time and efforts trying to help me, but did I ever mentioned aspx in any of my posts??
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
:->:->Sorry dude i thougt its ASP.NET forum
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... "
|
|
|
|
|
AOA:
I have made a user control now i want to call that user control in my test.aspx.cs file .
can anybody knows how to call this.
Regards
Farhan Ali
|
|
|
|
|
First Register that control in your aspx page
<%@ Register tagprefix="tagprefix"
namespace="namespace"
assembly="assembly" %>
Then use it in your aspx page
<code><tagprefix:YourUserControl id="Give ID " runat="server" /></code>
IN Code behind (.cs) file use this id
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... "
|
|
|
|
|
i have done it like this but when in .cs file i use this id no attributes of that user control comes.
Am i missing something
Thanx
|
|
|
|
|
Are you able too see that user control When you run the application ?
Might be IDE problem if evry thing is right ?
Can you post the code ?
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... "
|
|
|
|
|
UserControl usc = (SuitableProd)Master.FindControl("SuitableProd");
if (usc != null)
{
usc. (here i want other controls which are contained by the user control)
}
|
|
|
|
|
TRY THIS
SuitableProd usc = (SuitableProd)Master.FindControl("SuitableProd");
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... "
|
|
|
|
|
can anyone guide me as to how i can add a vertical scroll abr in the messagebox option...
i am displaying my output vertically which contains 569 fields...is their anyway a vertical scroll bar can be added in the messagebox??
|
|
|
|
|
Why dont you create your own messagebox control and add whatever you want in it?
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
thank u for helping me out sir,
but as i am not well versed with C#...i dont have any idea as to how to create my own messagebox...can u help me through???
|
|
|
|