I am programming the game Othello in c#. i have managed to generate the grid however the starting pieces are not in the right position. I think it because the indexing from 0 when I want it to start from 1. Can someone try and help me out. private const string White_piece = "X"; // players piece private const string Black_piece = "O"; // computers piece private const string Empty = " "; const int Row = 9; const int Column = 9; private string[,] board = new string[9,9]; public void Draw_Board() // creates the reversi board { // Codes …

Member Avatar
Member Avatar
+0 forum 6

Looking to create an asset for the Unity Asset store in C#. I don't want to give away the source code, yet I want users to be able to purchase + download my work and use it in their projects. I'm not sure what this is called or how to do it. Any ideas? Much appreciated!

Member Avatar
Member Avatar
+0 forum 1

Help me , Search data with dataGuidViewer and print that searching result (vb.Net). I am try verious Code thous are found youtube, but it not work...... Please Help me VB.Net (2010, 2012,2013,)

Member Avatar
Member Avatar
+0 forum 2

**Task** Your task is to write a program that will draw graphs and output them as coloured image in the .ppm file format and display them using a suitable external image viewer (IrfanView). The program will use code generated sine waves, and harmonics of these, to calculate and display the harmonic components of a square wave. All sine wave harmonic should be displayed, each in a different colour – and the square wave that results from summing all the sine waves should also be displayed. The resultant waveforms should be output as a single file in the .ppm format. Initially, …

Member Avatar
Member Avatar
+0 forum 26

Hello everyone! I'm sorry to bother you all, but I really need your help. I'm an economy and management student at uni, but somewhy I have to deal with programming. We got a task that looks like this: There's a 5x5 sized field where there are 8-8 disks for both side. |x|x|x| | | |x|x|x| | | |x|x| |o|o| | | | o|o|o| | | | o|o|o| You can move to the adjacent fields and jump over the other disks if there's an empty space behind them. The thing is I have 0 interest in programming and I just want …

Member Avatar
Member Avatar
+0 forum 3

Hi guys, how can the display the total number of tick of the checkbox in vbnet and display it into the vb.net? I had found for a long time but still cannot find any solution.

Member Avatar
Member Avatar
+0 forum 1

Hi! We are a 4 member group for our thesis and we already have submitted 5 topic proposals yet nothing was accepted...and here are the topics: enrollment system, gadgets on track, employment resource system, subdivision technical entry pass Now, I need a help for new ideas that can be developed through visual studio and it can be a web-based or window-based projects. Hope you can help me Thanks in advance!

Member Avatar
Member Avatar
+0 forum 38

Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click 'TextBox1.Text = Token() If Button1.Enabled = True Then Label1.Text = Label1.Text + " A1 " If Button1.BackColor = Color.Yellow Then Button1.BackColor = Color.Red Else Button1.BackColor = Color.Yellow End If Else Label2.Text = "" Label2.Text = True End If Button1.BackColor = Color.Yellow End Sub Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click If Button2.Enabled = True Then Label1.Text = Label1.Text + " b1 " If Button1.BackColor = Color.Yellow Then Button1.BackColor = Color.Red Else Button1.BackColor = Color.Yellow End If Else Label2.Text = "" Label2.Text = True End …

Member Avatar
Member Avatar
+0 forum 3

Hi guys, this is my first question here What useful plug-ins / debuggers for Visual Studio do you use (for Windows)? P.S. I know Visual Studio has a good debugger. Thanks a lot

Member Avatar
Member Avatar
+0 forum 3

How do I process the xamarin forms that connect to SQL Server and export data to the listView ? I'm looking for this simple example. What do I find on google ?

Member Avatar
Member Avatar
+1 forum 2

In desktop application used in technologies like C#, .Net and MySQL I import data from large file (which is about 37 MB) to datagridview. The table from Excel file is in below: ![B8UMq.png](/attachments/large/4/9bbe3c17922dd6159fbe781fae200a4e.png) After loading data from Excel to datagridview I'm inserting that data to MySQL database. Later when I executing this importing code, that problem is began. Despite of switching off ContextSwitchDeadlock exception (of only 1 table to insert) inserting this data takes about... 10 minutes. Despite of not calling any error or exception in program it inserts not all data. In that case I saw I have imported …

Member Avatar
Member Avatar
+0 forum 1

I am making a small example of adding, editing, deleting and saving the treeView directory tree into the SQL Server database, what must I design to store in the database and write code ?

Member Avatar
+0 forum 0

