Ripple Tank In VB2010 Forms?

Jun 13, 2011

I'm attempting to make a ripple tank such as this in VB 2010. I'm not trying to make it as complicated as that, at the moment I am making each wavefront from an.graphics.DrawEllipse.The problem I am having at the moment is making the ellipse expand properly. I'm using a timer to add one the the ellipse's radius on every tick. Another problem following that is how to make it continuously fire wavefronts so that more than one is on the form at a

View 4 Replies


ADVERTISEMENT

[vb2010]make Inheriting Forms?

Feb 13, 2012

I have created a Windows Form inherited from an existing form using the Inheritance Picker: Project menu ==> Add Inherited Form.So now I have the Form-base (FrmP1) and the inherited form (FrmP2)The form works perfectly. If I open the "code" window of FrmP2 I can see only the main class:

Public Class FrmP2
End Class
I have added now a FormClosed event in P2:

[code].....

View 6 Replies

Switching Between Windows Forms A Few Unclear Instances [VB2010]

Sep 27, 2010

I am making a visual basic game. And in the game I have a few instances where I want to call open a window (let's save to save the user's preferences) from a form, then I want to go from that form to another one.

Example:

The user has completed the new game page. I have the users choices in a host of string, integer, and boolean variables. Now I want to use a generic saving screen I made with a progress bar. When I open up the saving box, I want to close or hide the new game setup menu (whichever I need to do). Then when it is done saving I want the Saving bar to return and cause the new game form to open the actual game form and close itself.

So I guess my question is this: What is a reliable(or correct) way to poll for a return in form to signal it to go ahead with execution?

Second:

This is similar to the first question. Instead of keeping the first form open when I use the saving form; is there a way I can save the name of a page I want the saving bar to go to once it's done?

I want the user to enter their prefered username before they start a new game for the first time. So I poll the saved username setting I have and if it equals "username" I want the Username entry form I made to pop up, but once it's done I want it to immediately call the new game screen. I also want to use this username entry form on the options screen so that the user can change their accepted name at anytime; but I want this screen to return back to the options screen.

What is the accept way to do this? Is it done through stacks? (form information -> stack : load new page : Do stuff: load stack value -> goto)

Finally:

Do I have to keep a window open (not close it) to access the variables that I have defined in it, and have stored values too? Does this apply to hiding too?

View 1 Replies

Converting Vb6 To Vb2010?

Dec 17, 2010

Most conversion tools will still use VB6 syntax And so don't many people coming to .NET from VB6 - drives me nuts.Rewrite your program from scratch using all .NET syntax and not legacy VB6 syntax still supported in the .NET world.

View 9 Replies

Difference Between VB6.0 And VB2010?

Jun 12, 2012

I have studied VB 6.0 but have hardly any knowledge of .NET. Can someone please tell me the difference between the three versions namely VB6.0, VB 2010 express and VB.NET?

View 1 Replies

Getting CPU Usage In VB2010?

Aug 2, 2010

im using visual basic 2010 express and im wanting to know how i can display the CPU usage (over all CPU usage like you would find on the task manager), the RAM usage, the temperature, and the frames per second all in separate list boxes.I have searched around on the internet for a long time looking for the code's to do this, none seem to be compatible with the 2010 express version.

View 12 Replies

Getting The FPS (frames Per Second) In VB2010?

Aug 11, 2010

Im creating a program that shows the CPU usage (already have the code for the CPU usage) frames per second etc, what im needing is the code snippet fordisplayinghe current FPS in a list box, but i also want the FPS to automatically refresh once a second

View 2 Replies

VB2010 - Using VbNewline In RTF?

Mar 15, 2012

I am creating an RTF file programatically so that user input can be formatted and I can control the font.There's two problems:

1. vbNewLine doesn't seem to work. I've also tried vbCrLf and that doesn't work either. I just want to introduce another blank line and not sure why it's not working.

2. Is there a way to use tab print positions to format things so they're not all just aligned left, center or right? (like tab(20); something etc..)

Here's my code:

