473,804 Members | 3,190 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form Dock Fill Problem wtih Form Activated...

Hi I got the following environment.... ...Form1 and inside Form1, got
Panel1....
I also got another new Form ...named Form2...

Form1, Panel1
Form2

Inside Form1, I click a button to show Form2 using the following method...

Private Sub ShowForm(ByVal form)

form.TopLevel = False
form.Parent = Me.Panel1
form.Dock = DockStyle.Fill
form.Show()

End Sub

as a result my Form2 will dock inside Panel1 of Form1........

I write coding under Form2 Activated.....a ll coding under Form2 Activated
will not function when it is dock to Panel1 of Form1.
if I call Form2 simply using dim frm as new form2, frm.show, then the
Form2Activated will be working perfecty...but when it is Dock to Panel1,
then it is not working...

Could someone guide me how to trigger the Form2 Activated when my Form2 is
dock to Panel1 of Form1.

Thank you very much..

Regards
PK

Nov 21 '05 #1
0 1983

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
9882
by: Hananiel | last post by:
I have a User control that I load dynamically into a Form. The designer has no property to let me dock it. How do i Dock it or get it to stretch out to fill. Setting this.Dock = DockStyle.Fill; in the constructor did not work. Neither did implementing the resize event. thanks, Hananiel
4
8106
by: BBM | last post by:
I'm trying to set up a form with two panels divided by a Splitter control. I can make the Splitter work in the situations described in the documentation (Listbox or TreeView on left w/Dock set to Left, Panel on right of form w/ Dock set to Fill, Splitter between them set w/ Dock set to Left. Works as advertised. But... if I change to have two panels on the form one on the left with Dock set to Left, a panel on the right with Dock set to...
1
1125
by: juli jul | last post by:
Hello, I want to put on the form 2 panels. The first one contains tree view and the secound grid. I put a separator between both of the panels and tried to do dock=fill to both of them.The problem is that one panel is always above the other when I am doing it. How can seperate both of the panels with the stuff they consist and to dock both of them to the fill?
10
4420
by: B-Dog | last post by:
I want to run something once my form in completely loaded and drawn but running at the end of form load doesn't do I guess cause of the large dataset fill and the form isn't fully loaded. Where can I stick some code so that I can run it after the form in fully drawn and loaded? I was told there is no real way to know when it is "completely" loaded?
12
9139
by: Adil Akram | last post by:
I'm using VS 2005, .net 2.0 for a desktop application (Window Form app). I can't set ZOrder of Panel control neither at design time by toolbar/menu command "Bring to Front"/"Sent to Back" nor at run time by calling BringToFront method of panel. And Panel control doesn't support SetTopLevel method etc. I tried this while Dock=Fill and Dock=None but its not working at all. Please tell me how can I change Panel's ZOrder specially at run...
2
2954
by: DBC User | last post by:
I am trying to dock a datagrid in a form and it does dock to fill but I want to extend all the columns I have to fit on the whole screen. But it is showing the columns and then leaving bunch of space empty and it look bad. Could someone help me?
7
5227
by: Zytan | last post by:
I just wanted a little practice with the WebBrowser control, so I did the VB guided tour example here in C#: http://msdn2.microsoft.com/en-us/library/a08t4ke7(VS.80).aspx The tutorial asks to put a Panel with a Button and TextBox in it, and a WebBrowser below it. Then, it sets the Panel's Dock property to be Top. It sets the WebBroswer's Dock property to be Fill. But, the WebBrowser then fills the entire form! Even though the Panel's...
9
2392
by: Anil Gupte | last post by:
I have a MDI Parent Child set of forms FormContainer --MDIParent FormStart --MDIChild FormMain-->MDIChild FormSliceInfo-->MDIChild I use the following in the beginning of FomrContainer Public Class FormContainer Inherits System.Windows.Forms.Form
3
1142
by: antmail | last post by:
Hi, I have been struggling with this problem in C# for a while. I have created a form with about 4 panels on it. The main panel is set to fill the screen when it resizes. (Panel1 = Dock Top; Panel2 = Dock Bottom; Panel3 = Dock Left; Panel4 = Dock Fill) c:\temp\panel1.gif I have another form that I add to this panel 4. The problem is that if I have it open up as part of the form (child form), it resizes (which is correct), but...
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10578
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10332
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10321
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9152
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5522
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.