|
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.
|
|
|
|
|
please everybody don't get bored from me ....
=============================================
the first question :
===============
i think you know the most famous remote administration tool which is called subseven
when you unzip the tool from its compression it extract for you the client tool of that program and there is an option that you can configure yourself some options like the email address that the server will send you the ip address to and other options and after that you can build up your server with the new input options in it and it will work properly
the question is :
iam building the same application but it is chat application server and client application i want when i deploy my server i need when i install the server to put the same option cause i want the user who will use my application have the same ability to change some options like the ip address of the server that it will listen to and the port and the name of the form client and other options and then he can build up the client executable file with the same options and information he entered and then the client is built successfully ???????
second question :
=============
How can i use the directx or any other component that i can broadcast the instant sound from the microfone of one chat client to the other side (Second chat client) who they are chatting to each other through the network by the way i succeeded to design multithreaded server for private and general chat with webcam broadcasting but i didn't succeeded yet to transfer the sound !!!!!
third question :
===========
i want my server when it is minimized to run in the desktop bar with its specific icon like the microsoft sql server 2000 and yahoo messenger something like that and when that icon is pressed by the mouse it pop up context including options like (run,stop) and others
Any help of any previous questions
Thank you my brother i will be too appreciated if any of previous questions was answered
Thank you
Your brother ;
Snouto Override
Miss With The Best And Die Like The Rest
|
|
|
|
|
Hello,
I have decimal vars which I retrieve from my database. They have a precision of 7 digits.
I want to use these to calculate various things and save them in an other database with only 2 digit precision.
So how can I set my (for example) 2,4567000 to 2,45 ?
Thanks in advance !
|
|
|
|