Make A Project For Programming Class In VB?

May 11, 2009

i have to make a project for my programming class in VB and this is basically what i want to do in pseudocode form

1. Display initial form

2. Choose from one of two to four choices (my discretion) via Button or radio, whichever is easier
3. once you click next, or the choice button, display next form depending on which choice and close the old form.

View 3 Replies


ADVERTISEMENT

Game Programming :: Make Snake In VB For Major Year 12 Project In Australia?

Apr 3, 2008

im trying to make snake in visual basic.net for my major year 12 project in Australia and i cant get it to work?

View 5 Replies

Make A Class Permanently Available To Every (new) Project?

Nov 1, 2009

created a class that adds a TextBox with some custom properties to the toolbox. But it's only available when the project I created it in is opened itself. I'd like to have available it in the toolbox at all times.

View 3 Replies

Make Class Useable By Entire Project?

Aug 21, 2010

I created a class with a function. How can I make this class usable by other classes and other forms within my project?

View 9 Replies

Server Path - Added New Project Class Library To Make Dll File

Jun 14, 2009

I am just added new project class library to make dll file. when i write the first line i got this problem

Dim objStreamReader
As
New
StreamReader(Server.MapPath("TextFile.txt"))

name 'server' is not declared

View 11 Replies

Make A Project Where A Teacher Views A List Box With A List Of Students Of A Class?

Nov 5, 2011

I wish to make a project where a teacher views a list box with a list of students of a class. When he selects a name from the first list box the second listbox would change its data to show the grades for that one student.

View 10 Replies

Game Programming :: Refering To A 2nd Imported Project, Within The Same Solution?

Jan 21, 2011

i Imported 2 programs that I made into one solution. I made a "BIG" main menu (new windows form), put two buttons. I code one button to open up the first project (that works fine). I code the other button to open the project I imported, however it says that the name is not declared. Am I doing something wrong? here is my code for the "BIG" main menu:

[Code]...

now only the "Original name of first project" appears to be not declared, if I delete "Original name of first project", then "the project I imported"is not declared and so forth. Note: These are not the exact names I called my forms. I'm just trying to explain it clearer.

View 2 Replies

VB 2008 Programming Projects For IT Class

May 27, 2010

I have encountered on my project that was due in 2 days ago. I have created a form that will not display correctly. Here is the assignment and what I need to accomplish. Major issue the display bill box.

[Code]...

View 4 Replies

Programming ZigBee Software Using Vb Class Library?

Jun 9, 2009

currently im doing this industrial proj for my sch final year project

its about ZigBee....i need to ask if anyone here knows how zigbee works..if not its very hard for me to explain by typingg it all out..im focusing on the AT Remote COmmand and im using the X-CTU software to ttest out the ports..this is the thoery part

for the programming part which is the main thing im suppose to produce....i gotta drag a serial port to the apps UI...create a class library using VS 2008 in vb to make the software become flexible..in the sense whereby cos currently i got a master port and a remote port...i need to calculate the hexadecimals for my remote port to control the mode of the remote port for example on and off..

if i do purely hard coding... this is the code i came out wid Dim onBuff () As Byte = (&H7E, &H0...so on and so forth)

port.Open()
port.Write(onBuff, 0, onBuff.Length)
Port.Close()

the result i get is the remote port will on...subsequently...to off it..i got to calcute the 'off' hexadecimals..

however 1 ZigBee chip has its own hexadecimals and i can connect tons of remote port...so now i cant hard code the hexa..i got to find a way to use vb to create a class library so that instead of fixed hexa i can make it flexible

i know its very hard to understand thru typing...cos best is gotta deomstrate..apparently its very hard to do it here..so ya..thats why its best if got ppl here who knos abt ZigBee

View 4 Replies

Saving Data As A Class And Other Programming Language

Apr 16, 2012

If I save some data as a class and I serialize it all done in vb.net. What happen if someone with another language like PHP whats to use that data will be that possible directly?

View 2 Replies

Game Programming - Class Change - Add An Undo Option

Apr 11, 2008

I have a map editor program for the rpg game engine I made and am trying to add an undo option into it. The map is stored in a class so i made a array of the class then added this code for when the map is changed [Code] but when i do this all the maps in the array get changed when the player edits the map.

View 4 Replies

Game Programming :: How To Destroy An Instance Of A Form Class

Feb 17, 2009

