VS 2008 Simple (using Multivariables)

Dec 6, 2009

One day i decided to make Checkers (the game). Black and white circles are moving cross the field made of buttons. And i had to program each button (32 buttons) several times for each condition (moving black, moving white, black eating white, white eating black, black won, white won, whose turn it is...) Count that and multiply it by 32. It is really big code for something that simple.

if i can use one function for making all that conditions.
Let's use more simple example: tic tac toe game[code...]

View 2 Replies


ADVERTISEMENT

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 ?

View 2 Replies

Make A Simple Browser With Some Simple Addon's?

Dec 9, 2011

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:

Browsers:
Private Sub btn_Email_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_Email.Click
'Load Action
Dim SavedEmailObj As Storage

[code].....

View 2 Replies

VS 2008 Simple Serialization Anyone?

Aug 19, 2009

I am making a FlowLayoutControl panel which the user can edit by dragging controls onto it in any required order. The controls are mainly (subclassed) Buttons and (subclassed) TextBoxes, plus perhaps a few labels. There might easily be several hundred of them interspersed at random. I need to be able to save the FlowLayoutPanel and/or its list of controls to a file, and then restore the whole thing again later when needed.If I am not mistaken, this will involve serialization -- a subject about which I presently know next to nothing. I have tried trawling the web for introductions and relevant examples, but I am suffering from information overload. There is so much written about serialization that I don't know where to start.As I can't spend too much time on this, I'm hoping there is some simple way through all the complications. Can anyone here explain, or point me to, the basics needed for saving a control like my one?

View 5 Replies

Make A Simple Web Browser In VB 2008?

Jan 16, 2010

I am trying to make a simple web browser in Visual Basic 2008 (with Visual Studio 2008 Professional Edition) that uses the Gecko engine via a tool called GeckoFX and the XULrunner's dll's and resources.About GeckoFX - geckofx - Project Hosting on Google Code The book I am learning VB with hasn't covered this aspect yet but I almost have it all set up - this is just a side project I decided to play with because it looked really easy.

The Problem:

[code]...

I have downloaded both the GeckoFX package and the XULrunner package and unzipped them and placed the GeckoFX folder and the XULrunner folder in C drive.I have right clicked Choose Item in the toolbar and chosen the GeckoWebBrowser control to use in my form app.I know the path to the XULrunner runtime is C:xulrunner My browser only has the windows form with a text box, a button and the GeckoWebBrowser control.Now I need to set the call for the uxlrunner startup path where it needs to be. I have read that if I right click the project in Solution Explorer, I should see this option under properties.. but I do not see anyplace to do this

View 5 Replies

VS 2008 Best Way To Draw This Simple Graph?

Apr 10, 2010

Will any of the free light-weight charting libraries; ZedGraph or NPlot, be able to draw a simple graph similar to attached image (no waste of space, and with colored plot areas)? This plot will act much like the task manager "CPU Usage" plots, with update of last value every 500ms, but only making a new datapoint every 1 minute or so.

Or is this so extremely simple that it's better to hard-code it? What classes should I look into for this?

View 3 Replies

VS 2008 How To Make A Simple Line

Mar 25, 2009

Where is the Line Control??I want to make a simple line on the form..

View 10 Replies

VS 2008 Might Be Simple, Might Be Hard: Reg_Binary?

Oct 17, 2009

I'm stuck at the moment gents, and would like to ask I have a registry value (reg_binary): B7 59 C4 4A I know that this value contains a Date and a Time, you guessed it

How to convert? I'm reading the value like this:

[Code]...

View 10 Replies

VS 2008 Simple Compare Statement?

May 27, 2010

I'm pretty new to VB.NET and I'm looking for a comparison to do this:

For Each c As Control In Me.Controls
If TypeOf (c) Is ComboBox Then
If c in (combo1, combo2, combo3, combo4) then
' do some crazy stuff
else
'do other things

[Code]...

View 6 Replies

VS 2008 SIMPLE Login Form

May 20, 2010

I haven't used VS in awhile and now I need to use it and I forgot it all. Anyways, I need to know how to create SIMPLE and easy login form nothing special. I just need it for a school project for a sample type game. I want to show a login screen for it, and I forgot how to make one. I'm using the premade login screen that they provide. On the add module part.[code]

