Similar Threads
1. Locks Cylinders Deadbolt Schlage, Medeco Mul-T-Locks, Baldwin Locks, Kwikset Locks, Mortise Locks, Dexter Locks - CSharp/C#
2. password form to perform operation from main form
Hi Everybody!
I have the following problem:
from the application mainForm the user can do several operation
Some of them are password protected
(the password is a code that change everytime on the basis of a
reference code)
so when the user click on a menu in the main form, the passwordForm is
displayed
the user enter the password and click the OK button
now I have a function in the passwordForm that verify the inserted
password against the reference code
if it's correct I can continue to execute the code in the mainForm
else I stop, to perform this my form should return the result to
mainForm and then close...
I can't figure out how to proceed on this, I mean the logic, I don't
want to use the inputbox from vb.dll, only pure C#.
thanks in advance!
marco
3. Main form - Sub form problem - CSharp/C#
4. Keeping forms open after the main form is closed
There is probably an extremely simple answer to this question and I'm
just being foolish.
I have a main form (let's say FormMain) which opens other forms (let's
say Form1, Form2). How do I keep those created forms, Form1 and Form2,
from closing when I close FormMain? Right now what I'm doing is
threading them by wrapping the Show method and in that threaded wrapper
I have a while loop that just does Application.DoEvents() as long as
the form hasn't been closed.
private void ShowForm() // this is the threaded function
this.Show();
while(!closed)
{
Application.DoEvents();
}
}
and in the form's Closed event I set closed = true.
It works just fine, but I feel like it's probably inefficient and I
think there has to be a better (and probably simpler) way of doing it.
Any ideas? Feel free to mock me for my stupidity.
5. Passing Params from Main form to sub form in C# - CSharp/C#
6. How to access main form functions from child forms
I imagine that this question has been posted before, but I couldn't
find it. I have an app with several custom dialogs (windows forms) and
I need to access methods that are on the main form. The only way I
have found this to be possible is to make the main form functions
static, but that is too restrictive. What is a good clean way to do
this?
7. Fastest way to copy from a one dimension byte array to two dimension int array - CSharp/C#
8. How do I keep main form richedit caret flashing when pressing button in 2nd form
I'm writing an application with custom skinned controls.
I have a text editor form with a rich edit control. Because there's no
toolbuttons in the skinned control set, I have to use normal ones for
Bold/Italic/Underline etc. Because they're normal buttons, they grab focus
from the rich edit. So to prevent losing the caret Ive used the Validating
event to cancel focus loss. This works great.
The application can be run in either terminal or desktop mode.
In terminal mode ie no physical keyboard, I have had to write a small
keyboard window to allow the user to enter text/symbols.
When I switch to the 2nd form, the rich edit is still the ActiveControl on
the main form but the caret vanishes from view.
Am I able to do anything similar here? The keypad window needs to behave in
the same way they do in compact framework.
thanks