|
I do not see a Card = new CardDetail() anywhere, you must create an instance before you can use it. I would suggest that you put it in the Constructor for NewOrder since each NewOrder currently requires CardDetail. Later you might want to switch to Lazy Initialization (google it for details).
Although it is difficult to see why that would give an HTTP Error, it is necessary, so try it anyway.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
i need to recognise a road from o picture, and return a 2 color picture, one for the road and one for everithing else.
in theory i know hos to do it: split the image into sqares and analise them separae.
my problem is theat i do not know how to manipulate the sqares, using image filters, to actuali find the road.
any help would be realy apreciated.
thx.
The picture consists of an road surrounded by tree and grass, and you see some sky, am the road has some defects, i thougt recognising the road using the diference in color, but i do not know how .
modified on Monday, May 4, 2009 11:26 AM
|
|
|
|
|
This is not the place for fast answers, particularly on a weekend.
This is not my area of expertise, so please, by all means use the links I give below, but it will not be worth your while asking me any follow-up questions.
Take a look at these articles from CP, to see if they are of any use.
Blobby! - Shape/Blob Recognition Code[^].
Image Recognition with Neural Networks[^]
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
The segmantation strategy usually depends and the targeted images. There is no "best" (often even "good") algorithm. Maybe you'll have to throw in some sample images so we can give some opinions.
If by "fast" you mean you need this by Monday morning, you are probably out of luck.
H.
|
|
|
|
|
thx for the sugestion.
helped a lot.
but i have a new problem now, i need the coordenets for a mouse click on the picture, relative to the picture upper left corner, ao any other corner.
i am tying to use this :
this.main_picture_box.Click += new System.Windows.Forms.MouseEventHandler(this.main_picture_box_Click);
private void main_picture_box_Click ( object sender, MouseEventArgs e )
{
label_crop_i.Text = String.Format("x={0} y={1}", e.X, e.Y);
}
protected override void OnMouseWheel ( MouseEventArgs e ){}
but i get this error:
Error 1 Cannot implicitly convert type 'System.Windows.Forms.MouseEventHandler' to 'System.EventHandler'.
any ideea?
|
|
|
|
|
Use MouseDown event instead of Click, this really uses MouseEventHandler and through MouseEventArgs you'll get your coordinates (just like you tried with EventHandler).
H.
|
|
|
|
|
The following:
float.m_result = float.Parse(m_store[0].ToString());
is generating an error:
'float' does not contain a definition for 'm_result'.
The .net help message is:
'type' does not contain a definition for 'identifer'
Not sure which direction I need here. I am new to c#, appreciate help.
Thanks
|
|
|
|
|
onetreeup wrote: float.m_result = float.Parse(m_store[0].ToString());
float m_result = float.Parse(m_store[0].ToString());
My failometer is detecting vast quantities of FAIL!
"Its SQL - hardly programming..." (Caslen)
|
|
|
|
|
i need a code for an Acess Control Code:
a small machine placed on a glass entrance for a company, if an employee wants to get in, he or she has to input an ID thats already givin to him/her.
if its right, the door opens. otherwise, access denied. it also saves the time the employee arrived so that the manager can use this information to make a report of attendancies and abcense.
|
|
|
|
|
I suggest you buy a system off the shelf.
7alool wrote: a report of attendancies and abcense
Will you require employees to enter/leave one at a time even if they arrive at the door together?
Have you considered using system login/logout instead?
At any rate, no such system will be completely accurate, and may leave loopholes for abuse.
|
|
|
|
|
Not to meention the legal issues that can be brought up by an inaccurate attendance report.
|
|
|
|
|
hi
i have a problem, i want do my project that is we have a client/server system and we have 2printer for example hp1 and hp2,and one server and for example 6 cleint computer in network.
a program is install on server and printer me be connected to any client, and if click on hp1 on program in server , hp1 on any client that have hp1 print,and hp2 too.
i want help me ,what i should learn for this project? what idea you have ?
i do client programing and don`t write program on network.
after finish my project take my result on site.
|
|
|
|
|
Soooo, you want to be able to move a printer to any system in the network, and without changing the configuration of any workstation, have them all print to the printer, no matter which system it's connected to?
|
|
|
|
|
I am a beginner of programming in c # and using visualstidio 2005.
Until now I have always programmed in C.
I would like to control where I can draw shapes like circles, etc. lines.
I tried to achieve by drawing on a big child panel(60000,60000 pixel) with the class system.drawing.graphics, but I find the problem that when the control is redrawn lose all the geometric shapes I had drawn earlier(example when it is scrolled).
Which method should use to porer add new forms without losing all the designs already made?
I hope that he was quite clear .....
Thanks in advance for any replies.
Hello
modified on Sunday, May 3, 2009 8:26 AM
|
|
|
|
|
If you want to draw on a child panel, handle the Paint event of the child panel and do the drawing there. That way, your drawing gets done every time the panel paints itself.
Just in case you have not yet discovered how to do this:
1. Select the child panel in the designer
2. Bring the Properties Window into view
3. On the toolbar at the top of Properties Window, click the Lightning Bolt button, this will switch to events view
4. Look down the list, find Paint and double-click it. This will put a Paint event handler stub in your code file
5. Put your code in there.
Good luck!
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Henry Minute wrote: If you want to draw on a child panel, handle the Paint event of the child panel and do the drawing there. That way, your drawing gets done every time the panel paints itself.
Just in case you have not yet discovered how to do this:
1. Select the child panel in the designer
2. Bring the Properties Window into view
3. On the toolbar at the top of Properties Window, click the Lightning Bolt button, this will switch to events view
4. Look down the list, find Paint and double-click it. This will put a Paint event handler stub in your code file
5. Put your code in there.
Good luck!
Thanks for the quick response.
In this way I have to write them all the code for all the geometric shapes that I have to draw, right?
I can not do this because I do not know what I have to draw, but I will have to read from a file.
I want something where the GUI alone remember all that has already designed and I would add only the new figure by the code . This way I can read from the file one figure at the time and add it to the plan to put all figures.
Thank you...
Hello.
Mirko
|
|
|
|
|
lor3n7o wrote: I want something where the GUI alone remember all that has already designed and I would add only the new figure by the code . This way I can read from the file one figure at the time and add it to the plan to put all figures.
Thank you...
What you need for this is a collection of some sort to hold details of what has been drawn, as a field of your Form. This collection can be serialized, or otherwise saved to a file when the application closes, ready for loading the next time it starts.
However you decide to implement that, the simplest way to ensure that your 'drawings' are displayed is to iterate over the collection drawing each item in the Paint event of the panel. The point is that each control in a Widows Forms application has its own Graphics object this object has methods for painting stuff on its surface.
There are plenty of examples of how to do all of these things. Just Google for drawing program c# or painting program c# and you will get lots of useful examples to study.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Thank you very much.
One question again:
For my problem may be a solution to use a library dll autocad to solve the problem?
or is it the equally persistent?
Thank you.
Hello
|
|
|
|
|
There is a distinct probability that the owners of Autocad might object to your using their intellectual property, you would need to check their site for that.
Even if it turns out to be OK to do that, you seem to be having enough problems dealing with drawing shapes on a panel, without trying to learn the whole new skill set involved in using third-party libraries, particularly if you don't have documentation about their API.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
|
Hi
I want to populate a combobox with the name of the tables of one access database. I use the following statment
I get stuck on the error Record(s) cannot be read; no read permission on 'MSysObjects'.
Any help?
My code:
<
Database db;
OleDbConnection cn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\DB1.mdb");
OleDbDataAdapter adt;
DataSet ds;
cn.Open();
adt = new OleDbDataAdapter("select name from msysobjects where type=1 and flags=0", cn);
ds = new DataSet();
adt.Fill(ds);
comboBox1.DataSource = ds;
>
|
|
|
|
|
KIDYA wrote: ("select name from msysobjects where type=1 and flags=0", cn);
I might be wrong but I would say rewrite the above as follows:
(Select Name1 FROM msysobjects WHERE type = '"1"' AND flags = '"0"', cn);
SQL is case sensitive and the values must be wrapped in '" "'.
Give this a try and see. I would also change the Column Name to Name1.
Excellence is doing ordinary things extraordinarily well.
|
|
|
|
|
When first released, ASP.NET lacked a template engine.
So now, for .NET 2.0, ARE "master pages", ASP.NET'S version of a template Engine?
If no, how do regular Template engines (StringTemplate) differ from 'Master Pages'?
Thanks in advance,
Laura
|
|
|
|
|
This is not the best place to ask ASP.NET Questions. There is a seperate forum for it.
Either you love IT or leave IT...
|
|
|
|
|
I cannot get generics to return a type that it does not know is correct.
I have a collection of general objects each with a sorted keyfield ID
cTypeA 2
cTypeB 3
cTypeA 7
cTypeA 9
cTypeB 12
in one ArrayList, all of which derive from cType.
I want to create a separate list of ID references using generics, but which returns the actual objects in an indexer. That way I am assured of type safety when using the object (displaying in a listview say) rather than casting at the end use point:
public class cList<T>
{
public cList(cIDList UseOwner)
{
Owner = UseOwner;
ListItems = new ArrayList();
}
public T this[int Index]
{
get
{
if ((Index >= 0) && (Index < ListItems.Count))
{ return (T) Owner.GetObject((int)ListItems[Index]);
}
}
}
private cIDList Owner;
private ArrayList ListItems;
}
to implement this
cList<cTypeA> AItem = new cList<cTypeA>(MyIDList);
(assume items added)
cTypeA UseA = AItem[2];
Is there a way to solve this problem? The only way I can see is to do the above without generics, copy and paste then change the return cast type for what I use now, and in the future. Not easily manageable!
Thanks.
|
|
|
|