I need to check the validity of the URL to different files without opening the link document/image. I used the below code in ASP.net 4.7.2 in validation attribute. The current code is as follows : (working fine with jpg) public override bool IsValid(object DocumentURL) { try { string urlLink = (string)DocumentURL; WebRequest request = WebRequest.Create(urlLink); request.GetResponse(); return true; } catch { return false; } } This works for images but failed when I sent a link to xls file. The error message is : "The request entity's media type 'text/plain' is not supported for this resource" No mediaTypeFormatter is available …

Member Avatar
+0 forum 0

I'm trying to map two entities to the same table with the same columns. The differences are HasQueryFilter condition for every entity and a column that takes part in the reference. The entities describe ralationship between dictionary and entity. When I launch it, I receive the following message: "... both mapped to column '' in '' but are configured with different nullability." public class KeyValuesEntity : BaseEntity { [Column("keyalphanr")] [StringLength(255)] public string keyalphanumber { get; set; } [Column("keydesc")] [StringLength(255)] public string keydescription { get; set; } [Column("keyvalint")] public int? keyvalueint { get; set; } } [Table("keyval")] public class KeyValuesBaseEntity : …

Member Avatar
Member Avatar
+0 forum 1

Hi Im having an error with my app, Im still learning to code. It gives me error at line rs = cmdOLEDB.ExecuteReader Here's my full code Imports System.Data Imports System.Data.OleDb Imports System.IO Public Class Form11 Dim cnnOLEDB As New OleDbConnection Dim cmdOLEDB As New OleDbCommand Dim cmdInsert As New OleDbCommand Dim cmdUpdate As New OleDbCommand Dim cmdDelete As New OleDbCommand Dim strConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & _ System.Environment.CurrentDirectory & "\Akademik.accdb" Public ADP As OleDbDataAdapter Public DS As New DataSet Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click End Sub Private Sub Form11_Load(ByVal sender As System.Object, ByVal …

Member Avatar
Member Avatar
+0 forum 1

I'm creating a program that maintains student scores. I've created a class called students that stores the data and displays it in a list box. Once the user clicks btnAdd a new form (frmAddStudent) loads that allows them to add the user by name and their scores and display it in the listbox in the main form. It also allows the update/delete functions. I can succesfully add students to the list and edit them, but when I press the ok button in the update students form I get the error, "System.ArgumentOutOfRangeException: 'Index was out of range. Must be non-negative and …

Member Avatar
+0 forum 0

Hello, im glad to have this forum. Please help me with my problem, I am developing a pos system and my problem is i want to display my data including the picture of my product, and i want to display in a datagridview like a thubnail display. I have table product contains id, description, price, picture. I used ms access database. Please help me with your generous ideas

Member Avatar
Member Avatar
+0 forum 3

Hi Everybody, I Just started C# and have an issue with this: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace testurl { public partial class WebForm1 : System.Web.UI.Page { public void Page_Load(object sender, EventArgs e) { } public void Button1_Click(object sender, EventArgs e) { string Url = "mysitename.org"; var uriBuilder = new UriBuilder(Url); uriBuilder.Scheme = Uri.UriSchemeHttps; uriBuilder.Port = -1; var query = HttpUtility.ParseQueryString(uriBuilder.Query); query["secret"] ="whatever"; query["u"] = "67"; uriBuilder.Query = query.ToString(); Url = uriBuilder.ToString(); Response.Write("<b>De te gebruiken URL:</b> " + Url); } public void ImageButton1_Click(object sender, ImageClickEventArgs e) { //Here I want to call the …

Member Avatar
+0 forum 0

Dear Friends, can any one help me to find IP address of my computer with the help of simple programing in visual basic?

Member Avatar
Member Avatar
+0 forum 3

Dear all I am working on a project for my customer . I wrote code to search items from sql using vb.net Now my code working fine.....when I search data using itemid it show me data in all related textboxes but not in datagrid here my code Dim connection As New SqlConnection("Server= DESKTOP-QN6F623; Database = dbo_main; Integrated Security = true") Dim command As New SqlCommand("select * from items where itemnumber=@itemnumber", connection) command.Parameters.Add("@itemnumber", SqlDbType.Int).Value = ItemnumberTextBox.Text Dim adapter As New SqlDataAdapter(command) Dim table As New DataTable() adapter.Fill(table) ItemnameTextBox.Text = "" If table.Rows.Count() > 0 Then ' return only 1 row ItemnameTextBox.Text …

Member Avatar
Member Avatar
+0 forum 1

hello :) i wanted to know, how can i change the shutdown mode of my Windows Form Application, @ MS Visual studio 2010. i.e, my application should exit only when i close my last form.. & not when the main form is closed.. i remember, in .NET 2003 windows form application, i used to write following lines to move to forms to forms: private void button1_Click(object sender, EventArgs e) { All_Deposits ad = new All_Deposits(); ad.Show(); this.Close(); } this always worked perfectly.. but i'm in visual studio 2010, application exits, soon as this.Close() is called for the main form... so …