View 5 Replies

VS 2008 Simple Network Client

Jun 19, 2011

I've written an app that gets an integer value every 500 ms from a MCU over usb. Works great. I want to get that same value over TCP/IP. Programming the MCU is no problem The problem is in VB.Net. I've read a bunch of sites and they seem to be overkill to what I want and just don't work for VS 2008. I just want to get that value and then manipulate it. I've tried the 'system.Net.Sockets' import and dimmed a 'New TcpClient', but one of the sites said to call the tcpClient.connect method and that doesn't come up in intellisense. Can someone help me just connect to a server with known IP address and Port, and read the integer 'x' every 500 ms?

View 8 Replies

VS 2008 Simple Print Report

Feb 23, 2012

Can anyone point me to the right thread where theres a guide how to make a simple print report from .net 2008..Basically what i need is a simple report database is ms access and the database is dynamically stored on a string,on vb6 its something like rpt. but on 2008 i don't know really how to implement this one.can anyone help me work like a dynamic or on a hardcode program,not on a static settings.

View 5 Replies

VS 2008 Simple Search Form?

May 5, 2009

First (and definitely not last) post here. I need help with creating a search page for an application. All that needs to be done is create a search that gets the results from a database that was created. Can someone point me in the right direction of a good tutorial? I can't seem to find one.

View 1 Replies

VS 2008 Simple Search Function?

Jun 6, 2009

I need help with creating a simple search function for an app im making. It shows recipes of various drinks.I want it like when I press "Search" on the main menu a new form should open containing all I need to search for a drink E.g if I search for "A night of passion" it should look through all the forms and then open the form containing the choosen drink.Could something like this be possible?

View 21 Replies

Host A Simple WCF As A Windows Service In 2008?

May 9, 2011

I have a (very) simple WCF written in VB which I can build and publish locally to IIS. Works great.

What I need to do is (somehow) deploy it to a different server which does not have IIS. It's supposed to be run as a windows service.