Public Class Form1
Private Property richtextbox1 As Object
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim something As String

[code]....

View 12 Replies

VB2010 Install

Jan 6, 2010

I'm using VB2008 SP1 Express Edition, but I want to install VB2010 Beta 2 Express Edition. I use Vista but next week I'm going to install Windows 7, Could this harm my Windows 7 Installation?

View 6 Replies

.net - VB2010 - For Loop Exiting?

Aug 2, 2010

I have a simple for loop with the following code

For i As Integer = 0 To 4
Snake(i).X = (120 - 20 * i)
Snake(i).Y = 120
SnakeBody(i).Location = New Point(Snake(i).X, Snake(i).Y)
Snake(i).Facing = 3
Next i

But for some reason I unable to debug it. I place a breakpoint on the line Snake(i).X = (120 - 20 * i) and When I try to see what the values are the second time the loop iterates it simply exits the loop.

View 1 Replies

.net - Vb2010 Connect .mdb File?

Apr 5, 2012

i make the vb homework first, connect the mdb file, then login. In the mdb file, there have login account and password.when i run the program, it have some problem:"dataAdapter.Fill(dt)" highlighted, The 'Microsoft.Jet.OLEDB.4.0xxxxxxx.mdb' provider is not registered on the local machine.

[Code]...

View 1 Replies

Access External DLL In VB2010?

Jul 22, 2011

I have a DLL that I made in FORTRAN to do some number crunching. It works in VB6 and in VBA within Excel. But I cannot get it to work in VB2008 or VB2010. If I try to access it the subroutines in the DLL I get either, 1) Structure of DLL invalid error or 2) Cannot find the DLL error.

Here is my VB2010 code for a smaller demo app that came with the FORTRAN development system. Again, this works with VB6 and VBA but not with VB.net

vb.net
Imports System
Imports System.Runtime.InteropServices
Public Class Form1

[code]....

View 3 Replies

Add New Value To Integer Array (VB2010)

May 14, 2012

I've a dynamic integer array to which I wish to add new values. I've looked elsewhere but couldn't find anything definitive.

Dim TeamIndex(), i As Integer
For i = 0 to 100
'TeamIndex(i).Add = <some value>
Next

View 2 Replies

Application - Conversion From VB6 To VB2010?

Sep 1, 2010

I'm wanting to use a bit of code to in a VB2010 application, however the code is in VB6. How would I go about converting this from VB6 to VB2010? I've personally never done a conversion of complete code like this.

Here is the link: [URL]

View 7 Replies

Check For And Run File VB2010?

Mar 9, 2012

I am trying to check for a file on the system then run that file. Please to do laugh to hard at my code.

[Code]...

View 8 Replies

Connect MySQL To VB2010?

Apr 28, 2011

How do i connect MySQL to VB2010. eg Provider=???

View 2 Replies

Conversion From VB 2008 To VB2010?

Oct 4, 2011

I created a program using VB 2008 to aid me on design work-related calculations that uses Access mdb file for displaying info. and calculations. But I experienced an alarming problem when I converted it to VB 2010 The program execution works in VB 2010 but it can't display the data from an mdb database file.

To simplify and simulate the problem, I created a simple identical program in VB 2008 and VB 2010 showing a window that displays a data extracted from an mdb database file. Both programs run as intended in each environment. When I open the VB 2008 created program under VB 2010, VB 2010 converts it and when I run the program, it doesn't display the data at all.

View 5 Replies

Convert Codes From Vb5 To Vb2010?

Dec 25, 2010

Private Sub txtTerm_KeyPress(KeyAscii As Integer) '4078D0

[Code]...

View 1 Replies

Convert Form Vb6 To Vb2010?

Mar 15, 2012

I just converted my project from vb6 to vb2010 and am getting this error

Error11Name 'cdPrintSettings' is not declared.C:\Users\IT\Desktop\trial\TETRAD_.NET_UPGRADE\TetradUpgrade.NET\frmInvestorStatementPrintDialog.vb278Tetrad upgrde

