Post A Simple Code Using VB That Start Building Simple Games?Jun 10, 2011
Is there anyone can post a simple code using vb,that start building a simple games ?
Is there anyone can post a simple code using vb,that start building a simple games ?
I am building a simple form wicht allows the user to update the data on it.I use this
With a 1-many relation. Ok, I have constructed the schema, and now I want to make the appropriate forms in which a user would scroll for a customer and then by pressing a button, a new form would appear showing all the orders that he has made.
I am interested in the way of building two forms that would have a one to many relation. That is basically what I would like to know. Also, Do you have any good book to suggest in order to create a real world app, in VB2008, Emphasizing in data-binding and connecting controls with underlying DB, one to many forms, searching etc.
I am trying to build a simple app that will start another program.The command line that works in a dos batch file is c:program filespixellWall Controlwallctl.exe -layout=c:1.lay with my code below this works, c:program filespixellWall Controlwallctl.exe but the switch info above doesnt get passed, I get a run time error.
Public Class Form1
Dim layout1 As String
Dim layout2 As String
Trying to make a simple browser with some simple addon's. What Ive done is setup a menu(forum) for the user to enter their email providers web address and it will save it in a xml file. When they click on the email link, it should load the email xml iformation and place that info in the tb_html.text and navigate. I keep getting a null exception and im not sure what going on here. Here is the code:
Private Sub btn_Email_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_Email.Click
Dim SavedEmailObj As Storage
I am a total newbie when it comes to VB but I'm starting off with a few simple projects I've completed already! Basically Ive seen MANY stopwatch tutorials but none so far have been able to do a simple format of Second and Milliseconds 00:00 and NONE have been accurate in the slightest and have been totally off! create a simple stop / start stopwatch that is actually accurate that would be great as Im going around in circles trying to find a tutorial on this!View 23 Replies View Related
I want to start a Windows Forms Project (VB.NET) using a simple text editor like notepad. I'm not interested in creating a button and other controls from scratch, I just want to know how to create a form, initializing controls without using the wizard.how to use command-line to compile the whole project?View 2 Replies View Related
code for calculator using vb.netView 2 Replies View Related
provide me a simple code to connect .net and MSAccess? also provide me the details of where to find ADODB control.View 6 Replies View Related
I'm trying to do the very basic add "hello" to a button. The instructions tell you to click on the button the tutorials say the code that is supposed to show starts with "public class form1" but when I double click the button it seems to open the whole code of the template, not the button. (and no where in the code shows the "private sub button1_click")View 17 Replies View Related
Simple Code lookup to get Description I have a static list of Street Type Abbreviations and their associated Street Type Descriptions: RD to Road. I have the complete list needed. There are 37 elements in the list - 37 Street Type Abbreviations with their associated Descriptions. The lookup will only happen once. The input lookup field is in a single field: stType. Not trying to get fancy. but what is the best approach? Dictionary, List, two dimensional array, etc. Started with Dictionary but the .Add was getting redundant. Two dimensional array let me initialize the values, but searching an old school loop.View 1 Replies View Related
I've designed a Arithmetic Calculator. I can get my additon button to work but not my multiplication button. My result total comes back as 0.
I am currently writing a program in Visual Basic 2008 express edition to read and write to tags on an Omron PLC. I am using the DeviceXPlorer OPC Server V188.8.131.52 program to connect to the Omron PLC. I have made two programs, one is a form program which works fine, two is a windows service program where it does not let me connect to the OPC Server. The connection code is identical, the only difference is the windows service code is called by a timer. The timer works fines and jumps into the connection code, but stops at the line
I am not a computer programmer and I have never used Visual Basic before but I have to take a class about using it. I am trying to make a simple Area calcutor but what it is telling me in my book to do isn't working.View 1 Replies View Related
I've created an application, And now need to add the chat feature. It just needs to be basic, But im un sure on how to code one since i am still a beginner at Visual Basic. I know there is a way via TCP Listener using Net.Sockets, But im stuck there. I am totally out of my mind when i think ill know how to code. But here is how the chat will work[code]...
Server side, Is just to host it. I will host it on a windows vps with ports opened, and Anyone who downloads the program can connect to the chat. The username or Nickname of the user will come from 'My.Settings.username'. At this point I am willing to pay someone to code this project.
I recently started working with Vb.net and I am just trying to create a class that has two properties one is StoreName and the other is StoreImage. What I am trying to do is figure out how to create objects using this class? Each object will be a Store that has a corresponding Name and Image to go with it. Here is the code I have written so far although I am not sure if im headed in the write direction with the function. Also not sure if it matters but I am using ASP with VB?
Public Class Store
Dim NameofStore As String
Dim ImageofStore As Image
Are there any free or cheap Code coverage tools I can use "ad hook" just to run my program and see wich methods that is not runned in the project for that session? Im not interrested in tools that has to use unit-tests or a lots of advanced functions. If possible just "hit'n run".Its for a "fun" event in a "programmer pentathlon". I'll get 10 programmers run a program and the person that cover most code when running it will win.View 1 Replies View Related
Can anyone tell me what is wrong with this code? It looks OK to me but the GetImage function returns the same image irrespective of the filename passed to it (the one corresponding with Id=2 which is the second one found) [code]View 3 Replies View Related
I'm using Real Studio 2011r3.It's just a simple game that's a small maze from a bird's eye view and you've got to dodge enemies and what not.But I've been told to make a map array like this: [code] I've got level1map(13,13) as an integer, and the numbers in the brackets are supposed to be ypos, xpos.Say I make level1map(5,7) as = 1, it'll make both the 5,7 and the 7,5 so that you can't walk into them.. even if 7,5 is still = 0.I could have just left something out somewhere, but I've been trying to work this out for days..Oh, and with the 7,5 will let me walk there if I walk from the left or right.. but not from the top or bottom.View 11 Replies View Related
I'm sorry if this is in the wrong forum or has already been asked, but I'm having a problem creating what should be a relatively simple code for an Excel Project. Essentially, the code is supposed to check if a certain column has Y in it and then copy that entire row onto another sheet and then move on to check the rest of the original sheet. This version of the code seems to do everything but actually populate the cells with the information. Every other attempt I've made has ended with "Application-Based or Object Based Errors". I've worked on this code for a few days now and I just can't seem to get it right. What am I doing wrong?
Here's the code:
i = 2
Do While Worksheets("Main List").Cells(i, 2).Value <> 0
I have a simple poker game that deals out 9 cards into pictureboxes and shows another 3 pictureboxes that hold cards for the dealer. The code itself does what I want it to...even though I'm at a dead end with writing the code further to evaluate the poker hands. I would simply like to add a few labels and a combobox to my form, but everytime I add something, or try to add it I get cast error?
Public Class Form1
Dim ListOfCards As New List(Of String)
Dim dealtCards As New List(Of String)
When I execute the code provided, Word 2010 opens and appears visible and then stops with an error: "COMException was unhandled". But if I execute the code line by line (F8), the code runs perfectly, that is Word 2010 opens, it is visible and the template is opened. The error fails (always) on the third line of code. What is going on and how might I fix it? [Code]View 11 Replies View Related
I want to catch the text from an html page.. you know that when you open any html page in the browser, you will see a text but with formatting.. because it's an html code having a lot of tags...
how to get the text from an html page and ignore all formatting and html code?
Does anyone have a simple code for Moving and Renaming a Image File?
Here is an example of exactly what I need to do.
Ok let's presume the end user is Editing a Record named Mick's Milktart, the DataBase Table Field named ID (Primary Key) has a value of 237.The user clicks a button to add an Image to that Record.
An OpenFileDialog opened and an Image File named "NewImage.png" is selected by the user from "MyPictures".[code]...
I need to simple code in Vb.Net for Open / close USB Port (Windows 7) ...View 7 Replies View Related
So I've created a very simple UserControl that is pretty much just a combo box that has US States in it and a couple properties to return the selected value as an enumeration or a string, etc.The enumeration and string values I'm using are being referenced from an external library which is working. However, when I add my user control to another project the designer-generated code has errors in it. [code] I would assume that this probably has something to do with project settings or something similar for the user control. The control itself is in a separate project and compiled as a .dll which has been added to my main project's toolbox and subsequently added to my form. [code]View 11 Replies View Related
can you teach or give me a code for a simple grading system using VB '10..?View 2 Replies View Related
The example of source code to make a simple notepad?View 2 Replies View Related
There are so many controls, properties, etc in VB 2008 .NET it's mind boggling. I'm amazed at how much this product can do.Does anyone know of a VB 2008 .NET book that describes in simple language and shows sample code for all of those controls, properties, etc?View 5 Replies View Related
I am trying to make a simple program to convert ascii in its code format
Example: Chr(53) & Chr(53) & Chr(54) & Chr(100) & Chr(52)
to a readable format. I understand that this can be easily accomplished by writing in the ascii code into the code will do it but I am trying to create a more interactive method of doing it so I can copy and paste a long length of code into a textbox and have it update a label with the conversion.
for the any of the button in vb the c# code which is written is not working at all after running a form example: exit, message box even these also not working give me solutionView 1 Replies View Related
I'm trying to figure out some simple code to detect when a pixel changes color anywhere on the screen. Maybe with just a msgbox popup when it changes.View 2 Replies View Related
I'm a rookie in Visual Basics 2008 and i am trying to make a program to communicate and read tags from an Omron PLC. I am trying to connect to the PLC via devicexplorer opc server, because it can let me read DInts and Reals from the PLC tags. I have referenced Microsoft ActiveX Datas Objects 2.5 Library and OPC DA Automation Wrapper 2.02. I have made some code which connects to the PLC "in a form", but I cannot use the same code and connect through as a Windows Service program.Here is my code,
Public Sub OpcConnect(ByRef Items() As String, ByVal PLCType As Integer)
Dim j As Integer
Dim TempSvrHandles As Array[code].....
Note: this code is run in a timer on the windows service, it connects properly to the "RSLinx OPC Server", but "Takebishi. Dxp.1" (devicexplorer shortcut) exits the sub routine at MyServer.Connect(PLCServer) ' connect to the opc server.
I'm running VB2008 on Windows 7; I've written out a ver simple piece of code:
ï»¿When I run or debug the code, it asks for the First Number and then just completes the running of the program without asking for the second number and uses some random number. The console.readline() doesn't work either, the console window just disappears.
How do i start a Game or an other application in a Panel??View 2 Replies View Related
find a current and simple way to do this. I'm using VWD Express 2008 and SQL Express 2008.I'm able to get the client's path to the image file using an asp:FileUpload control on the web form.How do I upload the client's image file and display it in the web form's image control?How do I save it to the sqlserver? The image table is already set up with a "Image" data type column. Can the image be saved to the database as simply as other data types?View 3 Replies View Related
I am doing a tutorial for a simple calculator. My question is how can I add code to make a botton that add my tax % to the total amount I have.
Option Explicit On
Public Class Form1
Dim firstnumber As Single
I've declared the variable (presume this is correct):
What am I doing wrong, can't seem to do anything I used to in classic ASP!?
i want to desing a simple application which will be developed on a pc but will work on a MAC.Now im guessing that if i make an app in pc vb net it will not work on a mac right? So what if i design a web application. could the mac user then use it as it is web based?View 4 Replies View Related
I have developed a form for Windows VB.Net that uses a number of text boxes that are indidivually bound to separate columns in a database. When one of the textboxes (let's call it XYZ.Text) is bound to the database, it prevents the data from any of the other bound text boxes to enter the database. When the binding for this one text box (XYZ.Text) is removed, then all the other text boxes work fine.View 1 Replies View Related
I trying to do what seems to be a simple thing but I'm having problems. The answers I find aren't working. I'm still getting casting exceptions:
Dim query = (From l In dePhl.cv_phil Where l.batch = strMmddyyyy
Dim objFileList As List(Of String) = query.ToList() 'Error
how to build a simple calculator in VB; i got the interface with buttons and text box alredy and i figured out how to put more then one number using buttons alredy(Disp.Text = Disp.Text & 1) , Looking at the windows calc, how do you store the number u just entered into a text box and alowe user to enter another to performe calculations, what code should i use for equal button and etc.View 10 Replies View Related
There's a number of postings about IMAPI in .NET, including these:
But I can't say they're straightforward. First link looks good, though its C# WinForms realization doesn't allow simple re-using in VB.NET project without conversion.I only need to burn a list of files to a CD/DVD and that's it. Any thoughts? Freeware/open-source is preferred.
I have loaded my database with one table under "Data Connections" in the "Server Explorer" pane.What is the standard / best-practices way to handle a simple query in a VB ASPX page?
My left <div> would be a set of form elements to filter rows, and when the button is clicked, the main <div> would show the columns I want for the rows returned.
Note: Answers in C# are okay too, I'll just translate.
I am trying to get a query to work with Visual Basic 2010 Express addition I have pasted the code below but it just errors out with to many arguments I have taken this sample from a reference book but cannot get the darn thing to work. I have looked all over the net and Microsoft for a solution but still no go if any one can help it would really be great. BEP
Private Sub FillBypeeps1ToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FillBypeeps1ToolStripButton.Click