Member Avatar
Member Avatar
+0 forum 3

Hi, I would like to know how to get IP Address of the devices connected to the hotspot of my PC using a VB program that will run on the same PC where the hotspot is running. I have no idea how to get it strated. I searched internet but I what I am seeing is that there is an external router. Thank you very much.

Member Avatar
Member Avatar
+0 forum 2

hello sir how can I get my system short date format in a label in vb. net. I try this code : Label1.Text = System.Globalization.CultureInfo.CurrentUICulture.DateTimeFormat.ShortDatePattern() but show wrong data. all time show "M/d/yyyy" format. I change it(to "dd/MM/yyyy") manually and by coding result is same("M/d/yyyy") please help me..... For Change the Format: Microsoft.Win32.Registry.SetValue("HKEY_CURRENT_USER\Control Panel\International", "sShortDate", "dd/MM/yyyy")

Member Avatar
Member Avatar
+1 forum 3

Hi, I am currently working on a VB form for a college assignment. I am trying to add quantities from a ListBox and then display the result in a TextBox for a pizza delivery order by using a button. So far, the Listbox shows: pizza type Quantity pizza price Total pizza price The Total pizza price is the value that I want to add together and then show in a TextBox as an Order Price. This is my form and Code for the button: ![form1.PNG](/attachments/small/4/3da7c8769c68d4284e57a3e1644c9627.PNG "align-left") ![form.PNG](/attachments/small/4/a41c26183938bc03cb984f467c5bb361.PNG "align-left") ![form1_buttoncode.PNG](/attachments/small/4/710dcd869220381dab6204948dc6f362.PNG "allign right") The code is a work in progress and as …

Member Avatar
Member Avatar
+0 forum 5

Ok I have a workbook that have 5 worksheets for a 5 year span. On each of the worksheets are there is a list of countries that make up the combobox (which works perfectly). On my userform I have a frame on the userform that represent each worksheet. **My problem is that I can't get the textboxes to populate based on the combobox selection. If that country is on three of the sheets I need for it to populate according to the year.** This code works perfectly with the exception of populating my label boxes with line one starting with …

Member Avatar
Member Avatar
+0 forum 6

I get the employee list from SQL Server problem with fields: ID: id employee Employee: name employee after filter the kernel list dv.RowFilter = "set condition unique 1 recoder" at the command if (dv.Count == 1) at this assignment id and the kernel name is not correct the unique file filter on which it assign the first file in the family list. yourself want to get sample sample already been filter by dv.RowFilter, main syntax in command if (dv.Count == 1) {// chars this again as what ?) string tmpSQL = "string to get the list employee"; DataTable dt = …

Member Avatar
+0 forum 0

I am a drafter using autocad and I know a littttttle bit of VB6. We just happen to have it installed on our computers and I wanted to create an application that can do this: 1. Takes the # input from text1 and text2 and waits for the user to hit "Ok" (command click) 2. Upon clicking, the information from Text2 gets multiplied by 0.75, and the total sum is then compared to Text1 with a less than or equals to equation. 3. the comparison then Decides if the sendkeys will say "G152B" or "CB152B" to Notepad Without words i …

Member Avatar
Member Avatar
+0 forum 2

I have developed a sniffer code in C language. Now i am creating user interface for that. I am using visual C++ to design user interface. Once the program starts it stores each packets ip address, port number , protocol type ,time etc in respective variables. Now i want to display these values in a tabluar format. So i choose datagridview. How to proceed, i am unable to insert the values in cell, msdn didnt helpful..kindly help.

Member Avatar
Member Avatar
+0 forum 10

I am working on the workshop selector in Visual Basics 7th Edition chapter 5 and I just can't get the calculate total button to work after trying numerous different codes. Here is the criteria for the program. 3 list boxes, 4 buttons, 2 labels. The application allows the user to select a workshop from lstWorkshop, Then select a location from lstLocation. Next btnAdd takes the selected workshop and location attached to a set amount of days and a registration fee and multiplies the days by a Lodging fee and outputs this number in dollar form. After multiple workshops/locations have been …

Member Avatar
Member Avatar
+0 forum 1

[Here is a pic of my project](https://ibb.co/eUD3vS) Basically what i am trying to achive here is as follows (I am very new to programming) I have done the front end, now its the back end that is troubling me...... first of all... i have css that is creating a progress bar, this is fine but i am not sure how to code it so that it resets after 8 hours continuesly... i tryed to add an updatepanel to stop it from resetting after a postback, but i could not solve it,.. Second problem is... I have a large number in …

Member Avatar
Member Avatar
+0 forum 4

The End.