Only Allow Diagonal Resize?

Jan 24, 2010

is there a way to only allow diagonal resize for a Form (main form)? in other words the width/height ratio should always be kept constant

View 1 Replies


ADVERTISEMENT

Only Allow Diagonal Resize For Main Form?

Jan 25, 2010

Is there an "official" way to only allow diagonal resize for a Form (main form)? In other words the width/height ratio should always be kept constant always, no matter how the user tries to resize it

View 2 Replies

VS 2010 Diagonal Line On Program?

Aug 27, 2011

I am making a Tic-Tac-Toe prgram on VB and I have run into a problem. I need a diagonal line on the design that goes over some of the labels if a player wins. I have researched this and cannot find an answer. A picture box does not work because it covers everything up, and when you make a line in the forms it shows up in the background.

View 27 Replies

.net - Resize Listviewcolumns - Add To Each Listview A Resize Event With Percentages?

Apr 26, 2012

I created so many listviews in my project, that im too lazy to add to each listview a resize event with percentages. Is there any other trick, who just scales the columns so as they are?

View 3 Replies

Resize Parent Control From Child's Resize Event?

Jan 10, 2012

I'm starting work updating an UI for one of my company's applications and I'm running into a sticky issue. The parent control contains several panels, each of which can be turned on or off depending on user input.

The final panel in the user control contains another user control which gets resizes according to a toggle switch. Essentially, it "opens" up more information.

While the child control (ChildControl) is docked to Fill inside the parent control (ParentControl), when I add height to ChildControl I can't get ParentControl's height to get updated as well. Currently I'm handling the ChildControl.Layout event in ParentControl but I can't seem to reach that code. To resize ChildControl, I'm calling Me.Height += 200 in ChildControl.vb.

View 1 Replies

Finding A Point On A Diagonal Line When Have The Start Point And End Point Of The Line?

Feb 14, 2011

I have a Diagonal line drawn on a picture box on my forum and i need to know if the user has clicked the line I have the Start point and End Point of the Line and the mouse x,y location So i basically need to find out if the x,y of the mouse is on the line.

View 2 Replies

How To Resize A Pdf Using ITextSharp

Jul 8, 2009

I have a bunch of PDFs that I'm just trying to open, resize the page, and then save. I'm also hoping that the file sizes will shrink significantly doing so. I am using iTextSharp and the resizing works just fine, but the file size is nearly identical, ever so slightly larger in fact. Here's the function I have now:

[Code]...

View 1 Replies

How To Resize Image

Sep 1, 2009

how to resize images?

View 6 Replies

Resize Picture Box ?

Dec 9, 2010

I have a form.. that opens like a dialog box. On this form is a tablelayoutpanel, i have my picturebox in row 0 spaning 3 columns. What I would like to be able to do.. as the user resizes the form, make row 0 in the lay grow. I am thinking that will cause my picture box to grow a bit too and the user can get a better look at the image.

View 3 Replies

.net - Odd ComboBox Behavior On Resize?

Jan 28, 2010

I have an issue where a ComboBox control will change it's Text value when it is resized. Here is some sample code that I worked up:

Option Explicit On
Option Strict On
Public Class FMain
Private Sub FMain_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
uxComboBox.DropDownStyle = ComboBoxStyle.DropDown

[Code]...

View 2 Replies

Asp.net - Resize An Image In ASPNET VB

Oct 6, 2011

I would like for a user to upload an image to a file in my web application. However, before being saved I want to resize the image to a specified size. I have found code on the Internet to do what I want but I am having trouble adapting to meet my needs. Here is the part I am having trouble with:

' Resize Image Before Uploading to DataBase
Dim imageToBeResized As System.Drawing.Image = System.Drawing.Image.FromStream(FileUpload1.PostedFile.InputStream)

[Code]....

Rather than upload to a database I want to save the image to a folder in my web application. The problem I have encountered is that VB won't let me save a byte() to a folder. Not sure what I can safely change to adapt for my purposes. Why does it need to be changed to a byte() in the first place?

View 2 Replies

Auto-resize Of Forms?

Nov 20, 2011

i need the code in vb.net for auto-resize of forms. for example i execute my project in a 14" monitor, the size of the form would be the same as the size of my monitor. now what i want to happen is if i execute my project on my other PC that has different resolution, the form would have the same size of it.

View 6 Replies

Buttons To Resize Form?

Apr 15, 2009

Buttons to resize form?

View 15 Replies

C# - Crop And Resize Images In Vb And Asp.net?

Aug 17, 2011

I need to know how to make the web application crop an image and resize it as a thumbnail to use it later on in the application?

View 3 Replies

C# - Disable GridViewColumn Resize In WPF?

Jul 29, 2011

Is there any way by which I can disable GridViewColumn resize in WPF? I don't want to style the control.

