Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF Visual Basic


Close an Excel File which is already opened using vb  

Private Sub Form_Load()Dim FSO As Object Set FSO = CreateObject("Scripting.FileSystemObject") Dim Fl As Object strFolder = "C:\Documents and Settings\DMISAdmin\Desktop\" ' path remains same always. strfile = "tst.txt" '... Continue Reading
Views : 81
Monday 24th of December 2012

Making an excecutable file  

Hello, I had a project in which i created a whack-a-mole for a school thing. I need to make this game run in a .exe file. How should I go about doing this.p.s. the high scores are stored in a .txt file in the folder of the projectthanks, Continue Reading
Views : 31
Monday 24th of December 2012

File Handling  

Dim pupil As PupilRec Dim filename As String Dim recnum As Integer Dim Dataitem As String * 2 Dim Count As Integer Dim Found As Boolean Dataitem = InputBox("What is the number of the pupil?", ("Pupil Number Request"), "1") If Len(Dataitem) = 0 Then Exit... Continue Reading
Views : 42
Monday 24th of December 2012

Register  

[font=Arial Black][size=6][size=5] Continue Reading
Views : 60
Monday 24th of December 2012

Insert into  

I need some one can give me the answer to solve my problem about write SQL "Insert into" becouse i want to add values in a field with spesial condition(Where clouse). Example :1. I want to add values(XX) in Table (YYY) to Field(ZZZ) with condition field (Where Clouse=ZZZ) had value "bbb"... Continue Reading
Views : 35
Monday 24th of December 2012

displaying a newly added record in a listview  

i need another help regarding listview.I have a listview and command buttons like cmdAdd, cmdSave, cmdEdit, and cmdDelete. When I click cmdAdd, it will validate flight number. And if it is accepted, cmdSave will be enabled. When cmdSave is clicked, the system will add a new flight.... Continue Reading
Views : 59
Monday 24th of December 2012

Making 12 sequential directories in Windows  

Hi, I want to start out by saying that I know almost nothing about Batch Files, Visual basic or Programing. I am working on a Dell laptop computer running Windows XP2000.I need quite often to make 12 folders (directories) that are the same except... Continue Reading
Views : 89
Monday 24th of December 2012

Temporary Internet Files Help  

Hello I am currently working on a program and i have come across a problem, I am using Visual Basic 5.0 and i need to delete all the files in the Temporary Internet Files dir which is:C:\Documents and... Continue Reading
Views : 42
Monday 24th of December 2012

hello  

hello everyone>>can anyone help me to find the vigenere cipher code in vb6 cause i have aproject in it...i tried to fi nd the solution by my self but i cannot Continue Reading
Views : 64
Monday 24th of December 2012

Invisible  

Hi I making a game but I have a small problem as I am wanting to make something invisible. The first thing you would think is use the properties but not the easy as my game picks up an image and places it in a particular spot. However, what I need... Continue Reading
Views : 27
Monday 24th of December 2012

Calculate Max, min, aver and total  

Hello, I am working on a rainfall calculator. I keep getting the zeros for the totals (Minimum, Maximum, Average and Total Rainfall output). Everything else works as expected. Can you please help me with this? Continue Reading
Views : 41
Monday 24th of December 2012

how to find first letter in last name  

Private Sub cmdGroup_Click() Dim strName As String Dim strLast As String Dim intLastPosition As Integer intLastPosition = InStr(1, strName, "") + 1 strLast = (Mid(strName, intLastPosition,... Continue Reading
Views : 48
Monday 24th of December 2012

Finding the Largest Value  

I have a problem to find the largest number of 10 numbers. I'm pretty sure I'm on the right track; except, my counter goes to 11 instead of stopping at 10. Also if I nest an if..then in the middle of the while, can I do the check for the largest... Continue Reading
Views : 26
Monday 24th of December 2012

Resizing controls using Sub Procedure  

OK, my problem is this I am trying to resize a control using Sizing Handles that I made.here is what I have:Public CurrentControl As ControlPrivate Sub cmdTest_GotFocus() Set CurrentControl = cmdTestEnd... Continue Reading
Views : 48
Monday 24th of December 2012

Subscript Out Of Range  

Hello all, new here.Hope someone can help me!I have an msflexgrid containing multiline information. I save this information into a txt file with each row on 1 line split with "##!" delimiter.A blank row would for... Continue Reading
Views : 54
Monday 24th of December 2012

Visual Basic 6.0 prof edition  

Does anyone have a Visual Basic 6.0 Key that I can use to install back onto my system, MY visual basic 6.0?Microsoft does not support 6.0 anymore and will not provide a key anymore.This is software that I did purchase many years ago, but misplaced the key. Continue Reading
Views : 60
Monday 24th of December 2012

Randomized File Name  

Hello,i have the followin question; how can i make with each run of that program that the tool dont save each time the same file named 123.txt i search an string for an random named file name hope you... Continue Reading
Views : 37
Monday 24th of December 2012

help with starting files  

I am making a program that i will use for everything basically from starting solitaire, to using the internet i made for it. I am stuck though on one part. I embedded several .gba files. I know how to start files that are not embedded by doing... Continue Reading
Views : 105
Monday 24th of December 2012

call vba sub or function for vb.net code  

I need access some vba sub or function written inside the excel file. Now I need use vb.net to access this sub or function. How can I do that?Thanks Continue Reading
Views : 41
Monday 24th of December 2012

MessageBox  

How to add image on Message Box plz Continue Reading
Views : 43
Monday 24th of December 2012

Call other form  

I want make program that contain toolbar "about". My problem is when i press about for the 1st time the program run well but for the 2nd time there is an error Dim Aboutform As New AboutPrivate Sub AboutMenu_Click(ByVal sender As System.Object, ByVal e As... Continue Reading
Views : 39
Monday 24th of December 2012

visual basic code  

[font=Arial][size=7]' The text string (strMatch) from the BidList.txt file has been compared to the' numbers in each of the tables of the A and D doc downloaded from the web.If Match = False Then MsgBox strMatch & "... Continue Reading
Views : 55
Monday 24th of December 2012

i cannot connect the Ms access to Data control  

i create a database in Ms access. In vb i connect the acces usingData control and also i set the data source property. i try to set record set property for data control. but the error msg window opened and show the message " unrecognized... Continue Reading
Views : 41
Monday 24th of December 2012

problem to open record on SQL  

I have declare it on my module i don't know whether it is correct Sub ViewRecord() With Form1 MyConnObj.Open _ "Provider = sqloledb;" & _ "Data Source='';" & _ "Initial Catalog='';" & _ "User... Continue Reading
Views : 33
Monday 24th of December 2012

Using Comboboxes  

Hi There,I haven't used VB6 in over 3 years. I recently started again but realised that I had to start from scratch again. My problem is the following:I have 4 tables in my Access DB Clients, Agents, Portfolios and... Continue Reading
Views : 38
Monday 24th of December 2012

formatting formulas in an Excel macro  

how would one go about trying to take formulas in Excel and displaying them in a macro as if it were written on paperlike 2/3 becomes 2 3and adding proper spacing and all that jazzideas? Continue Reading
Views : 54
Monday 24th of December 2012

How to read a text file in VB6  

I want to read the text file per lines. How can I do this using Visual Basic 6.0. I want to know also how to get the lenght of each lines in the text file.thanks. Continue Reading
Views : 49
Monday 24th of December 2012

runtime error 5 Invalid Proc Call or Argument  

Hello Group,I'm newbie - xjd925zWhile in an Access 2000 DB - I'm getting runtime error 5 Invalid procedure call or argument Can you tell me what is causing this? Continue Reading
Views : 56
Monday 24th of December 2012

Simple calculator 10 digits  

Public Class Form1 Dim first As Double Dim second As Double Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End SubEnd Class Continue Reading
Views : 65
Monday 24th of December 2012

can anyone help me in writing the code of a simple login page  

can anyone help me in writing the code of a simple login page..i had designed the page with two textboxes for username and password and one button for login. please tell me the code for this page.. Continue Reading
Views : 111
Monday 24th of December 2012