Question about Microsoft Visual Basic 6.0 for PC

1 Answer

Can you please make me understand of this, actually each line,

I know what it does,but i want to know what the compiler does?

Private Sub Form_Load()
Move 2500, 1500, 6900, 3915
End Sub

Private Sub Timer1_Timer()
Unload Me
End Sub

Posted by on

1 Answer

  • Level 1:

    An expert who has achieved level 1.


    An expert who has answered 20 questions.


    An expert that hasĀ over 10 points.


    An expert whose answer gotĀ voted for 2 times.

  • Contributor
  • 20 Answers

The only thing it does it check for viurs and protect your computer and in some school its got the same programs on that disk

Posted on Feb 28, 2009

1 Suggested Answer

  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%


Complete. Click "Add" to insert your video. Add



Related Questions:

1 Answer

Private sub cmdEdit_click ( ) what is the right code to work the edit buton

You will probably want to be able to update some value of some field when doing database programming. This is done with Edit and Update. We will try to change the value of the "Phone" field by editing the text in the text box and clicking a button.
Put a command button on the form and name it "cmdUpdate". Then copy the following code to the project.
Private Sub cmdUpdate_Click()

rsMyRS!Phone = txtPhone.Text

End Sub
Could it be that simple? Yes. This changes the phone number of our selected person. Or to put it technically: This changes the value of the "Phone" field of our current record. Imagine the current record being a set of boxes, with a field in each box. T he Edit method takes the lid off all of the boxes and Update puts them back on. When we write rsMyRS!Phone = txtPhone.Text we replace the content of the "Phone" box with the content in the text box.

Dec 16, 2010 | Microsoft Visual Basic 6.0 for PC


Avoiding the Beep

When you're entering information into a text box and press <Enter>, you'll hear a beep. You can easily avoid this behavior. To do so, place a text box on your form (Text1). Enter the following code in the KeyPress event:

Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
KeyAscii = 0
End If
End Sub

on Apr 23, 2009 | Microsoft Mlf Visual Studio Enterprise...

1 Answer

How can i hide and show the next form?

  1. form f1 = new form1()
  2. f1.hide();
  3. form2 f2 = new form2()

Test Code :

private void button1_Click(object sender, EventArgs e)
Form2 _f = new Form2();

private void logoutToolStripMenuItem1_Click(object sender, EventArgs e)
Form1 f1 = new Form1();

Dec 03, 2010 | Microsoft Visual Studio .NET 2003 Service...

1 Answer

What does Dim, Try , Me , Private Sub means in Visual Basic

Dim allows you to declare a variable. It is short for "Dimension", and is an old old keyword. For example if you want to declare a variable called i that can hold an integer you would write:
Dim i As Integer
The Try keyword is used to allow you catch errors when they occur. If you didn't catch them, they would cause the program to end with an error report.
Try ' Code goes in here that might throw an error Catch Ex As Exception ' Code goes here to deal with any error End Try
The Me keyword refers to the current instance of the class in which the word appears. For example if the class is called Form1, then Me allows you to refer to the current instance of the class when the code is running.
Private Sub is formed from two Keywords. Private is an "Access modifier". When applied to a Sub it means that the Sub would not be visible outside the class. Sub is short for "Subroutine". A subroutine is a section of code that performs some useful function that you might want to run many times. For example you might want to do something whenever a button is clicked, and so you would write a subroutine with code in that will run whenever the button is clicked.
It would be better to ask programming questions in a visual basic forum. There are many on the internet. Search the internet for "visual basic forum". Also note that when you are using Visual Studio 2005, you can press the F1 key when you have placed the cursor in a word that you do not understand, and it will open the help and the relevant page.
These terms are very very difficult to understand when you have never programmed before. Usually it is best to take a lot of it on faith, and move on through the book or example that you are following without completely understanding it all. Over time, with practice, repetition and perseverance you will start to develop an understanding of the underlying concepts. They are hard to explain and hard to learn.

Jun 06, 2010 | Microsoft Visual Studio 2005 Standard...

1 Answer

How to store in an array the records in a listview

create form1 with one list box and form2 with text boxes and command button.
Go to project >project properties>start object will be form2..
Here i takenexamble of two textboxes..code is below
Private Sub Command1_Click()
Form1.List1.AddItem Text1.Text, 0
Form1.List1.AddItem Text2.Text, 1
End Sub

hope this will help you...Thank you,....

Nov 11, 2009 | Microsoft Visual Basic Professional...

1 Answer

How to read and write to registry

.NET code.

It is very simple all you need is.
Imports Microsoft.Win32
Public Class Form1
Dim reg As RegistryKey = Registry.LocalMachine.CreateSubKey("Software\MyApp\", RegistryKeyPermissionCheck.ReadWriteSubTree)
Dim regKey As RegistryKey = Registry.LocalMachine.OpenSubKey("Software\MyApp\", True)

Private Sub SetBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SetBtn.Click
regKey.SetValue("KeyName", "Path")
End Sub

Private Sub GetBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GetBtn.Click
Dim Path As String
Path = regKey.GetValue("KeyName")
End Sub
End Class

Jun 23, 2009 | Microsoft Visual Basic Enterprise Edition...

1 Answer

Can i ask example of vasual basic 6.0?

Do you need a random example?
If you're looking for a specific case please let us know.

Please find below your random example:

Dim mark As Single

Private Sub Compute_Click()

'Examination Marks
mark = mrk.Text

Select Case mark
Case 0 to 49

comment.Caption = "Need to work harder"

Case 50 to 59

comment.Caption = "Average"

Case 60 to 69
comment.Caption = "Above Average"

Case 70 to 84
comment.Caption = "Good"

Case Else
comment.Caption = "Excellence"

End Select

End Sub

Mar 19, 2009 | Microsoft Visual Basic 6.0 for PC

2 Answers

Hw to link database using visual basic

use adobc <------try this

dim rs as new adobc.recordset
dim cn as new adobc.connection

private sub xn()
cn.cursorlocation = aduseclient "CONNECTION STRING" <------
end sub

private sub form_load()
call xn
if rs.state=adstateopen then rs.close "select * from TABLENAME" ,cn, adlockstatic, adlockreadonly
if rs.recordcount > 0 then
set datagrid1.datasource = rs
end sub

Feb 12, 2009 | Microsoft Visual Basic 6.0 for PC

2 Answers

About guidence

i still not solved the problem

Apr 18, 2008 | Computers & Internet

1 Answer

Vb6 source code is not compiling.

What the heck are you compiling it with that doesn't give a line number for that error? Pay attention to the titles of messageboxes! Perhaps noting what lines you changed from the original will give a clue to narrow it down, but I expect you addressed an object with a property ( in a context that can't be expected to generate or use that property as you gave it. Moreover there are spaces in object names, it seems....

Apr 13, 2008 | Computers & Internet

Not finding what you are looking for?
Microsoft Visual Basic 6.0 for PC Logo

Related Topics:

52 people viewed this question

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

micky dee

Level 3 Expert

2644 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18381 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Are you a Microsoft Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides