Friday, July 31, 2009
How in Visual Basic 2005 can you replace first character of string with a different character?
Dim string1 As String = "Replace me"
Dim string2 As String = string1.Remove(0, 1)
string1 = "D" + string2
How in Visual Basic 2005 can you replace first character of string with a different character?
Sure. You can do this a couple of ways. Just set the string = the new character plus the remaining characters of the string. Look at the Mid, SubStr, and Right functions. All of those should work.
Reply:Here's how to do it using Substring...
Dim oldString As String = "Replace me"
Dim newString As String = "D" %26amp; oldString.Substring(1)
Dim string2 As String = string1.Remove(0, 1)
string1 = "D" + string2
How in Visual Basic 2005 can you replace first character of string with a different character?
Sure. You can do this a couple of ways. Just set the string = the new character plus the remaining characters of the string. Look at the Mid, SubStr, and Right functions. All of those should work.
Reply:Here's how to do it using Substring...
Dim oldString As String = "Replace me"
Dim newString As String = "D" %26amp; oldString.Substring(1)
How do you get microsoft visual basic on your computer?
can i just get it on a website or i have to buy it? if i have to buy it, do you know where they sell it?
How do you get microsoft visual basic on your computer?
Search for it on microsoft.com.
your search should be :
Visual Basic 2005 Express Edition or Visual Basic 2008 Express Edition
Because these two are the best but 2008 Version takes a long time to download
Reply:Get the express version.
Reply:australia sucks!
Reply:get the softwares here for free:
http://www.freewarefiles.com/cat_10_115_...
How do you get microsoft visual basic on your computer?
Search for it on microsoft.com.
your search should be :
Visual Basic 2005 Express Edition or Visual Basic 2008 Express Edition
Because these two are the best but 2008 Version takes a long time to download
Reply:Get the express version.
Reply:australia sucks!
Reply:get the softwares here for free:
http://www.freewarefiles.com/cat_10_115_...
How do i open a file in a program i made with visual basic?
I made a text editing program and i want it to be able to save and open files. i have the savefiledialog and oenfiledialog things and the buttons that display them, but when i click ok, it doesnt do anything. Also when i print it, it jsut prints a blank page. Any ideas?
How do i open a file in a program i made with visual basic?
It sounds like you haven't assigned function to the events triggered after the open and save dialogs. The save function would take the text that has been entered into your application, I'm assuming either a text box or a richtext box and output it to a file as a stream. The load function would take an existing file as a stream and output the stream to a control in your application.
How do i open a file in a program i made with visual basic?
It sounds like you haven't assigned function to the events triggered after the open and save dialogs. The save function would take the text that has been entered into your application, I'm assuming either a text box or a richtext box and output it to a file as a stream. The load function would take an existing file as a stream and output the stream to a control in your application.
Can Visual Basic programs be imported into Dreamweaver?
I created a program in Visual Basic 6.0 and was wondering if it would be in any way possible to load this program into a Dreamweaver MX 2004 document?
Can Visual Basic programs be imported into Dreamweaver?
no, but you can re-make the program through VBScript. it's similar to Visual Basic but makes it a little more friendly to HTML
Reply:No. Only web based code (code created that can be executed only on a web server) can be imported, say asp using vbscript or asp.net pages using vb.net, php, cold fusion, etc.
Visual Basic your talking about runs in the operating system and not on a web server.
Hope this helps.
stalk
Can Visual Basic programs be imported into Dreamweaver?
no, but you can re-make the program through VBScript. it's similar to Visual Basic but makes it a little more friendly to HTML
Reply:No. Only web based code (code created that can be executed only on a web server) can be imported, say asp using vbscript or asp.net pages using vb.net, php, cold fusion, etc.
Visual Basic your talking about runs in the operating system and not on a web server.
Hope this helps.
stalk
How do you add a WMP (window media player) to a form on Visual Basic.net?
i want it to play the song when i activate the form.
Please note this is "visual basic.net". NOT "visual basic" or visual basic 2005
How do you add a WMP (window media player) to a form on Visual Basic.net?
Just add the control to it. More info here (works with whatever .net language you prefer btw).
Please note this is "visual basic.net". NOT "visual basic" or visual basic 2005
How do you add a WMP (window media player) to a form on Visual Basic.net?
Just add the control to it. More info here (works with whatever .net language you prefer btw).
How do I make a variable usable in multiple forms in Visual Basic 6?
Let say in Form1 the user chooses a text file, file A, to open containing the path of another file, file B. Then he will click a command button which opens file B in another form, displaying the text in the file in a text box.
How do I make a variable usable in multiple forms in Visual Basic 6?
don't understand the question
do you mean file A contains the path to file B ?
Reply:There are three ways of doing this.
When you Define Form 2, set the Tag command with the value.
or
When you define Form 2 put the value in the New Parameters list
or
Define the Variable as Public in Form 2, after it is defined move the value to the variable.
Reply:You will find the answer here
http://www.freetutes.com/VisualBasic
Reply:Use a module. A module in VB6 is essentially common code that can be referenced by all classes %26amp; forms within your project.
How do I make a variable usable in multiple forms in Visual Basic 6?
don't understand the question
do you mean file A contains the path to file B ?
Reply:There are three ways of doing this.
When you Define Form 2, set the Tag command with the value.
or
When you define Form 2 put the value in the New Parameters list
or
Define the Variable as Public in Form 2, after it is defined move the value to the variable.
Reply:You will find the answer here
http://www.freetutes.com/VisualBasic
Reply:Use a module. A module in VB6 is essentially common code that can be referenced by all classes %26amp; forms within your project.
How do I declare a global variable in a module in Visual Basic 2005?
I need to declare a variable inside a module so that all code in the program (including code in the main form class) can "see" it.
How do I declare a global variable in a module in Visual Basic 2005?
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
namespace ......................
{
declare here ......
public partial class classname
{}
if it won't work then.....
or...
set properties to that variable.....
so that you can call it anywhere in the application.....with the instance of the class....
if you don't know how to set properties then ask me i will tell you...
Reply:Well, to put it bluntly, you don't.
It is poor programming practice to define a variable that can be accessed so easily from anywhere within a program. Yes, it is done in VBA and such, but it is not good practice.
The correct way to accompish this is to either pass the variable between classes, or to define it as an attribute of the class, and then access it through gets/sets (properties) of an instance of the class.
Yeah - basically what NV said above - he's on the right track.
How do I declare a global variable in a module in Visual Basic 2005?
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
namespace ......................
{
declare here ......
public partial class classname
{}
if it won't work then.....
or...
set properties to that variable.....
so that you can call it anywhere in the application.....with the instance of the class....
if you don't know how to set properties then ask me i will tell you...
Reply:Well, to put it bluntly, you don't.
It is poor programming practice to define a variable that can be accessed so easily from anywhere within a program. Yes, it is done in VBA and such, but it is not good practice.
The correct way to accompish this is to either pass the variable between classes, or to define it as an attribute of the class, and then access it through gets/sets (properties) of an instance of the class.
Yeah - basically what NV said above - he's on the right track.
What is the difference between a function and a subroutine in visual basic?
Support your answer with a written program if possible.
What is the difference between a function and a subroutine in visual basic?
A function returns a value. A Subroutine does not (void in C#)
Reply:Functios and subroutine both are functions used in visual basic but single difference in between them is function can return value while subrouthin cannt
Reply:In almost all languages that have both procedures (subroutines) and functions, the difference is that functions return values.
Have a look in your help files for many examples of both.
Rawlyn.
Reply:None of the above answers are complete, actually.
In VB, a Function is indeed a method that returns a value, but it's important to specify that it returns a value by *assignment* (across the equals sign):
Private Function add(ByVal num1 as Integer, ByVal num2 as Integer) as Integer
answer = add(number1,number2)
An independent sub procedure (as they're called in VB) does not
have a return value by assignment. It CAN, however, return a value by *reference*:
private sub add(ByVal num1 as Integer, ByVal num2 as integer, ByRef sum as Integer)
add(number1, number2, answer)
The variable "answer" is assigned the appropriate value in both cases, it's just HOW that happens that is different.
Hope that helps :)
Rob
rose garden
What is the difference between a function and a subroutine in visual basic?
A function returns a value. A Subroutine does not (void in C#)
Reply:Functios and subroutine both are functions used in visual basic but single difference in between them is function can return value while subrouthin cannt
Reply:In almost all languages that have both procedures (subroutines) and functions, the difference is that functions return values.
Have a look in your help files for many examples of both.
Rawlyn.
Reply:None of the above answers are complete, actually.
In VB, a Function is indeed a method that returns a value, but it's important to specify that it returns a value by *assignment* (across the equals sign):
Private Function add(ByVal num1 as Integer, ByVal num2 as Integer) as Integer
answer = add(number1,number2)
An independent sub procedure (as they're called in VB) does not
have a return value by assignment. It CAN, however, return a value by *reference*:
private sub add(ByVal num1 as Integer, ByVal num2 as integer, ByRef sum as Integer)
add(number1, number2, answer)
The variable "answer" is assigned the appropriate value in both cases, it's just HOW that happens that is different.
Hope that helps :)
Rob
rose garden
How to make a moving button in Visual Basic 6?
Im very new to VB (this is my thrid day) and I'm trying to figure out how to make a command button that moves around randomly when the mouse cursor hovers over it. I know it's stupid and I'm sure very simple but I'm having a hard time figuring it out any help would be great! Thank you.
How to make a moving button in Visual Basic 6?
HI
PUT A COMMANDBUTTON CALLED "Command1"
AND INTO THE MouseMove EVENT PUT
THE CODE
e = Int((4 - 1 + 1) * Rnd + 1)
If e = 1 Then
Command1.Top = Command1.Top + Int((20 - 10 + 1) * Rnd + 10)
ElseIf e = 2 Then
Command1.Left = Command1.Left + Int((20 - 10 + 1) * Rnd + 10)
ElseIf e = 3 Then
Command1.Top = Command1.Top - Int((20 - 10 + 1) * Rnd + 10)
ElseIf e = 4 Then
Command1.Left = Command1.Left - Int((20 - 10 + 1) * Rnd + 10)
End If
IF ALL RIGTH THEN YOU MUST SEE THE NEXT CODE
Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
e = Int((4 - 1 + 1) * Rnd + 1)
If e = 1 Then
Command1.Top = Command1.Top + Int((20 - 10 + 1) * Rnd + 10)
ElseIf e = 2 Then
Command1.Left = Command1.Left + Int((20 - 10 + 1) * Rnd + 10)
ElseIf e = 3 Then
Command1.Top = Command1.Top - Int((20 - 10 + 1) * Rnd + 10)
ElseIf e = 4 Then
Command1.Left = Command1.Left - Int((20 - 10 + 1) * Rnd + 10)
End If
End Sub
How to make a moving button in Visual Basic 6?
HI
PUT A COMMANDBUTTON CALLED "Command1"
AND INTO THE MouseMove EVENT PUT
THE CODE
e = Int((4 - 1 + 1) * Rnd + 1)
If e = 1 Then
Command1.Top = Command1.Top + Int((20 - 10 + 1) * Rnd + 10)
ElseIf e = 2 Then
Command1.Left = Command1.Left + Int((20 - 10 + 1) * Rnd + 10)
ElseIf e = 3 Then
Command1.Top = Command1.Top - Int((20 - 10 + 1) * Rnd + 10)
ElseIf e = 4 Then
Command1.Left = Command1.Left - Int((20 - 10 + 1) * Rnd + 10)
End If
IF ALL RIGTH THEN YOU MUST SEE THE NEXT CODE
Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
e = Int((4 - 1 + 1) * Rnd + 1)
If e = 1 Then
Command1.Top = Command1.Top + Int((20 - 10 + 1) * Rnd + 10)
ElseIf e = 2 Then
Command1.Left = Command1.Left + Int((20 - 10 + 1) * Rnd + 10)
ElseIf e = 3 Then
Command1.Top = Command1.Top - Int((20 - 10 + 1) * Rnd + 10)
ElseIf e = 4 Then
Command1.Left = Command1.Left - Int((20 - 10 + 1) * Rnd + 10)
End If
End Sub
How or where can i learn VIsual BASIC?
Hi friends..
i want to learn Visual basic effectively and easily so where can i find a very very good e-book of it?Please help me..
How or where can i learn VIsual BASIC?
Try this link:
http://msdn2.microsoft.com/en-us/library...
Reply:One of my favorite programming reference materials comes from http://www.wrox.com . I know that I've seen the online versions at http://www.books24x7.com . That's a pay site, but I'm fortunate enough to have my employer pay that monthly fee (no clue what the charge is).
I've used the WROX materials for several different languages and applications. They give more down-to-earth examples and use more everyday terms than MSDN.
Reply:Free video tutorials are at
http://www.pixel2life.com/sitemap/
i want to learn Visual basic effectively and easily so where can i find a very very good e-book of it?Please help me..
How or where can i learn VIsual BASIC?
Try this link:
http://msdn2.microsoft.com/en-us/library...
Reply:One of my favorite programming reference materials comes from http://www.wrox.com . I know that I've seen the online versions at http://www.books24x7.com . That's a pay site, but I'm fortunate enough to have my employer pay that monthly fee (no clue what the charge is).
I've used the WROX materials for several different languages and applications. They give more down-to-earth examples and use more everyday terms than MSDN.
Reply:Free video tutorials are at
http://www.pixel2life.com/sitemap/
Visual Basic. Dynamically creating a key, (at runtime) for a program for distribution? How can I do this?
What I am trying to do is figure out how to dynamically create a key at runtime in a program so that I don't have all sorts of programs running around out there that use the same registration key. I am starting to get familiar with Visual Basic.NET and have written a simple program in it and want to learn how I would be able to distribute it and somehow spit out some keycode that is specific to that program. Does anyone know where to start on something like this? I have read some about needing to write to the registry and such and I think I can understand that, I however am not sure how to have the program spit out a keycode according to it's algorithm and spit the key out to me so that when I run it it asks for the key and when I use it it works. I then am sure that I would have to figure out how to tell the registry that it is cool, they have the key.
Any leads? There are several parts to this so even if you have some idea on just one, I would like to hear it.
Thanks...
Visual Basic. Dynamically creating a key, (at runtime) for a program for distribution? How can I do this?
I understand what you are tryin gto do here. Although it is a nice idea there are several small problems:
1) There is a relatively high probability that the key that is created on the users computer could match another users key. How would the algorythm then handle this??
2) Someone could easily disect your algorythm and create unlimited numbers of keys for distribution, WHICH WILL HAPPEN.
Here is an easy reliable solution.
create a guid (globally unique identifier). Guid's are used in the registry to identify applications, dll's etc...
Read a little about them in the IDE index for help
here is the code beind it.
Public Class Form1
Inherits System.Windows.Forms.Form
Private x As New Guid()
Private sub createguid()
console.writeline(x.NewGuid)
End sub
End class
I would also recommend that you create the Guid when the application is downloaded and have it compiled into the code as a resource file before the user downloads it.
This will allow you to check if the Guid has been created before (about a 1 in several trillion chance) and will allow you to create another on if it has already been used.
Read a little more about them. I am certain your idea will become more clear as you read.
Best of luck
Reply:1. have an algorithm to generate keys based on a few choices.
like key = a*100 + a/2 where a = (1..100) (this is too simple)
2. when installing, have the program save, 'a' to disk or registry.
3. when running, have the user type in the key, and compare it with the key retrieved from 'a'.
( if u want more restrictions, u can have a algorithm to generate from say, user's name, then have the user register at some, site, which automatically generates the key, and mails the user. )
Any leads? There are several parts to this so even if you have some idea on just one, I would like to hear it.
Thanks...
Visual Basic. Dynamically creating a key, (at runtime) for a program for distribution? How can I do this?
I understand what you are tryin gto do here. Although it is a nice idea there are several small problems:
1) There is a relatively high probability that the key that is created on the users computer could match another users key. How would the algorythm then handle this??
2) Someone could easily disect your algorythm and create unlimited numbers of keys for distribution, WHICH WILL HAPPEN.
Here is an easy reliable solution.
create a guid (globally unique identifier). Guid's are used in the registry to identify applications, dll's etc...
Read a little about them in the IDE index for help
here is the code beind it.
Public Class Form1
Inherits System.Windows.Forms.Form
Private x As New Guid()
Private sub createguid()
console.writeline(x.NewGuid)
End sub
End class
I would also recommend that you create the Guid when the application is downloaded and have it compiled into the code as a resource file before the user downloads it.
This will allow you to check if the Guid has been created before (about a 1 in several trillion chance) and will allow you to create another on if it has already been used.
Read a little more about them. I am certain your idea will become more clear as you read.
Best of luck
Reply:1. have an algorithm to generate keys based on a few choices.
like key = a*100 + a/2 where a = (1..100) (this is too simple)
2. when installing, have the program save, 'a' to disk or registry.
3. when running, have the user type in the key, and compare it with the key retrieved from 'a'.
( if u want more restrictions, u can have a algorithm to generate from say, user's name, then have the user register at some, site, which automatically generates the key, and mails the user. )
How do i build a messenger with visual basic .Net?
If you have source code i will appreciate, if not only the basic concepts will be fine , thanks.
How do i build a messenger with visual basic .Net?
ummm, what protocol is it? MSN's? Yahoo's? Jabber's (the one that Google and several other uses)? or your own?
First, study their protocols first then send packets of data etc according to the protocols. You can usually google the protocol specification.
Reply:sorry i am not sure
pink flowers
How do i build a messenger with visual basic .Net?
ummm, what protocol is it? MSN's? Yahoo's? Jabber's (the one that Google and several other uses)? or your own?
First, study their protocols first then send packets of data etc according to the protocols. You can usually google the protocol specification.
Reply:sorry i am not sure
pink flowers
Any one here good at visual basic? I'll pay you to do my homework assignments.?
I'm a GIS major and I am required to take a visual basics course. I have 3 GIS classes right now and cannot spend all day trying to figure out visual basic. I'm not goin to be using this stuff at my job, but they won't let me graduate without it.
Any one here good at visual basic? I'll pay you to do my homework assignments.?
MUAHAHAHAH $$$TOP
Reply:Iam more than six years in VB programming. How can I help you?
Reply:You can find many VB experts at websites like http://oktutorial.com/
Reply:how much will you pay?
Reply:If you can't work out VB for yourself, you are going to be useless. The average 12 year old can manage that, it's so easy. And you don't know they will not have to use it, with your attitude to work you probably won't hold the job for long.
Reply:Make an offer. How much are you willing to pay?
Reply:Wouldn't an easier solution be to dedicate some amount of your time (at least the time spent perusing yahoo answers for this question) to instead becoming more proficient at Visual Basic, so that it becomes easier for you?
Any one here good at visual basic? I'll pay you to do my homework assignments.?
MUAHAHAHAH $$$TOP
Reply:Iam more than six years in VB programming. How can I help you?
Reply:You can find many VB experts at websites like http://oktutorial.com/
Reply:how much will you pay?
Reply:If you can't work out VB for yourself, you are going to be useless. The average 12 year old can manage that, it's so easy. And you don't know they will not have to use it, with your attitude to work you probably won't hold the job for long.
Reply:Make an offer. How much are you willing to pay?
Reply:Wouldn't an easier solution be to dedicate some amount of your time (at least the time spent perusing yahoo answers for this question) to instead becoming more proficient at Visual Basic, so that it becomes easier for you?
How can i save another form of same project from the current form i want the code in visual basic?
Suppose i creted two form
Form1
Form2
I placed command button on the form1 named as COMMANED1 .What code i have to enter to save the form1 as database application or frm format
How can i save another form of same project from the current form i want the code in visual basic?
May be you can post your requirements at http://homework.feedmelink.com/
and let many programmers bid for your project.
You can hire whoever you like.
Do not pay any money afront however.
Reply:form 1 as a database application.
Form1
Form2
I placed command button on the form1 named as COMMANED1 .What code i have to enter to save the form1 as database application or frm format
How can i save another form of same project from the current form i want the code in visual basic?
May be you can post your requirements at http://homework.feedmelink.com/
and let many programmers bid for your project.
You can hire whoever you like.
Do not pay any money afront however.
Reply:form 1 as a database application.
How can I find someone to help me with Visual Basic?
I live in Lakeland FL and I am having difficulty finding someone to assist me in learning Visual Basic. I own VB6 and .Net 03, but with only a very minimal understanding of computer science, I find it difficult to find my way. I have offered to pay other programmers that I meet, usually $50 per hour, but they always tell me to buy a book. I can learn quickly from a book, but I really do need a live and in-person guide. Any suggestions?
qsleonard@yahoo.com
How can I find someone to help me with Visual Basic?
Find out if your local community college has any programming classes. I took a programming class at a community college in the San Francisco Bay Area, in California a while back.
Reply:someone cannot help us all the time.
try to learn by your own.
use www.msdn.com.
or get some book as others say.
if possible mail me. I dont know VB in that depth but hope i can help you.
My id is m_gopi_m@yahoo.co.in
Reply:Take a course from you local technical college. They will teach you the basics of programming syntax. Then buy a book.
Leonard Bartholomew
http://www.moxie-drive.com
Reply:programming is natural for some , not for others.
so, it depends on ur aptitude whether u can pick it up from books.
if u already find it difficult, probably u r not the guy who can do self study.
but if u r going to do self study , then dont pick some book like learn vb in 24 hours or vb for dummies like that.
buy a bigger book, which u may find terrifying at first. something like begining visual basic, or visual basic bible or visual basic black book.
qsleonard@yahoo.com
How can I find someone to help me with Visual Basic?
Find out if your local community college has any programming classes. I took a programming class at a community college in the San Francisco Bay Area, in California a while back.
Reply:someone cannot help us all the time.
try to learn by your own.
use www.msdn.com.
or get some book as others say.
if possible mail me. I dont know VB in that depth but hope i can help you.
My id is m_gopi_m@yahoo.co.in
Reply:Take a course from you local technical college. They will teach you the basics of programming syntax. Then buy a book.
Leonard Bartholomew
http://www.moxie-drive.com
Reply:programming is natural for some , not for others.
so, it depends on ur aptitude whether u can pick it up from books.
if u already find it difficult, probably u r not the guy who can do self study.
but if u r going to do self study , then dont pick some book like learn vb in 24 hours or vb for dummies like that.
buy a bigger book, which u may find terrifying at first. something like begining visual basic, or visual basic bible or visual basic black book.
How can I check if a file exists on the computer by a Visual Basic program?
I want to make a program that checks for a file if that file exists or not. I am adding certain actions that the computer will do if it finds that file but how can i make it check for its existance?
How can I check if a file exists on the computer by a Visual Basic program?
In classic VB, you can use the Dir() function to do this. Supply the full path and filename as the argument like Dir("c:\file.txt") and if it's there, this will be True; if it isn't, False.
In VB.NET, use the System.IO.File.Exists ("c:\file.txt") static (er, Shared) method to do this.
Reply:imports system.io
.
.
.
.
.
.
if file.exists(file name) then
'code
end if
'or oyu can
try
fileopen() Report It
Reply:Hi There
Create an instance of the filesystem object
there is a method to check for existance which will return true or false
objFSO.exists(Path)
are you using vbscript or visual basic 6.0 or VB.NET?
cheers
Len
Reply:Here's the p-code:
1. Start in the root dir.
2. List all files and dirs in the current dir.
3. If file is present, stop. Otherwise, for each dir previously found, repeat steps 2 and 3.
It's easy enough to code once you know the logic, and now you know the logic!
Rawlyn.
night garden
How can I check if a file exists on the computer by a Visual Basic program?
In classic VB, you can use the Dir() function to do this. Supply the full path and filename as the argument like Dir("c:\file.txt") and if it's there, this will be True; if it isn't, False.
In VB.NET, use the System.IO.File.Exists ("c:\file.txt") static (er, Shared) method to do this.
Reply:imports system.io
.
.
.
.
.
.
if file.exists(file name) then
'code
end if
'or oyu can
try
fileopen() Report It
Reply:Hi There
Create an instance of the filesystem object
there is a method to check for existance which will return true or false
objFSO.exists(Path)
are you using vbscript or visual basic 6.0 or VB.NET?
cheers
Len
Reply:Here's the p-code:
1. Start in the root dir.
2. List all files and dirs in the current dir.
3. If file is present, stop. Otherwise, for each dir previously found, repeat steps 2 and 3.
It's easy enough to code once you know the logic, and now you know the logic!
Rawlyn.
night garden
Save button in a visual basic 6 program?
Ok, im on making a program in visual basic 6, I want an option so that a user can save/load their progress.
It needs to save everthing on the form as there is a password field that a user can change and that needs to stay changed when the program is closed.
And aldo several text fields that need to stay changed with anything a user has entered into them.
Save button in a visual basic 6 program?
You may make use of registry. The simplest way to do this in VB is the SaveSetting ang GetSetting function... For example, you might want to save the text enterd in TextBox1.. Here's how you do it...
on the Form_Unload() procedure...
SaveSetting App.Name, "TextBox", "Text", TextBox1.Text
Now, whatever text that has been entered in TextBox1 will be saved in the VB Registry. Note that TextBox1 is the name of the textbox being in use..
To load this setting as the program re-runs. Do this...
on the Form_Load() procedure...
TextBox1.Text = GetSetting(App.Name, "TextBox", "Text")
The text that was saved before previous program end will be loaded and automatically printed on TextBox1. (^^,) If you want to learn more about this function, feel free to ask me at YM rdb_dvo16 or just post a comment on any of my articles on my blog http://ronaldborla.blogsome.com/ Ok? (^^,)
Reply:You will find the answer here
http://www.freetutes.com/VisualBasic
It needs to save everthing on the form as there is a password field that a user can change and that needs to stay changed when the program is closed.
And aldo several text fields that need to stay changed with anything a user has entered into them.
Save button in a visual basic 6 program?
You may make use of registry. The simplest way to do this in VB is the SaveSetting ang GetSetting function... For example, you might want to save the text enterd in TextBox1.. Here's how you do it...
on the Form_Unload() procedure...
SaveSetting App.Name, "TextBox", "Text", TextBox1.Text
Now, whatever text that has been entered in TextBox1 will be saved in the VB Registry. Note that TextBox1 is the name of the textbox being in use..
To load this setting as the program re-runs. Do this...
on the Form_Load() procedure...
TextBox1.Text = GetSetting(App.Name, "TextBox", "Text")
The text that was saved before previous program end will be loaded and automatically printed on TextBox1. (^^,) If you want to learn more about this function, feel free to ask me at YM rdb_dvo16 or just post a comment on any of my articles on my blog http://ronaldborla.blogsome.com/ Ok? (^^,)
Reply:You will find the answer here
http://www.freetutes.com/VisualBasic
I would like to learn Visual Basic. I have no knowledge at all about VB. From where should I start?
Can I learn everything only by reading the book? Or should I need to go any institution? Is there any good and affordable institution in NYC for learning VB?
I would like to learn Visual Basic. I have no knowledge at all about VB. From where should I start?
Try the links on this page.
http://www.thehansens.com/free/LearnASPL...
Reply:Microsoft web site has a free download to get you started.
Reply:Learning programming certainly needs a lot of self study. Although you go to institutions and classes you will not get it unless you do it yourself. If you are actually interested in learning Visual Basic, I recommend you the following website:
http://www.freetutes.com/VisualBasic
Reply:Yes, you can learn by just reading.. try to download some e-books from the internet..
also.. theres a lot of sites where you can learn visual basic from..
try vbcode.com
I would like to learn Visual Basic. I have no knowledge at all about VB. From where should I start?
Try the links on this page.
http://www.thehansens.com/free/LearnASPL...
Reply:Microsoft web site has a free download to get you started.
Reply:Learning programming certainly needs a lot of self study. Although you go to institutions and classes you will not get it unless you do it yourself. If you are actually interested in learning Visual Basic, I recommend you the following website:
http://www.freetutes.com/VisualBasic
Reply:Yes, you can learn by just reading.. try to download some e-books from the internet..
also.. theres a lot of sites where you can learn visual basic from..
try vbcode.com
How to learn Visual Basic from scratch?
I wan't to learn Visual Basic 6. Is there any website where you can learn Visual Basic from Scratch? Thanks :)
How to learn Visual Basic from scratch?
http://www.hitmill.com/programming/vb/he...
this is the basic "hello world" project most people start with when learning a language . From there it would be best to use site such as vbcode.com or planetsourcecode.com to download code and see how it works
Reply:You need to get one of those books called Visual Basic in 24 hours. Or just take a VB class at your local community college. By the way, VB6 is old. VB .Net 2005 is the way to go now. It is easier, and much more powerful. Use the following link for more information.
Reply:HIGHLY RECOMMENDED: http://www.hitmill.com/programming/vb/be...
How to learn Visual Basic from scratch?
http://www.hitmill.com/programming/vb/he...
this is the basic "hello world" project most people start with when learning a language . From there it would be best to use site such as vbcode.com or planetsourcecode.com to download code and see how it works
Reply:You need to get one of those books called Visual Basic in 24 hours. Or just take a VB class at your local community college. By the way, VB6 is old. VB .Net 2005 is the way to go now. It is easier, and much more powerful. Use the following link for more information.
Reply:HIGHLY RECOMMENDED: http://www.hitmill.com/programming/vb/be...
How Do you use Visual Basic And make games?
I am trying to make a game like frozen bubbles, but I am not sure how to shoot the bubbles and the bar to come down and make more bubbles that could not be popped?
Care to help?
How Do you use Visual Basic And make games?
To make a algorithm to shoot the bubbles only needed little high school physic. You'd have to convert the angle of the cannon into its gradient, use a tan(gent) function. (VB6: gradient = Tan(angle), VB.NET: gradient = Math.Tan(angle)). Then move the bubble vertically as much as the gradient (VB6: bubble.y = bubble.y + gradient, VB.NET: bubble.y += gradient) while moving horizontally by 1 (bubble.x = bubble.x + 1, VB.NET: bubble.x += 1). [Note, this would work, although the bubble speed would be uneven at different angles, but it could work for now, later you could slowly work out angle-independent controlled speed bubble function]. At each iteration, the bubble would be checked whether it would bump into something (other bubbles, walls, etc) if it bumps into walls, the horizontal direction of the bubble is reversed; if it bumps into other bubbles, it would be positioned on the closest bubble cell.
To make the bar comes down, all the bubble would goes down by one cell height (one bubble height)
Make bubbles that can't be popped, just check if the bubble's property is unpoppable, that means don't pop.
Reply:contact me if you have any question still, or if you need coding help. Report It
flower bouquet
Care to help?
How Do you use Visual Basic And make games?
To make a algorithm to shoot the bubbles only needed little high school physic. You'd have to convert the angle of the cannon into its gradient, use a tan(gent) function. (VB6: gradient = Tan(angle), VB.NET: gradient = Math.Tan(angle)). Then move the bubble vertically as much as the gradient (VB6: bubble.y = bubble.y + gradient, VB.NET: bubble.y += gradient) while moving horizontally by 1 (bubble.x = bubble.x + 1, VB.NET: bubble.x += 1). [Note, this would work, although the bubble speed would be uneven at different angles, but it could work for now, later you could slowly work out angle-independent controlled speed bubble function]. At each iteration, the bubble would be checked whether it would bump into something (other bubbles, walls, etc) if it bumps into walls, the horizontal direction of the bubble is reversed; if it bumps into other bubbles, it would be positioned on the closest bubble cell.
To make the bar comes down, all the bubble would goes down by one cell height (one bubble height)
Make bubbles that can't be popped, just check if the bubble's property is unpoppable, that means don't pop.
Reply:contact me if you have any question still, or if you need coding help. Report It
flower bouquet
From where can I get the source codes of software and tutorials in visual basic?
I am not familier witn VB. I am also not familier with the interface of visual basic. The interfaces made me confusable. Please give me the best links for download the tutorials and source codes
From where can I get the source codes of software and tutorials in visual basic?
I don't know. I'm just answering! you cause you anwered! me!
Reply:Here's a lovely website that should give you grounding in VB.NET and many other .NET languages. It has lots of videos and Study Guides to help you on your way. It will also give you knowledge of Visual Studio 2005, however, since Visual Studio 2008 was released yesterday, I would recommend downloading the 2008 Express Editions as they are free of charge.
http://msdn2.microsoft.com/en-us/beginne...
From where can I get the source codes of software and tutorials in visual basic?
I don't know. I'm just answering! you cause you anwered! me!
Reply:Here's a lovely website that should give you grounding in VB.NET and many other .NET languages. It has lots of videos and Study Guides to help you on your way. It will also give you knowledge of Visual Studio 2005, however, since Visual Studio 2008 was released yesterday, I would recommend downloading the 2008 Express Editions as they are free of charge.
http://msdn2.microsoft.com/en-us/beginne...
What is the newest version of the DirectX SDK for Visual Basic 2008 Express?
I need the newest version for game development. I can't use DX10 so probably the one for DX9.0c if there is one. Thanks.
What is the newest version of the DirectX SDK for Visual Basic 2008 Express?
Go here: http://www.microsoft.com/downloads/detai...
It will take a while to dowload: On a T1 line it will take 41 minutes, on 768k DSL it will take 1 hour 19 minutes.
It is 442.1 megabytes in size.
flower delivery
What is the newest version of the DirectX SDK for Visual Basic 2008 Express?
Go here: http://www.microsoft.com/downloads/detai...
It will take a while to dowload: On a T1 line it will take 41 minutes, on 768k DSL it will take 1 hour 19 minutes.
It is 442.1 megabytes in size.
flower delivery
Working in Visual Basic 2005 C++, how would i get my program to loop?
I simpl want the command that would allow me to restart a program. If I run the program using visual basic, i would input values based on prompts. I want to know waht the command is that I would put at the end of the rpogram that would allow me to restart it.
Working in Visual Basic 2005 C++, how would i get my program to loop?
The best way to restart a program is usually to just get back up to the top again, especially if it takes its input from the keyboard and the mouse rather than from its own command line.
Of course, you then need a special input that tells it it's really done, or it will loop forever.
And don't forget to initialize ALL variables and release ALL storage allocated in that loop, or you'll have other headaches.
Hope that helps.
Working in Visual Basic 2005 C++, how would i get my program to loop?
The best way to restart a program is usually to just get back up to the top again, especially if it takes its input from the keyboard and the mouse rather than from its own command line.
Of course, you then need a special input that tells it it's really done, or it will loop forever.
And don't forget to initialize ALL variables and release ALL storage allocated in that loop, or you'll have other headaches.
Hope that helps.
What is the advantage of Infopath 2007 to other form designing program like visual basic and access?
Please clarify this to me 'cause i actually dont have an idea on this. This is thetpic of my research, so please......
What is the advantage of Infopath 2007 to other form designing program like visual basic and access?
http://office.microsoft.com/en-us/sharep...
Reply:Find complete details on Infopath @ http://dotnetguts.blogspot.com... Report It
What is the advantage of Infopath 2007 to other form designing program like visual basic and access?
http://office.microsoft.com/en-us/sharep...
Reply:Find complete details on Infopath @ http://dotnetguts.blogspot.com... Report It
What can I do when I get an error 20997 from crystal reports? I am using visual basic 6?
I'm using visual basic 6, and I send reports from crystal reports 8, in some pc I get this message error "20997".
This happens only with some reports, and it doesn't happen in all the pc
What can I do when I get an error 20997 from crystal reports? I am using visual basic 6?
cpeaut32 is a dll file it may be that it is missing or has became corrupted or improperly installed.
First, I would do a search for cpeaut32.dll and see what you find. If found, I would try running regsvr32 and see what kind of message you get. From the Start menu, Run, regsvr32 cpeaut32.dll this will attempt to register the dll.
If not found then you know there is an install problem. Also, I would look at the help documentation for developers that came with Crystal Reports. There is a section in there addressing dependencies, redistributables, and related information.
This happens only with some reports, and it doesn't happen in all the pc
What can I do when I get an error 20997 from crystal reports? I am using visual basic 6?
cpeaut32 is a dll file it may be that it is missing or has became corrupted or improperly installed.
First, I would do a search for cpeaut32.dll and see what you find. If found, I would try running regsvr32 and see what kind of message you get. From the Start menu, Run, regsvr32 cpeaut32.dll this will attempt to register the dll.
If not found then you know there is an install problem. Also, I would look at the help documentation for developers that came with Crystal Reports. There is a section in there addressing dependencies, redistributables, and related information.
What do i do to install visual basic 2005 express edition to my computer?
I have tried the internet as well as the cd but the installation starts but stops in between saying it could not install .NET framework..........what do I do?
What do i do to install visual basic 2005 express edition to my computer?
Check if you have older versions of the .NET framework, and remove them.
Reply:do what is says...download .NET framework...located here...
http://www.microsoft.com/downloads/detai...
enjoy...
wholesale flowers
What do i do to install visual basic 2005 express edition to my computer?
Check if you have older versions of the .NET framework, and remove them.
Reply:do what is says...download .NET framework...located here...
http://www.microsoft.com/downloads/detai...
enjoy...
wholesale flowers
How to convert a text file to excel using Visual basic?
I need to convert a comma separated txt file to excel sheet using VB. There will be 8 values in each row, which can be fitted to 8 columns of the excel sheet. The txt file contains around 1000 rows. I have to use VB only.
Please help me out.
How to convert a text file to excel using Visual basic?
I'd recommend reading this document (first link below) on the Excel file structure in order to convert it using only VB. Now if you can do it using COM components from MS Office and VB, then you could access MS Office objects that would allow you relatively easily pull in the text (if you have a basic VB skill set already).
Reply:use the microsoft data access com objects to load the "jet" driver. Create a new workbook like you would a new database table, and then insert etc just like a database, then save the file.
Please help me out.
How to convert a text file to excel using Visual basic?
I'd recommend reading this document (first link below) on the Excel file structure in order to convert it using only VB. Now if you can do it using COM components from MS Office and VB, then you could access MS Office objects that would allow you relatively easily pull in the text (if you have a basic VB skill set already).
Reply:use the microsoft data access com objects to load the "jet" driver. Create a new workbook like you would a new database table, and then insert etc just like a database, then save the file.
How to create a log in form on visual basic 6.0?
Basically i need it to have a PIN entry link to an access database and i need it to load another form if the pin is equal to any pin on the access document...
I also need to know how to show a report from access on a visual basic form..
Thanks muchly,
Leah
How to create a log in form on visual basic 6.0?
Steps:
1. Start a new Windows CE HPC Project in Visual Basic. Form1 is created by default.
2. Add a command button to Form1.
3. Paste the following code into the code module for Form1: Private Sub Command1_Click()
Form2.Show
' Warning: Code still executes despite the
' fact that Form2 will be shown modally.
Form1.Enabled = False
MsgBox "Form1 events still fire"
End Sub
Sub ValidatePassword(UID As String, PWD As String)
If UID %26lt;%26gt; "" And PWD %26lt;%26gt; "" Then
MsgBox "Login succeeded"
Form1.Enabled = True
Else
MsgBox "Login failed: Please try again"
Form2.Show
End If
End Sub
4. From the Project menu, click Add Form to add a new form.
5. Set the ControlBox property of Form2 to "False."
6. Add a command button, two labels, and two text boxes to Form2.
7. Paste the following code into the code module for Form2: Private Sub Form_Load()
ConfigureUI
Dim lret
lret = SetWindowPos(Form2.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE Or SWP_NOMOVE)
End Sub
Private Sub Command1_Click()
Form2.Hide
Form1.ValidatePassword Text1.Text, Text2.Text
End Sub
Sub ConfigureUI()
Form2.Height = 2235
Form2.Width = 3400
Label1.Move 120, 120, 975, 375
Label2.Move 120, 600, 975, 375
Text1.Move 1100, 120, 1975, 375
Text2.Move 1100, 600, 1975, 375
Command1.Move 240, 1200, 2775, 495
Form2.Caption = "Please Log In"
Label1.Caption = "UserID"
Label2.Caption = "Password"
Text1.Text = "TestID"
Text2.Text = "TestPassword"
Command1.Caption = "Log In"
End Sub
8. From the Project menu, click Add Module to add a new module.
9. Paste the following code into Module1: Public Declare Function SetWindowPos Lib "Coredll" ( _
ByVal hwnd As Long, _
ByVal hWndInsertAfter As Long, _
ByVal x As Long, _
ByVal y As Long, _
ByVal cx As Long, _
ByVal cy As Long, _
ByVal wFlags As Long) As Long
Const SWP_NOMOVE = 2
Const SWP_NOSIZE = 1
Const HWND_TOPMOST = -1
Const HWND_NOTOPMOST = -2
10. Run the project.
I also need to know how to show a report from access on a visual basic form..
Thanks muchly,
Leah
How to create a log in form on visual basic 6.0?
Steps:
1. Start a new Windows CE HPC Project in Visual Basic. Form1 is created by default.
2. Add a command button to Form1.
3. Paste the following code into the code module for Form1: Private Sub Command1_Click()
Form2.Show
' Warning: Code still executes despite the
' fact that Form2 will be shown modally.
Form1.Enabled = False
MsgBox "Form1 events still fire"
End Sub
Sub ValidatePassword(UID As String, PWD As String)
If UID %26lt;%26gt; "" And PWD %26lt;%26gt; "" Then
MsgBox "Login succeeded"
Form1.Enabled = True
Else
MsgBox "Login failed: Please try again"
Form2.Show
End If
End Sub
4. From the Project menu, click Add Form to add a new form.
5. Set the ControlBox property of Form2 to "False."
6. Add a command button, two labels, and two text boxes to Form2.
7. Paste the following code into the code module for Form2: Private Sub Form_Load()
ConfigureUI
Dim lret
lret = SetWindowPos(Form2.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE Or SWP_NOMOVE)
End Sub
Private Sub Command1_Click()
Form2.Hide
Form1.ValidatePassword Text1.Text, Text2.Text
End Sub
Sub ConfigureUI()
Form2.Height = 2235
Form2.Width = 3400
Label1.Move 120, 120, 975, 375
Label2.Move 120, 600, 975, 375
Text1.Move 1100, 120, 1975, 375
Text2.Move 1100, 600, 1975, 375
Command1.Move 240, 1200, 2775, 495
Form2.Caption = "Please Log In"
Label1.Caption = "UserID"
Label2.Caption = "Password"
Text1.Text = "TestID"
Text2.Text = "TestPassword"
Command1.Caption = "Log In"
End Sub
8. From the Project menu, click Add Module to add a new module.
9. Paste the following code into Module1: Public Declare Function SetWindowPos Lib "Coredll" ( _
ByVal hwnd As Long, _
ByVal hWndInsertAfter As Long, _
ByVal x As Long, _
ByVal y As Long, _
ByVal cx As Long, _
ByVal cy As Long, _
ByVal wFlags As Long) As Long
Const SWP_NOMOVE = 2
Const SWP_NOSIZE = 1
Const HWND_TOPMOST = -1
Const HWND_NOTOPMOST = -2
10. Run the project.
What's the difference between visual basic script and asp?
aren't they the same thing?
What's the difference between visual basic script and asp?
Visual Basic script is a language that you can use to program against the Active Server Pages (ASP) Object Model to create web applications. Visual Basic scripting can be used for other automation tasks as well, but ASP is strictly a web development technology that can be utilized with Visual Basic scripting.
Please read this WIKI:
http://en.wikipedia.org/wiki/VBScript
http://en.wikipedia.org/wiki/Active_Serv...
Reply:ASP (active server pages) can use VB script.
VB script is a subset of VB
Reply:You didn't run out to the computer store and buy a copy of VBScript. You didn't install a VBScript disk on your computer, either. All you did was install the Internet Explorer browser, which supports VBScript, on your computer--just like millions of other folks. Everyone of them has the VBScript engine on their computer, and everyone of them has the ability to create Web pages with VBScript.
So where's the integrated development environment that you're used to using in Visual Basic? Keep looking, because there isn't one. All you have is your favorite text editor, the ActiveX Control Pad, and a Web browser. That in itself is the single largest difference between Visual Basic and VBScript. It leads to some specific differences, too. Here's what they are:
Debugging VBScript doesn't have a debugger like Visual Basic. You'll resort to using lots of message boxes, instead.
Event-handlers You don't have an editor in which you select an object and event to edit an event-procedure. You have to name event-procedures in your scripts so that the scripting engine can find the appropriate handler when an object fires an event.
Reply:Both are same but some script tools differ.
What's the difference between visual basic script and asp?
Visual Basic script is a language that you can use to program against the Active Server Pages (ASP) Object Model to create web applications. Visual Basic scripting can be used for other automation tasks as well, but ASP is strictly a web development technology that can be utilized with Visual Basic scripting.
Please read this WIKI:
http://en.wikipedia.org/wiki/VBScript
http://en.wikipedia.org/wiki/Active_Serv...
Reply:ASP (active server pages) can use VB script.
VB script is a subset of VB
Reply:You didn't run out to the computer store and buy a copy of VBScript. You didn't install a VBScript disk on your computer, either. All you did was install the Internet Explorer browser, which supports VBScript, on your computer--just like millions of other folks. Everyone of them has the VBScript engine on their computer, and everyone of them has the ability to create Web pages with VBScript.
So where's the integrated development environment that you're used to using in Visual Basic? Keep looking, because there isn't one. All you have is your favorite text editor, the ActiveX Control Pad, and a Web browser. That in itself is the single largest difference between Visual Basic and VBScript. It leads to some specific differences, too. Here's what they are:
Debugging VBScript doesn't have a debugger like Visual Basic. You'll resort to using lots of message boxes, instead.
Event-handlers You don't have an editor in which you select an object and event to edit an event-procedure. You have to name event-procedures in your scripts so that the scripting engine can find the appropriate handler when an object fires an event.
Reply:Both are same but some script tools differ.
In Visual Basic, how do I add a serial number activation to my application?
I don't need any kind of server side HTTP protocol activation, just a very simple one, that where you either enter the serial number in and it works, or you dont and the application doesnt work. Please list any sources, that would be more than helpful!
Thanks!
In Visual Basic, how do I add a serial number activation to my application?
Its quite simple .You have to code in visual basic which modify registry values.
Assume you set a registry value reg=0
When appln is started check registry .If reg=0 it recognise as unregistered.If it is 1 it recognise as registered.
When user enter a serial the code should chk the pattern and if match then set registry value reg=1
Hope this will help you.
state flower
Thanks!
In Visual Basic, how do I add a serial number activation to my application?
Its quite simple .You have to code in visual basic which modify registry values.
Assume you set a registry value reg=0
When appln is started check registry .If reg=0 it recognise as unregistered.If it is 1 it recognise as registered.
When user enter a serial the code should chk the pattern and if match then set registry value reg=1
Hope this will help you.
state flower
How do you add alternate ways to click something in visual basic?
i recently just made a web browser but when I enter a website in the address bar, I have to click search to go to the website. Is there a way I can make it so after I am done entering the website I just have to press the ENTER key?
How do you add alternate ways to click something in visual basic?
The keypress event in the browser. If KeyAscii is 13, the user pressed enter, so Navigate2. (Off the top of my head - I haven't used a browser in VB in a few years, but executing on Enter is the same for all controls - or for the form itself if you enable key capture on the form.)
How do you add alternate ways to click something in visual basic?
The keypress event in the browser. If KeyAscii is 13, the user pressed enter, so Navigate2. (Off the top of my head - I haven't used a browser in VB in a few years, but executing on Enter is the same for all controls - or for the form itself if you enable key capture on the form.)
How do I disable resizing in my visual basic application?
I need the code to add to my form to disable resizing/maximizing the application.
How do I disable resizing in my visual basic application?
in the form properties window, set the Minimize button and maximize button properties equal to false.
Save the current form size to the registry, and in the form_Resize event, you can read the registry to get the old size back, and set it back to the old size.
How do I disable resizing in my visual basic application?
in the form properties window, set the Minimize button and maximize button properties equal to false.
Save the current form size to the registry, and in the form_Resize event, you can read the registry to get the old size back, and set it back to the old size.
How can I get started programming in visual basic?
Do you know a good tutorial type website? ANY advice would be appreciated. I am trying to design my own software idea. I don't have an apple computer.
How can I get started programming in visual basic?
There are lots of languages, each lends itself to a different type of project.
I'll add sources where you can find tutorials for most of the popular modern languages.
Reply:dev shed stinks Report It
Reply:Why are you going to use VB and not C#, Java, or some other .NET methodology?
Reply:Well, I don’t know why you chose VB. It is good starting point for new programmers. Learn VB.Net. It’ll be easier for you to learn C# and other .Net programming languages.
How can I get started programming in visual basic?
There are lots of languages, each lends itself to a different type of project.
I'll add sources where you can find tutorials for most of the popular modern languages.
Reply:dev shed stinks Report It
Reply:Why are you going to use VB and not C#, Java, or some other .NET methodology?
Reply:Well, I don’t know why you chose VB. It is good starting point for new programmers. Learn VB.Net. It’ll be easier for you to learn C# and other .Net programming languages.
What is the difference between Visual Basic 2005 Express edition & Visual Basic 6.0 Professional?
I have a book on Visual basic 6.0 Professional.
1. Is there any site where i can download this software for free?
2. Or else can i use Visual Basic 2005 Express edition software with the book i have?
What is the difference between Visual Basic 2005 Express edition %26amp; Visual Basic 6.0 Professional?
For basic concepts(like events, looping, classes, ect..) you can use the VB6 edition.
VB6 came in three main flavor a Student, Pro %26amp;Enterprise editions. The biggest differencesbeing that the Student edition lacked the ability to create user control, lacked some controls like a masked edit box, and lacked a copy of MSDN and other tools.
For learning more than beginning concepts I would recommend that you use the newer version. Spend $30 on a good book or use the free Microsoft tutorials.
A big difference between VB6 and VB2005 is how controls like option buttons are treated. IN VB6 they are indexed like myopt(0),myopt(1) ect. In VB2005 there isn't an index for these controls so the concepts you learn in VB6 about looping through index values of option buttons has to be relearned.
Control event handling has changed.
The paradigm for connecting to databases is different between VB6 %26amp; VB.net. To simplify:VB6 uses ADO connections and recordsets make frequent and longer (sometimes continuous) connections to a database. In VB.net you work with a copy of the database and update the DB with the changes. THe idea is to make fewer quick and limited connections to the DB.
Reply:You can't use VB 6.0's book on VB2005. VB2005 is part of the .NET Framework. It has completely different nature %26amp; approach from VB6, although they have similar syntaxes.
VB2005 is completely OOP, while VB6 are not completely OOP.
They use different compiler %26amp; classes. .NET uses CLR %26amp; MSIL which are used by other .NET labguages like C#, C++.NET, J#, ASP.NET.
VB2005 is running on .NET 2.0. And .NET 3.0 is on the way.
Are you familiar with Java? If you do, VB2005 is more like Java without C-like syntaxes, but VB-syntaxes instead. You'll find C# is more like Java, with Microsoft's taste.
Simply, you're book is obsolete.
song meanings
1. Is there any site where i can download this software for free?
2. Or else can i use Visual Basic 2005 Express edition software with the book i have?
What is the difference between Visual Basic 2005 Express edition %26amp; Visual Basic 6.0 Professional?
For basic concepts(like events, looping, classes, ect..) you can use the VB6 edition.
VB6 came in three main flavor a Student, Pro %26amp;Enterprise editions. The biggest differencesbeing that the Student edition lacked the ability to create user control, lacked some controls like a masked edit box, and lacked a copy of MSDN and other tools.
For learning more than beginning concepts I would recommend that you use the newer version. Spend $30 on a good book or use the free Microsoft tutorials.
A big difference between VB6 and VB2005 is how controls like option buttons are treated. IN VB6 they are indexed like myopt(0),myopt(1) ect. In VB2005 there isn't an index for these controls so the concepts you learn in VB6 about looping through index values of option buttons has to be relearned.
Control event handling has changed.
The paradigm for connecting to databases is different between VB6 %26amp; VB.net. To simplify:VB6 uses ADO connections and recordsets make frequent and longer (sometimes continuous) connections to a database. In VB.net you work with a copy of the database and update the DB with the changes. THe idea is to make fewer quick and limited connections to the DB.
Reply:You can't use VB 6.0's book on VB2005. VB2005 is part of the .NET Framework. It has completely different nature %26amp; approach from VB6, although they have similar syntaxes.
VB2005 is completely OOP, while VB6 are not completely OOP.
They use different compiler %26amp; classes. .NET uses CLR %26amp; MSIL which are used by other .NET labguages like C#, C++.NET, J#, ASP.NET.
VB2005 is running on .NET 2.0. And .NET 3.0 is on the way.
Are you familiar with Java? If you do, VB2005 is more like Java without C-like syntaxes, but VB-syntaxes instead. You'll find C# is more like Java, with Microsoft's taste.
Simply, you're book is obsolete.
song meanings
How can I access a variable from another form in Visual Basic?
I want to access a variable from my first form in second form. How can i do this? Sample code would be helpful, thank you.
How can I access a variable from another form in Visual Basic?
Easiest way would be to create a public variable in a module which you would be able to reference throughout your project.
Reply:if the variable you are trying to access is public, then use this:
FormName.variableName
Reply:check out http://www.planet-source-code.com
How can I access a variable from another form in Visual Basic?
Easiest way would be to create a public variable in a module which you would be able to reference throughout your project.
Reply:if the variable you are trying to access is public, then use this:
FormName.variableName
Reply:check out http://www.planet-source-code.com
Where can i get ebooks for visual basic or web sites that contain the following?
Codings for vb, how to master vb, codings to create a special software, etc.
Where can i get ebooks for visual basic or web sites that contain the following?
For sure here:
http://www.avaxhome.ru
(free download until August 4)
http://worldebookfair.com/
Where can i get ebooks for visual basic or web sites that contain the following?
For sure here:
http://www.avaxhome.ru
(free download until August 4)
http://worldebookfair.com/
Reading data in visual basic without it bitchslapping me in the face?
Hi, I am reading data into VB5 and plotting a graph with it, the format is 4 columns, x, y, error in x, error in y. It works really well except sometimes the files I use have text at the top, how do I get my application to recognise there is text and that it should start reading at say the second or third line?
Thanks for your help!
Reading data in visual basic without it bitchslapping me in the face?
Visual Basic Bitchslapping problem LOL
check for isnumeric
Public Function IsNumeric(ByVal Expression As Object) As Boolean
Thanks for your help!
Reading data in visual basic without it bitchslapping me in the face?
Visual Basic Bitchslapping problem LOL
check for isnumeric
Public Function IsNumeric(ByVal Expression As Object) As Boolean
How do you strech a picture within a visual basic picture box?
I load the an image into a picture box through the code. I want to strech the image so that it will fill up the entire picture box i have set for it. No i don't want the box to change size but the dimensions of the picture.
How do you strech a picture within a visual basic picture box?
What VB are you using? In VB.Net...
In the properties window set the "stretch Image" = true
During runtime...
PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage
Reply:The picture is an object. You should be able to select it and drag a side or a corner.
Reply:In the properties window, there is an option labeled, "Stretch".
Set it to "True".
pollen
How do you strech a picture within a visual basic picture box?
What VB are you using? In VB.Net...
In the properties window set the "stretch Image" = true
During runtime...
PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage
Reply:The picture is an object. You should be able to select it and drag a side or a corner.
Reply:In the properties window, there is an option labeled, "Stretch".
Set it to "True".
pollen
What is a good project for visual basic for my high school we learned most of the basics?
we learned most of the basic what should my final project be?
What is a good project for visual basic for my high school we learned most of the basics?
you can have a game like MasterMind or other interesting. or you can have a program interacts with Windows API. You can use API (Application Programming Interface) to create a screen saver to interact with your windows desktop image or mouse. You can search for "Windows API in VB" on yahoo. At first, you may feel it is complicated to understand, but you should find out it is easy when you know how to use it. It would make your project more professional.
Reply:why not create a small database program where in your teachers can store up your grades and also compute them and create a report card.It tackles most of the basic stuff in vb.net programming.Another advice is to try and create a picture puzzle game for small kids.Hope these help..^_^
What is a good project for visual basic for my high school we learned most of the basics?
you can have a game like MasterMind or other interesting. or you can have a program interacts with Windows API. You can use API (Application Programming Interface) to create a screen saver to interact with your windows desktop image or mouse. You can search for "Windows API in VB" on yahoo. At first, you may feel it is complicated to understand, but you should find out it is easy when you know how to use it. It would make your project more professional.
Reply:why not create a small database program where in your teachers can store up your grades and also compute them and create a report card.It tackles most of the basic stuff in vb.net programming.Another advice is to try and create a picture puzzle game for small kids.Hope these help..^_^
In visual basic 6, how do you populate a two dimensional array with a FOR loop?
I have a table with two columns: the first one has the ID numbers, and the second has the names of students. How do you populate an array with these two columns using the code at runtime and using a FOR loop?
In visual basic 6, how do you populate a two dimensional array with a FOR loop?
I don't use VB but here is some psuedo code using nested for statements.
for r = 0 to MyArray[].length
for c = 0 to MyArray[][].length
MyArray[r][c] = some value
end
end
Reply:Since I do program in VB6 maybe this will be a bit clear.
First dimension the double subscript variable like this
REDIM A$(3,5)
REM If I Haven't Forgotten That's 3 columns and 5 Rows
rem If I have forgotten then it's the reverse
FOR A=1 TO 3
FOR B=1 TO 5
A$(A,B)=STR$(CHR$(64)+B)
next B
NEXT A
'
for C=1 TO 3
FOR D=1 TO 5
Print A$(C,D)" ";:NEXT D:Print " "
next C
In visual basic 6, how do you populate a two dimensional array with a FOR loop?
I don't use VB but here is some psuedo code using nested for statements.
for r = 0 to MyArray[].length
for c = 0 to MyArray[][].length
MyArray[r][c] = some value
end
end
Reply:Since I do program in VB6 maybe this will be a bit clear.
First dimension the double subscript variable like this
REDIM A$(3,5)
REM If I Haven't Forgotten That's 3 columns and 5 Rows
rem If I have forgotten then it's the reverse
FOR A=1 TO 3
FOR B=1 TO 5
A$(A,B)=STR$(CHR$(64)+B)
next B
NEXT A
'
for C=1 TO 3
FOR D=1 TO 5
Print A$(C,D)" ";:NEXT D:Print " "
next C
What is the easyest way to learn visual basic on your own .I also want the fastest methed?
any directions to good web sights would be helpful I want to learn it with in 1 month if possible .I don't have allot of time but really want to learn it for various reasons.thanks also only serious answers please.
What is the easyest way to learn visual basic on your own .I also want the fastest methed?
Visual Basic Step By Step by Microsoft Press will have you accomplishing tasks within a few hours.
Reply:To learn vb in one month is some task. I suggest you go to the Micorosft (msdn) website as a starter, thay have some useful tutorials whihc take you through some projects to buld complete working applications.
Hope this helps and Good luck with your learning experience.
The url is: http://msdn.microsoft.com/coding4fun/
Reply:Honestly, the best way to learn a language is to pick up a good book on it and work through it.
The "SAMS Teach Yourself ..." series are generally very accessible and easy to read. On Amazon.com, "Sams Teach Yourself Microsoft Visual Basic .NET 2003 (VB .NET) in 24 Hours" gets 4.5 / 5 stars on 28 ratings. You can check out reviews for it here: http://www.amazon.com/Yourself-Microsoft...
Reply:I suggest working your way through a "teach yourself" book to learn the basics (SAMS series are the best in my opinion) but the best way to learn is to set yourself projects and pick things up just by using the program and the internet for resources. Or, if you have a specific project you need to complete, start it after completing the book. You will pick things up as you go along.
There are hundreds of code snippets and examples on the net, the most important thing however is to examine them line-by-line and understand exactly what they do by referring to the book. If you simply cut and paste and compile, you will never learn.
I used these methods a few years ago, and with no formal training in Visual Studio, I am now a senior developer at my company. It time consuming, but keep at it for as many hours a day and if you have the right mind for it, you will pick it up very quickly.
I would highly recommend you learn Visual Basic .NET and not Visual Basic 6 or lower.
What is the easyest way to learn visual basic on your own .I also want the fastest methed?
Visual Basic Step By Step by Microsoft Press will have you accomplishing tasks within a few hours.
Reply:To learn vb in one month is some task. I suggest you go to the Micorosft (msdn) website as a starter, thay have some useful tutorials whihc take you through some projects to buld complete working applications.
Hope this helps and Good luck with your learning experience.
The url is: http://msdn.microsoft.com/coding4fun/
Reply:Honestly, the best way to learn a language is to pick up a good book on it and work through it.
The "SAMS Teach Yourself ..." series are generally very accessible and easy to read. On Amazon.com, "Sams Teach Yourself Microsoft Visual Basic .NET 2003 (VB .NET) in 24 Hours" gets 4.5 / 5 stars on 28 ratings. You can check out reviews for it here: http://www.amazon.com/Yourself-Microsoft...
Reply:I suggest working your way through a "teach yourself" book to learn the basics (SAMS series are the best in my opinion) but the best way to learn is to set yourself projects and pick things up just by using the program and the internet for resources. Or, if you have a specific project you need to complete, start it after completing the book. You will pick things up as you go along.
There are hundreds of code snippets and examples on the net, the most important thing however is to examine them line-by-line and understand exactly what they do by referring to the book. If you simply cut and paste and compile, you will never learn.
I used these methods a few years ago, and with no formal training in Visual Studio, I am now a senior developer at my company. It time consuming, but keep at it for as many hours a day and if you have the right mind for it, you will pick it up very quickly.
I would highly recommend you learn Visual Basic .NET and not Visual Basic 6 or lower.
What is the lastest version of Visual Basic?
Eiher Visual Basic 3.0 or a version high to 2006 Express Editon.
What is the lastest version of Visual Basic?
VB.net 2005 is the current production version. This is dot net 2.0
playing cards
What is the lastest version of Visual Basic?
VB.net 2005 is the current production version. This is dot net 2.0
playing cards
How do you compile a program in visual basic 6 with a database?
I know how to complie it into an exe without a database. The problem is, whenever I compile a program with a database linked to it, it doesn't work with other computers. You have to copy the .mdb in the other computer. Can anyone tell me another way to compile the thing without having to copy the other files in every computer that I want to program to show?
How do you compile a program in visual basic 6 with a database?
Create a setup project. Include the database in the setup project. When they run the setup file, it will install the exe,any related dlls and the database to the local machine. Now the only thing you have to redistribute is the setup.
How do you compile a program in visual basic 6 with a database?
Create a setup project. Include the database in the setup project. When they run the setup file, it will install the exe,any related dlls and the database to the local machine. Now the only thing you have to redistribute is the setup.
How can I modify this in visual basic express to produce a random image instead of a random colour?
How can I modify this in visual basic express to produse a random image instead of a random colour :-
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim colornum As Integer
colornum = Int(Rnd() * 5)
Select Case colornum
Case Is = 0
Label1.BackColor = Color.Red
Case Is = 1
Label1.BackColor = Color.Yellow
Case Is = 2
Label1.BackColor = Color.Green
Case Is = 3
Label1.BackColor = Color.Blue
Case Is = 4
Label1.BackColor = Color.Orange
How can I modify this in visual basic express to produce a random image instead of a random colour?
This works in VB.net, not sure what "visual basic express" is.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim colornum As Integer
colornum = Int(Rnd() * 5)
Select Case colornum
Case Is = 0
Label1.Image = Label1.Image.FromFile("%26lt;path and filename%26gt;")
Case Is = 1
Label1.Image = Label1.Image.FromFile("%26lt;path and filename%26gt;")
Case Is = 2
Label1.Image = Label1.Image.FromFile("%26lt;path and filename%26gt;")
Case Is = 3
Label1.Image = Label1.Image.FromFile("%26lt;path and filename%26gt;")
Case Is = 4
Label1.Image = Label1.Image.FromFile("%26lt;path and filename%26gt;")
Where each case is a different image.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim colornum As Integer
colornum = Int(Rnd() * 5)
Select Case colornum
Case Is = 0
Label1.BackColor = Color.Red
Case Is = 1
Label1.BackColor = Color.Yellow
Case Is = 2
Label1.BackColor = Color.Green
Case Is = 3
Label1.BackColor = Color.Blue
Case Is = 4
Label1.BackColor = Color.Orange
How can I modify this in visual basic express to produce a random image instead of a random colour?
This works in VB.net, not sure what "visual basic express" is.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim colornum As Integer
colornum = Int(Rnd() * 5)
Select Case colornum
Case Is = 0
Label1.Image = Label1.Image.FromFile("%26lt;path and filename%26gt;")
Case Is = 1
Label1.Image = Label1.Image.FromFile("%26lt;path and filename%26gt;")
Case Is = 2
Label1.Image = Label1.Image.FromFile("%26lt;path and filename%26gt;")
Case Is = 3
Label1.Image = Label1.Image.FromFile("%26lt;path and filename%26gt;")
Case Is = 4
Label1.Image = Label1.Image.FromFile("%26lt;path and filename%26gt;")
Where each case is a different image.
How do you learn visual basic programming?
ive no basic knowledge about computer programming but i sure like to learn the basics and eventually try visual basic programming.
How do you learn visual basic programming?
Buy a book. Any book. Visual basic is designed for beginners
Reply:You can buy all sorts of different books to learn VB. Also, there are tons of online tutorials which are all free. You should look into them.
Here's the link to one of them so you can see what I mean: http://www.vbtutor.net/vbtutor.html
Good luck!
Reply:Take a class or two to familiarize yourself with the programming language and the developer tools. Then pick a project you would like to do a a hobby and use the language you've learned to try and finish the project.
Doing a programming project on your own is the best way to learn any programming language.
I learned my languages by creating stupid games :)
Reply:I use it for work every day.... i learned the basics by taking a class at the community college, and taught myself a lot by just spending time doing it. Basically... anything that you see done on a windows application can be done in visual basic! Maybe not everything, but a the majority of everything! Maybe look up an online class.
Reply:I'm giving u this site, because I'm feeling nice today, but I want you to give the next blind person u meet on the street a dollar. http://www.engin.umd.umich.edu/CIS/cours...
Reply:try c++ for dummies
well i'm a business major and computer science minor so i learned some from school.
try local community college.
Reply:The best way for someone without any computer programming knowledge at all to learn any language is to take a class -- often VB is offered at community colleges. There are a variety of online tutorials to provide you with a wealth of information, but the best way to learn is through practice, and a real classroom environment will give you that practice.
How do you learn visual basic programming?
Buy a book. Any book. Visual basic is designed for beginners
Reply:You can buy all sorts of different books to learn VB. Also, there are tons of online tutorials which are all free. You should look into them.
Here's the link to one of them so you can see what I mean: http://www.vbtutor.net/vbtutor.html
Good luck!
Reply:Take a class or two to familiarize yourself with the programming language and the developer tools. Then pick a project you would like to do a a hobby and use the language you've learned to try and finish the project.
Doing a programming project on your own is the best way to learn any programming language.
I learned my languages by creating stupid games :)
Reply:I use it for work every day.... i learned the basics by taking a class at the community college, and taught myself a lot by just spending time doing it. Basically... anything that you see done on a windows application can be done in visual basic! Maybe not everything, but a the majority of everything! Maybe look up an online class.
Reply:I'm giving u this site, because I'm feeling nice today, but I want you to give the next blind person u meet on the street a dollar. http://www.engin.umd.umich.edu/CIS/cours...
Reply:try c++ for dummies
well i'm a business major and computer science minor so i learned some from school.
try local community college.
Reply:The best way for someone without any computer programming knowledge at all to learn any language is to take a class -- often VB is offered at community colleges. There are a variety of online tutorials to provide you with a wealth of information, but the best way to learn is through practice, and a real classroom environment will give you that practice.
Am I able to call the totals from one form in Visual Basic to another form?
I want to do a Visual Basic project that is a store. One the first 3 pages, customers can selected items that they wish to purchase and on the 4th page I want it to be a checkout page that tells them how much their grand total is that they have accumulated from the first 3 pages. How do I call the totals from the first 3 pages to create a grand total on the checkout page. If you could show me with example code would be great.
Am I able to call the totals from one form in Visual Basic to another form?
for sure you can access any thing in a form from another one . but only if you define it as public.
you can use public variables , public functions or public properties.
let assume that we wanna calculate the total in Form1 and access it from From2.
if you want to have an uncontrolled access(free read and change) it's better to use a public variable.
if you want to just read (and no changes) it's better you use public functions.
and finally if you wanna have a controlled access (read it and verify and control changes ) it's better to use public properties.
if it's not clear enough and you want more explains or samples please feel free to contact me on email address MZR_IR@YAHOO.COM
good luck.
Reply:this my friend is the answer to all your problems:
http://www.tek-tips.com/faqs.cfm?fid=577...
graphics cards
Am I able to call the totals from one form in Visual Basic to another form?
for sure you can access any thing in a form from another one . but only if you define it as public.
you can use public variables , public functions or public properties.
let assume that we wanna calculate the total in Form1 and access it from From2.
if you want to have an uncontrolled access(free read and change) it's better to use a public variable.
if you want to just read (and no changes) it's better you use public functions.
and finally if you wanna have a controlled access (read it and verify and control changes ) it's better to use public properties.
if it's not clear enough and you want more explains or samples please feel free to contact me on email address MZR_IR@YAHOO.COM
good luck.
Reply:this my friend is the answer to all your problems:
http://www.tek-tips.com/faqs.cfm?fid=577...
graphics cards
Thursday, July 30, 2009
How do i get a lots of help on visual basic?
i already know other programming laguages similar to VB like open Gl basic and things like that, and i have now downloaded the VB from microsoft but how to i install it? (it is an .iso file )
How do i get a lots of help on visual basic?
an ISO file is a file that is a CD image so you will either have to use a program like nero or easy cd creator to burn it to disk Or you can install a Virutal ISO manager like microsofts creation or DaemonTools
http://home.so-net.net.tw/kmolly/dtools/...
Once you install Daemon tools you will need to restart your computer, because it loads a virtual manger for IDE interface or SCSI interface drives. Once you reboot load the image and try the installation.
Question for VB? or VB.net VB 6.0 the last true visual basic is deprecated and is not recommended to be in production use because of the clunky runtime that you have to install. MSDN can provide a wealth of resources but your best bet is to start with a book. Type into google "VB.NET resources should equal a wealth of information.
- Mike Roth
Reply:I should recommend
http://msdn.microsoft.com/
and
http://www.codeproject.com
Reply:Download VB.net Express from Microsoft. That would be better coz it's the latest version
How do i get a lots of help on visual basic?
an ISO file is a file that is a CD image so you will either have to use a program like nero or easy cd creator to burn it to disk Or you can install a Virutal ISO manager like microsofts creation or DaemonTools
http://home.so-net.net.tw/kmolly/dtools/...
Once you install Daemon tools you will need to restart your computer, because it loads a virtual manger for IDE interface or SCSI interface drives. Once you reboot load the image and try the installation.
Question for VB? or VB.net VB 6.0 the last true visual basic is deprecated and is not recommended to be in production use because of the clunky runtime that you have to install. MSDN can provide a wealth of resources but your best bet is to start with a book. Type into google "VB.NET resources should equal a wealth of information.
- Mike Roth
Reply:I should recommend
http://msdn.microsoft.com/
and
http://www.codeproject.com
Reply:Download VB.net Express from Microsoft. That would be better coz it's the latest version
What are the advantages of visual basic over microsoft office in programming?
well, one thing, you need to know that visual Basic is something you program in. and Microsoft office is a collection of programs that help you create documents.
What are the advantages of visual basic over microsoft office in programming?
i didn't know that ms office had a programming language. Hmm, new to me. The truth is, they don't have a programming language. VB is a good language to learn for programming. It's easy to learn and very powerful. Go to w3schools.com and click on "Learn ASP" to start with.
What are the advantages of visual basic over microsoft office in programming?
i didn't know that ms office had a programming language. Hmm, new to me. The truth is, they don't have a programming language. VB is a good language to learn for programming. It's easy to learn and very powerful. Go to w3schools.com and click on "Learn ASP" to start with.
What are the differences between Visual Basic 6,7 and 8?
I need to write a paper comparing and contrasting VB 6, 7 and 8. Basically, how each one of them was a improvement over the other. I can not find ANYTHING to help me with this. Anyone have any suggestions? Thanks
What are the differences between Visual Basic 6,7 and 8?
VB6 is VB. 7 and 8 are VB dot net - totally different concept. They're all computer languages and they all use K%26amp;K's BASIC as an ancestor, but that's about where the resemblance between VB and VB dot net ends.
Reply:8 is the best it has it all
Reply:it really all comes down to API's
More features, especially access to the .net APIs. V8 allows you to access new APIs of Vista.
What are the differences between Visual Basic 6,7 and 8?
VB6 is VB. 7 and 8 are VB dot net - totally different concept. They're all computer languages and they all use K%26amp;K's BASIC as an ancestor, but that's about where the resemblance between VB and VB dot net ends.
Reply:8 is the best it has it all
Reply:it really all comes down to API's
More features, especially access to the .net APIs. V8 allows you to access new APIs of Vista.
How to make an array or object global to all forms in Visual Basic?
I made a string array and all my subroutines in the original form could access it, but then I made another form, and that form couldn't access the array. So I made a class that would hold the array, thinking that if I did this it would solve my problem, but it didn't.
So how can I make my class (or array) visible to the other form?
How to make an array or object global to all forms in Visual Basic?
What you really did was make a module level variable. Module level provides access within the form only.
To make a program wide global variable you first need to add a module. Declare a Public variable at the top of the form and it will be available to any and all forms in the project.
Edit:
However if the form is closed you will loose the Public variable and its contents as well. By decalring a public variable in a module the module is available for the life of the project.
End Edit:
You may need to use the name of the module and variable in dot notation. For example a module named myMod with a Public Variable called myVariable is assigned the value of 10 in a form.
myMod.myVariable = 10
Global variables do have their uses but be aware that it is easy to inject errors into your project by inadvertently modifying a global variable. You cannot encapsulate a global variable with validation code like you can if you create a public property or public sub/function.
You said that you placed an array inside a class. You can declare a global variable as that class and use the encapsulation within the class to protect the values contained within. The global "Class" variable would then be accessable through out the project you would have to take care to initialize it at program startup when your main form loads.
botanical garden
So how can I make my class (or array) visible to the other form?
How to make an array or object global to all forms in Visual Basic?
What you really did was make a module level variable. Module level provides access within the form only.
To make a program wide global variable you first need to add a module. Declare a Public variable at the top of the form and it will be available to any and all forms in the project.
Edit:
However if the form is closed you will loose the Public variable and its contents as well. By decalring a public variable in a module the module is available for the life of the project.
End Edit:
You may need to use the name of the module and variable in dot notation. For example a module named myMod with a Public Variable called myVariable is assigned the value of 10 in a form.
myMod.myVariable = 10
Global variables do have their uses but be aware that it is easy to inject errors into your project by inadvertently modifying a global variable. You cannot encapsulate a global variable with validation code like you can if you create a public property or public sub/function.
You said that you placed an array inside a class. You can declare a global variable as that class and use the encapsulation within the class to protect the values contained within. The global "Class" variable would then be accessable through out the project you would have to take care to initialize it at program startup when your main form loads.
botanical garden
How do I get a Visual Basic application to run automaticaly?
How do i get a VB app to run automatically wen a user logs on? (without schedueled tasks)
How do I get a Visual Basic application to run automaticaly?
Add a key to the folder HKEY_CURRENT_USER\Software\Microsoft\Win...
in the registry. Use any name and let the value be the full path of the exe file of your VB application
Reply:You can create an entry in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\
Windows\CurrentVersion\Run
There you create a new string value identifying your program and where it's located.
Reply:i know about vb and have used this option. on the start menu%26lt;programs you find a folder named startup . just add ashortcut to the vb application file and your problem is solved. (note: in the startup folder there might be some other shortcuts to other startup items like anitvirus etc don't change the positons of those file . it may cause bigger problems
How do I get a Visual Basic application to run automaticaly?
Add a key to the folder HKEY_CURRENT_USER\Software\Microsoft\Win...
in the registry. Use any name and let the value be the full path of the exe file of your VB application
Reply:You can create an entry in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\
Windows\CurrentVersion\Run
There you create a new string value identifying your program and where it's located.
Reply:i know about vb and have used this option. on the start menu%26lt;programs you find a folder named startup . just add ashortcut to the vb application file and your problem is solved. (note: in the startup folder there might be some other shortcuts to other startup items like anitvirus etc don't change the positons of those file . it may cause bigger problems
How to write to the serial port using Visual Basic 6?
Please help me in this.
I want to write a simple program using VB 6 When the user clicks on a button, a particular bitstream is generated, and it will be sent to the serial port.
Can anyone tell me how to do this with VB 6?
How to write to the serial port using Visual Basic 6?
Go to the Add Controls and add the Comm object.
Drag it to the form (it will look like an old style phone)
Use the methods like
Comm1.Open
Comm1.Write
Comm1.Read
etc
I want to write a simple program using VB 6 When the user clicks on a button, a particular bitstream is generated, and it will be sent to the serial port.
Can anyone tell me how to do this with VB 6?
How to write to the serial port using Visual Basic 6?
Go to the Add Controls and add the Comm object.
Drag it to the form (it will look like an old style phone)
Use the methods like
Comm1.Open
Comm1.Write
Comm1.Read
etc
How to create program that can take in command line as parameters when startup with Visual Basic 6?
Would like to create a program that can be schedule to run and follow different routine depending on the parameters pass in when the program being call.
How to create program that can take in command line as parameters when startup with Visual Basic 6?
use the api "GetCommandLine"
Declare Function GetCommandLine Lib "Kernel32" As String
MsgBox "Command Line: " %26amp; GetCommandLine()
Reply:Look,dear to writing the coding for this program is not possible here,so first of all you do the coding for it if you are facing any problem then correction to be done by third person so first you initiate then ask me about it or directly consult with expert of this field guys at
http://www.commediait.com
or its concern department
Reply:Try this: http://www.vb-helper.com/howto_2005_comm...
How to create program that can take in command line as parameters when startup with Visual Basic 6?
use the api "GetCommandLine"
Declare Function GetCommandLine Lib "Kernel32" As String
MsgBox "Command Line: " %26amp; GetCommandLine()
Reply:Look,dear to writing the coding for this program is not possible here,so first of all you do the coding for it if you are facing any problem then correction to be done by third person so first you initiate then ask me about it or directly consult with expert of this field guys at
http://www.commediait.com
or its concern department
Reply:Try this: http://www.vb-helper.com/howto_2005_comm...
In visual basic 6: when you use databases(access), how do you bind the database to the form?
In visual basic 6: when you use databases(access), how do you bind the database to the form?
I would like the database to work (add, delete, update etc) on all computers.
In visual basic 6: when you use databases(access), how do you bind the database to the form?
You "attach" the MDB using connect strings, depending on which connecting methods you want to use... ISAM, OLEDB, etc.
The best way would be for you to include the MDB with your VB6 app, so you can locate it to make sure it's there, then you connect to it.
Reply:Add connection string manually to data access, then using binding datasource from the form's boxes.
wild flowers
I would like the database to work (add, delete, update etc) on all computers.
In visual basic 6: when you use databases(access), how do you bind the database to the form?
You "attach" the MDB using connect strings, depending on which connecting methods you want to use... ISAM, OLEDB, etc.
The best way would be for you to include the MDB with your VB6 app, so you can locate it to make sure it's there, then you connect to it.
Reply:Add connection string manually to data access, then using binding datasource from the form's boxes.
wild flowers
Visual Basic with Windows Vista Ultimate Help?
I am running Windows Vista Ultimate. I installed Visual Basic 6.0 but it says "cannot access system registry" whenever I try to load the ADO and Datagrid component. Microsoft claims that this version of Visual Basic is still supported in Vista. What else can I do to resolve this? Any advice would be greatly appreciated.
*Dedicated to software developers and system administrators and experts.
Visual Basic with Windows Vista Ultimate Help?
Runtime Definition
Below is a list of the Visual Basic 6.0 runtime files that are shipping on Windows Vista and those that will need to be deployed along with your application setup.
Supported and Shipping in Windows Vista
atl.dll msadcor.dll msorcl32.dll ole2.dll
asycfilt.dll msadcs.dll msvbvm60.dll ole32.dll
comcat.dll msadds.dll msvcirt.dll oleaut32.dll
compobj.dll msaddsr.dll msvcrt.dll oleaut32.dll
dbnmpntw.dll msader15.dll msvcrt40.dll oledb32.dll
dcomcnfg.exe msado15.dll mtxdm.dll oledb32r.dll
dllhost.exe msador15.dll mtxoci.dll oledlg.dll
ds16gt.dll msadrh15.dll odbc16gt.dll olepro32.dll
ds32gt.dll mscpxl32.dll odbc32.dll olethk32.dll
expsrv.dll msdadc.dll odbc32gt.dll regsvr32.exe
hh.exe msdaenum.dll odbcad32.exe rpcns4.dll
hhctrl.ocx msdaer.dll odbccp32.cpl rpcrt4.dll
imagehlp.dll msdaora.dll odbccp32.dll scrrun.dll
iprop.dll msdaosp.dll odbccr32.dll secur32.dll
itircl.dll msdaprst.dll odbccu32.dll simpdata.tlb
itss.dll msdaps.dll odbcint.dll sqloledb.dll
mfc40.dll msdasc.dll odbcji32.dll sqlsrv32.dll
mfc42.dll msdasql.dll odbcjt32.dll stdole2.tlb
mfc42enu.dll msdasqlr.dll odbctrac.dll stdole32.tlb
msadce.dll msdatsrc.tlb oddbse32.dll storage.dll
msadcer.dll msdatt.dll odexl32.dll triedit.dll
msadcf.dll msdfmap.dll odfox32.dll vbajet32.dll
msadcfr.dll msdfmap.ini odpdx32.dll vfpodbc.dll
msadco.dll msjtes40.dll odtext32.dll
Tested and Not Shipping In Windows Vista
anibtn32.ocx mscdrun.dll msoutl32.ocx rpcltscm.dll
autmgr32.exe mschart.ocx mspdox35.dll rpcmqcl.dll
autprx32.dll mschrt20.ocx msrd2x35.dll rpcmqsvr.dll
ciscnfg.exe mscomct2.ocx msrdc20.ocx rpcss.exe
comct232.ocx mscomctl.ocx msrdo20.dll adoapt15.reg
comct332.ocx mscomm32.ocx msrepl35.dll adofre15.reg
comctl32.ocx msdatgrd.ocx msstdfmt.dll makapt15.bat
comdlg32.ocx msdatlst.ocx msstkprp.dll makfre15.bat
dao350.dll msdatrep.ocx mstext35.dll msderun.dll
dbadapt.dll msdbrptr.dll mswcrun.dll dbmsshrn.dll
dbgrid32.ocx msexch35.dll mswinsck.ocx msdaerr.dll
dblist32.ocx msexcl35.dll msxbse35.dll msdatl2.dll
dbmssocn.dll msflxgrd.ocx odbctl32.dll oledb32x.dll
edao2535.tlb mshflxgd.ocx odkob32.dll spin32.ocx
gauge32.ocx mshtmpgr.dll olecnv32.dll sysinfo.ocx
graph32.ocx msinet.ocx picclp32.ocx tabctl32.ocx
grid32.ocx msjet35.dll racmgr32.exe threed32.ocx
gswdll32.dll msjint35.dll racreg32.dll tlbinf32.dll
hlp95en.dll msjt4jlt.dll rdocurs.dll visdata.exe
keysta32.ocx msjter35.dll richtx32.ocx vbar332.dll
mci32.ocx msjtor35.dll rpcltc1.dll vsdbflex.srg
mdac_typ.exe msltus35.dll rpcltc5.dll wbclsdsr.ocx
msaddndr.dll msmapi32.ocx rpcltccm.dll wbclsdsr.ocx
msadodc.ocx msmask32.ocx rpclts5.dll windbver.exe
msbind.dll
Localization Support Binaries
The following binaries are necessary for supporting Visual Basic 6.0 applications running on localized versions of the Windows OS.
Tested and Not Shipping In Windows Vista
JPN KOR CHT CHS
mfc42jpn.dll mfc42kor.dll mfc42cht.dll mfc42chs.dll
scrrnjp.dll scrrnko.dll scrrncht.dll scrrnchs.dll
vb6jp.dll vb6ko.dll vb6cht.dll vb6chs.dll
cmct2jp.dll cmct2ko.dll cmct2cht.dll cmct2chs.dll
cmct3jp.dll cmct3ko.dll cmct3cht.dll mscc2chs.dll
mscc2jp.dll mscc2ko.dll mscc2cht.dll cmct3chs.dll
cmctljp.dll cmctlko.dll cmctlcht.dll cmctlchs.dll
cmdlgjp.dll cmdlgko.dll mscmccht.dll mscmcchs.dll
mscmcjp.dll mscmcko.dll cmdlgcht.dll cmdlgchs.dll
dbgrdjp.dll dbgrdko.dll dbgrdcht.dll dbgrdchs.dll
dblstjp.dll dblstko.dll dblstcht.dll dblstchs.dll
mcijp.dll mciko.dll mcicht.dll mcichs.dll
msadnjp.dll msadnko.dll msadncht.dll msadnchs.dll
adodcjp.dll adodcko.dll adodccht.dll adodcchs.dll
mschtjp.dll mschtko.dll mschtcht.dll mschtchs.dll
msch2jp.dll msch2ko.dll msch2cht.dll msch2chs.dll
mscomjp.dll mscomko.dll mscomcht.dll mscomchs.dll
datgdjp.dll datgdko.dll datgdcht.dll datgdchs.dll
datlsjp.dll datlsko.dll datlscht.dll datlschs.dll
datrpjp.dll datrpko.dll datrpcht.dll datrpchs.dll
dbrprjp.dll dbrprko.dll dbrprcht.dll dbrprchs.dll
flxgdjp.dll flxgdko.dll flxgdcht.dll flxgdchs.dll
mshfgjpn.dll mshfgkor.dll mshfgcht.dll mshfgchs.dll
htmprjp.dll htmprko.dll htmprcht.dll htmprchs.dll
inetjp.dll inetko.dll inetcht.dll inetchs.dll
msmpijp.dll msmpiko.dll msmpicht.dll msmpichs.dll
msmskjp.dll msmskko.dll msmskcht.dll msmskchs.dll
rdc20jp.dll rdc20ko.dll rdc20cht.dll rdc20chs.dll
rdo20jp.dll rdo20ko.dll rdo20cht.dll rdo20chs.dll
stdftjp.dll stdftko.dll stdftcht.dll stdftchs.dll
mswcrjp.dll mswcrko.dll mswcrcht.dll mswcrchs.dll
winskjp.dll winskko.dll winskcht.dll winskchs.dll
pcclpjp.dll pcclpko.dll pcclpcht.dll pcclpchs.dll
rchtxjp.dll rchtxko.dll rchtxcht.dll rchtxchs.dll
sysinjp.dll sysinko.dll sysincht.dll sysinchs.dll
tabctjp.dll tabctko.dll tabctcht.dll tabctchs.dll
ITA FRA ESP DEU
mfc42ita.dll mfc42fra.dll mfc42esp.dll mfc42deu.dll
scrrnit.dll scrrnfr.dll scrrnes.dll scrrnde.dll
vb6it.dll vb6fr.dll vb6es.dll vb6de.dll
cmct2it.dll cmct2fr.dll cmct2es.dll cmct2de.dll
mscc2it.dll mscc2fr.dll mscc2es.dll mscc2de.dll
cmct3it.dll cmct3fr.dll cmct3es.dll cmct3de.dll
cmctlit.dll cmctlfr.dll cmctles.dll cmctlde.dll
mscmcit.dll mscmcfr.dll mscmces.dll mscmcde.dll
cmdlgit.dll cmdlgfr.dll cmdlges.dll cmdlgde.dll
dbgrdit.dll dbgrdfr.dll dbgrdes.dll dbgrdde.dll
dblstit.dll dblstfr.dll dblstes.dll dblstde.dll
mciit.dll mcifr.dll mcies.dll mcide.dll
msadnit.dll msadnfr.dll msadnes.dll msadnde.dll
adodcit.dll adodcfr.dll adodces.dll adodcde.dll
mschtit.dll mschtfr.dll mschtes.dll mschtde.dll
msch2it.dll msch2fr.dll msch2es.dll msch2de.dll
mscomit.dll mscomfr.dll mscomes.dll mscomde.dll
datgdit.dll datgdfr.dll datgdes.dll datgdde.dll
datlsit.dll datlsfr.dll datlses.dll datlsde.dll
datrpit.dll datrpfr.dll datrpes.dll datrpde.dll
dbrprit.dll dbrprfr.dll dbrpres.dll dbrprde.dll
flxgdit.dll flxgdfr.dll flxgdes.dll flxgdde.dll
mshfgit.dll mshfgfr.dll mshfges.dll mshfgde.dll
htmprit.dll htmprfr.dll htmpres.dll htmprde.dll
inetit.dll inetfr.dll inetes.dll inetde.dll
msmpiit.dll msmpifr.dll msmpies.dll msmpide.dll
msmskit.dll msmskfr.dll msmskes.dll msmskde.dll
rdc20it.dll rdc20fr.dll rdc20es.dll rdc20de.dll
rdo20it.dll rdo20fr.dll rdo20es.dll rdo20de.dll
stdftit.dll stdftfr.dll stdftes.dll stdftde.dll
mswcrit.dll mswcrfr.dll mswcres.dll mswcrde.dll
winskit.dll winskfr.dll winskes.dll winskde.dll
pcclpit.dll pcclpfr.dll pcclpes.dll pcclpde.dll
rchtxit.dll rchtxfr.dll rchtxes.dll rchtxde.dll
sysinit.dll sysinfr.dll sysines.dll sysinde.dll
tabctit.dll tabctfr.dll tabctes.dll tabctde.dll
Reply:"Microsoft claims that this version of Visual Basic is still supported in Vista."
No.
You may also try to get Visual Basic 2005 or later, all of which works in the .NET Framework.
*Dedicated to software developers and system administrators and experts.
Visual Basic with Windows Vista Ultimate Help?
Runtime Definition
Below is a list of the Visual Basic 6.0 runtime files that are shipping on Windows Vista and those that will need to be deployed along with your application setup.
Supported and Shipping in Windows Vista
atl.dll msadcor.dll msorcl32.dll ole2.dll
asycfilt.dll msadcs.dll msvbvm60.dll ole32.dll
comcat.dll msadds.dll msvcirt.dll oleaut32.dll
compobj.dll msaddsr.dll msvcrt.dll oleaut32.dll
dbnmpntw.dll msader15.dll msvcrt40.dll oledb32.dll
dcomcnfg.exe msado15.dll mtxdm.dll oledb32r.dll
dllhost.exe msador15.dll mtxoci.dll oledlg.dll
ds16gt.dll msadrh15.dll odbc16gt.dll olepro32.dll
ds32gt.dll mscpxl32.dll odbc32.dll olethk32.dll
expsrv.dll msdadc.dll odbc32gt.dll regsvr32.exe
hh.exe msdaenum.dll odbcad32.exe rpcns4.dll
hhctrl.ocx msdaer.dll odbccp32.cpl rpcrt4.dll
imagehlp.dll msdaora.dll odbccp32.dll scrrun.dll
iprop.dll msdaosp.dll odbccr32.dll secur32.dll
itircl.dll msdaprst.dll odbccu32.dll simpdata.tlb
itss.dll msdaps.dll odbcint.dll sqloledb.dll
mfc40.dll msdasc.dll odbcji32.dll sqlsrv32.dll
mfc42.dll msdasql.dll odbcjt32.dll stdole2.tlb
mfc42enu.dll msdasqlr.dll odbctrac.dll stdole32.tlb
msadce.dll msdatsrc.tlb oddbse32.dll storage.dll
msadcer.dll msdatt.dll odexl32.dll triedit.dll
msadcf.dll msdfmap.dll odfox32.dll vbajet32.dll
msadcfr.dll msdfmap.ini odpdx32.dll vfpodbc.dll
msadco.dll msjtes40.dll odtext32.dll
Tested and Not Shipping In Windows Vista
anibtn32.ocx mscdrun.dll msoutl32.ocx rpcltscm.dll
autmgr32.exe mschart.ocx mspdox35.dll rpcmqcl.dll
autprx32.dll mschrt20.ocx msrd2x35.dll rpcmqsvr.dll
ciscnfg.exe mscomct2.ocx msrdc20.ocx rpcss.exe
comct232.ocx mscomctl.ocx msrdo20.dll adoapt15.reg
comct332.ocx mscomm32.ocx msrepl35.dll adofre15.reg
comctl32.ocx msdatgrd.ocx msstdfmt.dll makapt15.bat
comdlg32.ocx msdatlst.ocx msstkprp.dll makfre15.bat
dao350.dll msdatrep.ocx mstext35.dll msderun.dll
dbadapt.dll msdbrptr.dll mswcrun.dll dbmsshrn.dll
dbgrid32.ocx msexch35.dll mswinsck.ocx msdaerr.dll
dblist32.ocx msexcl35.dll msxbse35.dll msdatl2.dll
dbmssocn.dll msflxgrd.ocx odbctl32.dll oledb32x.dll
edao2535.tlb mshflxgd.ocx odkob32.dll spin32.ocx
gauge32.ocx mshtmpgr.dll olecnv32.dll sysinfo.ocx
graph32.ocx msinet.ocx picclp32.ocx tabctl32.ocx
grid32.ocx msjet35.dll racmgr32.exe threed32.ocx
gswdll32.dll msjint35.dll racreg32.dll tlbinf32.dll
hlp95en.dll msjt4jlt.dll rdocurs.dll visdata.exe
keysta32.ocx msjter35.dll richtx32.ocx vbar332.dll
mci32.ocx msjtor35.dll rpcltc1.dll vsdbflex.srg
mdac_typ.exe msltus35.dll rpcltc5.dll wbclsdsr.ocx
msaddndr.dll msmapi32.ocx rpcltccm.dll wbclsdsr.ocx
msadodc.ocx msmask32.ocx rpclts5.dll windbver.exe
msbind.dll
Localization Support Binaries
The following binaries are necessary for supporting Visual Basic 6.0 applications running on localized versions of the Windows OS.
Tested and Not Shipping In Windows Vista
JPN KOR CHT CHS
mfc42jpn.dll mfc42kor.dll mfc42cht.dll mfc42chs.dll
scrrnjp.dll scrrnko.dll scrrncht.dll scrrnchs.dll
vb6jp.dll vb6ko.dll vb6cht.dll vb6chs.dll
cmct2jp.dll cmct2ko.dll cmct2cht.dll cmct2chs.dll
cmct3jp.dll cmct3ko.dll cmct3cht.dll mscc2chs.dll
mscc2jp.dll mscc2ko.dll mscc2cht.dll cmct3chs.dll
cmctljp.dll cmctlko.dll cmctlcht.dll cmctlchs.dll
cmdlgjp.dll cmdlgko.dll mscmccht.dll mscmcchs.dll
mscmcjp.dll mscmcko.dll cmdlgcht.dll cmdlgchs.dll
dbgrdjp.dll dbgrdko.dll dbgrdcht.dll dbgrdchs.dll
dblstjp.dll dblstko.dll dblstcht.dll dblstchs.dll
mcijp.dll mciko.dll mcicht.dll mcichs.dll
msadnjp.dll msadnko.dll msadncht.dll msadnchs.dll
adodcjp.dll adodcko.dll adodccht.dll adodcchs.dll
mschtjp.dll mschtko.dll mschtcht.dll mschtchs.dll
msch2jp.dll msch2ko.dll msch2cht.dll msch2chs.dll
mscomjp.dll mscomko.dll mscomcht.dll mscomchs.dll
datgdjp.dll datgdko.dll datgdcht.dll datgdchs.dll
datlsjp.dll datlsko.dll datlscht.dll datlschs.dll
datrpjp.dll datrpko.dll datrpcht.dll datrpchs.dll
dbrprjp.dll dbrprko.dll dbrprcht.dll dbrprchs.dll
flxgdjp.dll flxgdko.dll flxgdcht.dll flxgdchs.dll
mshfgjpn.dll mshfgkor.dll mshfgcht.dll mshfgchs.dll
htmprjp.dll htmprko.dll htmprcht.dll htmprchs.dll
inetjp.dll inetko.dll inetcht.dll inetchs.dll
msmpijp.dll msmpiko.dll msmpicht.dll msmpichs.dll
msmskjp.dll msmskko.dll msmskcht.dll msmskchs.dll
rdc20jp.dll rdc20ko.dll rdc20cht.dll rdc20chs.dll
rdo20jp.dll rdo20ko.dll rdo20cht.dll rdo20chs.dll
stdftjp.dll stdftko.dll stdftcht.dll stdftchs.dll
mswcrjp.dll mswcrko.dll mswcrcht.dll mswcrchs.dll
winskjp.dll winskko.dll winskcht.dll winskchs.dll
pcclpjp.dll pcclpko.dll pcclpcht.dll pcclpchs.dll
rchtxjp.dll rchtxko.dll rchtxcht.dll rchtxchs.dll
sysinjp.dll sysinko.dll sysincht.dll sysinchs.dll
tabctjp.dll tabctko.dll tabctcht.dll tabctchs.dll
ITA FRA ESP DEU
mfc42ita.dll mfc42fra.dll mfc42esp.dll mfc42deu.dll
scrrnit.dll scrrnfr.dll scrrnes.dll scrrnde.dll
vb6it.dll vb6fr.dll vb6es.dll vb6de.dll
cmct2it.dll cmct2fr.dll cmct2es.dll cmct2de.dll
mscc2it.dll mscc2fr.dll mscc2es.dll mscc2de.dll
cmct3it.dll cmct3fr.dll cmct3es.dll cmct3de.dll
cmctlit.dll cmctlfr.dll cmctles.dll cmctlde.dll
mscmcit.dll mscmcfr.dll mscmces.dll mscmcde.dll
cmdlgit.dll cmdlgfr.dll cmdlges.dll cmdlgde.dll
dbgrdit.dll dbgrdfr.dll dbgrdes.dll dbgrdde.dll
dblstit.dll dblstfr.dll dblstes.dll dblstde.dll
mciit.dll mcifr.dll mcies.dll mcide.dll
msadnit.dll msadnfr.dll msadnes.dll msadnde.dll
adodcit.dll adodcfr.dll adodces.dll adodcde.dll
mschtit.dll mschtfr.dll mschtes.dll mschtde.dll
msch2it.dll msch2fr.dll msch2es.dll msch2de.dll
mscomit.dll mscomfr.dll mscomes.dll mscomde.dll
datgdit.dll datgdfr.dll datgdes.dll datgdde.dll
datlsit.dll datlsfr.dll datlses.dll datlsde.dll
datrpit.dll datrpfr.dll datrpes.dll datrpde.dll
dbrprit.dll dbrprfr.dll dbrpres.dll dbrprde.dll
flxgdit.dll flxgdfr.dll flxgdes.dll flxgdde.dll
mshfgit.dll mshfgfr.dll mshfges.dll mshfgde.dll
htmprit.dll htmprfr.dll htmpres.dll htmprde.dll
inetit.dll inetfr.dll inetes.dll inetde.dll
msmpiit.dll msmpifr.dll msmpies.dll msmpide.dll
msmskit.dll msmskfr.dll msmskes.dll msmskde.dll
rdc20it.dll rdc20fr.dll rdc20es.dll rdc20de.dll
rdo20it.dll rdo20fr.dll rdo20es.dll rdo20de.dll
stdftit.dll stdftfr.dll stdftes.dll stdftde.dll
mswcrit.dll mswcrfr.dll mswcres.dll mswcrde.dll
winskit.dll winskfr.dll winskes.dll winskde.dll
pcclpit.dll pcclpfr.dll pcclpes.dll pcclpde.dll
rchtxit.dll rchtxfr.dll rchtxes.dll rchtxde.dll
sysinit.dll sysinfr.dll sysines.dll sysinde.dll
tabctit.dll tabctfr.dll tabctes.dll tabctde.dll
Reply:"Microsoft claims that this version of Visual Basic is still supported in Vista."
No.
You may also try to get Visual Basic 2005 or later, all of which works in the .NET Framework.
What's the simplest way to encrypt a string in Visual Basic 2008?
I'm not looking for any real strong encryption, but just a way to change a string based on any given key.
What's the simplest way to encrypt a string in Visual Basic 2008?
Exclusive Or (XOR) each character's ASCII value with the length of the string. It's not as easy to break as it sounds, because the method of encryption isn't evident.
Blowfish is probably a lot better, though (it's a LOT stronger) and algorithms written in VB are available on the web.
Reply:Depends what algorithm(s) you want and how sophisticated your grasp of the principles and VB, but there's lots of code freely available on the web.
RC4:
http://www.freevbcode.com/ShowCode.asp?I...
AES, DES, and others:
http://www.codearchive.com/list.php?go=0...
There's also a site discussing and providing API info at:
http://www.cryptovb.com/home/home.html
What's the simplest way to encrypt a string in Visual Basic 2008?
Exclusive Or (XOR) each character's ASCII value with the length of the string. It's not as easy to break as it sounds, because the method of encryption isn't evident.
Blowfish is probably a lot better, though (it's a LOT stronger) and algorithms written in VB are available on the web.
Reply:Depends what algorithm(s) you want and how sophisticated your grasp of the principles and VB, but there's lots of code freely available on the web.
RC4:
http://www.freevbcode.com/ShowCode.asp?I...
AES, DES, and others:
http://www.codearchive.com/list.php?go=0...
There's also a site discussing and providing API info at:
http://www.cryptovb.com/home/home.html
Using Visual Basic 6, How can I print text in a picture box at 90 degrees to the horizontal?
I would like to label the vertical axis of graphs drawn using the computer program I have written.
Using Visual Basic 6, How can I print text in a picture box at 90 degrees to the horizontal?
I've used the roText control (.ocx) from Mabry to do just that. Commercial software, not free. Instead of a text box, you use an instance of rotext and specify the angle, among other properties. I don't know if it's still sold, but you can google 'mabry rotext' and get many hits.
Reply:use a label with a backgroup of an image with the words in the image the way you want.
not an ideal solution but it does work
Anything else contact me bellow
Using Visual Basic 6, How can I print text in a picture box at 90 degrees to the horizontal?
I've used the roText control (.ocx) from Mabry to do just that. Commercial software, not free. Instead of a text box, you use an instance of rotext and specify the angle, among other properties. I don't know if it's still sold, but you can google 'mabry rotext' and get many hits.
Reply:use a label with a backgroup of an image with the words in the image the way you want.
not an ideal solution but it does work
Anything else contact me bellow
How can i use a barcode reader machine in visual basic programming?
I want to use a barcode reader machine in a visual basic program. for example when barcode reader reads a value how can i show this value in a label?
How can i use a barcode reader machine in visual basic programming?
bar code readers are just like keyboards..
you can have a text box and when the reader scans the barcode, the chars will be typed in the textbox... of course the textbox needs to have the focus...
Reply:You need the drivers for the hardware and a dll to access the hardware.
the device should connect by USB/Parallel/Serial.
The driver gives you a hook into the device and the dll access the device and is your "window" to the device.
the dll should have various methods, events and properties to make it all work.
Otherwise, you are talking about low-level access and you better do a lot of reading about your device and how the hardware connects to get it to do what you want.
Reply:Barcode scanners work exactly like a keyboard. Create your form with a textbox that accepts input. Make your focus on that textbox and scan the code. I'm not sure as I've only worked with them rarely, but you might also be able to have it capture keystrokes and write and algoryhtm to detect if it's a barcode, but thats a little work intensive.
stalk
How can i use a barcode reader machine in visual basic programming?
bar code readers are just like keyboards..
you can have a text box and when the reader scans the barcode, the chars will be typed in the textbox... of course the textbox needs to have the focus...
Reply:You need the drivers for the hardware and a dll to access the hardware.
the device should connect by USB/Parallel/Serial.
The driver gives you a hook into the device and the dll access the device and is your "window" to the device.
the dll should have various methods, events and properties to make it all work.
Otherwise, you are talking about low-level access and you better do a lot of reading about your device and how the hardware connects to get it to do what you want.
Reply:Barcode scanners work exactly like a keyboard. Create your form with a textbox that accepts input. Make your focus on that textbox and scan the code. I'm not sure as I've only worked with them rarely, but you might also be able to have it capture keystrokes and write and algoryhtm to detect if it's a barcode, but thats a little work intensive.
stalk
What do I do when a notice appears saying the visual basic environment could not be initialized ?
After this notice appears I cannot go foward or back - I have to switch off the computer and start it up again. What should I do?
What do I do when a notice appears saying the visual basic environment could not be initialized ?
same that you do. Restart your computer
What do I do when a notice appears saying the visual basic environment could not be initialized ?
same that you do. Restart your computer
How do I send an automated email with an attachment through a Visual Basic application with a command button?
Basically, my application parses a file, generates a report by writing to another text file. I need to have the application send that report text file over an Outlook email. Please help.
How do I send an automated email with an attachment through a Visual Basic application with a command button?
Private Sub ThisAddIn_Startup(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Startup
SendEmailtoContacts()
End Sub
Private Sub SendEmailtoContacts()
Dim subjectEmail As String = "Meeting has been rescheduled."
Dim bodyEmail As String = "Meeting is one hour later."
Dim sentContacts As Outlook.MAPIFolder = Me.Application.ActiveExplorer() _
.Session.GetDefaultFolder(Outlook _
.OlDefaultFolders.olFolderContacts)
For Each contact As Outlook.ContactItem In sentContacts.Items()
If contact.Email1Address.Contains("example.... Then
CreateEmailItem(subjectEmail, contact _
.Email1Address, bodyEmail)
End If
Next
End Sub
Private Sub CreateEmailItem(ByVal subjectEmail As String, _
ByVal toEmail As String, ByVal bodyEmail As String)
Dim eMail As Outlook.MailItem = Me.Application.CreateItem _
(Outlook.OlItemType.olMailItem)
With eMail
.Subject = subjectEmail
.To = toEmail
.Body = bodyEmail
.Importance = Outlook.OlImportance.olImportanceLow
.Send()
End With
End Sub
How do I send an automated email with an attachment through a Visual Basic application with a command button?
Private Sub ThisAddIn_Startup(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Startup
SendEmailtoContacts()
End Sub
Private Sub SendEmailtoContacts()
Dim subjectEmail As String = "Meeting has been rescheduled."
Dim bodyEmail As String = "Meeting is one hour later."
Dim sentContacts As Outlook.MAPIFolder = Me.Application.ActiveExplorer() _
.Session.GetDefaultFolder(Outlook _
.OlDefaultFolders.olFolderContacts)
For Each contact As Outlook.ContactItem In sentContacts.Items()
If contact.Email1Address.Contains("example.... Then
CreateEmailItem(subjectEmail, contact _
.Email1Address, bodyEmail)
End If
Next
End Sub
Private Sub CreateEmailItem(ByVal subjectEmail As String, _
ByVal toEmail As String, ByVal bodyEmail As String)
Dim eMail As Outlook.MailItem = Me.Application.CreateItem _
(Outlook.OlItemType.olMailItem)
With eMail
.Subject = subjectEmail
.To = toEmail
.Body = bodyEmail
.Importance = Outlook.OlImportance.olImportanceLow
.Send()
End With
End Sub
What is the Visual Basic syntax to disable a field in form if a certain option is selected from a list box?
I have a list box that has 2 options: PSF %26amp; QTC. If PSF is selected, I want the Network field to be disabled. If QTC is selected, I want the Sales Order to be disabled. Can someone help me with the syntax?
What is the Visual Basic syntax to disable a field in form if a certain option is selected from a list box?
Here is a snippet.............
Private Sub Form_Load()
List1.AddItem "aa"
List1.AddItem "bb"
End Sub
Private Sub List1_Click()
If List1.Text = "aa" Then
Text1.Enabled = False
Else
Text1.Enabled = True
End If
End Sub
Reply:The me keyword refers to the current form. You need to add this code on the change event (I think) of the options
If me.PSF = true then
me.networkfield.enabled =false
end if
If me.QTC = true then
me.salesorderfield.enabled = false
end if
Reply:Private Sub List1_Click()
If List1.text = "PSF" Then
,network field disaabled code here
exit sub
End If
If List1.text = "QTC" Then
,Sales Order disaabled code here
exit sub
End If
End Sub
Reply:If List1.ListIndex = (whatever position your item to cause the disabling is) Then
txtNetwork.Enabled = False
Else:
txtNetwork.Enabled = True
End If
Reply:assuming the network 'field' is a textbox, it's simply
If Listbox.selecteditem = "PSF" then
TextboxNetwork.enabled = False
End If
Reply:For VB.NET you can have a click event and then just do field.enabled = false; in your codebehind.
If you were meaning vbscript...well you can do it in javascript in a similar way by doing document.form.field.enabled = false; in the onclick function of the field.
What is the Visual Basic syntax to disable a field in form if a certain option is selected from a list box?
Here is a snippet.............
Private Sub Form_Load()
List1.AddItem "aa"
List1.AddItem "bb"
End Sub
Private Sub List1_Click()
If List1.Text = "aa" Then
Text1.Enabled = False
Else
Text1.Enabled = True
End If
End Sub
Reply:The me keyword refers to the current form. You need to add this code on the change event (I think) of the options
If me.PSF = true then
me.networkfield.enabled =false
end if
If me.QTC = true then
me.salesorderfield.enabled = false
end if
Reply:Private Sub List1_Click()
If List1.text = "PSF" Then
,network field disaabled code here
exit sub
End If
If List1.text = "QTC" Then
,Sales Order disaabled code here
exit sub
End If
End Sub
Reply:If List1.ListIndex = (whatever position your item to cause the disabling is) Then
txtNetwork.Enabled = False
Else:
txtNetwork.Enabled = True
End If
Reply:assuming the network 'field' is a textbox, it's simply
If Listbox.selecteditem = "PSF" then
TextboxNetwork.enabled = False
End If
Reply:For VB.NET you can have a click event and then just do field.enabled = false; in your codebehind.
If you were meaning vbscript...well you can do it in javascript in a similar way by doing document.form.field.enabled = false; in the onclick function of the field.
A web site which can help me learn visual basic?
Can someone pls tell me a web site that will help me to learn visual basic which is free?
A web site which can help me learn visual basic?
There isnt any Ive tried
Reply:visualbasic.about.com
rose garden
A web site which can help me learn visual basic?
There isnt any Ive tried
Reply:visualbasic.about.com
rose garden
How to save things to disk in visual basic 6?
does anyone know how to save data to disk in visual basic 6.
does anyone have the code to save data to disk in a program.
How to save things to disk in visual basic 6?
To read from a file in VB6, try this:
Private Sub Reading_Click()
Dim variable1 As String
Open "c:\My Documents\sample.txt" For Input As #1
Input #1, variable1
Text1.Text = variable1
Close #1
End Sub
--
To write to a file, try this:
Private Sub create_Click()
Dim intMsg As String
Dim StudentName As String
Open "c:\My Documents\sample.txt" For Output As #1
intMsg = MsgBox("File sample.txt opened")
StudentName = InputBox("Enter the student Name")
Print #1, StudentName
intMsg = MsgBox("Writing a" %26amp; StudentName %26amp; " to sample.txt ")
Close #1
intMsg = MsgBox("File sample.txt closed")
End Sub
Reply:The easiest way is to use the FileSystemObject through COM.
Another easy way is to use Input and such
does anyone have the code to save data to disk in a program.
How to save things to disk in visual basic 6?
To read from a file in VB6, try this:
Private Sub Reading_Click()
Dim variable1 As String
Open "c:\My Documents\sample.txt" For Input As #1
Input #1, variable1
Text1.Text = variable1
Close #1
End Sub
--
To write to a file, try this:
Private Sub create_Click()
Dim intMsg As String
Dim StudentName As String
Open "c:\My Documents\sample.txt" For Output As #1
intMsg = MsgBox("File sample.txt opened")
StudentName = InputBox("Enter the student Name")
Print #1, StudentName
intMsg = MsgBox("Writing a" %26amp; StudentName %26amp; " to sample.txt ")
Close #1
intMsg = MsgBox("File sample.txt closed")
End Sub
Reply:The easiest way is to use the FileSystemObject through COM.
Another easy way is to use Input and such
How do I make Visual Basic display the past 6 months and then update itself automatically as the months moveon
I want to make visual basic display the past 6 months (i.e. october, september, august and back). I also want Visual Basic to advance the months automatically. Does anyone know how to do that?
How do I make Visual Basic display the past 6 months and then update itself automatically as the months moveon
Drop this VBScript into an ASP page on an webserver. You can easily adapt this to a VB Winform app. Here is the code:
%26lt;%
For i = 4 to 10
response.write WriteMonth(i, 2006)
Next
For i = 11 to 12
If DateDiff( "d",Now, DateSerial( 2006, i, 1 )) %26lt;= 0 Then 'is past the date
response.write WriteMonth( i, 2006 )
End If
Next
'get the year
theYear = Year(Now)
'if the year is after 2006 then we will need to start the year of months again
If theYear %26gt;= 2007 Then
For i = 1 to 12
If DateDiff( "d", Now, DateSerial( theYear, i, 1 )) %26lt;= 0 Then 'is past the date
response.write WriteMonth( i, theYear )
End If
Next
End If
Function WriteMonth( theMonth, theYear )
WriteMonth = MonthName( Month( DateSerial( theYear, theMonth, 1 ))) %26amp; " "
End Function
%%26gt;
How do I make Visual Basic display the past 6 months and then update itself automatically as the months moveon
Drop this VBScript into an ASP page on an webserver. You can easily adapt this to a VB Winform app. Here is the code:
%26lt;%
For i = 4 to 10
response.write WriteMonth(i, 2006)
Next
For i = 11 to 12
If DateDiff( "d",Now, DateSerial( 2006, i, 1 )) %26lt;= 0 Then 'is past the date
response.write WriteMonth( i, 2006 )
End If
Next
'get the year
theYear = Year(Now)
'if the year is after 2006 then we will need to start the year of months again
If theYear %26gt;= 2007 Then
For i = 1 to 12
If DateDiff( "d", Now, DateSerial( theYear, i, 1 )) %26lt;= 0 Then 'is past the date
response.write WriteMonth( i, theYear )
End If
Next
End If
Function WriteMonth( theMonth, theYear )
WriteMonth = MonthName( Month( DateSerial( theYear, theMonth, 1 ))) %26amp; " "
End Function
%%26gt;
I am using visual basic and i have a button on my form and i want to program the button to open notepad?
I am using visual basic and i have a button on my form and i want to program the button to open notepad when clicked in a seperate window. what would that code be?
I am using visual basic and i have a button on my form and i want to program the button to open notepad?
double click button
add the following code
Private Sub Command1_Click()
Shell notepad, vbNormalFocus
End Sub
thats it u r done run click on button 2 see result
I am using visual basic and i have a button on my form and i want to program the button to open notepad?
double click button
add the following code
Private Sub Command1_Click()
Shell notepad, vbNormalFocus
End Sub
thats it u r done run click on button 2 see result
How to integrate Visual Basic with Matlab?
i want to get the data of the image using matlab and integrate with Visual Basic.
How to integrate Visual Basic with Matlab?
Fascinating question. My guess is that you can't, but one thing to try is to first see if your Matlab installation has registered any common VB components in windows. I'm sure there's a proper way to look this up but you can actually do it using VBA that's in MS Excel (at least you can do it in Excel 2000 and XP) I haven't yet worked with .NET.
Anyway, go to MS Excel and Select Macros-%26gt; Visual Basic Editor from the Tools menu. Once the VB window opens up, in the VB window, select Tools-%26gt; References. Once there just look for anything to is labelled Matlab or looks Matlab-ian.
If you find a library go ahead and check the box next to it and hit OK. From there you should go to View-%26gt; Object broswer. When the object browser window opens you should be able to find classes from the reference you just added. Just right click on a class and hit help to get documentation for it. The documentation is usually pretty sparse so it may be difficult to piece together how things work, but if you're smart enough to work VB and Matlab you shouldn't have too much trouble.
You will be able to use these classes in your VBA module which should be pretty useful since you can use Excel spreadsheet functions after you get the data. My crowning achievement in this field is hooking a macro up to Rational Clearcase, using the macro to search for files on a network drive and then copying and adding the files to Clearcase...woohoo! Anyway this just shows that this method actually works.
Reply:your question is not clear need to tell in detail
Reply:I came here hoping someone had answered this - it's a fascinating question. Right off the bat, the only way I can see to do it is to crunch the data in Matlab, save a file in the necessary format, then chain to VB (why do you want to use VB, anyway?) to open and read the file. I'm not sure there would be any other way.
pink flowers
How to integrate Visual Basic with Matlab?
Fascinating question. My guess is that you can't, but one thing to try is to first see if your Matlab installation has registered any common VB components in windows. I'm sure there's a proper way to look this up but you can actually do it using VBA that's in MS Excel (at least you can do it in Excel 2000 and XP) I haven't yet worked with .NET.
Anyway, go to MS Excel and Select Macros-%26gt; Visual Basic Editor from the Tools menu. Once the VB window opens up, in the VB window, select Tools-%26gt; References. Once there just look for anything to is labelled Matlab or looks Matlab-ian.
If you find a library go ahead and check the box next to it and hit OK. From there you should go to View-%26gt; Object broswer. When the object browser window opens you should be able to find classes from the reference you just added. Just right click on a class and hit help to get documentation for it. The documentation is usually pretty sparse so it may be difficult to piece together how things work, but if you're smart enough to work VB and Matlab you shouldn't have too much trouble.
You will be able to use these classes in your VBA module which should be pretty useful since you can use Excel spreadsheet functions after you get the data. My crowning achievement in this field is hooking a macro up to Rational Clearcase, using the macro to search for files on a network drive and then copying and adding the files to Clearcase...woohoo! Anyway this just shows that this method actually works.
Reply:your question is not clear need to tell in detail
Reply:I came here hoping someone had answered this - it's a fascinating question. Right off the bat, the only way I can see to do it is to crunch the data in Matlab, save a file in the necessary format, then chain to VB (why do you want to use VB, anyway?) to open and read the file. I'm not sure there would be any other way.
pink flowers
Subscribe to:
Posts (Atom)