View 2 Replies

C# - WPF Black Spaces On Resize

Sep 25, 2011

When i create a band new WPF project without changing any code whatsoever does this on resize. It stays this way if i minimize or drag across monitors. Is this supposed to happen? It does this with all of my WPF applications so i set ResizeMode="CanMinimize" .

View 1 Replies

Can't Resize Font Properly

May 29, 2010

I have a timer program. Initially, the font for the time is the correct size, and when I click "start", the time is the right size too(I had set the initial size to 26 in the properties menu). When I click "break", once the time is up, it displays "Break Over!!" to fit the label(because I changed the font size). Then when I click "start" again, the font has shrunken, even though I set it back to the original size of 26. Why is the font size for the timer not back to it's original size when I click "start" after I have clicked "break"?[code]...

View 2 Replies

Controlling - Resize Already Open App?

Dec 16, 2010

if i already have the vb app. open and i double click it again, is there a way i can control the one that is already open? for instance... could i resize the app. already open?

View 3 Replies

Correct Method For Resize?

Jul 15, 2009

I use vb.net 2008 to create a desktop application.I have a form that is resized according to the size/location of the app bar (where the start button is)I have a toolbar at the top, a status bar at the bottom of the form and a grid in the middle of the form I want the size of the grid to be the maximum possible on my form.if and when the user resize his application bar (or move it from the bottom to one of the sides) my form size should change according to the new working area size:

H = My.Computer.Screen.WorkingArea.Height
W = My.Computer.Screen.WorkingArea.Width

is there a single event that I can use ? currently I called my resize function in several form events: Activated, ClientSizeChanged, Load,Paint,LocationChanged,RegionChanged.And still it is not working correctly! Resize the app bar size or move it form does not change !

If I minimize it and then display it again or click it - it changes size

View 4 Replies

Drawing An Image To Bmp And Resize?

Aug 8, 2009

I have an app that displays images (using picturebox component). what I am trying to do now is to try to allow the user to resize the image how he wants it (scale). for this i think I need to create an instanece (bmp) clone of the selected image in the picturebox and draw it ontop of the original picture; then specifi new set of size points.I was trying to use the code below:

Graphics.FromImage(PictureBox1.Image).BeginContainer('i do not know what to do here')

I need to specifi the new size of the graphics container but I do not seem to have any clue on how to do it.

View 6 Replies

Excelsheet.range.resize ?

Sep 8, 2010

In my code I have used myexcelsheet.range("MYrange").Resize(2,10) but it is not working

View 2 Replies

FAQ: Resize An Image By The Same Scale?

Apr 10, 2009

How do I resize an image by the same scale? remember to mark the replies as answers if Welcome to the All-In-One Code Framework! If you have any feedback,

View 2 Replies

Forms :: How To Resize Controls

Sep 1, 2009

im am working on a form with a few textboxes and buttons, the problem is when the form is resized or maximized the controls stay small. If someone could please show me how to resize the controls as the form is being resized.

View 2 Replies

Forms :: How To Resize Label

Feb 3, 2011

I m new to windows forms. I dragged a label on the form and I would like to resize it but could not manage.

View 2 Replies

Get The Table To Resize With The RichTextBox?

Dec 6, 2010

I have a table in a RichTextBox component (RICHEDIT50W) however as I have to use the cellxN RTF tag in order to specify the number of cells it gets the width from N.

Is there any way I can get the table to resize with the RichTextBox?

View 1 Replies

How To Prevent Vertically Resize

Apr 19, 2010

Working with winforms I wonder if there is some way to prevent vertically resize of the form. I would like to allow user to resize form in all directions except vertically.Moreover I would like to allow vertically resize in upward direction, but not downward.

I have tried to use maximumsize by setting it to: Me.maximumsize = new size(0,me.height)

I set width to 0 because I want to allow user to change form width.

View 5 Replies

How To Programmatically Resize A Form

May 8, 2009

i would like to resize a form, programatically.. i know how to do it manually with a bunch of code depending on the resizing.. here's a sample:

[Code]...

View 2 Replies

How To Resize A Video Using MciSendString

Jan 7, 2012

Below is the code I use to play a video. Video is played on a panel but when Start a video it only shows a part of the video how can I fit the video inside the panel? Also how can I get the default size(height and width) of the video so that I can maintain aspect ratio. [code]

View 1 Replies

How To Resize Image Before Saving

Dec 19, 2011

I'm trying to find a way for saving an image to a exact size of w1024 h768 I have found a few things that allow me to save it to a percent of the images size but not to an exact size, which is how I need it.

View 2 Replies

Resize 4 Applications Into 4 Squares?

Jul 26, 2011

Is there a way I can resize 4 external application windows into 4 different blocks so they make up a 4x4 block that covers my screen?

View 6 Replies







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