VS 2008 With A MDI Container Property?

May 7, 2010

I have a mdi container thats got 9 forms running in it.When I minimize a form it minimizes into a small "window" in the left-bottom corner of my mdi-container.

How do I change this so that the forms will minimize to the Left-TOP corner of my mdi-container?

View 1 Replies


ADVERTISEMENT

Split Container Question Regarding Dock Property Set To Fill?

Jun 22, 2009

I have a basic form with four objects placed on it: a Menustrip(Dock = Top), a ToolStrip(Dock = Top), a SplitContainer(Dock = None) and a StatusStrip(Dock = Bottom). As it is now, the MenuStrip, ToolStrip and StatusStrip are exactly where I want them. The problem occurs when I set the SplitContainer dock property to Fill. I thought it would fill the remaining area but it fills the entire form, you can see the outline of it beneath the menu and status strips. Is there something I'm missing in another property box or is there a different way of doing this? The reason I want to set it to Fill is for autosizing when I resize the form.

View 10 Replies

VS 2010 : Dropdown In Property Grid Listing Other Controls In The Form Or Container?

May 16, 2010

I have a custom control of type MyListControl with a Property called NotifiedList. I would like that when selecting that property in the Property Grid at runtime, that a dropdown list is populated with all the instances of type MyListControl that shared the same container as the original control.

View 3 Replies

VS 2008 Getting Current Container

Jun 20, 2010

I have a picturebox in a groupbox (which was generated by code). The click value of the picturebox has been assigned a click event. AddHandler pctIcon.Click, AddressOf FooClick Inside the groupbox there are two labels aswell. I want to get the name of the groupbox, so I can use it in a for each loop.

[Code]....

View 2 Replies

VS 2008 : Set Locations Of Textboxes/labels According To Graphics In Container?

Mar 11, 2010

VB2008 I have a panel in which I draw some graphics. Parts of the codes which I have successfully wrote & drawn are shown below:

Dim scaleX1 As Single = CSng(Me.pic_pcg.Width / 1.355)
Dim scaleY1 As Single = Me.pic_pcg.Height / HGT
'
e.Graphics.ScaleTransform(scaleX1, scaleY1)

[code]....

I want to add some labels and textboxes in the panel so as to add remarks & captions to certain parts of the graphics.How do I set or modify the "scales ?" of the locations of these labels & textboxes so that they will be placed correctly, corresponding to the above scaletransform/translatetransform/rotatetransform.

View 3 Replies

[2008] MDI TabControl Container - TabGroups (Vertical / Horizontal)?

Jan 6, 2009

I'm trying to make an MDI TabControl Container usercontrol, which is used instead of the MdiClient control in an MDI application. Instead of MDI Forms, you can use (modified) TabControls that behave like (maximized) MDI Forms in a Tabbed environment.

A great example is of course the Visual Studio IDE. Each window is just a TabPage on a TabControl (at least it looks like it is, I don't know exactly how it works in the IDE.. but let's assume it is).Now, the VS IDE uses some great functionality which I believe is called TabGroups. By Right-clicking (or dragging it into nothingness) a TabPage 'header', you can choose New Horizontal / Vertical Tab Group, which splits the 'container' into two TabControls, each with their own TabPages, with a splitter in between so you can resize them.

I have been trying to recreate this behaviour, and I must say it works pretty well so far for very little effort. The only (major) downside is, it only works for Vertical OR Horizontal TabGroups. I have no idea how I can possibly make it work using both vertical and horizontal TabGroups simultaneously...

