![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Quote:
Quote:
It won't be difficult to create a clone of your AboutPanel library (named for example InputBox and using .ShowDialog) to act like a modal InputBox. Think about it, no hurry at all, we all can wait until... this evening ![]() Cheers |
|
||||
|
__________________
Avoiding lawyers ![]() O2 XDA Artemis Touch Flo 4.02 Full Cube Rom WM6.1 http://www.taximania.net |
|
||||
|
"Your system will melt down in 10....9...8....7..."
Well, almost.....Got a virus and had to re-install my system..... That part is done, now I have to re-install and configure all the other apps, including b4ppc and sharpdevelop.... ![]() Hopefully I'll have all working by tomorow and start on the imput panel.... In the meantime, please provide some props/features that you would like to see in an input panel, and if possible, a graphical example of how it would look....
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD |
|
||||
|
InputPanel is now in its coding stage, but a doubt has rised....
I learned how to manage button click events inside the class, but how can I pass it to b4ppc? I have contructed the click event....what do i put inside it? a simple get/set?
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD |
|
||||
|
Code:
'btn1 is the OK button, so it should pass the textbox(txt) value....
private void btn1_Click(System.Object sender, System.EventArgs e)
{
get{ return txt.text;}
}
'btn2 is the Clear button, so it should Clear the textbox(txt) value....
private void btn1_Click(System.Object sender, System.EventArgs e)
{
txt.text=""
}
When validating user input, whats the best form of action, to hide the panel or to dispose of it?
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD |
|
||||
|
Hello,
To show a modal dialog use .showdialog Code:
public string Show()
{
frmInputBox.ShowDialog();
return StringTypedByUser;
}
Code:
private void btnOK_Click(System.Object sender, System.EventArgs e)
{
frmInputBox.Close();
}
Last edited by dzt : 09-04-2007 at 11:33 AM. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A bot as a User? | Cableguy | Forum Discussion | 2 | 05-24-2008 03:23 PM |
| Returning subroutine error - Input string was not in the correct format | HarleyM | Questions & Help Needed | 4 | 10-20-2007 06:45 AM |
| Input String is wrong format | lairdre | Questions & Help Needed | 2 | 05-22-2007 07:43 PM |
| Old user won't find the new forum, because... | sloopa | Forum Discussion | 0 | 05-02-2007 04:56 AM |