|
The source is:
private void Form1_Load(object sender, System.EventArgs e)
{
password.Text = " ";
password.PasswordChar = "*";
}
private void SubmitPass_Click(object sender, System.EventArgs e)
{
if (id.Text == " USER " && password.Text == " PASSWORD ")
{
//here you have put the action that you want that the application
//do when login is true (for example)
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
//this action does that the window state application is
//maximized
}
else
//here the action that you want that the application would do
//if the login is false (for example)
MessageBox.Show ("Login incorrect. Try again","Login by Rugi",MessageBoxButtons.OK,MessageBoxIcon.Error);
//this action is because the application shows a critical (message box)
Visca Catalunya ||*||
Salutacions cordials:
Roger Roca
|
|
|
|
|
|
i want to write a code for a window, that should be appear at the right bottom corner of the window, where the windows clock is situated, as happen when any new client come online in msn or yahoo massenger, please help me, thanks
|
|
|
|
|
|
Look it!
You go to solutions explorer
right click to the name of your project
click to "add"
then, choose "add windows forms"
put the name that you want in this form, and
click to submit
to another window, you put in the source of a button:
[THE NAME OF YOUR WINDOW] f[A STRING];
f[YOUR STRING] = new [THE NAME OF YOUR WINDOW]();
f[YOUR STRING].Show();
Thanks!!
|
|
|
|
|
thanks for ur reply, will this give me msn like window look, that appear when anyone come online? let me try it. thankx
|
|
|
|
|
notifyIcon is good approch,but i want to copy the idea of MSN,how my window will appear from the botton right corner of my computer screen and display some message. thankx
|
|
|
|
|
How does one go about finding the type of a given token or variable?
Mainly, I'm looking for a way to tell if a token is a numerical value, rather than a string.
Thanks in advance!
|
|
|
|
|
What do you mean by 'token' ? You can use tryparse to find out if a string is a number or not.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I am having trouble closing my application properly. I have a MDI environment. Each child can have a usercontrol loaded.
I have in my Parent the following. All is psudo-code.
ExitApp()<br />
{<br />
if(childForm != null)<br />
{<br />
childForm.ExitFunction();<br />
}<br />
else<br />
{<br />
App.Close();<br />
}<br />
}
in Childform,
ExitFunction()<br />
{<br />
if(userControl != null)<br />
{<br />
userControl.ExitFunction();<br />
}<br />
else<br />
{<br />
}<br />
}
A similar function in the userControl.
I had called a event handler that relaunched the ExitApp function. But obviously, the childform is not unloaded, so this just loops like crazy. How can I verify that the child is unloaded prior to Re-launching the Exit app function.
Thanks in advance...
*****************
"We need to apply 21st-century information technology to the health care field. We need to have our medical records put on the I.T." —GW
|
|
|
|
|
Can't you avoid calling ExitApp recursively? If not, I think the only way is to add a flag that is set to true when the "else" part executes for the first time and then conditionally skip execution from the next time.
ExitFunction()
{
if (isRecursive)
return;
else
isRecursive = true;
if(userControl != null)
{
userControl.ExitFunction();
}
else
{
}
}
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
how do i get the current caret position in a rich text box. Anyone, Please.
Nana
|
|
|
|
|
|
Hi, I would love to inform you that my req is here....> I have to make to class diagram of custom Table... here custom table is own custom table.. No Back end is being is used... could u help me to creat the custom Table class..Table is being used on Client Side
Syed Naseer Asghar
|
|
|
|
|
what do u mean?
can u explain more what u need here?
<< >>
|
|
|
|
|
Hey all,
I am looking for a managed .NET MODBUS component. Anyone know of one. Everything I have found is ActiveX or C++ dlls. I can go with one of these, but would like to avoid it if possible.
Thanks in advance.
*****************
"We need to apply 21st-century information technology to the health care field. We need to have our medical records put on the I.T." —GW
|
|
|
|
|
i was wondering if any one know how to limit tcp transfers , something like NetLimiter i guess i won't find and .Net code about it but i'm looking for a direction
thanks Gil
|
|
|
|
|
The .NET framework isn't designed to do low-level stuff like limiting the number of packets that can come in via TCP.
You probably *could* do this in C#, however, you'd just be making a bunch of Win32 calls via P/Invoke. And in that case, it may be better to use the right tool for the job, which would be C/C++.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Cops & Robbers
Judah Himango
|
|
|
|
|
well i expected this answer but i wonder do you know any open to public library that i can use throw c# (my c++ skills are very basic) ?
|
|
|
|
|
There are some articles on CP that deal with low level TCP, packet sniffing, etc. here[^], for example.
|
|
|
|
|
i know this article but i can't find anything that talk about limit transfers speed
|
|
|
|
|
Hello,
There is no List class attributes, if I use 1.1 version of .NET framework.
Thank you.
|
|
|
|
|
Well, yes there is no List object in the .Net Framework 1.1. Do you have a question?
There are plenty of objects that implement IList that will behave like a list. Pick the one that is appropriate for your needs.
|
|
|
|
|
Thanks.
I did not formulate the question properly.;)
|
|
|
|
|
zaboboa wrote: I did not formulate the question properly.
..........................................And that question would be???????????????????????????
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|