VS 2008 Check Form Border Location

Apr 23, 2009

I need a check that will see the location of the edge of the form. An example would be (for what I am trying to do) is, when a form is moved, the main form will get bigger depending which border and which way the second form is going.So basically I need some way to make Form1 get bigger if Form2 is near the left border or near the bottom border.

*I have a mini system for making it grow(LocationChanged) on the form I want it to work for.

*I also know about ".left" and ".top",

View 2 Replies


ADVERTISEMENT

VS 2008 : Custom Form Border Movement?

Apr 6, 2010

I'm currently working on an application that I'd really like to be able to have a custom form border. I have it set up right now that the close, minimise and maximise buttons work, as well as moving it around. The issue however is that, although the movement is working, once it starts, it does not stop. So I can drag it around and it works perfectly, but if I want to stop dragging it around and click elsewhere, the form moves to the position from which it was being dragged.

Public Class Form1
Dim clickhold As Boolean
Dim doonce As Boolean
Dim mousebase As Point

[code]....

View 6 Replies

VS 2008 Changing Form Border Color?

Nov 21, 2010

How do I change the Form's Border color?

View 1 Replies

VS 2008 Custom Draw A Border Around Form?

May 24, 2010

I set my FormBorderStyle of my form to none.This is exactly what i want, except I ran into a problem.When the background is gray (background of other applications running in the background), my form tends to fade in with the background (Still active, but i cant see where my form starts or ends).

View 1 Replies

VS 2008 How To Static Mdi Child Form Location

Nov 6, 2009

i create StudentForm as my mdi child form, what i suppose to do to let user unable to move my mdi child form to other location? how to make it in static location? Private Sub StudentToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StudentToolStripMenuItem.Click

StudentForm.Show()
StudentForm.MdiParent = Me
End Sub

View 2 Replies

VS 2008 Set The Location And Size Of A Form In The Same Line

Aug 24, 2009

Was just wondering if there is a way to set the location and size of a form in the same line ... as i have a form that takes a little while to resize all components ... and when u tween the form's location and size at the same time it chunks as it sizes.

View 1 Replies

[2008] Setting Picturebox Location On Form?

Feb 14, 2009

i need a picturebox to, when an event has happened to either revert back to its original place.or set a location for it to go after the event has taken place.ive tried lots of different code but its not working?

View 3 Replies

VS 2008 - Setting Location And Making Form Unmovable

Oct 28, 2011

How would I make my form unmovable so you cannot drag it to move it? I also need to know how to make it always start in the same exact spot. I don't know why but it changes spots even thought the location is set: 0,0

View 3 Replies

VS 2008 Location - Make A Form Pop-up At Random Place

Jun 25, 2009

I'm trying to make a Form pop up at an random place (given in a textbox). Here is my code so far:

Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
Form2.Location = Textbox1.text
Form2.Visible = True End Sub

Yes i know it doesn't work. What I really need to know is how to make the txt understandable for the system.drawing.point.

View 2 Replies

VS 2008 Round E.Location To Nearest Grid Square Location?

Nov 9, 2009

I was using this old method of creating a bunch of rectangles when I need to get the location of a certain point within a grid so I could draw images on the grid. The thing is, I don't want to use rectangles, I want to be able to just round the location as if I were using rectangles. I need it to be able to round the point (66,70) to (50,50) so if you can imagine a grid and the mouse position being within that square in the grid, I need to get the location of the upper left corner of that square.

View 5 Replies

MDI Parent Form - White Form Border?

Sep 17, 2010

i have a simple VB probject, the main form is an MDI parent.

The form is maximized and the background color is set to black.

control box is turned off, but the form still has a white border around it i want to turn the border off, i just want the form black and maximized

View 1 Replies

Border And Border Color Of Textbox And Label

Aug 4, 2009

I am using vb express 2008.How I can have border around a Textbox or Label and change the color of border. Like we have different border styles and colours in MsWord and other applictions. Also how a Lable can be made transparent?

View 4 Replies

Creating Forms With Border Like Calendar Border?

Nov 15, 2010

How we can create a form with border like calendar border. I changed ControlBox to False and Text to vbnullstring. but only when FormBorderStyle is Sizable or SizableToolWindow form border apears. This form is sizable. Is there any way to create forms with this border but not sizable? I want to create form like this:[URL]

View 6 Replies

Create A Form Without Its Border?

Jan 20, 2011

I've been struggling with, how can I create a form without its border but still keep the three buttons on the right hand side (minimize, expand/contract, close)

View 5 Replies

Draggable Form Without Border?

May 3, 2010

I am building a Windows Forms app without a border, so I have complete control over the interface. A few years ago I managed to create a VB6 app that I could drag the form using a control on it, but I cannot for the life of me remember how to do it, and Google has failed me.

View 2 Replies

How To Disable The Form Border

Feb 12, 2009