What I did is pretty simple: I have a mdiTabControlContainer which is just a blank UserControl. I made a public property TabControls that returns a (custom) mdiTabControlCollection (inheriting from a generic Collection(Of mdiTabControl) which is basically just a collection of my tabcontrols.

When the collection is modified, I call a RedrawTabControls method which first clears the Controls (deletes all TabControls), and then adds them one by one. First the last in the collection (docked Fill) then the rest docked Left. I also add a splitter between each TabControl. (Code at the bottom)If I dock the TabControls to "Top" for example, I can make it Horizontal. But I have no idea how I can possibly dock a few of them to Left and the other few to Top...? I would need some kind of property that determines which TabControl should be docked where, right? But how and when would I set that property?

The code I'm using now is:

vb.net
Imports System.Collections.ObjectModel
Public Class mdiTabControlContainer
Public Sub New()

[code]....

View 1 Replies

VS 2008 Floating Toolbar - Display That Container (containing Toolstrip) In Form

Mar 30, 2009

I've two forms Form1 and Form2, I want to add container(*) in form2 having toolstrip(Toolbar) and later want to display that container(containing toolstrip) in Form1, that enable the user to use toolstrip to execute needed actions written in form2.

[Code]...

View 1 Replies

VS 2008 : Making 'main Window' Form Acting As A Container For The Other Forms?

Mar 17, 2009

Am devloping an application with multiple forms, which reside on top of a main form. i.e the main application window. The 'child' forms do not need to be linked in any way as they do not pass information to the parent form, as all the parent form does is act as main window.Now I would like to know what is the correct way for the 'main window' form acting as a container for the other forms? So that all the smaller secondary forms stay focused on top of the main application form, that when the main window is minimized, so these forms should do also etc..

I have read other posts and they mention, leaving all the forms standard i.e. IsMdiContainer = False and then using form.showDialog() to call the secondary forms. This did not work for me as what happens is that as soon as I give focus to the main app form, the secondary form disappears underneath.I tired making the main app form IsMdiContainer = True and when it loads calling:

frmMemberForm.MdiParent = Me

Now this works, because I can click off the form and minimize the app etc and the frmMemberForm doesn't disappear. However if i close the MemberForm and reopen it, it looses this property and once again when it looses focus, it will disappear.

View 16 Replies

VS 2008 Adding ToolStrips To A Container During Design-time (via Collection Editor)

Oct 28, 2009

I am trying to extend the functionality of the ToolStripPanel control (which is a panel hosting ToolStrips that can be moved during design-time, as I'm sure you know).One thing I wanted to add was a 'ToolStrips' property, which would be a collection of ToolStrips the user can edit via the collection editor in the designer. So instead of manually placing ToolStrips on the ToolStripPanel via the toolbox, the user can just use the property to add/remove (or even edit) them. This is of course similar to how you add/remove/edit TabPages in a TabControl.So, I came up with this code, which I have used successfully in the past for other controls:

Public Class cToolStripPanel
Inherits ToolStripPanel
Private _ToolStrips As New ToolStripCollection(Me)[CODE]....

The cToolStripPanel control inherits the ToolStripPanel control and adds the ToolStrips property, which is of type ToolStripCollection. That class, in turn, inherits the Collection(Of ToolStrip). In the InsertItem method, I add the 'item' ToolStrip to the cToolStripPanel. Of course I also need to override the RemoveItem / ClearItems methods but that's for another time.I am 100% sure that this code should works, at least for other controls. If you replace ToolStrip with Button (for example), I can add buttons via the property during design-time just fine, exactly the way I want it.But it seems that ToolStrips are special. When I try to Add a toolstrip (via the collection editor Add button), a null reference exception occurs. I've been trying to debug this all day and I've finally come up with a possible candidate for the problem... (I've actually used design-time debugging for the first time ever, which was pretty cool, and which showed me that the InsertItem method is not run!)

I think the problem is that the collection editor cannot create a new instance of the ToolStrip class. I can remember when trying to inherit from the ToolStrip, I was forced to add a constructor, because the ToolStrip "has more than one constructor that can be called with no arguments".Perhaps this is causing my problem? Do I (and if yes, how?) have to somehow control the creation of a new instance of the ToolStrip? Or am I completely off track and that is not what is causing the problem? I'm sure that it's a problem with the ToolStrip class, since I can use the exact same method with other controls just fine. It's only when I change the type to ToolStrip that it starts getting angry at me....

View 1 Replies

VS 2008 - Property Grid - Click On Item Show Its Property

Mar 18, 2009

I have a listbox with several list items added. I want that as user click on an item, I should be able to show its property. This should change for different items. For example (hypothetical) : Listbox has numbers 1 - 10. Now when I select 1 I should be able to set property - Name, Lastname, Colour, Age.

When I select 2 I should be able to set - Age, Hair Colour (clr shows), Weight, Date. When I select 3 then - City (combo box drop down), Country, Age only. This way value changes for diff items. One way is to put them in property grid and show them. Though this looks nice but adding/removing items in that is not easy. You need to have a class that refer that to prop grid. Do I have to code for each classes for all values in listbox or is there an easier way to manage items in property grid. If you think prop grid is not the right tool for such an activity then can you suggest something else.

View 13 Replies

.net - 'Property' Cannot Implement 'Property' Because There Is No Matching Property On Interface 'IName'?

Dec 9, 2011

I'm having some very weird issues with interfaces right now.

I have a very simple setup. In one of my class, I have a Property implementing a Property from an Interface.

In my class it's like:

Private _oForm As IForm
Public Property Form As IForm Implements IContainer.Form
Set(value As IForm)

[Code]...

I have like dozens of interfaces like this working throughout my project and I can't believe this simple one can't work!

View 1 Replies

Any Container Like The Map In C++?

Apr 2, 2009

There is any container for vb.net like the map in c++?

View 2 Replies

Use A Non-MDI Container As A Container?

May 23, 2011

I have a form (say Form1) opened into a MDI Container form, and I want to open a new form (Form2) as a child of Form1. I open it with Form2.showdialog() but it don't act as a child, I mean, I can move it outside the bouds of the Form1 (and even the MDI)

View 2 Replies

Container For Constants In .NET?

Jun 29, 2010

Say I have some constants that depends one of other, and I decided to keep them together in a container instead of keeping it as individual constants in a class.I thought use a Structure for that scope, but compiler force me to declare a private member for that structure.

[Code]...

View 4 Replies

Design Own Rtb Which Can Act Like A Container?

Jul 21, 2009

is there a way to design my own rtb which can act like a container? I mean I want to add the functionality of a container e-g panel to rtb. How can I start it?

View 7 Replies

Did Container Change In 4.0?

Jul 27, 2010

This is more of a ASP.NET question, but we are using VB.NET so it might be relevant. We just recently upgraded an ASP.NET 1.1 project to 4.0.Once we started running through the app to regression test it, we found that (consistently) if we made a call like DataBinder.Eval(Container, "PropertyName") from a User Control, ASP.NET complained that it could not find the PropertyName on the page.

PropertyName *does* exist on the User Control, but not on the page.This worked up until we upgraded to 4.0.The fix we found was instead of using "Container", we used "Me" to reference the control that the code was being called on.

View 2 Replies

MDI Container Backgroud With RTL?

Jul 29, 2009

start a desktop app. make the form 1- MDI Container = True. 2- Right to Left = True , 3- change the Right to left Layout = True.Set the background to any jpg image, when you run the form, the backgroud disappears.

View 3 Replies

Set Pixel In Some Container?

Feb 2, 2012

VB 6.0 had a Set Pixel function, which is not available in VB.net. using a draw ellipse function with parameters specifying a circle one pixel in diameter.The above is painfully slow.I have been drawing graphics in a Bit Map using a Set Pixel function & then copying the entire graphic from Bit Map to a Picture Box. This results in nothing seeming to happen for several seconds & then the entire graphic is displayed in the Picture Box.

The above does the job, but it would be nice to display the graphic as it is being generated pixel by pixel, which was possible using VB 6.0, Might there be a Windows 7 API which would set a pixel? Might Microsoft be considering a Set Pixel function for Picture Box graphics?

View 5 Replies

Usercontrol Like Container?

Apr 5, 2012

I made a User control.I add two Panel in this Usercontrol. But i want one of panel keep control like container when i add my usercontrol in the from.but when i add user cousercontrol does not contrin any controlntrol in the from but my . how can i user usercontrol like container

View 3 Replies

Anchor 1 Control With Other Instead Of Container?

Feb 10, 2010

It is possible to anchor 1 control with other control instead of container. I mean suppose i want to maintain fix distance between 2 controls during resizing form.

View 1 Replies

Asp.net - Create New Container Azure

Jul 22, 2011

I am trying to migrate large data that is required for our website hosted on Azure to access. The data amounts to about 7GB. After reading few forums, I have come to know that SQL Azure BLOB Storage can do the trick for me. how we can store data in SQL Azure BLOB Storage and access it? At first I want to try to store a Test.txt file in the BLOB and access the contents of this file from our website and display it.

View 1 Replies

ASP.NET ItemTemplate Container.DataItem

Mar 5, 2011

I have a Repeater on one of my pages like so: [code] But, when I run it it errors out with the message:'btn<% Container.DataItem %>' is not a valid identifier.I want to append btn to the Container.DataItem value so that I have dynamically assigned control names that are associated with the underlying data item. Any ideas?

View 1 Replies

Cannot Get A New Windows Form To Use The MDI Container

Jan 2, 2011

I have an older VB6 program that uses a MDI sheet. this program was upgraded to VB.net. I can not get a new Windows Form to use the MDI Container. the new sheet lays over the top of the MDI sheet.

View 10 Replies

Change Backcolor Of MDI Container?

Jul 30, 2010

How do I change the back color of my MdiContainer?

View 1 Replies

Close Button And MDI Container?

Jun 18, 2012

My doubt is :1] I have got many forms and MDI container. There is close button on all the forms.One of the form name is Homepage.2]Whenever the user clicks on close button,i.e.the cross button with minimize and maximize box, The form will close but at the same time it should redirect to homepage.3]I know to show new form ,we use Homepage.show().But,This homepage.show() is written in the code when we got button or other controls.4]What can be done with this cross close button? How to code for this?

