Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a MDI Parent Form that im going to use to contain my project. Trouble is that I dont know how to open a child form inside it when it starts.

When i click the drop down box to set the load event, I only have the following options:

(declarations)

Finalize

InitializeComponent

New

 

So how do I get it to open up a form within the MDI window when I start the application?

 

Thanks

Posted

You only have those events because you are focusing the wrong item on the left combo...

 

Assuming that your MDI Form is called 'frmMDI' you have, on the left combo, an item called '(frmMDI Events)'.

Here you have all the events the form have, including the one for your task... Load

 

 

 

Alex :D

Software bugs are impossible to detect by anybody except the end user.
Posted

It seems to work.

 

However, what im trying to do is launch an application so I can send keystrokes to it WITHIN the MDI window. Is there a way I can contain an application within the MDI window like I do with a form.

 

Reason I ask is that when im sending keystrokes to an application outside of an MDI window, it keeps flicking out to the form and the keystrokes dont go to application as it is not the active window!!!

 

Confused?

 

I am!

 

Help.

Posted

adding to the code of dynamic_sysop, you also have to set the MDIParent property, telling what MDIForm is the parent of this new Form...

 

But tell me, you want to put an app inside the MDI form??

What kind of app?

 

If it is a .net app, made by you, you can instansiate the forms but if it is an outside app I think it is impossible...

Software bugs are impossible to detect by anybody except the end user.
Posted
you should declare your Form as New , also you are dimming frmshw as Form2 , but then putting Form2.Show , where it should be frmshw.Show.

 

You also have to set the child form's MDIParent. Like this:

 

Dim f As New Form2
f.MDIParent = Me
f.Show()

Being smarter than you look is always better than looking smarter than you are.
Posted

The application I am launching is called WINLINK and it is a windows emulator that "pretends" to be a system called Misys. it is an insurance based system.

The problem I have is that I want to send keystrokes to the new application. However, everytime I need to send a keystroke to it, the form appears at the front of the screen and therefore becomes the "active" window. Ive tried sendtoback and visible commands to make the form dissappear but it still refers to it whenever it gets to the next line of code. This removes the focus from my WINLINK emulator and obviously keystrokes cannot be sent to it.

 

Any ideas as to how I can get round this?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...