473,806 Members | 2,583 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Question wit a splitcontainer, panel and a form in a panel

I have a form which contains a split panel
In Panel 2 I have an OK and Cancel button at the bottom of the Panel.
I add a form to the top of the panel so I now have a form with a fixed
Ok and Cancel button showing in panel2.

I have some code relating to the form in panel2 which has to be run when
the Ok button is pressed.

How can I run the code contained in the form from the Ok button in the
splitcontainer panel2.

Regards
Jeff
Jul 15 '07 #1
1 2419
I assume by "form" you mean a data entry form and not a Windows form
(window). If so, you should move the "form code" to its own function and
call it from the OK button's Click event handler.

To do this, open the form in Design View and double-click the OK button.
This should create (or open) a click event handler for the OK button. In the
click event handler, place a call to your "form code" function.
"Jeff Williams" <je************ *******@hardsof t.com.auwrote in message
news:13******** *****@corp.supe rnews.com...
>I have a form which contains a split panel
In Panel 2 I have an OK and Cancel button at the bottom of the Panel.
I add a form to the top of the panel so I now have a form with a fixed Ok
and Cancel button showing in panel2.

I have some code relating to the form in panel2 which has to be run when
the Ok button is pressed.

How can I run the code contained in the form from the Ok button in the
splitcontainer panel2.

Regards
Jeff
Jul 16 '07 #2

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

Similar topics

6
3086
by: J.S. | last post by:
I have a TreeView control in the left panel of a SplitContainer. When I click on various nodes in the TreeView I would like different sets of buttons and textboxes to appear in the right panel. Is this doable? Also, it seems that the TreeView nodes do not have a click event. Is that correct? Thanks, J.S.
4
20376
by: Andres Rojas | last post by:
Hello people, i need a favor from you, i need display a windows form into a panel. How i do it?
1
2846
by: Martin | last post by:
Hi all! I made a UserControl with a SplitContainer in it. I put some controls in the SplitContainer.Panel1. After that, I created a new UserControl which inherit from the previously created UserControl. So far, so good... I can see the SplitContainer in the new UserControl. However, I have a problem. I can't add a control in the Panel2 of the SplitContainer of the UserControl which inherit from the UserControl with the SplitContainer...
7
10406
by: newscorrespondent | last post by:
I want to save the state of a splitcontainer when an application ends. I also save the form state. The SplitContainer does not seem to have a well defined place to put intiialization and termination code. I have tried to use my first splitter moved event to set the splitter position but I am getting several splitter moved events before my form is displayed. One is from the form initialization code and the second is from my code that...
0
1303
by: Ronald S. Cook | last post by:
Thanks in advance for reading/responding. In my Windows forms app, I was going to have an Infragistics ListBar control docking/filling the left panel of a SplitContainer, and use the right panel to load my user controls. But now I want to sometimes have another user control (narrow.. to show a list) next to (on the right of) my ListBar. I'll want the right panel to spring/maximize to as much space as it can take up. If there is just...
2
6231
by: Doc John | last post by:
We developed a Win application that basically consists of an Mdi Form and several child Forms. Now we want to change its appearance so that it has an Outlook-like appearance: it would have a panel on the left with several buttons, and when I press those buttons the individual Forms would open up on the right panel. How difficult would this transition be? I've added a splitContainer to my Mdi Form, but I'm not sure how to display a Child...
0
1349
by: KalupaPaluku | last post by:
Hello!!! I've got a problem of my form application that the KeyDown function doesn't work. It suppose to be go to the next textbox field within same panel control but it doesn't work, as i'm using SplitContainer.Panel in such forms. Isn't it the SplitContainer caused this problem happen? How can i solve the problem? The code that i'm use is VB 2005. Private Sub TextBox64_KeyDown(ByVal sender As Object, ByVal e As...
1
2129
by: Zoliq | last post by:
Hi, I have the following problem: have a splitcontainer with horizontal orientation. The application saves the current settings of the user interface including the splitter distance when the form is closed. When the form is load up the settings should be restored. The problem I have is that everytime the form is loaded the splitter is not positioned correctly. Everytime a value is added to the original value of saved one. I figured it out...
4
2413
by: BrianP | last post by:
I have a form that is currently being displayed in a split container with panel 1 holding a treeview and panel2 holding the form. my code for this is here. This is when selecting a item from the treeview. Dim CurrentForm As New Form Select Case TreeView1.SelectedNode.Text Case Is = "Customer" CurrentForm = Customer Case Is = "Quote" CurrentForm = Quote End...
0
9719
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
10371
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...
0
10111
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9192
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...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5683
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
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
3852
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.