how to do this. All directions on MSDN seem to be for VS 2010 (we're using 2008).

View 1 Replies

VS 2008 : EndEdit On Simple Control DataBinding?

Mar 27, 2010

I have bound TextBoxes. When I edit anything, I have to move to the next or previous record before calling the Update Method for that record to be updated. With my DGV, I use

vb
Me.dgvSalvageListing.EndEdit()

and it will update as expected. So, how would I do something similar to my Simple Controls?

vb
Private Sub UpdateDb()
Try
' Write changes back to db

[code]....

View 1 Replies

VS 2008 : Make A Simple Character Converter?

Jul 27, 2009

I'm trying to make a simple character converter i.e. (A converts to O) or (C converts to V) I need to make defined parameters for the entire alphabet.I have two text boxes set up and a command button. I'm trying to make it so the text inputted into the first textbox is converted (using the defined parameters) Into the second textbox with a click of the button.

View 5 Replies

VS 2008 Append Bits For A Very Simple Encryption?

Sep 22, 2010

This seems like it would be so simple and fast, but I cannot figure out how to accomplish it in VB since there aren't many bit functions. I want to take a file and append 5 junk bits at the beginning and 3 junk bits at the end. In essence, just add 1 byte to the file, but in the process offset all the current bits so the file is no longer readable.

I just need a very simple encryption/decryption, but it needs to be very fast as well. I try XORing the bytes, but it gets slow with just a 1MB file. Some of the files are going to be close to 10MB.

View 3 Replies

VS 2008 Create Simple Calendar Control?

Jan 5, 2012

I want to create a calendar control to display employees vacation schedules for the year. It could be either monthly or scrolling weekly. It will draw its data from Access. I'm just looking for some general input on how some others might accomplish this. I know there are some paid options but my boss said I am on a $0 budget. A couple of ideas I had are:

1. Make a monthly view comprised of labels and textboxes for the actual dates. Populate the texboxes with a series of sql statements

2. Use a datagridview bound to a crosstab query, but I don't know how to have the datagridview show one week after the other.

View 11 Replies

VS 2008 Make A Simple Line Graph

Jan 20, 2011

I would like to know a simple method to create a simple line graph, with a grid and X and Y values... I tried just drawing in a picturebox but that was just annoying and not clear... Is there any simple way to create a little graph with prefixed values on X and Y (graph should just be lines drawns from different Y values, with always the same change of X)

View 4 Replies

VS 2008 Make A Simple Sum Of The Checked Values?

Nov 4, 2009

I have a (checked) listview with values in the subitems. I am trying to make a simple sum of the checked values, but I can't seem to get it to work. The values returned aren't correct.

The idea is that each time I check or uncheck a row it re-calculates the values from subitems(2).

Here's what I was trying:

vb.net
For i = 0 to Listview1.CheckedItems.Count - 1 Label1.Text = CDec(Listview1.CheckedItems(i).Subitems(2).text) + cdec(Listview1.CheckedItems(i).Subitems(2).text)Next i

I have (text) values like 77.50, 115.60, etc.

View 3 Replies

VS 2008 Populate Data Into A Simple Html Doc

Aug 21, 2009

I have this application that basically scan in inventory. Is it possible, when a person completes the scan and clicks complete, to bring up a simple html file afterwards showing the data previously inserted? Or even populate a text file?

View 4 Replies

VS 2008 Probably Simple On DataView/Dataset Updating?

Nov 6, 2009

I'm sure this is blindingly simple and I'm just being a nonce.I have a Dataset containing a single table. During my code's execution (this is a console application) I create a DataView to select rows meeting certain criteria as so

[Code]...

View 9 Replies

VS 2008 Progressbar : Can't Seem To Change Some Simple Properties

Aug 28, 2009

Is there something wrong with the progressbar control? I can�t seem to change some simple properties, like the background color. It still looks like it always did. White with gradient "squares". I would like to change the background color.

View 8 Replies

VS 2008 Simple Threading But Strange Error

Dec 21, 2011

i have tryed using multithreading with my program with no luck/I just get a strange error thrown at me no matter what i try [code] Then i get this error:An error occurred creating the form. See Exception.InnerException for details. The error is: ActiveX control '6bf52a52-394a-11d3-b153-00c04f79faa6' cannot be instantiated because the current thread is not in a single-threaded apartment.

View 13 Replies

[2008] How To Make Simple Login System

Feb 2, 2009

i know how to make a simple login system but im not sure how to script it. I make a txt stored at a website. And i will open it with a invisible textbox (to login, only username requed). Then when i have a logon screen. And if i write like:"ABCUSER""SUSER"And make a if like: If 'text in login screen' equals line 1 or 2 in invisible textbox, then ...etc

View 14 Replies

Caching - Create A Simple App In VB 2008 That Uses A WebBrowser Control

Mar 10, 2009

Have experience with web scripting languages and SQL but am still getting used to VB.Currently using VS2008 to create a simple app in VB 2008 that uses a WebBrowser control. The user navigates to a web page, hits a button, and then every minute the web browser automatically refreshes, gets the page length, and alerts if the page length has changed by more than 100 chars.Unfortunately, I am noticing that VB uses the cached version of the page when it refreshes (I am using WebBrowser.Refresh, but have also tried using WebBrowser.Navigate(same page as before)). Is there any way that I can delete just that page in the cache without clearing the whole thing from my application before it reloads and calculates the new page length?

View 2 Replies

Read/write A Simple Text File In Net 2008?

May 9, 2010

I am trying to read/write a simple text file in net 2008 but can't, as yet, get it to work. This is how I use to do it in VB6

Code:
MyStr = App.Path & "DataData.txt"
Open MtyStr For Input As #1

[code]....

View 11 Replies

VS 2008 - Example Of Source Code To Make A Simple Notepad?

May 12, 2009

The example of source code to make a simple notepad?

View 2 Replies

VS 2008 - Simple Modeless Dialog Box That Show A Progress Bar

Oct 22, 2011

I've created simple modeless dialog box that show a progress bar, plus an ok button. It works, except that the "OK" button doesn't display until the progress bar is filled. My dialog is name frmProgress and I'm using:

CODE:

Is there a way around this?

View 5 Replies







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