Docking A Form Into Another Form
Mar 30, 2009i am trying to get my VB6 app to "dock" inside my vb.net form. I currently am using this code
[Code]...
i am trying to get my VB6 app to "dock" inside my vb.net form. I currently am using this code
[Code]...
Is there anyway to "dock" a form to the desktop? I have a "child" form that will display info when the main form loads. This form is not meant for the User to interact with it. When I load the form and other windows are open, it displays over those windows until I minimize and then restore the windows. So I want to be able to dock it to the desktop.
View 3 RepliesHow may I dock my form to the top portion of the screen and set the working area of the desktop to be underneath the bounds of my application?
Kinda like how Microsoft Office Professional.. You can open a help file and it docks to the right of the screen and moves Word to the left of it.I want to do this so that any program opened will show just under my program.
I am trying to add a docking form to my application. I have a good program going so far but I am trying to create a minimize to dock feature in which it minimizes to another form (basically hides one and shows the other). I am working on a 23" monitor but I want this to work on all computers. So what I am looking for is a form that three buttons...left, top, right. When the left button is clicked it will dock the window to that side of the screen and fill all of the space from top to bottom with a width of 200 or so. The second button "top" will dock it to the top of the screen and expand the width to the width of the screen it is on. And a height of 200. And the third button "right" will do the same as the left but will put it on the right side. Also is it possible to reserve that side of the screen. (move all icons on the desktop from behind it to the side of it.
View 3 RepliesHow could I prevent a Windows Form from automatically docking when the form gets dragged to the left or right side of the screen in Windows 7? This is a neat feature in W7, however, for my form it does not make sense (a data input form). Sometimes I drag the form to the right to read some information on a website and input them, yet, under W7 this form docks onto the right half of the screen when I do so.
View 5 RepliesI Have a database program which imports data saves it to a database and then on a separate form analyze the data i have a number of queries docked but i had to click dock to fill in form and ive tried for hours by but cant retrieve what originally was on the form otherwise queries are useless.
View 1 RepliesI have a form that I want to dock and move to just above the task bar on the right side of the screen. How could I do this?
View 3 RepliesI am using Visual Studio 2010 to build forms to access databases through DataGridViews.As these tables grow, it would be easier to resize the form to see the whole table.So I try to dock the DataGridView to the bottomand resize the form (The other controls are at the top of the form)This works for the width, but the height of the DataGridView does not adjust.
Public Class Form1
Dim gridHeight
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
[code].....
Im Using VB 2008. I have MsgBox() statements in all Mouse & Form Click events to TEST & NOTHING FIRES during Form Load when I click on Form or Button Controls !!! The Form Load event contains code for Displaying the Label.Text control many times with changes in the Text to simmulate annimation.
[Code]...
The following code does create a form within a form and does place NotePad inside the child form. You have to manually start NotePad prior to execution (I work on that later) but the code does workŠ My problem is now I want to manipulate the properties of notepad i.e. focus, size, location, etc. but I cannot figure out how to reference notepad and its properties.
[Code]...
get a button on form A to open form B and then close (not hide) form A when clicked?Background: I am coding a VSTO application for Excel in VB2008.
Private Sub FormAButton_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles FormAButton.Click
Dim FormB As New FormB
[code]....
I have a form being called form several forms using ShowDialog().
1. Is there a way for called form to know which form called it by receiving a code or key from the calling form?
2. The calling form has a gridview. How can the called form pick up a column's value from the currently highlighted row in gridview in the calling form?
i have my main child form open. then i show the new form:
[Code]...
but when the form opens it flickers a lot. so i want move the new form behind the main form while it loads so the user does not see the flicker. once it is done loading i will set the form to topmost. how do i move the new form behind the main form?
I have a tool window that I want to stay above the main application form, but not stay on top of all windows forms. Similar to the floating properties window for visual studio - it always stays on top of the main VS window, but if I select another program, like internet explorer, the floating properties window will be behind internet explorer.
What I have is an application that has several forms that may be displayed at the same time. I have a Messages form that displays messages generated by the code in the form, that gives the status of the application. Obviously, the user would not normally be working on this form, but they may want it to be visible to see the status messages from the program (File saved confirmations, etc). So, my two options right now are I can set the form to be on top of all other windows forms or, when the user clicks on the main application form, the messages form would be hidden by the main form.
I designed a class contains a form that have buttons. When i click any button this function runs
Public Sub BtnClick(ByVal sender As Object, ByVal e As EventArgs)
result = CType(sender, Button).Text
[CODE]...
In another project I imported this class. I called the method that shows the form in my class. I need to store the 'result' variable in another variable in the new project. How can It be done.
how to pass value from one form into another form...? for example if i have 1 mdiform and 2 form (form1, and form2) for load form1 i'm using system.reflection.assembly here is the code for load form1 :
Imports System.Reflection
Private Asm As Assembly
Private FrmNama As Form
Public Function GetForm(ByVal FormName As String) As Form
[code]....
after form1 load i call form2 from form1 and from form2 i want pass value, here is the code from form2 to pass value into form1 :
form1.textbox1.text = textform2.text
why value from form2 can't fill into textbox1 in form1?
I'm new in .Net and I have an application with windows form "LOGIN" When users enter the user and password and click "ok", then if user passes validation then I have the code Show(MDIMainMenu) (I'm trying to open an mdi form), but I receive the following error: "Form that is already visible cannot be displayed as a modal dialog box. Set the form's visible property to false before calling Show. Error Number 5"
[Code]...
i want to be able to click anywhere there isn't a control on the form and be able to move the form to anywhere on the desktop...
the control box is off and the form text is blank, so there is nowhere on top of the form to click and move the form..
Does anyone know how to use the WeifenLuo docking control in VB? I am totally a noob, so I may not understand everything about it.
View 6 RepliesI want to make a window like the solution explorer or the properties wondow and put it on a form.
View 5 RepliesI have an issue when I place a label box in the MDI Parent form and then open a child form the label box highlighted in child form?
View 6 RepliesIa m trying to make a webbrowser. I have created a button where by you can extend the size of the pannel, so you can see more information. I need to change the size of the webbrowser and extend the size of the information panel as well as inserting the information.
View 3 RepliesHow can I put Docking panels into my application like the ones in Visual Studio. Ex. the properties, solution explorer, and toolbox are these.
View 4 RepliesI use a splitcontainer in my programme, along with a couple of mdi-childs. I've got a problem now: The splitcontainer is actually in my main form, which is a mdi-container itself. Whenever I try to use mdi-childs, the panel of the splitcontainer is in front of it. Also I have problems with docking the mdi-child into the panel of the splitcontainer.
View 2 Repliesok say you have 5 listboxes and you want it so that they are kinda docked to the bottom so that when you resize the window they expand downward but not sideways
View 1 RepliesI have a Tabcontrol, and when the program loads it adds a tab. Inside this tab goes a panel (url, back, etc buttons to be added to it) and a webbrowser control.Problem is the panel docks to the top and when you fill the webrowser control the webbrowser goes behind the panel and not under it so the top is cut off.[code]Or anyone know how to remove the tabcontrol from the tabpages so theres a gap in-between to input this panel.
View 4 RepliesBelow is the exception code info. when I try to make form visible for the first time from another form then I get an exception code. something like 'a required variable not set'
Quote:
CODE:
I am making a useful sticky program, i know Windows 7 has a similar one built in but it doesn't function the way i want. Here is an image: As you can see, i am having problems removing the coloration of the background application window. How can i make that transparent without affecting the image? My second question is, how can i dock my application window to the right hand side of the screen?
View 5 Repliesi apologise where i made a mistake it is the queries have been docked but on the toolstripcontainer must dock to fill form which loses the datagrid view andevery thing else hw do i get it back and keep the queries.
View 1 RepliesThe First Question is not that important but you know that when you click on 'Favorites' in IE 8 a form thing comes up? Well I've been trying to do that for a long time but I can't figure out how. 2: In IE8 when you expand the window and collapse the window, the toolbars expand and collapse as well. How do I make my tool bars in my Web Browser do that. 3: I actually have a third question and that's, How do you make a horizantal scroll bar on your web browser control. (just like in Internet Explorer.)
View 4 Replies