I am writing a chat application quite similar to MSN and others alike, where you have a main window that can spawn several chat windows.So I have a chat class form (called frmChat) that I just instantiate whenever I need it, with the following code from the main form:[code]In this form I have a button labeled as 'End chat'. I would like not just to close the form, but actually to destroy its instance in order to dispose memory. I tried what would seemed to be to me the more direct and obvious way to do that (see below), but unfortunatelly VB syntax checker doesn't allow me to do that:[code]

View 3 Replies

Socket Programming And Telnet Class For .NET To Simplify The Sending And Receiving Of Data?

Sep 28, 2009

I'm writing a GUI-based app in VB.net that talks to a LambdaMOO server via telnet, sends commands to display the object hierarchy, then parses the output and creates a visual representation of the object hierarchy.So my question is: is there some kind of "telnet client" class for .NET to simplify the sending and receiving of data, or do I have to write my own using the socket API?

View 7 Replies

Game Programming :: How To Make Pic Follows Another One

Jan 5, 2011

When my picHero enter a room where a picEnemy exists I should make the picEnemy follows picHero no matter how it moves up, down, right, left and as picHero is moving 5 px i want to make the picEnemy moves 4 px. I've tried to do use a condition as
Code:
if(picEnemy.location.X <> picHero.location.X) then
location = new point (picEnemy.location.X+4, picEnemy.location.Y)
picEnemy.location = location
endif
Also for the Y axis, but it didn't work.

View 18 Replies

How To Make Database Programming

Jul 30, 2009

