Making A Sudoku Solver?

Nov 23, 2011

I'm a student in a visual basic class and I've been asked to make a Sudoku solving program that writes to a table in access. I need help getting the values from my numeric updown boxes. I keep getting dimensional arrays and conversion errors when I wasn't trying to convert anything. I don't know what to do. I've been researching every night for days now, and I can't find any examples of coding a numeric updown box into an array. I have also thought about writing the numeric updown boxes into a table and then running checks on the rows, columns, and quadrants inside the table. Yet again, I can't seem to find any good examples of this either. I will continue researching and hopefully come up with something other than 64+ if inside if statements. I know in theory I could use arrays to compare the values, but I can't get it to work. I'm not entirely sure how to compare them with the quads either.

[Code]...

View 2 Replies


ADVERTISEMENT

VB - Pseudocode - Program A Sudoku Solver ?

Feb 15, 2012

I'm currently trying to program a sudoku solver. I wrote pseudocode to establish what I'd have to do. One of the first things was to make sure each number in each of the 3 x 3 grids aren't equal to any of the others. Here is my attempt. I'm pretty sure I've gone the long way around tackling this but it was the only way I was fairly confident I knew how to do. txt1_2 means that it's the second number in the first 3 x 3 grid (from left to right). At the moment, even if I put in different numbers, it comes up with two of the 'error' message boxes. This code only focuses on the first 3 x 3 grid.

Public Class Form1

Private Sub btnSolve_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSolve.Click
Dim Group1(8) As String

[CODE]...

View 7 Replies

Design A Sudoku( 4*4 ) For VB Assignment?

Sep 26, 2011

i need to design a sudoku( 4*4 ) for my VB assignment..and i am having problem with generating random numbers for the four text boxes i have used..

View 4 Replies

Validating A Column In Sudoku?

Apr 11, 2010

I am working on a Sudoku project and am stumped on how to finish my code below so that it will check the rest of the rows in the specified c

Private Function validCol(ByVal col As Integer)
Dim myCol(8) As Integer
Dim valCol As Boolean = False

[code].....

View 2 Replies

Make A Captcha Solver In .net?

Jun 16, 2012

i recently heard that it is possible to make a captcha solver in vb.net... well i really need this ?how to make my program scan the captcha image in a webpage and then save the answer of the captcha as a variable ?

View 1 Replies

How To Make A Vigenere Cipher Solver

Nov 10, 2011

I am making a cipher solver in vb.net 2008 and I have made it solve ciphers for most ciphers but I can't make it do vigenere. I have got three textboxes named "EncryptionVigenere", "SolutionVigenere" and "Key" and a button called "SolveVigenere".

View 3 Replies

Use Macro For Control Solver In Excer By Program?

Sep 10, 2011

My Project is : Calculate Lowest price of Nutrient I Need to use Excel with VB.NET not VBA.[code]...

View 2 Replies

Designing Software - Making A MPC Sampler - Drum Machine - Making A Sound Directory ?

May 16, 2012

I'm a huge music person (got my own lil record thing going) but I'm wanting to design a program that would make music in my way. I have a decent amount of background knowlege of Visual Basic and Java I'm just wondering how could I execute this whole project. The Project is making a MPC Sampler. MPC is a drum machine; a machine with buttons that once you press it that it will play a sound from a drum (ex: snare, kick, tom, ect.) . So I would want to make some pads on my program that each have their own sound. Total of 16 pads. Which the design wouldn't be hard to make nor would the functionality of it having the play back sound (in my opinoin it wouldn't be hard atleast). But the thing is I wanna map out these pads to number keys on the number pad or keyboard. I'm not so sure how to do that. But that's all the easy stuff...

Also finding information is making a sound directory. What I mean by this is that I want to make a User Interface that will open up a file directory of sounds and the user can select what "kick" or "snare" sound he may want for the kick or snare pad. I don't know how to do that or even know what to search; neverless I don't know if this whole project idea is a good idea for Visual Basic or another programing language.

Also LATER ON I am wanting to add a record and export function that alows users to..well...record and export their beat or instrumental ha. That doesn't seem too too complex (mainly due to the fact that all it needs to do is record the users key strokes and then show them and play the sounds, but obviously it would get more complex than that.)

Here is an image of one of many MPCs but one with a directory - [URL]

View 5 Replies

.net - Making A DLL COM Accessible?

Jul 27, 2010

I have a class library written in .Net that I would like to make available to VB6/VBA. What I tried did not work (obviously as I am asking this question). Here is what I did:

I Created a Class Library Project in Visual Studio 2010 Express and put the code in a Class Module.I opened the project properties and went to "Assembly Information" and checked "Make COM Visible". I went to "Advanced Compile" options and targeted .Net 2.0 (it's very simple code).I then removed all references expect for "System".I built the project (no warnings or errors) and copied the DLL out of the Bin folder into C:WindowsSystem32 I ran RegSvr32 to register the DLL and got the error: The module "MyDll.dll" was loaded but the entry-point DLLRegisterServer was not found. Make sure that "MyDll.dll is a valid DLL or OCX file and then try again.

View 3 Replies

Making .bat Into Vbscript

Apr 17, 2012

Just need help converting this .bat to vbscript. cd

[Code]....

Just need it to go to each user names directory when logging into a terminal server and removing all items in there respective folder. I'm assuming to user the UserString where the "user.name" is but not sure how to do this.

View 1 Replies

Making .NET Debugging Like C#?

Mar 13, 2009

I've programmed in C# for the majority of my .NET career - now I'm working on a VB.net project - when debugging it drives me insane the differences of how the debugging works.two off the top of my head are

1) having to prefix my immediate window queries with ?

2) not being able to mouse over a GUID, I have to ?myGuid.ToString() to actually see the value is there a way I can make it behave like C#?

View 2 Replies

Making A Message Box?

Jan 16, 2010

I'm an absolute beginner at programming and VB, and I'm starting a course in software development. We were given tutorials to do before the start of the course but I'm having extreme diffictulty with them because they're written for VB 6 and we were told to download VB2008 express since we're using that for the courseI got here? I understand basically what it does, but it gives errors in VB2008 and I can't get the add button to stay greyed out when there's nothing in the name field. I also can't get a message box to pop up when I click Add because 'answer' isn't recognised. I also don't understand what "Following code is entered in the .... event". What's an event, how do I enter it in it?

View 3 Replies

Making A MSN Like Program In VB?

Dec 3, 2009

What I'm trying to do is make a MSN like rpogram where you can send Text form a Textbox to a listbox between 2 computers. I have read About TCP/IP connections?

View 4 Replies

Making A New Event?

Jun 9, 2009

If I For Example Made a New Control Like :

View 4 Replies

Making A New Form?

Aug 23, 2009

Where can I make a new form? Also, could I make it so the user can only see one but then it switches to the other one on a certain event?

View 2 Replies

Making A New MDIChild?

Feb 16, 2011

I have made new MDIChild and with textboxes on the form. When the form loads...it will open data saved from a text file to the textboxes. However the data does not load from the text files. When i take out the code, it works fine...but it needs to be a mdi child...the code i'm using is

Dim NewMDIChild As New ViewCustomer()
NewMDIChild.MdiParent = Main
NewMDIChild.Show()

the form that I need to load the info is "ViewCustomer" and the mdi parent is "Main"

View 1 Replies

Making A Non-rectangular UI

Apr 15, 2009

I'm making a non-rectangular UI and I've tried different approaches but still can't get the results I want. The following codes are for the user to move the form around.

[Code]....

View 10 Replies

Making A Pop-up Out Of Another Form?

Sep 25, 2009

I Have a simple notepad, and a toolstrip, inside the toolstrip, it has an option to find and replace the text in textbox one. I made a new form, inside that project, and named it find. Now how can I make it so that when they click on that toolstrip option it opens that form? Also, will I have any troubles being able to find the text since they are two different forms?

View 10 Replies

Making A Program Like WMA?

Oct 7, 2009

I used Microsoft Visual Basic 2008 and i am having trouble making it to where i can make a screen that a video can be played in. I mean i know i have to code it to call if from a folder but i do not know how to set up the form so i can make my own program. My teacher said that there used to be a thing where you just put in on the from and it did it for you is there a special thing you have to download to do that or do you have to actually go through and code it yourself. I do not want to be given code i just want to know the best way of starting my project whether it is making a thing so that i can play the videos

View 3 Replies

Making A Top Down Shooter?

Mar 27, 2011

Im making a shooting game in visual basic 2008. I have two questions, and they're the two bits of code I just cant fgure out.

View 3 Replies

Making An Exe For This With Database?

Dec 15, 2011

I have finished my proejct in vb.net with access database.making an exe for this with database.

View 2 Replies

Making Dll With Some Variables?

Oct 28, 2010

I have created a project to update my applications; it is simply a form, with a progressbar and some other fancy stuff, which will check for updates via FtpWebRequest and download files if necessary. I have code it so that in order to use it for other applications I only need to change the ftp folder address and the .exe name for the main application to be started.

So the question is. Is there a way i can put that project in a dll so that I can simply pass it to my partners without having to pass the source and obviously have some way to change the ftp folder address and the .exe name like some kind of properties�.

View 8 Replies