how to disable the form border, and just have 1 button when your form loads i put a button on my form and i changed the background image but i can still see the border i know how to remove the controls on the form but i wanna see just a picture like bellow..

as you can see the form doesnt have any borders and that is what it loads when you click on the program.

View 2 Replies

Make A Form With A Border?

Apr 29, 2011

I am trying to make a form with a border like the border on the Windows Vista volume control. The form would need to be resizeable as well.

Here is a form with the ControlBox property set to false.

View 4 Replies

Move A Form With No Border?

Dec 21, 2010

I have searched on this but I keep finding people trying to keep others from moving forms. And also nothing in the code bank.

Here is what I am making. I am making a tournament overlay program that tracks current players progress for shoutcasters (displays their name, race, score, color, ect).

I have a control panel that will change all that information on another form, the borderless one, that will "Always be on top" of the game displaying information.

View 4 Replies

Move Form With No Border?

Mar 23, 2008

If a form has its form border style set to None, how would you go about moving it?
I thought that this would work:

Private Sub Form1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseDown
Me.Location = MousePosition
End Sub
but it doesn't.

View 21 Replies

Move VB 10 Border Less Form

Oct 10, 2011

I want some help with a border less form! I want to move the form using the tab control's "backcolor" area like in Google Chrome.

View 13 Replies

Resize Border Less Form

Oct 7, 2010

I am able to resize the from using the code below but it resizes towards right side , from bottom right corner i want to modify the code so that user can re size the form from bottom left corner. also most of the solution given on this site are based on WndProc / WM_NCLBUTTONDOWN and i am not using it because my form have lots of controls so it flicker's very badly.

[Code]...

View 1 Replies

Anchor The Form To The Border Of The Screen?

Apr 16, 2009

1) I want anchor the form to the border of the screen, in this way :

2) and if i change the video resolution (for example from 800x600 to 1024x768) i want that it will be automatically resized

View 7 Replies

Drawing Icon On Form Border?

Apr 14, 2012

i have the blow code that draws forms border with custom color and title.

'A form with custom border and title bar.
'Some functions, such as resize the window via mouse, are not implemented yet.
Public Class CustomBorderColorForm

[Code]....

View 2 Replies

How Can Drag A Form With No Border Style

Apr 15, 2012

I am making a virtual iPod touch in VB.NET, and I hate it how I have a form that I can't drag and move the form around the screen, I've trying making the form goto Mouse's location when the mouse moves and Dragging = True, but that doesn't work and makes the form flicker around at the speed of light.

View 2 Replies

How To Change Form Border Size

Jul 26, 2010

I have been trying to make my own borders for my form, which worked out but wast like I expected, (I used an image and Formborderstyle = none). I have looked at other applications(like Internet Explorer and Google Chrome) when they are not maximized, the top part of the form which you usually cant edit(where there you put your application's title and the control box is). I mean those top parts are larger than those of normal applications, how can that be done? To be clear: with top part i mean: the part that is part of your system, where an icon, a label with the application's title, and the control box is. To be more clear, see the screenshot provided.

View 2 Replies

Making A New Form Border Style

Aug 12, 2007

I want to create a software which have a Vista-like border style. I currently created some buttons (1 per side and 1 per corner) which have a background image corresponding to their position on the form. But it requires to much CPU when I resize the window (and need a lot of code lines to works ) So, I want to know if their is a way to create a border style (and maybe to add it in the Form.FormBorderStyle enum) to make it easily tranparent, etc.

View 3 Replies

Move Form With No Border From A PictureBox?

Aug 17, 2009

I made the formborderstyle=None and put a pixturebox in the place of "Title Bar" that gone. I want the PictureBox to act exactly like the title bar, so when move cursor while clicking left button of the mouse inside that PictureBox the form move.[code]....

View 2 Replies

Windows Form Border Style?

Feb 28, 2009

i set my forms FormBorderStyle to None in vb.net i want to assign a border line in different colour which is not inside the form.how can i do it?

View 4 Replies

Check For Object Location Around Rectangular Area?

Oct 12, 2011

I have a form that allows me to drag and drop pictures but I want it to check if the object is in the correct location

*curpic = the current picture that has been selected
If curpic.location.X > bx1.Location.X And curpic.location.Y > bx1.Location.Y Then
If curpic.location.X < bx1.Location.X + bx1.Width And curpic.location.Y < bx1.Location.Y +

[code].....

View 2 Replies

VS 2010 IO - Check Location Of File And Create New

May 26, 2012

Is it possible to check a location for a file and if a file exists then create a new file (+1) in the file name? For example if there is no test file in the C:Temp folder then create a test.txt file and if there is one there then create C:Temp est1.txt and if there is a C:Temp est1.txt file then create C:Temp est2.txt and so on?

I was thinking
If Not IO.File.Exists("C:Temp est.txt") Then
IO.File.WriteAllLines("C:Temp est.txt" + 1, vbCrLf)
End If

View 1 Replies







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