16,916 Topics

Member Avatar for
Member Avatar for Steph333

Hi, In my game of Battleships, I am trying right now to randomly generate ship placement for the computer. I have made the program generate one particular spot in the grid using code like this: While CPlacementX > 5 GenerateCoords() End While For Each label In Me.Controls If label.Tag = …

Member Avatar for Reverend Jim
0
1K
Member Avatar for rexdon

On generating schema file for xml file using visual studio, i want to predefine datatype for xml schema. i.e if xml file is having an element <value>20<value> On generating schema, the datatype has to come'string' instead of default 'unsigned byte'

0
108
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to stick a cmd window/process that i called from my vb form to the bottom of the form like the picture: (below) ![form2](/attachments/large/3/form2.png "form2") And so where ever i move the form the cmd windows will also follow. Also is …

Member Avatar for artemix22
0
329
Member Avatar for anisha.silva

hi i am trying to build an application coded in C# and i has using MSFileIO = Microsoft.VisualBasic.FileIO; and giving an error "Error 1 The type or namespace name 'FileIO' does not exist in the namespace 'Microsoft.VisualBasic' (are you missing an assembly reference?) UZipDotNet " how do i add the …

Member Avatar for nmaillet
0
288
Member Avatar for ccschaad

hello, I am trying to make an excel spreed sheet that will always be adding more option buttons in sets of six. Each Set of six will be doing basicly the same thing just one row below the last. Is there any way to assign a option button to call …

Member Avatar for ccschaad
0
115
Member Avatar for UV1995

Hi all! I need help with Visual Basic I am trying to build a program in which the user types a question into a text box. Then the program looks for that question in a database (access database to be specific) and returns the appropriate answer from the database. I …

Member Avatar for dimara
0
1K
Member Avatar for jaydipzatakiya10

hi,iam using mditab control in vb8 for making browser.please give me go,back,and another button code.

Member Avatar for nmaillet
0
88
Member Avatar for ashvyas

I want 1 dialog box which is having a login username and Password field. ANd it must have 12 buttons. whenever i click on any button, it must open 1 Excel sheet associated with it. Just want 1 skeleton code.

Member Avatar for kRod
0
169
Member Avatar for Blank808
Member Avatar for Jx_Man
0
162
Member Avatar for dnyaneshwari.phansekar

The employees of our company are using an India Cash Program application that displays records and data according to search criteria and also genertes reports.It is built using VB6.0,sql server 2005 and crystal report 8.5 .The application is used daily from an .exe file that is installed on all computers.The …

Member Avatar for Nutster
0
110
Member Avatar for mahela

In vb6 I installed in my computer it has microsoft windows common controls 5.0(sp2).I want to know how to have full row select option in listview component.how can i select full row at listview.in listview properties there is no fullrowselection check box.it has only 5 chechboxes.

Member Avatar for mahela
0
2K
Member Avatar for Delnith

how do I set visual studio to read my C code by default instead of C# or whatever its doing?

Member Avatar for Delnith
0
101
Member Avatar for forjustincase

How can I connect my msacces database and use SQL query command like "Select Field FROM Table Where Field1 = foo AND Field2 = foo2" in Visual basic 6 and display the query result to a textbox.

Member Avatar for AndreRet
0
3K
Member Avatar for vivekanandaan

I've developed a web page in Asp.net using visual studio 2010.how to make those pages work in my website.I have tried uploading all the folders in my httpdocs folder. But it's not working. Kindly help me out. Vivek

Member Avatar for vivekanandaan
0
221
Member Avatar for Priti Talware

Option Explicit Dim mem As Double, ans As Double, desi As Boolean, n As Double Dim no1 As Double, no2 As Double, fact As Integer, i As Integer Dim operation As Boolean, op As String, res As Double, index As Integer Private Sub cmd1divide_Click() n = Val(Label1.Caption) If n = …

Member Avatar for BitBlt
0
154
Member Avatar for happygeek

I first started writing about the 'coming soon' Xbox 720 way back in 2008 if my memory serves me well. Every now and then another rumour emerges, supposedly from 'a reliable source within Microsoft' and confirming that the release date has been fixed or announcing the final hardware specification for …

Member Avatar for rhowell
0
467
Member Avatar for newbie26

hey..can somebody help me? how can i make this work? one pc has a vb6 application which added a record in the database (mysql) and when he/she had already added a record, a pop up message will show to the another pc that a new record has been added to …

Member Avatar for AndreRet
0
97
Member Avatar for krunal1986

hi, i have just migrated from CR8.5 to CR9. now i want to run/display Crystal Report 9 on client machine without installing it there. so, which .dll required for this situation? thanks, krunal

Member Avatar for apurvac
0
4K
Member Avatar for bkhindri

I am trying to use an IF statement to enable/disable command buttons; however, I get the following error message "Run Time Error '424': Object Required". The "cmdDeptStoresMC.Enabled=True" is highlighted in yellow when I run the code. Please assist. Below is my code: Sub Check_AccessRights() Dim X As String Dim Y …

Member Avatar for aronhugos
0
737
Member Avatar for bosigosean

William is interested in numbers. His friend Mary has been programming using Visual Basic and has told William about the Radom Number facility that the programming language provides. William never takes anything for granted and says to Mary: “I wonder how good this random number generator is. Suppose you write …

Member Avatar for itismypushkin
0
84
Member Avatar for mahela

I have two forms as form1 and form2 in my project.in form1 it has textbox as txtid. I take n=txtid.text in from1.then how can I use the same value of n (got at form1) applicable at from2.

Member Avatar for AndreRet
0
1K
Member Avatar for yat862

hi, i have a problem of Index was outside the bounds of the array. i don't understand how to amend the existing solution in my case. anyone could help me? the message error is System.IndexOutOfRangeException {"Index was outside the bounds of the array. below is the code & the error …

Member Avatar for AndreRet
0
2K
Member Avatar for dilansankalpa

Hi i have an active x application and i need to add it to a windows form application. First i installed the active x control set up and in the installed location in shows a .exe. Then i tried to add it to Visual Studio Tool Box. (right click on …

0
77
Member Avatar for Pelle_3

I can't seem to figure this out. The multidimensional array "structure" changes its values without any reason. I am using Visual Studio 2010 for debugging, and when it enters "structure[x][y] = readData" for the first time, it changes the array's value, but it changes back on next line. I don't …

Member Avatar for deceptikon
0
152
Member Avatar for arie92

i have 5 form that with 4 form to enter input and the last form is to make a calculation and display the output.But the problem is,i cannot get the calculation and the output to be played because the last form does not attach the input that i have enter …

Member Avatar for Jx_Man
-1
257
Member Avatar for Skate Bart

I'm using a MSHFlexGrid (fgdVehicle) to input data from a database ( via a recordset (rsVehicle) ). You can either enter the data into the database in two ways : 1. From the database application 2. From a form. The problem is present in the second method. There are specific …

Member Avatar for AndreRet
0
596
Member Avatar for t0kipot

hi, can u help me my Datagrid which connected to ADODC1 was updating evrytime i click my ADD command button, then i made another command button to CLEAR what data is in the grid, i used this codes to do that but always error like this "KEY COLUMN INFO IS …

Member Avatar for shahidpk
0
2K
Member Avatar for sss93

Hey so I have a customer form which has two buttons and displays contact data,containing a simple cancel and proceed. The main functionality is behind the proceed on_click handler.Becuase I want to determine whether the the entered details belong to a new person or just edit. I have got the …

0
104
Member Avatar for honeybee2090

i want to add items from webbrowser to listview i had use these codes to add in text1.text text1.text = WebBrowser1.Document.Body.InnerText now i want to use listview i try this LV.ListItems = WebBrowser1.Document.Body.InnerText but its wrong need lil Help with this code

Member Avatar for AndreRet
0
117
Member Avatar for t0kipot

hi, my command button sets its function to get the sum of my daily income. And when i click it again the sum will become double (EVERY CLICK) so i want to my command button to WORK by only 1 CLICK. example 10 + 10 = 20 when i click …

Member Avatar for AndreRet
0
139
Member Avatar for sriarjun2013

How to create flexgrid control with save & modify & deletaion & cancel button one example

Member Avatar for AndreRet
0
44
Member Avatar for t0kipot

Hi, help me please I have a project that gather the total cash of my customer. First when i click the 1st total button, the cash value will go to adodc1. Adodc1 is set for DAILY cash values inputs. After multiple cash value in the adodc1 i need to total …

Member Avatar for AndreRet
0
97
Member Avatar for dgipling

I working with an application written in Visual Studio C++. Then program is a console application running under the DOS-prompt. The program is something like this. void main () { for ( ;; ) { do_something (); do_something_more () } } Now I need to add some code between do_something …

Member Avatar for richieking
0
241
Member Avatar for glenndr_15

Greetings! Just want to ask how to create a C/C++ ide then link to a compiler? any advice? can I use a visual studio for creating an IDE?... Thanks Best regards, glenndr_15

Member Avatar for glenndr_15
0
353
Member Avatar for ohwhatacuteanaconda

I need assistance with using Keypress to only allow a certain range of numbers (1-26) to be typed into the textbox. When ever I do it, it only allows me to press the numbers "1 and 2". I'm very new to VB so the help is much obliged. I know …

Member Avatar for ohwhatacuteanaconda
0
403
Member Avatar for Tekito

I am new to Visual Basic 6 Class Modules and am having difficulty constructing a certain class. First off, I created a simple class, which is basically an array with some basic properties (Sum, etc). Next off, I want to create another class, which has these arrays as properties. As …

Member Avatar for MrZerocaL
0
3K
Member Avatar for Oblivi8or

Hi. I'm fairly new to VB.NET programming, and i'm currently developing an application for the sake of experience. What i know about Visual Basic programming might be considered dangerous, but none the less, i'm trying. I'm having difficulty getting past the idea of how to update a record in a …

Member Avatar for Novagrail
1
2K
Member Avatar for Albino

Errors: 1>c:\users\will\documents\visual studio 2010\projects\sdl test\sdl test\main.cpp(239): error C2065: 'string' : undeclared identifier 1>c:\users\will\documents\visual studio 2010\projects\sdl test\sdl test\main.cpp(239): error C2146: syntax error : missing ';' before identifier 'str' 1>c:\users\will\documents\visual studio 2010\projects\sdl test\sdl test\main.cpp(239): error C2065: 'str' : undeclared identifier Code: `string str;` For some reason strings are giving me errors.

Member Avatar for Ancient Dragon
0
169
Member Avatar for jeha0

Hi. I'm Jens from Sweden. I have been programmming mostly embedded (AVR) using C for a couple of years. Tried Java (for Windows and Linux on desktop PC) but discovered lots of problems with that. Also tried C++ with CodeBlocks or other IDE's. Struggled with QT4 designer for a while …

Member Avatar for jeha0
0
230
Member Avatar for opman234

Please help me, I want to enable ajax extensions in my tool box. This is my first time I want to use ajax extensions. When I click show all on the toolbox, it show the ajax extension panel but the control can't be drag to the form, please kindly help …

Member Avatar for opman234
0
185
Member Avatar for shabi kuti

Hi I have a question in writing this code. it goes as follows: i have to 2dropdown lists , that is the start location and the end location . if the user selects a start and a end location the distance falls to a textbox called txtdistance. can anyone help …

Member Avatar for Sayfuddin
0
202
Member Avatar for infantprgrmr

Hi, I am new into Visual Basic programming and I am using a VB2010 Express. I've been working on something and so far managed to achieve results by refering to different articles online. Now I am stuck at the serial communication part. Can anyone please help me describing how to …

0
45
Member Avatar for Kalpeshk9967

Hi, This is my Second post here pls tolerate my english I am making a WPF app with a media element i have added a media element a play button & a stop button bt when i start debugging the the process starts bt the app is not visible i …

0
67
Member Avatar for guillier

Dim ADP As SqlDataAdapter = New SqlDataAdapter Dim CONN As SqlConnection = New SqlConnection("Data Source=|DataDirectory|\dbTesting.sdf") Dim COMM As SqlCommand = New SqlCommand("SELECT * FROM tbTesting") Dim DS As New DataSet CONN.Open() Dim DR As SqlDataReader = COMM.ExecuteReader() DR = COMM.ExecuteReader() TextBox0.Text = DR("Test").ToString This was my coding in order to …

Member Avatar for guillier
0
127
Member Avatar for ronb

i wrote and compiled an vb 6 program on a windows xp sp2 box i am trying to run the program via a batch file from an nt box i get this error: runtime error 91: object variable or With block variable not set the program runs under the scheduler …

Member Avatar for aronhugos
0
4K
Member Avatar for asrith001
Member Avatar for AndreRet
0
162
Member Avatar for killerSmile

can anyone help me to make a program for multiple choice test using visual basic and ms access???pls ..

Member Avatar for deceptikon
0
107
Member Avatar for riahc3

Hello How do I write a C++ program targeting a x86 version of Windows CE in Visual Studio 2008? It doesnt show me Windows CE and more so, all it targets is ARM. Thanks

0
67
Member Avatar for newbie26

hey..can someone help me?? i have a html/php file with a command button and when i clicked it, it will run the exe file of a vb6 application. how can i do this?can i have sample code?? thanks in advance.

Member Avatar for newbie26
0
478
Member Avatar for Shodow

how can i change the value of data in crystal report base on the selected item in listview? i am using mysql and visual studio 2012

Member Avatar for Shodow
0
912

The End.