Making Log In Screen Appear Only Once?

Jan 21, 2011

I'm trying to bullied a simple cheap software to rise money.Any way, I managed to make a serial login form but the problem is I need it to appear only once pear purchase, meaning as soon as you enter it once, it will be saved and the login form wont popup when the program gets started again on the same PC. Here is my code so far:

ic Class Form11
Private Sub Form11_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub

[code]....

Also, how can I generate more serial codes?

View 2 Replies

Making Random Dim Name

Aug 19, 2009

I know I can use a container object so the vb code can create objects like buttons. My problem is that I can't make a random dim name in a loop. how can I just do something like this or create multiple instances dim a = 0 lp:

[Code]...

the problem is that I need a new dim for each object a text file tells my program to make.

View 1 Replies

Making Udp Connection?

Dec 19, 2009

im making a gaming tool for my Call of Duty 4 server. Not sure if anyone here plays it, but it uses an ingame rcon command tool that you use for admin control on your server. Well i wanted to make a program that i can control my server without having to log ingame to do admin stuff. I seem to be having problems tho. Im trying to have my program retrieve current information on the server but can't seem to retrieve the information. I have been reading serveral UDP tutorials trying to learn udp and tcp. Im definately still new to all this and trying my hardest to learn. Here is my code. I commented parts to explain what its for incase noone knows what it is for the game.

Imports System
Imports System.Net
Imports System.Net.Sockets
Imports System.Text

[code]....

View 2 Replies

Start Making An OCR?

Feb 6, 2011

I'm really interested in programming things for games (NOT cheats, more or less things that make the gamer's life easier) and most of my ideas end up relating to an OCR, but I've got no idea where to start making one or how to make it at all, really.

I did a quick google search but all I could find were libraries to convert bitmaps and such to strings, which is not what I want. The game I'm making this for specifically is browser-based, so unless I were to take a screenshot there wouldn't be much to work with since there's a ton of text in addressbars and such.

The main focus of my OCR is to allow automatic PIN entering for banks in the game (PINs are used for security purposes, but lazy people don't like entering them). There's a keypad on-screen with 9 boxes, each with a number, but after every click the numbers change positions inside the buttons and they also switch positions with other buttons (note that the buttons stay in place and do not change color or anything).

View 7 Replies

Use DLL Without Making A Reference

Jun 19, 2009

I've been trying to use this .dll that I have in my program. The dll just contains some functions that I need to be able to use. I have one problem though.. I need this dll to build with my program, sort of like a dependency of some sort. I need to be able to access it without it being on the client's computer.

View 3 Replies

Popups Making Me Want To Shoot Myself?

Aug 11, 2010

i am having a tad of a problem when it comes to popups and new windows. I am currently opening new windows in my webbrowser using the href command and this has been working fine for about 40% of websites but I am running into a few problems as the other 60% of popups are still opening in Internet Explorer windows.I am currently using the

On Error Resume Next
Dim myElement As HtmlElement = CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Document.ActiveElement
Dim target As String = myElement.GetAttribute("href")[code]....

I am having problems loading login forms (asking for username and password to connect to the internet) and any window that uses javascript commands in the href to load the popups.For example:If anyone has encountered such a problem before and knows how to fix it it would be great if you could post up some code or a link to a walk through so I can see how its done.

View 2 Replies

.net - Add ProgressBar While Making Operations?

Feb 10, 2012

my update script in VB.NET, i'm making some stuff, and I want, while all funcs are executed, a progressbar to be displayed? How to do that? Here is my execution sub:

[Code]...

View 1 Replies

.net - Making A DrawImage A Button?

Nov 14, 2011

I have these three images that I have drawn to my form.

GraphicsBuffer.DrawImage(ButtonEasy, New Rectangle(25, 330, 100, 50), 0, 0, 100, 50, GraphicsUnit.Pixel, ImageAttributes)
GraphicsBuffer.DrawImage(ButtonMedium, New Rectangle(150, 330, 100, 50), 0, 0, 100, 50, GraphicsUnit.Pixel, ImageAttributes)
GraphicsBuffer.DrawImage(ButtonHard, New Rectangle(275, 330, 100, 50), 0, 0, 100, 50, GraphicsUnit.Pixel, ImageAttributes)

But I want to make a Boolean expression for when they are clicked so I can trigger the events to load the game mode selected.

Do I do this through resource code or is there a simply way to do this. My idea seems like it would be bad and not syntaxically correct.

Edit: I've gotten to this:

Private Sub ButtonEasy_MouseClick(ByVal sender As Object, ByVal e As MouseEventArgs) _
Handles ButtonEasy.MouseClick

[Code].....

View 1 Replies







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