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
frmLogin.Show
End Sub

Posted by on

1 Answer

  • Level 1:

    An expert who has achieved level 1.

    Hot-Shot:

    An expert who has answered 20 questions.

    Corporal:

    An expert that hasĀ over 10 points.

    Mayor:

    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

6ya6ya
  • 2 Answers

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

Hi,
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.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

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

×

Loading...
Loading...

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.Edit
rsMyRS!Phone = txtPhone.Text
rsMyRS.Update

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

Tip

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()
  4. f2.show();

Test Code :
Form1

private void button1_Click(object sender, EventArgs e)
{
Form2 _f = new Form2();
_f.Show();
this.Hide();
}
---------------------------
Form2

private void logoutToolStripMenuItem1_Click(object sender, EventArgs e)
{
Form1 f1 = new Form1();
f1.ShowDialog();
}

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

Can you make an internet browser with microsoft visual basic 2008?


yes you can below you have one option:
Create a new project, and then go to "Project" on the menu.
Click components as shown in the following image.
Find the component "Microsoft Internet Controls," check it, and click "Apply" and then "Close."
Click the icon that was just added in the tools window, and draw a large sized window with it. This is going to be where you view webpages through your browser, so don't make it small, but leave room for buttons and other accessories.
Make a textbox, this will be your URL bar where you type in the address of the website you want to see.
Make four command buttons, these are going to be your Go, Back, Forward, and Refresh buttons, change the captions accordingly, and name each of them Cmdgo, Cmdback, CmdForward, and CmdRefresh.
Now, here's the coding part. This is all it takes to make your webbrowser working:
Private Sub cmdback_Click()
WebBrowser1.GoBack
End Sub
Makes the back button go backwards, pretty much self explanatory:
Private Sub Cmdforward_Click()
WebBrowser1.GoForward
End Sub
Same concept, except this time the webbrowser goes forward:
Private Sub cmdgo_Click()
WebBrowser1.Navigate (Text1.Text)
End Sub
Makes your webbrowser go to the URL in your text box:
Private Sub cmdrefresh_Click()
WebBrowser1.Refresh
End Sub
Makes your web browser refresh:
Private Sub Form_Load()
WebBrowser1.Navigate ("http://yahoo.com")
End Sub
The URL shows your homepage, change it to http://google.com or whatever your usual homepage you would like to be.
Private Sub WebBrowser1_StatusTextChange(ByVal Text As String)
Text1.Text = (WebBrowser1.LocationURL)
Form1.Caption = (WebBrowser1.LocationName)
End Sub

Jan 15, 2010 | Computers & Internet

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
Form1.Show
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
cn.open "CONNECTION STRING" <------
end sub

private sub form_load()
call xn
if rs.state=adstateopen then rs.close
rs.open "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

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

2637 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18333 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

Loading...