Problem with Treeview

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi,

I am writting an application in outlook style which has Left Panel and a
Right Panel. I have Treeview COntrol in left panel, and I load the forms in
right panel on AfterSelect event of the treeview. I am coming across 2
problems:

1) Forms event "Activated" does not trigger. Even when I force the event
using f1.Activate, it does not execute the code inside the event.

Private Sub frm_F8000_Activated(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Activated
' Set focus on first input capable control
Me.txtReceipt.Focus()
End Sub


2) I am trying to set the focus on one of the controls in the form, but I am
not able to do it.

If I open the form as dialogue box, not inside the panel, then I am able to
focus on the required control, but not when I load the form in the right
panel.


Here is the code that I am using to load the form in right panel.

f1.TopLevel = False
f1.Dock = DockStyle.Top
f1.FormBorderStyle = FormBorderStyle.Sizable
Me.pnlMiddle.Controls.Add(f1)
f1.Show()
f1.Activate()

Any Help will be appreciated...
.



Relevant Pages

  • Re: Seeking hints on building a control panel ...
    ... my panel fed through an appropiately wired pair of diodes. ... LGB auxiliary contacts added to the EPL turnout motors to cut-off power to ... 4-6-0 pilot trucks to track through the spring switches reliably. ... and mounted my control toggle switches and pushbuttons to that surface. ...
    (rec.models.railroad)
  • Re: regional setting
    ... account has the symptoms of not allowing regional setting via the control ... panel GUI interface. ... This ensures that the date separator and the date format are ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Video adapter question second try. Dual monitor
    ... That is why the Display control panel will have a "force detection" ... I have a Dell 9300 with an ATI Mobility Radeon X300 video card. ... be a separate driver file and a separate CCC file, ...
    (alt.comp.hardware.pc-homebuilt)
  • Re: Receiver Control Panel
    ... >> is slightly separated from where the receiver case itself would sit. ... My thought is that the control panel probably has ... > up enough extra for each pot so that you can wrap the entire pot casing. ...
    (sci.electronics.repair)
  • Re: Removing all traces of MS-Office (versions 2K and XP)
    ... I found out how to remove Office XP via the Control ... Control Panel and then reinstall it. ... >Description of the Windows Installer CleanUp Utility ... >| Applications does show Excel/Word starting, ...
    (microsoft.public.office.setup)