I posted this thread a few days ago:[URL]..And you all just really helped finishing this class! Shaggy_Hiker advice was really Been working on this class for a time now I decided to finally publish it This class allows you to create your own TicTacToe game easily with this class. I know it's not so useful for your projects but hey, I had my time!
i have a two-dimensional char array that holds the values of a tictactoe board.Each element holds a value of either 'X','O', or and you can access the values with something like TicTacToe[0][1]with the first bracket containing the row # and the second containing the column #.
Whats the best way to detect the winner of a TicTacToe game? I was thinking about just making a function like this Private Function checkWin(Byval TicBoard as Char[][]) as Integer 'Return 0 if no winner, 1 if Player 1 wins, and 2 if Player 2 wins End Function Any ideas? I want to avoid using 8 if-else statements since that seems pretty inefficient and sloppy
I AM HAVING PROBLEMS WITH GETTING THIS PROGRAM TO DISPLAY THE WINNING MESSAGE. PLEASE ONLY REPLY WITH HELPFUL SUGGESTIONS HERE IS THE CODE I HAVE DONE
Public Class Form1 Dim flag As Boolean = False Private Sub Buttons(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click, Button2.Click, Button3.Click, Button4.Click, Button5.Click, Button6.Click, Button7.Click, Button8.Click, Button9.Click If flag = False Then DirectCast(sender, Button).Text = "X" flag = True
i have an advanced web browser and i would like some codes.It has unlimited tabs but i have a few problems.when i click a link that open in a new window,it open it with internet explorer.When i add a tab and i go to msn.com and other sites,the document title is very long and one tab is the 50% of the webbrowsers tabcontrol tab page text.it's too long!I got an error while i was trying to set the selected tabs text length with a message telling:property length is readonly.If ComboBox1.Text.EndsWith(".swf") Then i want the selected tab to get filled by an axschockwaveflashobject at dock style.A code that makes an .mp3 link to open with an axwindowsmediaplayer on a new tab or at the current tab and a code for bookmark menu that keeps them after program close for the next use.I saw a video about the bookmarks,but i didn't understand lots from it.url...
I'm trying to write code to download from an FTP site. I got it to work in some cases - mostly text files, but when the reader reads a value greater than 256 it seems to have difficulty. Right now I'm trying with a ZIP file, and the file downloads, but always says, 'File is Corrupted' when I try to open it.
Rather complicated question here. I am improving the text coloring in my custom RTB ontrol, and it is pretty simple:Quote:1. Disable drawing (SetDrawing(False))2. Get current selection 3. Select lines to colorize4. Process selection RTa Font object.
I have Visual Basic Express 2008 installed, and according the book I'm using, there should be an option under 'Edit->Advanced Submenu' that has options for toggling: White space, Word wrap and Comment selection.Is this feature available on the express versions of MS Visual Basic? I cannot find it.
I created an Advanced Tabbed web browser application using Visual Basic 2008 Express: the problem is that whenever someone clicks a link with a target, it opens an Internet Explorer window, but I want it to open a new window of my program.
I have a university assignment, The problem, well.. in the short anyway; i have this form which is for placing orders. There is an "add product" command and next to it a list box. what I would LIKE to achieve is being able to click on add and then a query would come up asking for the user to input a product ID then check either yes or cancel. once that is done, I would like the database to search products by ID (obviously) and then display the product in the list box. the list box may contain up to 5 products and no more. there is also functions to remove individual products from the list box as well as clear the list box all together. in addition to this mammoth task, I also have a label which requires a total price. this would be the price of all the items in the list box, not in the database.
Im looking to make an advanced drawing program in vb.net as a bit of a project to occupy my time.im looking to make one pretty much like Paint but with gradients and other features, but im at a loss as to where to find such a tutorial.
here is a code i made for a tabbed web browser but i have a probem i want the tabs to write the name of the site that you visit?
Public Class Form1 Dim i As Integer = 1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim browse As New WebBrowser
I have two tables:Orders OrderProducts - An order can have 1 to many orderProducts records associated with it.What I am trying to do (unsuccessfully) is to implement a GridView search using a LinqDataSource wherein the search returns Order results where any of the OrderProduct.Manufacturer columns contain a search query.
I was hoping the following would work, however it seems lambda expressions do not work within a Where clause of a LinqDataSource (in VB):
[Code]...
how to get this working within the LinqDataSource definition, or will I have to handle and set up a custom OnSelecting event?
I'm working on a project that users can add new tabs, buttons, textboxes, Excel forms(existing or new) or sth. else to the application. How could it be possible to save these changes?
P.S. : I started to learn SQL usage, and planning to use SQL in my project to save additional inforamtion that users have added.(for example informations about team members)
I am trying to create an list or an array of a class.Here is my "Ingredient" class that I am trying to create a list of:[code]In my "recipe" class, I am want to create a list (or array) and I am drawing a big blank on how to do it. Can anyone point me in the right direction?
I am searching for the Component Class. When I go to "Add New Item" ,in my project their is no Component Class Item in VS 2008. I would like to Drag and Drop control onto my new class and I can't see how to do this ?
I have a 'property management class' that contains several functions and properties. I have several other classes that use the 'management class' as a property to derive the value of several of its other properties.Is there a way for me to reference the outer class from the 'management class' functions without having to pass it as a parameter? I ask because several different classes can have this 'management class' as a property and am having a hard time typing the parameter.
what I've been reading the past 2 weeks and I want to make a Multi File Downloader.y goal is to have a TabControl, inside each Tab I'll have about 3 to 5 (maybe 7) CheckBoxes, each CheckBox is tied to a TextBox where the url goes (I attached the GUI I have so far so you can see better how I want it to be).Now so far the downloader is working fine, I can download whatever I have in those TextBoxes and it is downloading it only when CheckBox is checked.Here's my problem I want it to be a MULTIdownloader lol not a single file downloader like it is acting right now.
So my question is how can I do so when I check 2 or more CheckBoxes it starts downloading the files (it doesn't have to be simultaneity, it can start downloading the first one then the 2nd one etc).Also how can I identify which CheckBoxes are checked and which ones not? Right now I am using If/ElseIf to control the CheckBoxes but I wonder if there is a better way to do it, because I only have 2 CheckBoxes so far, to test and if I do it like I am now it's gonna be a loooong code.Here's what I have.
Private Sub btn_download_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_download.Click If CheckBox1.Checked = False AndAlso[code]....
If is too complicated how could I do so everything saves in the same location as the downloader is?I've been reading around the forum also the microsoft documentation about VS 2010 (I'm not gonna lie, I haven't read the whole thing,
i created a simple advanced search page for web application, i thought sharing it with you might help beginners the following is an example of an advanced search page for an employee database using VB.Net [code]
I made a change to my program this morning which worked properly before. The Targetframework was set to 3.5 and I thought let's set it to 3.0 that threw in some errors so I changed it back to 3.5.. however that's giving me an error as well now :S This is the error:
module 'Resources' and module 'Resources', declared in'C:mijnmapmijnmap2Resources. Designer .vb', conflict in namespace 'Resources'. and it's pointing to the dovents line
I need to run a small piece of java code (java is the only option in this case) I have the jar file in the VB.net resources as JSSMCL(the extension is not required to run it, of this I am sure :P) I know I use Path.GetFullPath(My.Resources.ResourceManager.BaseName) but no mater how i do it it fails, i have tried so many ways i have lost count! this is the command that i need to run:
I have a server program. It logs all of the lines on the console textbox in their proper folder, named by their type: Logs\Year\Month\Day\Errors.txt There are about 7 types that it logs. All of these show up in the console window. However, I have check boxes that I want to toggle the types that show up in the console window on and off. For example if I want to hide the Error and System types, I want the rest of the types to show. I know I can do this simply, but if I re-check the boxes to show the System types as well with the others, I want it to show the logs in their proper place in the console window, and that I cannot figure out how to do.I am stuck on this problem and cannot figure it out. I know it involves much more than an If statement to display the types correctly in the right place on the console. Please help me out with some idea of what I need to do.
I have textbox1.text ( multiline) that is filled with data from a external .txt file. On each line of textbox1.text i have the folowing data:50ABCDEFGHIhsfgsdf60JKLMNOJ55JK4
I need a way to display in my second textbox ( textbox2.text - multiline also) on each line the fallowing data: "NUMBER1" & ABCDEFGHI & "NUMBER2" & JKLMNO So basically i need to find the "50" string,remove it, read "9" characters after it, same goes with 60 and JKLMNO I have a undefined non-fix numbers of lines in textbox.text1
I'm coding an advanced web browser. The bad thing is, is that whenever you move your cursor over the window, a wait cursor is displayed. I tried to deselect the wait cursor but it doesn't work! I'm using Visual Basic 2010 Beta 2...
so instead of when i build my project running the advanced installer t make it a exe i just went to my visual basic projects folder and ran it from there and it worked good, so i though if i make a zip file the files in it password protect, and just leave out the startup icon then my users can just click that to use my program while not being aloud into the source code, but after i zipped the folder the program doesnt work anymore, any way to do this?