|
Detecting objects in a photograph is a challenge. Do a search for "Computer Vision" or talk to your Computer Science professor at your local university to see how complex a field this is. Unfortunately I can't think of a simple way of doing this.
|
|
|
|
|
Does anyone know any reliable compression library for .net ? Tried to use SharpZlib without success (too much CRC errors)... I tryed managedzlib as well. If anyone know a good library (or a way to call the good and old unmanaged zlib from managed enviroment), please let me know.
|
|
|
|
|
Just for the record, this post is mine (I tought I was logged on when I posted).
Mauricio Ritter - Brazil
MSN: mauricioritter(atsign)hotmail.com
English is not my native language so, if you find any spelling erros in my posts, please let me know.
|
|
|
|
|
|
Hi everyboy,
I am now developing a piece of software to interact with a web cam. I have already found some examples of web cam accesses, but I would like to know how to access the configuration of the webcam.
It is important for my project to be able to have control of the acquisition of the pictures. Any idea?
McArco
Newbie in C#
|
|
|
|
|
Hi,
I'm writing a service which would extract plain text between HTML tags. e.g <td>Some text</td>
It will extract all tags like this. Iam using following regular expression
Pattern = ">\w+[^<]+<"
It tries to extract only those tags which contain only plain text and on other.
This regular expression is not working fine and does not extract all tags e.g it misses <title>My title</title>
I would appreciate if someone could help me. Its urgent.
|
|
|
|
|
|
Hi,
I'm writing a service which would extract plain text between HTML tags. e.g Some textIt will extract all tags like this. Iam using following regular expression
Pattern = ">\w+[^<]+<"
It tries to extract only those tags which contain only plain text and on other.
This regular expression is not working fine and does not extract all tags e.g it misses <title>My title
I would appreciate if someone could help me. Its urgent.
|
|
|
|
|
What about "<.*?>([^<>]*)</.*?>" ?
But I quite don't understand your example with <br><br> ...
David
p.s try check "do not threat <'s as HTML tags" or escape every < and > in text
|
|
|
|
|
Hey everybody!
I created 2 forms, the MAIN form and SECOND form.
the SECOND form has a text box (tbTEXT), and I want to use that text (tbTEXT.text) in the MAIN form.
the question is how do I tell C# to address that item (tbTEXT) from the MAIN form?
or if I will put it in a more general way, how can I control variables (or items) in one form from another?
THANKS!
|
|
|
|
|
A Form is just another class. You can expose a property in the second form. You can store a reference to the second form in main form and then use the property to manipulate tbText. Something like
class SecondForm
{
private TextBox tbText = new TextBox();
public string TbText
{
get { return tbText.Text; }
set { tbText.Text = value; }
}
}
class MainForm
{
SecondForm secondForm;
public void ShowSecondForm()
{
secondForm = new SecondForm();
secondForm.Show();
}
public void SetText(string text)
{
secondForm.TbText = text;
}
}
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Does anybody know a web site which would explain the actions, verbs and other properties to fill in the FileTypes editor? In searched in MSDN but there are just simple tutorials like "How to add new file document".
|
|
|
|
|
Hi
I wand to develop a tri state Check listed box (That allows tickboxs to be in three states: ticked, unticked and crossed.) for a win form application.
There is no such control in the .Net,
shall any one suggest how to do or shall I get any sample code for the same.
Regards
|
|
|
|
|
Hello, i need your help.
I have painted a circle inside my form and when I minimized it, it disapeared... in vb6 when I'm using PictureBox , I have an option called
"AutoRedrawe", how can I set it here, in c#?
|
|
|
|
|
You could always store the objects in some data structure and draw them on the screen everytime it paints itself.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
C# does not support the VB6 behaviour. It's not a good practice to draw upon the existing graphics of any control. Follow this link[^]for the answer to your problem.
Regards,
Polis
Can you practice what you teach?
|
|
|
|
|
You will have to repaint the circel every time the control is repainted, this is simply done by using a override OnPaint method or likewice.
Best Regards
SnowJim
|
|
|
|
|
Hi,
I'm working in a class library project and I'm trying to design the code in the best way possible.
I have an abstract class that represents the header of one file defined like this:
<br />
public abstract class FileHeader<br />
{<br />
<br />
protected FileHeader()<br />
{<br />
}<br />
<br />
<br />
public abstract void Open(string filePath);<br />
}<br />
Now the question is:
My header class should be readonly (cannot set properties values from outside), but my derived classes should be able to set the fields in their implemetation of Open method.
According to the Design Guidelines for Class Library Developers from MSDN, we shouldn't leave protected fields in base classes, so the only way I can see is to add a protected method to set each field... and that don't sounds good...
Could anyone give me some ideas here?
Thanks! and sorry for the long post
|
|
|
|
|
I've felt the same problem too. It would have been nice if we were able to specify different access specifiers for set and get. If that was possible, you could've declared get as public and set as protected.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Help....
I've written a great little C# app which I want users to download from the internet. But I need to do the following and would appreciate help...
1) I want users to be able to download an 'unregistered' product which is time-limited.
2) At any time, the user can register on my web-site and then receive an unlock key which gives them unlimited access
3) Any updates they download will not require re-registration/unlocking
Can anyone point me to a good product that will allow me to integrate this protection into my app?
Thanks
Mark
|
|
|
|
|
Hi,
have a look at Xheo. If the costs arent too high for you you will get a very sopphisticated licensing tool. But keep in mind that .Net programs are in general easy to decompile. Thus you always have to obfuscate your libraries to make it at least a bit harder for professionals to crack this
|
|
|
|
|
Robert...
Great...
Thanks
|
|
|
|
|
Hi!
I'm looking for a way to find the position of a certain pattern within a string. On my search on the internet I've come accross various algorithms such as Knuth-Morris-Pratt and Boyer-Moore (just to name two). But which is the fastest?
|
|
|
|
|
|
Thanks a lot! I'll give it a try.
|
|
|
|