I am working with MS Visual Basic 2008 Express Edition and MS Access 2007. I have managed to populate a temporary table with data from a text file containing eight fields. I have applied the namespace System.Data.OleDb What I want to do now is: 1) to order the data by a specific field (let's say Fld4); 2) delete duplicate records; 3) append the sorted data to a main table; 4) write the data from the temporary table to a new text file and save to a folder; 5) clear the contents of the temporary table

View 3 Replies

Exactly Do Classes Make Programming Eaiser?

Apr 16, 2012

So i learned about classes today and i am totally confused about them. How exactly do they make programming life eaiser? I though Functions and Sub Procedures were making my programming life easier

View 4 Replies

Game Programming :: How To Make A Picture Box Bounce

Dec 19, 2009

Im New To VB and i was wondeing how do you make a picture box bounce from the sides of the form.

View 8 Replies

Game Programming :: How To Make Question Box (msgbox)

Jul 8, 2010

I am making a game in vb.net and was wondering how to make question box eg. if a person clicks on a button he gets a message boxs which asks him a question he has to answer. the msgbox should have a text box or something for input and if their answer is the same as the one i have specfied then the message box says correct. if not then says it is wrong.

View 6 Replies

Game Programming :: Make A Manabar That Will Drain?

Jan 8, 2010

I'm trying to make a manabar that will drain, using this code

Code:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Start()
End Sub

[Code]...

View 7 Replies

Game Programming :: Make An Object Move?

Aug 13, 2009

something like this

pctObject.horizontalPosition += 5

I just dont know the right syntax

View 2 Replies

Can't Make Difference Between Public Class And Private Class And Friend And Protected Friend Class

May 15, 2009

I can't make difference between public class and private class and friend and protected friend class.

View 1 Replies

Using A VB Class From The Same ASP.NET Web Site Project In A C# Class?

Jul 23, 2010

I have an ASP.NET web site project where I am using both VB.Net and C# class files. I have included separate sub folders in the App_Code directory for classes of each language.However, while I can successfully make use of a C# class in a VB class, I cannot do the opposite: use a a VB class in a C# class.

[Code]...

I get an error that "the type or namespace "VBTestClass" could not be found". What am I missing here?

View 4 Replies

Game Programming :: How To Make Ghosts Chase PacMan

Mar 22, 2011

I am having some trouble working out how to make the ghosts chase PacMan. I have made all the code and stuff work with needing a grid maker thingy. I have do in all by placing the walls (pb's) myself and also with the pelets (food). Though I have a problem with getting the ghosts doing their job, they only just change image with a timer tick. Any simple way of making the ghosts chase you?

View 4 Replies

Game Programming :: Make A Button Spawn An Object?

Dec 20, 2009

I have a button named cmd_Grunt and a picture box named pb1_Grunt. I want to click the button and have a picture box created.

"Public Class Form1
Dim grunt = (50)
Private Sub cmdGrunt_Click(ByVal sender As System.Object, ByVal e As

[Code].....

This is the code I have so far. I get an error message, "Expression expected." It wants the expression between "CreateObject" and "('pb1Grunt', grunt))".

ie cmdGrunt_Click(CreateObject HERE ('pb1Grunt', grunt))

View 19 Replies

Game Programming :: Way To Make Screen Follow Sprite?

Nov 18, 2008

is ther any way to make my screen follow my sprite? I want the visable area of my game to change when my sprite moves past this X value 284 but i can not figure it out ill post my VB Express code below

Code:
Public Class Form1
Dim Y As Integer

[code].....

View 2 Replies

Game Programming :: Dice Rolling Program - When Using Rnd Fucntion How To Make It 1-6 Only

Dec 17, 2008

So my question is, I'm wiriting a VERY basic dice rolling program for my computer programming class in high school. I'm using a randomize function to generate numbers but I only want it to do numbers 1 - 6....how do I do this?

Dim x As Integer
Randomize()
x = CInt(10 * Rnd())

Dim Y As Integer
Randomize()
Y = CInt(10 * Rnd())

That is my code for my x and y (each die) to generate code, but how do I make it do 1 - 6 ONLY? Develope a game that in which a player rolls two dice. Each die has 6 faces. Each face contains 1, 2,3,4,5,6 after the dice have come to rest the sum of the spots is calculated, if the sum is 7 or 12 on the first throw, the player wins. If the sum is 2,3, or 11 on the first throw, the player loses, and the house wins. If the sum is 4,5,6,8,9,10 on the first throw the sum becomes the player's point. To win, a player must roll the dice until the plater rolls the point value. The player loses by rolling a 7 before rolling the point. I also have another question, How would I set this up to keep up with points and stuff? and the part that says "The player loses by rolling a 7 before rolling the point." I have no clue what to do on that. I'm not asking for code hand outs. I'm just asking what functions and such I'd use to write the code.

View 6 Replies

Game Programming :: Make The Program Know When A Black Stone Is Surrounded?

Oct 23, 2009

I'm not positive if this should be here or in graphics so I'm sorry if I'm posting it in the wrong section.I'm trying to make a program for the game Go. Now before getting upset that I want to make the game go I just want to say that I have looked for months for this specific thing and I still have yet to find it. I want to make something to simulate go so that two people can play on the same computer. The problem I ran into was capturing stones. Stones are captured when surrounded and then they are taken from the board. The problem is that I don't know how to make the program know when a black stone is surrounded.

I have thought of a grid detecting but the possibilites on a 19x19 area are too high for anybody to sit down and program. I have also thought of using picture boxes and the edges to detect other pictures, but there are ways for stones to group together and the opponent must surround all stones to capture them.

View 3 Replies

Game Programming :: Make An Hpbar That Changes Color With Respect To Percent Health?

Dec 22, 2010

does anyone know how to make an hpbar that changes color with respect to percent health?ive been trying to come up with an algorithm that would give me r g b values depending on how much the character has left (%).

Supposedly if the character is near death or has low hp, the algo would out put r=255 g=0 b=0 and if mid health r=0,g=255,b=255 (or watever yellow is), and if full g=0. but i need a smooth transition

View 2 Replies

Want To Make Text Based RPG Game Will 'upgrade' As Programming Knowledge Grows

Dec 12, 2011

Well this is a re-post now as nobody replied in the gaming section, and i believe this question could go as a normal VB question, therefore I'm asking in this category instead.I have decided to pick up on programming and want to make a text based RPG Game i will "upgrade" as my programming knowledge grows.I got some ideas that i think i should use, but i want you guys' opinions on it.I assume I'll use different classes for each monster, which will have properties.Should those monsters then be inside a list of all possible monsters, or would i have a monster class which i would use and generate the enemies when needed? And would i use the same approach on items and character stats?

View 4 Replies

Game Programming :: Developing A Game To A School Project

Jun 3, 2010

I am developing a very simple game in visual basic 2008: a roulette. And yet I found problems in develop it.My question is this: I have an image ,containing all the roulette's numbers and I want to associate the spaces of the different numbers to different buttons, so that which time I click in a certain number on the image it dos some action.How can make this association of the different spaces in the image and different buttons?

View 3 Replies







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