Click here to Skip to main content
15,913,570 members
Home / Discussions / C#
   

C#

 
GeneralRe: very confusing formatting symbols Pin
leppie27-Feb-05 19:24
leppie27-Feb-05 19:24 
GeneralRe: very confusing formatting symbols Pin
Pyro Joe28-Feb-05 3:48
Pyro Joe28-Feb-05 3:48 
GeneralKeyPress ASCII/Form Container questions... Pin
new_phoenix27-Feb-05 8:09
new_phoenix27-Feb-05 8:09 
GeneralRe: KeyPress ASCII/Form Container questions... Pin
S. Senthil Kumar27-Feb-05 9:01
S. Senthil Kumar27-Feb-05 9:01 
GeneralRe: KeyPress ASCII/Form Container questions... Pin
new_phoenix27-Feb-05 9:53
new_phoenix27-Feb-05 9:53 
GeneralRe: KeyPress ASCII/Form Container questions... Pin
Dennis C. Dietrich27-Feb-05 9:03
Dennis C. Dietrich27-Feb-05 9:03 
GeneralRe: KeyPress ASCII/Form Container questions... Pin
new_phoenix27-Feb-05 9:58
new_phoenix27-Feb-05 9:58 
GeneralRe: KeyPress ASCII/Form Container questions... Pin
Dennis C. Dietrich27-Feb-05 10:49
Dennis C. Dietrich27-Feb-05 10:49 
new_phoenix wrote:
I have found the MDIParent property in the Form class as you had suggested, but I am uncertain how to implement it.

I didn't suggest that. That was Senthil.

new_phoenix wrote:
Puzzling thing is though, why isn't the MDIParent property available in the Properties window, is it an abstract class or something?

This makes perfectly sense. The Form.MdiParent Property[^] is of the type Form[^]. Accordingly you need to assign an instance of that class and that of course is only possible at runtime.

new_phoenix wrote:
Do I implement it in the child class like this in the onload event like so:

I'm wondering if you actually read the information on MSDN I mentioned. It's all explained there including working code samples. So, again please check out Multiple-Document Interface (MDI) Applications[^] (especially Creating MDI Child Forms[^]).

new_phoenix wrote:
and should I select isMDIParent in the Main Form first?

If you don't set the Form.IsMdiContainer Property[^] to true you'll get an exception when trying to show a MDI Child.

new_phoenix wrote:
Also, with regard to the implementation of the KeyDown event, how would I implement a KeyDown event trap for the UP and DOWN arrows for example?

There isn't anything like an "event trap". I suggest you read some paragraphs about event handling and delegates (see Events Tutorial[^] and Delegates Tutorial[^]). The code I posted in my previous message is an example for an event handler for the Control.KeyDown Event[^]. As the type of the KeyEventArgs.KeyCode Property[^] is Keys[^] and Keys is an enumeration[^] you don't have to define the key codes yourself.

Best regards
Dennis
GeneralRe: KeyPress ASCII/Form Container questions... Pin
new_phoenix27-Feb-05 11:21
new_phoenix27-Feb-05 11:21 
GeneralRe: KeyPress ASCII/Form Container questions... Pin
S. Senthil Kumar27-Feb-05 11:53
S. Senthil Kumar27-Feb-05 11:53 
GeneralAccess Registry files Pin
Anthony Mushrow27-Feb-05 7:09
professionalAnthony Mushrow27-Feb-05 7:09 
GeneralRe: Access Registry files Pin
Dennis C. Dietrich27-Feb-05 7:36
Dennis C. Dietrich27-Feb-05 7:36 
GeneralContext menu in Word using C# Pin
User 4886927-Feb-05 6:00
User 4886927-Feb-05 6:00 
Generalmultiline programmatically formatting text Pin
Pyro Joe27-Feb-05 5:15
Pyro Joe27-Feb-05 5:15 
GeneralRe: multiline programmatically formatting text Pin
Heath Stewart27-Feb-05 5:45
protectorHeath Stewart27-Feb-05 5:45 
GeneralRe: multiline programmatically formatting text Pin
Pyro Joe27-Feb-05 6:19
Pyro Joe27-Feb-05 6:19 
GeneralRe: multiline programmatically formatting text Pin
Pyro Joe27-Feb-05 6:36
Pyro Joe27-Feb-05 6:36 
GeneralRe: multiline programmatically formatting text Pin
S. Senthil Kumar27-Feb-05 7:13
S. Senthil Kumar27-Feb-05 7:13 
QuestionSystem Timer? Pin
Azel Low27-Feb-05 4:11
Azel Low27-Feb-05 4:11 
AnswerRe: System Timer? Pin
Heath Stewart27-Feb-05 4:20
protectorHeath Stewart27-Feb-05 4:20 
Generallarge font and tabcontrol issue Pin
Aviv Halperin27-Feb-05 2:44
Aviv Halperin27-Feb-05 2:44 
GeneralRe: large font and tabcontrol issue Pin
Heath Stewart27-Feb-05 4:53
protectorHeath Stewart27-Feb-05 4:53 
GeneralRe: large font and tabcontrol issue Pin
Aviv Halperin27-Feb-05 5:36
Aviv Halperin27-Feb-05 5:36 
GeneralRe: large font and tabcontrol issue Pin
Heath Stewart27-Feb-05 5:39
protectorHeath Stewart27-Feb-05 5:39 
Questionhow to make it user input (urgent) Pin
tyenchoo26-Feb-05 22:58
tyenchoo26-Feb-05 22:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.