View 1 Replies

Differences Between Vb2008 And Vb2010

Jun 22, 2010

what differences between vb2008 and vb2010.(OOP)

View 3 Replies

Disable Alt Tab, Alt F4 And Windows In Vb2010?

Feb 23, 2012

disable the alt tab alt f4 and windoww?

View 3 Replies

Formatting Excel From VB2010?

Mar 9, 2011

I am an Engineer and have been programming VB6 for 10 years and now writing in VB2010 Professional.I am trying to write technical data to Excel which works fine with this code: In a module I dimension

Public appExcel As Object
Public wbook As Object
Public wsheet As Object

[code]....

I got this code by recording macros and transferring the code. Everything after the "=" sign gets the error "is not declared. It may be inaccessible..."

eg .LineStyle = xlContinuous The error items are shown in itallics.

I sure would appreciate some code that opened current worksheet, write to the worksheet and do just those formats that I mentioned (cell color, border).

View 4 Replies

How To Print In Landscape (VB2010)

Sep 1, 2011

I designed a listview inj VB2010 using a tutorial on the web. It has Add, Delete, & Edit buttons. I added a fourth button to print the contents of the listview but it only printed in Portrait. The code I used to try to print in lanscape is below. What needs to change?

Private
Sub
btnPrevieworPrint_Click(ByVal

[code]....

View 5 Replies

Import A Vb6 Project Into VB2010?

Dec 18, 2010

Is it possible to import a vb6 project into VB2010?

View 1 Replies

Importing VB5 Projects Into VB2010?

Jan 7, 2010

Is it possible to import an old visual basic 5 project into 2010?

View 3 Replies

Make A Webbrowser In VB2010?

Mar 22, 2011

i am trying to make a webbrowser in VB2010, but one major roadblock that has been in my way for a while, is the fact that i can't get my bookmarks bar to work

i have no code to show you and i am completely open to ideas as long as i use a toolstrip just make sure that the bookmarks work and they are Saved when the program is closed and opened again.

Notes:

instead of "WebBrowser1" use:
"
CType(TabControl1.SelectedTab.AttachedControl.Controls.Item(0), WebBrowser).PutWhateverHere()
"

(i am using a dotnetbar tabcontrol so i need the "AttachedControl")

the toolstrip i am using in this case is called "BookmarksBar" so please don't use "ToolStrip1"

View 2 Replies

Multithreading DotNet4 & VB2010?

Jun 9, 2011

And so I decided to make a multithreaded application :'( I am new to multiple threads - so my problem is this...4 Threads1 Array of lets say 100 stringsHow do I make the 4 threads access the same array - also, once one string has been used(read) - it will be removed by a function that I have written already.

View 4 Replies

Reference.AddFromFile VB2010?

Apr 22, 2011

I am developing an application add-on that needs to reference a DLL contained in theapplications install folder. Trouble is the application install folders are not always the same from one machine to another.I am able to read a registry key that gives me the path to the DLL.I've done a lot of Google searching and have found the"References.AddFromFile(filename)" function but when I try to use this in VB2010 I get an error message saying "AddFromFile is not a member of VSLangProj.References".

View 5 Replies

Speed Up VB 2008/VB2010?

Apr 26, 2012

-Add /nosplash to shortcut by right click short cut, click properties and in target, put a space and add it.

-Disable F1. (Environment->Keyboard)
-Disable "Animate environment tools" (Environment->General).
-Disable Start Page (Environment->Startup).

[code].....

View 9 Replies

Spreadsheets And Charts In VB2010?

Apr 6, 2011

My project that I had built used spreadsheets and charts within the forms to provide the user with the necessary data. This worked fine for VB2008 as it had all of the ActiveX office web components built into it. It seems that VB2010 has a different set of base components and emphasis office 14.0. I was wondering how people have gotten around this or if they can. I tried using DataGridView, but it doesn't seem to be able to do what I want to do. I need the ability to have users enter data into a table and then use that information to be able to build graphs real-time based on their data.

View 2 Replies







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