Forms :: How To Make Rocket Falling From Top Of Panel

May 6, 2009

I am working on a small game, Moon Lander and I figured how to make rocket falling from the top of the panel which is on the form. I want to have fuel burning feature so I can land rocket properly on the bottom of the panel.[code]If anyone knows how to burn fuel (minus the gravity) so rocket starts to slow down, and eventually stop, then rise up,

View 2 Replies


ADVERTISEMENT

Make A Program That Will Calculate The Height Of A Falling Ball?

Nov 4, 2009

I am trying to make a program that will calculate the height of a falling ball for every .25 seconds starting at 0 and going till the height = 0 or until 10 items have been listed. I have started the code, but it just isnt working out!

Dim h, time as double
Dim aftert as integer
Do While h>0

[Code]....

I get an "expression needed" error from the &time& and nothing is displayed in the list box. Not to mention, I have no idea what to put in the loop or how to limit the list to 10 items or until the ball hits 0.

View 4 Replies

VS 2010 Animation - Add An Effect Where A Panel Sweeps Out Of The Way To Make Room For Another Panel?

Nov 24, 2011

I would like to add an effect where a panel sweeps out of the way to make room for another panel. This is sort of like a sliding effect, and I think at one point in time this could be seen on Apple's website under their product pages. I came up with some code, but it isn't working.

[Code]...

View 1 Replies

Forms :: Make A Label Control Transparent Over A Panel Control?

Jul 9, 2009

I'm trying to make a label control transparent over a Panel control.However by setting the background colour of the label to Transparent, it actually sees right through to the form itself, not the panel as intended.

As an example we use a panel with a background as white, we make the label transparent, however it gets the form�s colour as blue.However, we are using a custom panel control and need the label to be transparent over the panel and not see the forms background.

View 4 Replies

Panel Alignment - Center The Red Panel In The Middle Of The Dark Grey Panel ?

Jun 6, 2009

I need to center the red panel in the middle of the dark grey panel, when you resize the form the red panel should be in the middle, and the red panel can't be resize, anyone have a code or property to do this?

View 2 Replies

Forms :: Closing A Form In A Panel

Aug 3, 2011

Iam a beginner to vb.i have a project work,related to Quotation software.i want to know how to unload all forms that are loaded on to a panel when clicking a Button.here i did some codes, in that, one error is displaying like "Collection was modified; enumeration operation may not execute." the code is given below:[code]

View 1 Replies

Forms :: Dock A Toolstrip To The Top Of One Panel ?

Jan 18, 2011

This should probably be a different topic, but the reason I was cutting/pasting is that I have a split panel form. I dock a toolstrip to the top of one panel, and then add a datagridview control. I set it to dock to parent, and it does, but goes under the toolstrip, hiding the top of the grid and scrollbar. Not acceptable of course. Is there a setting that I'm missing?

View 2 Replies

Forms :: How To Change Location Of Panel

Mar 7, 2009

i want the panel to center itself evertime i change the size of the window. how do i do it? panel1.location.x=form1.location.x doesent work.

View 1 Replies

Forms :: Locate Panel To Near Button

Aug 10, 2009

i have 12 button and 12 panel hooked at this button.but sometime after i clicked this button,that panel not at position i want.So, how to locate this panel for good looking and at position i want? to left,up and down.tq for your help.

View 3 Replies

Forms :: Scroll Bar On A Winform Panel?

Nov 19, 2010

Is there a way to hide the scroll bars on a VB.Net panel? We have written code to allow the user to scroll using a touch screen and do not need to see the scroll bar. I know it has to be there for the scrolling to work, but would like to hide it from view.

View 3 Replies

Insert A Collapsible Panel In Forms?

May 5, 2010

how to insert a collapsible panel in forms??? i need to create a simple quiz application, so that i want a panel.

View 2 Replies

Game Programming :: VB Game Help Sprite Keeps Falling Through Objects?

Nov 16, 2008

I have been making a game similar to mario for learing perposes. I got the sprite to move left right up down but I still have no gravity nor can I jump. But i need to know how to make it so that my sprite dosent go through objects?

View 3 Replies

Forms :: Add Several Labels (boxes) Onto A Panel - If Condition

Apr 6, 2011

I'm currently trying to make a beat generator, which allows you to add several labels (boxes) onto a panel, and then sound will be played when the "play slider" reaches the same x-value. However, i can't make the slider find the boxes. OK, so this is what I've got so far! Clicking my button, a label named sound0, sound1, sound2 is added to my panel_back (which is the background of the player) Private Sub btn_addkick_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_addkick.Click


[Code]....

View 3 Replies

Forms :: Clear Lines Drawn On A Panel?

May 20, 2011

how to clear lines drawn on a panel.on some event i want to clear lines which r previosly drawn

View 3 Replies

Forms :: Error When Creating Panel At Runtime

Jun 23, 2010

When I want to create a new panel at run time when I clicked a radio button it displays an exception at panel2.location.

Dim panel2 As Panel
Private Sub RadioButton5_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton5.CheckedChanged
panel2.Visible = True
panel2.Location = New Point(200, 300)
panel2.Size = New Size(200, 300)
Me.Controls.Add(panel2)

View 2 Replies

Forms :: Listview - Cannot Increase The Size Of Panel

May 12, 2009

I am using a textbox which handle the name of the employee and when it get focus i am using a listview with detail view which shows all available employees and user have to select any of them. I am using all this control in a panel, unfortunately listview need more size then panel, and i cannot increase the size of panel. But placing listview inside the panel make its child control and hide the half list view. Is there any way that i can show full list view control under the textbox?

View 2 Replies

Forms :: Open An Instance Of Explorer.exe In A Panel

Oct 24, 2008

I'm having a hard time getting this code to work, here's the code, I'm trying to open an instance of explorer.exe in a vb.net panel. Imports System.Runtime.InteropServices

[Code]...

View 2 Replies

Forms :: Panel Offset Index Property?

Oct 19, 2009

I use drag'n'drop from a datagridview to a panel. The panel holds an array of objects (think rows) so that the items from the datagridview can be dragged to the different objects. I use the y-index from the top of the panel to define what object the item is dragged onto.This works great as long as the object is visible from the start. However, if I scroll down to an object and then drag the item from the dgv, it gets released on the wrong object, as the y-index doesn't take into account the number of pixels I scrolled down. So, what I need is (if it exists) the scroll offset property for the panel, i.e., the number of pixels that I scrolled down. (Then I can add this offset integer to the y coordinate on which the user drops his/her object.)

View 5 Replies

Forms :: Scroll One Panel With Another Panels Scrollbar?

Sep 21, 2009

I have two panels, and I want them to both scroll horizontally with one scroll bar, but I only want one of them to scroll vertically. So if I have a large panel on autoscroll, it works fine for that panel, but I have another smaller panel above that, could I make the smaller panel scroll horizontally with the larger panel's horizontal scrollbar?

View 2 Replies

Seech Recognition Control Panel On Forms?

Aug 12, 2011

I'm doing a research/project at school and I'm baffled with some problems. I already integrated some features of speech recognition using the Speech Recognition Object Library and using some Speech Recognition Library Scripts. Now the problem is I'm having trouble on how to add the whole speech recognition control panel on my form. (if not the whole control panel some features of it like adding new profile and training.) I'm using windows 7 ultimate edition and visual studio 2008 professional.

[Code]...

View 7 Replies

Show All Open Forms In Flow Panel?

Oct 1, 2010

im trying to get my from to have a flow panel that shows all open forms and it has to refresh its self when a form open or closes. Ive already kind of done this but im sure theirs a much better way to do it.

The Code im using at the moment is:

Private Sub formcheck_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles formcheck.Tick
Dim formTitles As New Collection

[Code]....

View 14 Replies

VS 2010 Create Forms With Panel Opacity

May 30, 2011

I want to create forms with panel opacity, but this is not possible. Panel's don't have an opacity option and making the entire form transparent, makes everything you put into it just as transparent.

[Code]...

View 12 Replies

Buttons Are Opening Wrong Forms Inside A Panel?

Mar 18, 2010

not quite sure why this is happening but I am just debugging right now and the buttons I am using are opening the wrong forms, I have made sure of the form names, button names etc and it looks all good but specifically the btnPrintReport is opening up the form enterAuditForm while btnProcessAudit is opening printAuditForm instead of their correct ones.

Here's my code, it is rather simple. The reason why I am using a separate sub as my btnPrintReport is because I am using that also on the baseForm's OnLoad Event, which again is also opening the wrong form.

[Code]...

View 4 Replies

Forms :: 3 Panel Strech On Form Size Change?

Sep 12, 2011

I thought this would be easy but for some reason it's giving me a rough time. I have a windows form with three equal size panels on it. Each panel takes up about 1/3 of the window width, less some inter-panel spacing.

The effect I want is if the user stretches or shrinks the form the panels maintain their relative 1/3 width and spacing, similar to how divs on an html page would size as the browser window is sized.

So I anchored the left panel to left, top and bottom, the center panel to top and bottom, and the right panel to top, bottom and right. This works fine in keeping the left and right panel anchored to their respective sides, and all panels now stretch with a form height change.

So in form resize I adjust the width of each panel to form.width/3. As expected this is close but does not account for the inter-panel margins I want to preserve and the form border width.

I played around with various constants and noting I do gives me the desired effect.I'm sure there is a pretty straight forward solution to this but I can't seem to find it.

View 2 Replies

Forms :: Creating Checkboxes In A Panel That Represent The Seats?

Jul 6, 2011

I have a theater seating project. I am creating checkboxes in a panel that represent the seats. Each of the rows has a label on it, giving it a row number.When a user clicks one of the check boxes, I need to be able to determine what row the seat was that they clicked on. I then use the row number to determine the price of the seat. I am stumped!! I can't seem to figure out how to get the row number associated with the seat. Here is my where I am configuring the seats:

Private Sub ConfigureSeating()
intTheaterID = CInt(frmTheaterTickets.cboTheater.SelectedItem)
Dim strSQL As String

[code].....

View 5 Replies

Forms :: Opening A New Application In A Panel Of A Windows Form?

May 14, 2010

i have a query of opening a new Application(eg. UgNx,Ansys)file with in a Panel (Which is already dropped on a Window Form).

For Example :-There in one Window Form and i have fixed a Panel there now with in the panel i want to open a new Application like other softwares UG NX or Ansys.

View 2 Replies

How To View Wordpad Document Inside Forms Panel

Oct 25, 2009

Iam using vb.net 2008.I have richtextbox. I save as wordpad format [rtf] file. Now I need to view it in inside the panel of my form.[code..]

View 1 Replies

Make Panel Upside Down?

Apr 8, 2010

Is it possible to just entirely flip the contents of a panel upside down?

There isn't really a reason for this, I'm just curious and I've been messing around but I can't find anything? Has anyone managed it before?

View 1 Replies

Make Textboxes In A Panel?

Feb 16, 2012

This works if I don't have an IfElse statement but even then it only shows 1 txtBox().I want 4 panels and 4 rows of textboxes in each one. with multiple txtbox()'s in each oneI'm just starting on it, but as usual I hit an error, see below. Also, how do I get this code in here without the double spacing problem?

Dim pnlbox(4)
As Panel
Dim txtBox(70)

[code].....

View 13 Replies

Make Transparent BG Of Panel?

Jun 18, 2012

My Project is Hair Sytle simulator all I need is to transparent the BG of the Panel

View 1 Replies







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