Moving Form With FormBorderStyle = None

Aug 4, 2008

I am using the software called Visual Studio 2008 Express Edition. I've created this calculator on my own, and the past hour I've been messing with the design. Right now I am wondering how I can move the form around, with the FormBorderStyle set to none (no borders (means no exit button, minimize etc. I made those myself )

What I'm looking for is that I should be able to press anywhere on a place that isn't used (black place) and drag it around. I forgot to mention another issue that I have. The textbox on the calculator accepts any signs and letters, how can I make it so it just accepts numbers?

View 14 Replies


ADVERTISEMENT

FormBorderStyle=None, But Cant Move Form Around?

Feb 11, 2009

I just started VB.NET coding, and I think I come along quiet well. Offcourse, I get a few errors, but When googling it, I always come to dream.In.Code, so I thought I'd better register here.

Now, my problem is, that when I set FormBorderStyle to None, it looks so cool, but I cant move my form around in debug mode (Nor when launching my finished builded application)

Here is my whole Code in my application, as I dont know what parts I should post here:

Public Class Form1
Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click

[Code].....

View 7 Replies

Reshape A Form With Formborderstyle Set To None?

Jan 27, 2011

how do i reshape a form with formborderstyle set to none?specifically i've kind of photoshopped my own frame and everything (and set it as backgound image), but i want to trim or curve the edges because the angles on the form look ugly.alternatively if there is a way to make the form's background color actually transparent, that could also work. but i prefer to trim the edges

View 1 Replies

Move A Form That Has No Title Bar (32-Bit) (FormBorderStyle=None)?

Aug 1, 2009

I have a form with propterty of FormBorderStyle=None how I can make it movable using VB 2008?

View 3 Replies

VS 2008 How To Resize A Form With FormBorderStyle Is None

May 27, 2009

I 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 Replies

Irregular Shaped Form With No Borders Moving Across The Screen Until From Within The Loop The Form Closes?

May 26, 2012

I tried it every way I can think off, but nothing can stop it .

View 7 Replies

Set FormBorderStyle To None. Get A Different Close Button?

Nov 6, 2009

I set the FormBorderStyle to None because I wanted the project to only show a background image and the contents I put on it. Here is what I need to know?Is there I way that I could ONLY add the X Button as a separate image to the project, or do I need to make the Background image have an X button?

View 6 Replies

Show SizeGrip Even If Formborderstyle Is None

Dec 16, 2009

I have one tiny problem that might turn big :D I want to enable the sizegripstyle of a form even if the formborderstyle is set to non

[Code]...

View 4 Replies

C# - Update And Get Values In Windows Forms While Moving One Form To Other Form?

Nov 30, 2009

How can I update and get values in a Windows Forms application while moving one form to other form (like cookies)?

I need to update the values to some variable and again I am going to refer stored values and need to do some calculations.

I have used cookies in ASP.NET but I am not able to find out the same concept in .NET Windows Forms (C#).

How can these issues be resolves?

View 4 Replies

VS 2005 Moving Rich Text Box String From Form To Form?

Apr 15, 2009

simple problem Basically in form1 i have a line of SQL code in a rich text box called rtb_select

what i would like..This code to run under a connection string called strSQLSelectQuery in form2

I have been told someting like strSQLselectQuery = rtb_select.text would work however because rtb_select is in a different form in the same project it does not recognise rtb_Select

View 2 Replies

.net - Set Tabcontrol Border Totally Invisible Similar To The FormBorderstyle = None

Aug 23, 2011

I have a TabControl placed on Form. which is a VB.net windows application. I want to set tabcontrol border totally invisible similar to the formBorderstyle = none I am unable to find any settings for the tabControl to remove the visible border.

View 1 Replies

VS 2008 : If Disable The Formborderstyle And Set The WindowState To Maximized It Goes Over The Taskbar?

Jun 20, 2010

If I disable the formborderstyle and set the WindowState to maximized it goes over the taskbar.how can I have to program to be maximized, but the taskbar remains?

View 3 Replies

Asp.net - Moving Text In A Web Form Vb

Jan 11, 2012

I was trying to do a label that will slide from left to right of a web form in vb. I search on the web it only have example that work for windows application form.. I wanted it to be done in web form..

View 2 Replies

Form Moving Using Panel

Mar 26, 2011

Taking the following code into the account: [code] This makes my entire form client area act like a cpation bar and i can darg it using any any part of it! Becuase i had a borderless form that is why i used this code (which is definitely not mine - no offense) . This works perfect in windows 7 but in lower OS versions it acts weired like even if user makes little dragging on the form occasionally this triggers and takes the form out of the bound of screen! I was wondering can i alter the above code somewhat like instead of intercepting the form area as caption bar it detects a panel (docked at the top giving illusion of a caption bar) and make that my form move. I know you brothers will make me say that using the mouse down mouse move and mouse up events of panel i can attain this, definitely i can but thought of some more professional approach. url...

View 4 Replies

Moving A PictureBox - Up And Then Down On My Form

Nov 20, 2009

(Visual Basic .NET 2003) I am trying to move a picturebox up and then down on my form. The Picturebox moves up but does not move down. The motion is more of a bouncing motion (to the left) until it disappears off the screen. I have one button and one timer. I know this is probably so simple, but I cannot resolve the problem

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Enabled = True
End Sub

[CODE]...

View 2 Replies

Moving Circles Within A Form?

Aug 5, 2009

The purpose of this (maybe there is a better method I don't know) is to so the user can say what order they want pieces of code to be compiled in. Sort of like a flow-chart. I want it somewhat animated, so, example being 3D circles the user drags and drops in the order they want things.

1. I need 4 circles inside of a form.

2. I need it so when the user selects the circle, they can drag and drop it in an order.

3. User clicks OK to finish their chosen order.

I haven't designed anything before that needed to check the borders of the form etc.

View 1 Replies

Moving Data From One Form To Another

Sep 22, 2010

i want to ask that i want the code for moving the data from one form to anothe form in VB when i click on delete button.means some of the data from form1 which i want store in another form after deleting it.

View 7 Replies

Moving Form Via Control

Mar 13, 2010

I was putted an image on the form (and filled) How to move form with click to image?

View 2 Replies

Moving Form While App Is Running

Apr 6, 2012

I'm developing a VB.net windows form app in Visual Studio 2010. I want to be able to drag the form to another location or minimize it while the app is running. Is that possible? Here's and example. I have a form with 1 button. Here's the code associated with the button:

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim time0 As Integer
Dim time1 As Integer
For time0 = 0 To 1000000000
time1 = time0
Next
End Sub

I can move the form or minimize it until I push the button. Then it freezes until the code stops running.

View 2 Replies

Moving PictureBox In Form?

Sep 17, 2009

how do i "drag and drop a picturebox" on a form drag and drop is used in vb.net for moving a picture by mousedown

View 11 Replies

Moving The Form With A Picturebox?

Oct 12, 2007

Okay, so just wondering, if its possible. I Have a picturebox (PictureBox1) and just wondering if I dragged the picturebox how could i drag the form?

View 5 Replies

VS 2008 Form Moving?

Feb 10, 2010

I have this code

vb
Public Class Form1
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs)

[code].....

View 3 Replies

Moving A Form When Using Thread.Sleep()

Apr 26, 2009

I am trying to learn how to use Thread.Sleep properly as the main problem I am facing when using it is the fact that the window/form on run time would not move until after the sleep time has elapsed. Did I miss something? Below is a short example of what I want to achieve.

[Code]...

View 8 Replies

Moving Image Across Form And Reappear?

Dec 31, 2010

I am trying to create some simple animation using GDI+ graphics. The scene takes place in outer space, I want to run comets across the form. My problem is getting the comets once they leave the form to reappear on the other side. I can do it horizontally, the code for that is below. I can't figure out how to get a comet to leave the bottom of the form and reappear at the top. Anyone have any advice or knowledge on this?

Private Sub CometTimer_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles CometTimer.Tick
'Declare variables.

[code].....

View 3 Replies

Moving Items Inside A Form?

Jan 12, 2011

So i have a "game", and the login screen for the game is built into a panel. When you click the load button the panel shows up inside the form, and you are able to type in your username and password. what i am trying to do is make it so the user is able to drag that login panel anywhere inside the game form; just to make it a bit more advanced then just a fixed spot.

View 5 Replies

Moving Labels From One Location To Another In A Form In 4?

Feb 26, 2011

I'm making a small program in which i want to move labels from one position to another , I used the following statementLabel1.Location.Y = 10 ' Error - Expression is a value and cannot be the target of an assignment

View 3 Replies

Moving TableAdapters Out Of The Main Form?

Feb 24, 2009

I'd like to keep all my SQL data related code in a separate class and only have UI related code in my main form. However, the TableAdapters are automatically placed on the main form and, of course, the auto-generated code placed in the Form_Load event.

Obviously, it's easier to keep it like that but is it possible to move them to a different class?

View 5 Replies

Prevent A Child Form From Moving Down?

Sep 22, 2011

How do I prevent a child form from moving down and across each time it is opened? I want it to always open in the extreme top left.

View 3 Replies

Prevent User From Moving Form

Jan 7, 2009

I have the following settings:

ControlBox : False
WindowState: Maximized

Because I want the user to have a full screen application that they cannot close without using my Exit menu. The problem is, they can simply grab the title bar of the form and drag it, exposing the desktop!

View 3 Replies

Stopping Pictures Moving Off The Form?

Apr 21, 2010

Basically ive a picturebox which ive coded to move around the form, however I can move it off/under the form if i want to if i move it that far. I want it to stop on the edge of the four sides of the form if i move it that far. Basically I want to make sure that when moving the picturebox around, it never goes off the form and stops on the edge of the form if i move it that far.

I'm guessing it's to do with the position command but i cannot quite work it out.

View 9 Replies







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