View 13 Replies

Container.DataItem Works Only In C#?

May 24, 2009

This line of code((Matches)Container.DataItem).MatchIDworks in C# but in VB.NET, when used in a Repeater, I get the error

View 2 Replies

Create A Graphics Container?

Sep 21, 2009

I have the following [code]...

when i draw the rectangle, the moment the container refreshes itself i lose my shape or if i run the app in full screen and then into normal window mode the shape either gets clipped or deleted. I would like to create a grahpics container to always keep the shape 'alive'.

View 5 Replies

How To Refer To Container Of A Usercontrol

Mar 9, 2011

I have a user control called UCO and it is being put in many diffrent forms.How can i refer to these forms from the code of the UCO?For instance, how can i get the color of the form and make the UCO have the same color?

View 1 Replies

If Container.DataItem.BooleanValue Then?

Jun 8, 2012

Working in VB.NET, in a repeater. I only want to display part of the repeater if one the data item's fields is set to true.I am struggling to write a line that will accomplish this but am trying along the lines of this:

<% If '<%# Container.DataItem.IsLive%>' Then %>
<asp:PlaceHolder ...
<% End If%>

View 2 Replies

Keep MDI Child Inside MDI Container?

Jun 22, 2010

In my program, I want the user to be able to move an MDI child window anywhere inside the MDI container but I need it to be kept completely inside the container boundary. For example, the upper left corner should never be at a location less than 0,0 when moved left or up. Currently, if I slide the child window too far left, it extends outside of the MDI container window and the MDI container shows the bottom scroll bar.

Is there a way to prevent the child window from moving outside of the boundaries of the container window? I tried adding code to the .move (see below) so that if the new location was less than 0,0 then it reset it to 0,0 but then the child window controls flicker as the window is moved beyond 0,0 and the logic moves it back to 0,0. It appears that even though the code changes the location to 0,0 and the window shows the child moved to 0,0, when the mouse moves again, the window jump back to its unmoved location.

Private Sub MyForm_Move(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Move
If Location.X < 0 Then

[Code].....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved