VS 2008 Making User Not Able To Resize Form
Aug 26, 2009im trying to make it so the user not able to resize my form. i cant figure this out
View 1 Repliesim trying to make it so the user not able to resize my form. i cant figure this out
View 1 RepliesI have a Mdi form and I need to put a control on the form which the user can resize. Now I need a container can be dragged by user to increase it's size. The split container will not work in my case as I have childforms and stuff. I want a container whose size can be increased by dragging it on one side.
View 8 RepliesThe basis of the program is that the user enters info into to text boxes then hits a button, when the button is clicked and all the parameters are met, the visible property of a rather large picture box becomes true. What I want to do is have the form start off small, just big enough to hold the labels, text boxes and buttons and then resize when the picture box is made visible.
View 2 RepliesDoes anyone know how to make the controls on an MDI Child form resize along with the form itself? I inherited a project from another developer and I was asked specifically to make the form resize. With advice I received on this forum I now have the form resizing as expected. It will minimize, restore and maximize as well as resize with the mouse pointer.
The problem is that when I increase the size of the form all I get is more blank space on the screen. The controls to do change at all. Although I thin this is normal behavior for a Windows form my bosses all seem to think that the controls resize on every other widows for they see. I wondered if anyone had successfully accomplished this. I was already advised to write a FormResize handling subroutine and this unfortunately did not work.
I have a windows form. I dont want the user to be allowed to maximize or resize the form.
View 5 RepliesHow do you lock the size of a form so the user can't resize it?
View 3 RepliesI'm trying to figure out how to resize a form on load to fit to the user's screen. Many of my users are on laptops, or split screens between laptop and monitor..I remember in VB6, it was something like form.height = screen.height (or something of the sort)... but I can't find this functionality in VB.NET 2008. I'm also trying to wrap everything (multiple screens/forms) into one app, so I wanted to know if anyone was aware of any tutorials on form parent/child relationships... I don't want to keep opening and hiding forms individually without having them packaged in one work area....
View 9 RepliesHow can I resize my Form and my dataGridView to fit my user screen?
View 2 RepliesI am creating an application for a company and this CD will be distributed to hundreds of people. Many users will have different computer screen size and different screen settings such as their resolution set to 1024 x 728 and their monitor size 17" inches.
I noticed when I loaded the application on a different computer with different settings the application was to big for the screen and did not work. I notice that lot of other programs from microsoft resize their controls and text but never knew how they did it. How can I resize the form and control according to the user's setting.
I am trying to make a user control for information received from a database but i get:The class WFUserControl can be designed, but is not the first class in the file. Visual Studio requires that designers use the first class in the file. Move the class code so that it is the first class in the file and try loading the designer again.
Do i make the user control directly and add the code? Because thats what i did.. Or are there steps to do first before creating it?
This just started happening recently...If I resize the form, the contents do not change.(All controls on the form are docked in such a way that resizing the form resizes the controls). If I make the form bigger than what it loaded at, the contents stay the same and the extra room is black. If I make it smaller than original, then it just cuts things off.Any idea what could be happening here? It is a standard System.Windows.Forms.Form. Nothing special handled on Resize, ResizeStart, ResizeEnd, or SizeChanged events.
View 2 RepliesI am making a card game, and now i have 52 picture boxes of cards. It all works fine no problem at all. But a mate of my told me that you should be able to resize the form.
Is there an easy way to resize everything on a form when the form is resized? (so like fitting it to the form?)
Some of the text on my application gets cut off when the frm gets to small. I was think when my frm gets to a small size that my application could re size this label on the application.I know that i will have to work with the Form1_Resize property.
[Code]...
i want to know how to resize my form contols when size of form is changed ?
View 1 RepliesI create a Form with FormStyleBorder = none and i want to resize them in Runtime.how can i resize them if my FormStyleBorder is none, do i need a code to do that? so that i can resize them during in Runtime while my Form is set to None.
View 14 RepliesI want to resize a form to the left and then to the right. This means that i want some controls to be static in the center and the form to resize either to the left, then add a control (temparory) or to the right.
[Code]...
So i have this code that adds two Columns to the form at start up.But my question is that how can i make the Columns to resize with the form movement?
ListView1.Columns.Add("The Path Of The File", 800, HorizontalAlignment.Left)
ListView1.Columns.Add("Size", 80, HorizontalAlignment.Left)
I'm making an WPF-application that has a databound ListView. When loading the application, the width of the ListViewColumns will auto-resize, but when adding or changing an item it doesn't auto-resize. I've tried refreshing the listview, setting the width of the column to auto, -1 or -2 in both xaml and VB-code and I've tries changing the itemssource to nothing before refilling it with items.
This is the xaml code:
<ListView x:Name="lsvPersons" Margin="5,5,5,35" ItemsSource="{Binding Persons}">
<ListView.View><GridView>
<GridViewColumn DisplayMemberBinding="{Binding Name}" Header="Name"/>
<GridViewColumn DisplayMemberBinding="{Binding Gender}" Header="Gender"/>
<GridViewColumn DisplayMemberBinding="{Binding Age}" Header="Age"/>
[Code] .....
After pressing the button, a window will open to add a person. After the window is closed, the item is added to the listview with following code, which refreshes the items in the listview:
lsvPersons.ItemsSource = Person.getPersons()
So, what do I need to do to auto-resize the columns of the listview when an item is added or edited?
i have managed to get the form to resize according to the screen resolution but now im struggling to centre the objects on the page?
View 11 RepliesI have an image that stretches to the size of my form so if the user resizes the form, the image resizes aswell. All works great apart from the constant flickering during the resize of the image.
View 4 RepliesWithin the subroutine, I am counting the number of open Forms and dividing the bounds of the screen by the number of open forms everytime a button is clicked.his gives me a way to Size each video box perfectly according to the number of forms open.This is where I have found a problem. The size of the new window only sizes the newly opened on and will not resize the ones that are already open. I will give an example of my subroutine.Note: Because of the nature of my program, I am not allowed to take any code out of the work zone and so I will be summarizing what I am doing rather than showing the actual code.
Private videoShow (byval videoName, byval videoIp)
dim videoForm as new form
videoForm.size = New Drawing.Size
[code]......
how do i make the height of listview automatically resize, when the form is maximized? The anchor property does not work well with this listview because it is a custom control. Does anyone knows how to programmatically resize the height of a listview whenever the user maximizes the parent form like this picture:
View 4 RepliesAnyone knows how to change the Forms and controls of the project as the Screen resolution of the computer changes?
View 1 RepliesFrom this forum I saw some discussions about form/controls resizing issue with different resolution screen setting. Most suggestions are using Anchor/Dock. My application's form has 10 group boxes and some buttons. In each group box there are 5 Text boxes and other more controls. I tried anchor and dock but couldn't make it work. My questions are -
1, How to re-size form and all individual controls as well?
2, If anchor/Dock are suggested, do i have to use both of them or just one? it seems to me there is no big difference between them.
I'm making a tileset creator and everything is working fine so far except previewing a tile. The way it works now is it gets the image from a picturebox and calls the following code when scrolling the mousewheel. It functions fine but there is a border appearing between the tiles and I can't figure out why. The source image is 32x32 in size. Most likely it is the graphics class not measuring in pixels or something.
Public Sub ResizePreview(ByVal dSize As Drawing.Size)
Dim bm As New Bitmap(TileImage.Image)
Dim pTile As New Bitmap(dSize.Width, dSize.Height,
[Code].....
I have a user control which contains some textboxes,buttons ,labels and comboboxes . I used that control in a form and inside a split contaier.Splitter can be moved by the user. User control is docked as fill.
Now when user move the splitter the user control size is changes as it is dock fill but the inner controls used in that user control looks like fixed in a single place .It are not moving nor resizing .How to do this .Is there any property to perform thisI already know about anchor property but sometimes it causes overlapping of controls so I can not use it.
I want a set of child forms to keep their relative sizes and locations to their parent form when parent form is resized. So if one child form is opened and covers the lower right quadrant.. it will remain a quadrant for whatever resize is done on parent form.
View 3 Replies1) I m very new to VB.NEt 2008. I have placed a MDI Form in my project and a Form too. I want to make the form to a Child Form of MDI. is there any property or how can it possible.
2) I want to set the lable back color to Transparent but found no property.
VS 2008 [RESOLVED] Making Form Invisible?
View 5 RepliesIs there a simple way to make all comboboxes on a form to be readonly upon form load?
Rather than doing:
ComboBox1.ReadOnly = True
Combobox2.ReadOnly = True
And so on...