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


ADVERTISEMENT

Drawing Circles In .NET?

Mar 22, 2010

However my m8 will support me with any problems about the server, but he doesn't know how to fix this one in the client.The Sub have to create random sized circles, which are showed when u just hit some **** in space.It works fine in VB6, but in .NET i got a lot of ISSUES:

Sub DrawHitCircles(ByRef accuracy As Short)
Dim GO As Single
Dim check As Short
Dim guns As Short

[code]....

View 5 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

50 Random Circles With Different Colors?

Feb 9, 2011

I am working on a program to generate 50 circles starting with the smallest in the center of the form. The circles do not over lap and the appear to grow outward. Each circle has to be a random color. I have the code that generates what I need but all the circles are the same color. I was thinking about either using an array to hold each circle and color as to not assign the same color to all of them but not sure about putting a graphic in an array. I also think maybe a nested loop of some sort but was unable to figure one out.

Private Sub mainForm_click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Click
Dim penColor As New Pen(Color.FromArgb(Rnd() * 255, Rnd() * 255, Rnd() * 255, Rnd() * 255), 2)

[Code]......

This works to do what I need to get done, I just need each circle to have a random color as it is drawn.

View 2 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

VS 2008 Drawing Circles At Run Time?

Jul 5, 2010

I've got a fun little question for you all. I am designing a program that allows you to click on a picture to input data in certain areas. What I want to do it pretty allow someone to take a look at a picture. Click the add point tool, then select an area on the picture where it places a circle. I then want them to be able to go back to the circle and modify data if necessary

View 8 Replies

Interface And Graphics - Randomly Generating Circles

Mar 1, 2009

I am trying to randomly generate circles at the top of the screen, but it doesn't seem to be working. I want it to generate five balls, but it only generates one, and it's in the same place each time. [Code]

View 5 Replies

Make Collide A Lot Of Circles Drawn During Runtime?

Jul 14, 2009

Right now I'm trying to make collide a lot of circles drawn during runtime. I have no problem making 1 circle collide with the form's bounds nor with another circle, however, if I draw like 25 circles in runtime, how can I make each one "move" and set the "collision properties"?

Can I make the circles move outside of the form? Let's say, the whole screen?

View 15 Replies

VS 2005 Logic For Filling Circles In A Rectangle?

Nov 14, 2010

I am struggling with coding up a bit of logic.

I have a map which I have created zones which are basically rectangles which have the coordinates sorted

eg
Zone 1
Zone 2
Zone 3

I then want to create circles within the rectangles. So for example

Item1, Zone1
Item2, Zone1
Item3, Zone3
Item4, Zone2
Item5, Zone1

So i would like Item 1, 2 and 5 to show up as three circles and when the mouse cursor floats over them to show it. The item list is dynamic and so I am not sure how to get about with this?

View 7 Replies

VS 2010 Drawing Circles In A Chart Temporarily

Jan 13, 2011

Im drawing a chart based on values from a database as an image in a picturebox. I can then add lines and circles etc in the picturebox, so as to highlight areas in the chart.

The next step I would like to do is to have temporary lines and circles, so when I move the mouse, the circle grows or shrinks and only when I release the mousebutton the circle is assigned to the chart picturebox.

View 1 Replies

Algo / Code To Cover A Rectangular Area Using Circles?

Jun 13, 2012

This is a problem like the puzzle - "find minimum number of coins to completely cover a piece of paper".

The difference is:

in my case RADIUS of the coins is variable (but all coins should have same radius).

Real scenario:

1. I need to draw circular shapes on a rectangular image.

2. Number of circles (N) is CONSTANT/ User input

3. Size of image (S) is CONSTANT/ User input

4. The program should find the MINIMUM RADIUS (R) that is needed to draw N number of circles on an image of size S, so that, the image is completely hidden behind the circles.

This is NOT a puzzle/assignment that I'm trying to solve.This is part of a larger project that I'm working on.

I don't need any drawing code. I just need the code/algo to find the radius.

View 22 Replies

Draw Ishihara-transformations (circles In Circle Without Intersection)?

Apr 28, 2011

Question: I need to draw pictures as below in C#/VB.NET Draw ishihara-transformations (circles in circle without intersection)?

Note that my problem is NOT drawing circles in C#.

My problems is drawing them without much whitespace and without intersection.

My thought would be using "Orbits" and then draw the circles with center on the "orbit" lines. (with some orbit lines for bigger and some only for smaller circles)

View 2 Replies

VS 2010 Drawing Circles, Rectangles, Elongated Shapes?

Apr 20, 2012

I would like to draw a rectangle on a form, for example to mimic a steel beam that is 6 metres long.Within this rectangle, there may be 4 "openings" or circles that mimic a diameter of 600mm, so i need to draw 4 circles within the rectangle, to indicate a beam that has 4 openings. Other issues I need to cater for is that one of the circles may not be in the centre, it may be slightly raised.The user can change the length of the beam and the size of the openings so i'd like to refresh my drawing to keep in line with this.

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

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







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