|
Well, DirectShow is what you need to do this, do you have that downloaded ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I have a windows application in dotnet2.0 with sqlserver2000 database.
I m new to c# language.
I m making login form.I need to keep a checkbox for 'remember password'.
when user cheks it firsttime,nxttime when user enters his userid to login,his password must cum automatically in textbox2.
Can some1 plz help to accomplish this?
U can mail me at nekshan_sweetypie@yahoo.co.in
Thanking Anybody who can help in adv.
Nekshan.
|
|
|
|
|
hi,
i think the best way is to add a flag in the database or the users.
this flag is set to true when the user checks the remember password. You only have to check the users record of this bit field and accordingly you either display the password or not
|
|
|
|
|
this is not very secure... if you put a flag in the database to check for password if not checked, then anyone who puts that user's username in will have full access.
you need to identify the specific user with a user account. This is usually accomplished by using a persistent session or cookie.
|
|
|
|
|
Thanx QuiteSmart.
Yes i have taken a 'bit' field in database for setting flag n i want to do the same thing,chk if flag is 1 n as user enters username,pswd must automatically be shown in textbox2 for login.
Now what i donno is how to put a value (this chkbit,loginname & pswd)from my login form(a textbox & checkbox) into database.
Plz can u help on some code for this.
Thank U.
|
|
|
|
|
you might want to check out the authentication features of .NET 2.0
www.asp.net has some great video tutorials on how to implement this.
This is usually accomplished through the use of cookies or sessions.
|
|
|
|
|
Okay... it's been a while since i last posted a question here, but... now i ran into biiiiig problems.
The problem i have to solve is somewhat like this:
I have to design an UI which is similar to the one in Windows messenger(basic funcionality - only to send messages and files) through a local area network. Every computer on the network will have this program installed and i will have one server to configure and to transmit messages. the happy part of the problem is that the server is not my responsibility...
So ... i drag a few textboxes, buttons... and i have the User Interface. I enable drag&drop for the textboxes (just like in Y!M) and... now comes the problem(s).
How do i transmit the messages to the server (identified by an IP), maybe through some port? The message format is not one of my concerns, but... i guess sending data unencrypted over the web is not such a good thing (so i would need a way to encrypt data).
How do i listen to some ports of the LAN for incoming messages from the server?
How do i send files over the IP protocol? I think it is all about a transaction, but i have never done anything like this before (oh, i did! ... but that was on a ... serial port!).
Thanks a lot for even trying to understand me!
Any other ideas would be appreciated!
Thanks a lot again!
|
|
|
|
|
I create help file in Help workshop.
The help file extension is .hlp. Now I want to use that file in C#.Net project with the help of help provider. I want to call that .hlp file.
when pressing F1 key.
How can i do
Please help me out
|
|
|
|
|
See if you could use System.Windows.Forms.Help.Show()
SkyWalker
|
|
|
|
|
it will work if i press f1 key
|
|
|
|
|
I am wanting to use a button on a form as a start/stop button for a piece of code. I could put the piece of code in the click function for the button, but is there a better way of achieving this? Via a object of another function? If so how would I trigger the start stop? Please give a code example.
Thanks in advance.
|
|
|
|
|
Well, my idea would be to use a variable: bool a; ... in the mouse_click event you write:
if(a == true) {function_call(var1);}
else {function_call(var2);}
i did not quite get it what you were doing, but... if that is what you were doing, sorry. in another way i don't know.
|
|
|
|
|
Thanks, but I don't think this is what I want.
I want the code that is started (with the start button) to run continuously (loop within the code) until the stop button is pressed.
Thanks
|
|
|
|
|
You may use a thread and in the start method of the thread you put your code and when clicking on the strat button you start the thread and you stop it when clicking on the stop button.
if you can provide us some code of yours we may help more.
good luck
|
|
|
|
|
Use a BackgroundWorker and set it to accept cancellation.
SkyWalker
|
|
|
|
|
Thanks BackgroundWorker looks right for the job !!!
|
|
|
|
|
Super
SkyWalker
|
|
|
|
|
hi all,
i have a question.How can i set a time limit in a thread. Example,i have a thread which will implement a action(A),what i want is the action(A) will abord or stop after 5 second even it haven complete its job.
any hits are welcome,
thanks in advance
cocoonwls
|
|
|
|
|
Maybe set the timer to run for 5000 milliseconds and then have the thread terminate? Just a quick thought
|
|
|
|
|
|
hi,
thanks..
You have gave me an idea to implement it;)
|
|
|
|
|
Have a sample.xml with ten lines. Iam looking for the 3rd line or the line with the tags <system>.
how can I read what is between a tag, for example
<system>unknown
I tried this code
******************
XmlTextReader reader = new XmlTextReader ("c:\\sample.xml");
while (reader.Read())
{
switch (reader.NodeType)
{
case XmlNodeType.Text:
listBox1.Items.Add(reader.Value);
break;
*************************
but it list all of the values
thanX in advanced
|
|
|
|
|
The message supposed to read with the tags "SYSTEM"
for example "<system1>"unknown""
|
|
|
|
|
You'd need to post the XML, but, broadly, you should not read XML by counting lines, but by using XPath ( there's a clue, go and google XPath ).
The XmlDocument class is what you want to use to search Xml documents.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
use XmlDocument...
XmlDocument xd= new XmlDocument();
xd.load(@"x:\x.xml");
// then
xd.getElementsByTagName();
any thing u can do....
|
|
|
|