I want to learn Visual Basic 2008 but I noticed that most books are for Visual Basic 6 or Visual Basic Net. Should I stay away from these books if I want to learn Visual Basic 2008?
Are Visual Basic 6 books useless for learning Visual Basic 2008?
VB 2008 as I saw it is a .NET product, VB 6 books are not applicable, precisely if the said programmer is moderately experienced what VB 6 book can teach a VB.NET programmer can be self-taught in half a hour of poking around, they are too different besides simple syntactical similarities.
Reply:They wont entirely be the same, but VB '06 has mostly the same code as '08 and .NET.
It will help you some, but use MSDN for VB '08
Monday, May 24, 2010
How do i create a visual basic animation?
Visual Basic Animation codes
How do i create a visual basic animation?
What version of VB? If you are using VB-6, it's pretty easy. Use a Picture Box (or image control, I forget which), an IMAGE LIST, and a TIMER control. Use the TIMER control to LOOP through the IMAGE LIST items and put them into the PICTURE BOX.
How do i create a visual basic animation?
What version of VB? If you are using VB-6, it's pretty easy. Use a Picture Box (or image control, I forget which), an IMAGE LIST, and a TIMER control. Use the TIMER control to LOOP through the IMAGE LIST items and put them into the PICTURE BOX.
How to make a program in visual basic which shows a factorial output?
there are only 2 textboxes which are to be used . in the first textbox, the last number will be entered and on the second textbox, the output which is the sum of all the numbers (factorial) should be displayed.
How to make a program in visual basic which shows a factorial output?
use a FOR/NEXT loop with the STEP argument to DECRIMENT the variable
Dim intCounter as integer
STATIC intSolution as Integer
FOR intCounter = 5 to 1 STEP -1
intSolution = (some calculation performed against intCounter)
Next intCounter
This is using VB-6 code, since you didn't specify a particular version of the laguage. Check http://www.pscode.com for great sample codes.
Reply:use double variables...
Reply:Did you mean to use the word SUM ? I'm not trying to be picky, but a factorial is not a sum.
A factorial is : 5! = 1 x 2 x 3 x 4 x 5 = 120 .
A sum is : 1 + 2 + 3 + 4 + 5 = 15.
in C ++ for example
you can assign a variable to the user's input of the number 5
then you can make a loop ----
while( whole_num %26gt; 1 )
{
total = total * whole_num;
whole_num = whole_num - 1;
}
I'm not sure how to write this in Visual Basic, but if you understand my logic here, you should be able to translate it into other languages.
Reply:try vbcode.com
song meanings
How to make a program in visual basic which shows a factorial output?
use a FOR/NEXT loop with the STEP argument to DECRIMENT the variable
Dim intCounter as integer
STATIC intSolution as Integer
FOR intCounter = 5 to 1 STEP -1
intSolution = (some calculation performed against intCounter)
Next intCounter
This is using VB-6 code, since you didn't specify a particular version of the laguage. Check http://www.pscode.com for great sample codes.
Reply:use double variables...
Reply:Did you mean to use the word SUM ? I'm not trying to be picky, but a factorial is not a sum.
A factorial is : 5! = 1 x 2 x 3 x 4 x 5 = 120 .
A sum is : 1 + 2 + 3 + 4 + 5 = 15.
in C ++ for example
you can assign a variable to the user's input of the number 5
then you can make a loop ----
while( whole_num %26gt; 1 )
{
total = total * whole_num;
whole_num = whole_num - 1;
}
I'm not sure how to write this in Visual Basic, but if you understand my logic here, you should be able to translate it into other languages.
Reply:try vbcode.com
song meanings
What is the Visual Basic code for a sales receipt?
this is our project in our programming class and i dont know how to make it. We are going to provide a printout of the interface into a receipt using VB code.
What is the Visual Basic code for a sales receipt?
Think of how a Cash register works...
As Items are (Scanned) entered a description is printed with a value.
Your code will need to let an Item be entered by a user along with a value. When a button is pressed the Item and value is added to a list box and a running total is created.
As items are entered the list grows longer and the sub total vale is incremented.
At some point you will need to check out so create a button to do this function.
Checking out disables and further entries to the list a tax is calculated based upon the sub total and a grand total is calculated . As the sale is completed by the customer paying via cash/credit etc the sales receipt is printed.
On the receipt is a list of items purchased and their values, the sub total , tax and grand total.
So just print every item in your list followed by the values.
To get this data on paper you will have to use a PrintDocument object or use a MSWord object.
Either way you pragmatically create a document page and type text via code onto this virtual document. The document is then printed.
You can use a template from MS Word and add text to it via code or you can code the entire document from scratch within your app.
Or you can creat a text file then print the text file
What is the Visual Basic code for a sales receipt?
Think of how a Cash register works...
As Items are (Scanned) entered a description is printed with a value.
Your code will need to let an Item be entered by a user along with a value. When a button is pressed the Item and value is added to a list box and a running total is created.
As items are entered the list grows longer and the sub total vale is incremented.
At some point you will need to check out so create a button to do this function.
Checking out disables and further entries to the list a tax is calculated based upon the sub total and a grand total is calculated . As the sale is completed by the customer paying via cash/credit etc the sales receipt is printed.
On the receipt is a list of items purchased and their values, the sub total , tax and grand total.
So just print every item in your list followed by the values.
To get this data on paper you will have to use a PrintDocument object or use a MSWord object.
Either way you pragmatically create a document page and type text via code onto this virtual document. The document is then printed.
You can use a template from MS Word and add text to it via code or you can code the entire document from scratch within your app.
Or you can creat a text file then print the text file
What is the defference between Visual Basic and SQL?
I have a home work pls help me with detail answers
Many txs
What is the defference between Visual Basic and SQL?
This is the most detailed answer ull get:
Visual Basic (VB) is an event driven programming language and associated development environment from Microsoft for its COM programming model.[1] Visual Basic was derived from BASIC and enables the rapid application development (RAD) of graphical user interface (GUI) applications, access to databases using DAO, RDO, or ADO, and creation of ActiveX controls and objects. Scripting languages such as VBA and VBScript are syntactically similar to Visual Basic, but perform differently.
A programmer can put together an application using the components provided with Visual Basic itself. Programs written in Visual Basic can also use the Windows API, but doing so requires external function declarations.
SQL (IPA: /ˌɛsˌkjuːˈɛl/ or /ˈsiːkwəl/), commonly expanded as Structured Query Language, is a computer language designed for the retrieval and management of data in relational database management systems, database schema creation and modification, and database object access control management.[
SQL (Structured Query Language) is a standard interactive and programming language for getting information from and updating a database. Although SQL is both an ANSI and an ISO standard, many database products support SQL with proprietary extensions to the standard language. Queries take the form of a command language that lets you select, insert, update, find out the location of data, and so forth. There is also a programming interface.
Reply:go in google and search for detail...
for your information
VB is front end tool...as you see any software and work on that.
sql is back end tool,,,you save any information and that is being saved at a place.
that is because of database.
Reply:Visual basic is a programming language. SQL is a database language (structured query language).
Reply:VB is mainly used for the design of front end software and SQL is used for back end.
Many txs
What is the defference between Visual Basic and SQL?
This is the most detailed answer ull get:
Visual Basic (VB) is an event driven programming language and associated development environment from Microsoft for its COM programming model.[1] Visual Basic was derived from BASIC and enables the rapid application development (RAD) of graphical user interface (GUI) applications, access to databases using DAO, RDO, or ADO, and creation of ActiveX controls and objects. Scripting languages such as VBA and VBScript are syntactically similar to Visual Basic, but perform differently.
A programmer can put together an application using the components provided with Visual Basic itself. Programs written in Visual Basic can also use the Windows API, but doing so requires external function declarations.
SQL (IPA: /ˌɛsˌkjuːˈɛl/ or /ˈsiːkwəl/), commonly expanded as Structured Query Language, is a computer language designed for the retrieval and management of data in relational database management systems, database schema creation and modification, and database object access control management.[
SQL (Structured Query Language) is a standard interactive and programming language for getting information from and updating a database. Although SQL is both an ANSI and an ISO standard, many database products support SQL with proprietary extensions to the standard language. Queries take the form of a command language that lets you select, insert, update, find out the location of data, and so forth. There is also a programming interface.
Reply:go in google and search for detail...
for your information
VB is front end tool...as you see any software and work on that.
sql is back end tool,,,you save any information and that is being saved at a place.
that is because of database.
Reply:Visual basic is a programming language. SQL is a database language (structured query language).
Reply:VB is mainly used for the design of front end software and SQL is used for back end.
How can i post a visual basic exe program on a forum?
I can figure out how to post the .exe file.
How can i post a visual basic exe program on a forum?
zip 'er up
Use Win Zip and zip up the program
How can i post a visual basic exe program on a forum?
zip 'er up
Use Win Zip and zip up the program
If I have a website containing a variable, How can I transfer that variable onto a visual basic form?
I want a form on my website to be filled in before they can download the programme, but I want it to know their name.
Thankyou.
If I have a website containing a variable, How can I transfer that variable onto a visual basic form?
copy and paste it
Reply:if you can ask the question in a clearer way, and in more details.
pollen
Thankyou.
If I have a website containing a variable, How can I transfer that variable onto a visual basic form?
copy and paste it
Reply:if you can ask the question in a clearer way, and in more details.
pollen
How can I check two letters pressed on text box using Visual Basic?
I'm working on Visual Basic , I went to check two characters pressed on a text box, I use the following code
switch case keyascii
case asc("A")
case asc("B")
Label1.caption="AB are pressed"
case asc("C")
case asc("B)
Label1.caption="BC Pressed"
end select
But It can't work only it displays AB are pressed. I think it only checks the asc("B"), PLs help me with this
How can I check two letters pressed on text box using Visual Basic?
There are essentially problems in your code :
I think you worked with C-Based Languages before .
In VB,after each "case" block that returns true,program jumps to "End Select" against C-Based Langs.
"Switch" must be replaced by "SELECT"
AND A VERY IMPORTANT NOTE : In Each Call Event of KEYs(for ex.keypress,...) , only 1 main key(but ALT,SHIFT,CONTROL) is passed to event function . So you must save first 'keypress' keyascii and then check the second :
dim prevKey as integer
prevKey=-1;
Private Sub Form1_KeyPress(KeyAscii As Integer)
if prevKey=-1 then
if keyAscii=asc("A") OR keyAscii=asc("B") OR _
keyAscii=asc("C") then
prevKey=keyascii
end if
else
keySum=prevKey+keyAscii
select case keySum
case asc("A")+asc("B")
Label1.caption="AB are pressed"
case asc("B")+asc("C")
Label1.caption="BC are pressed"
end select
prevKey=-1
end if
End Sub
switch case keyascii
case asc("A")
case asc("B")
Label1.caption="AB are pressed"
case asc("C")
case asc("B)
Label1.caption="BC Pressed"
end select
But It can't work only it displays AB are pressed. I think it only checks the asc("B"), PLs help me with this
How can I check two letters pressed on text box using Visual Basic?
There are essentially problems in your code :
I think you worked with C-Based Languages before .
In VB,after each "case" block that returns true,program jumps to "End Select" against C-Based Langs.
"Switch" must be replaced by "SELECT"
AND A VERY IMPORTANT NOTE : In Each Call Event of KEYs(for ex.keypress,...) , only 1 main key(but ALT,SHIFT,CONTROL) is passed to event function . So you must save first 'keypress' keyascii and then check the second :
dim prevKey as integer
prevKey=-1;
Private Sub Form1_KeyPress(KeyAscii As Integer)
if prevKey=-1 then
if keyAscii=asc("A") OR keyAscii=asc("B") OR _
keyAscii=asc("C") then
prevKey=keyascii
end if
else
keySum=prevKey+keyAscii
select case keySum
case asc("A")+asc("B")
Label1.caption="AB are pressed"
case asc("B")+asc("C")
Label1.caption="BC are pressed"
end select
prevKey=-1
end if
End Sub
Is there a way to determine if a computer is a laptop or desktop using visual basic 6?
before I make the migration over to visual basuc 2005, I would like to know if there is a piece of code out there anyone is willing to share with me to determine if there is a way a computer is a desktop or a laptop using visual basic 6.
Any ideas?
Thanks
Is there a way to determine if a computer is a laptop or desktop using visual basic 6?
no. the system information of a computer don't reveal that. neither do ip
Any ideas?
Thanks
Is there a way to determine if a computer is a laptop or desktop using visual basic 6?
no. the system information of a computer don't reveal that. neither do ip
What is the extension of visual basic projects?
i want to retrievevisual basic projects from the system using search option. when i give *.vbp this also retrives vb.net projects. this gives me great problem. how to retrieve only vb projects. please help me.
What is the extension of visual basic projects?
.vbp
What is the extension of visual basic projects?
.vbp
How do I access a midi keyboard from visual basic 2005?
I want to be able to interact with a midi keyboard in either vb6 or vb2005. Any ideas?
How do I access a midi keyboard from visual basic 2005?
unfortunately there is not a namespace in VS that can be used for MIDI or any other more complicated sound playing or compression use.
I am almost finished with a .dll that will be able to compress, transmit, playback and save sounds. Its a serious app and very difficult to set up. Lots of reading for the api functions is needed.
If you are familiar with API functions I would be more than willing to work on this project with you so that you can create your own MIDI dll.
It should take about a week of reading and programming to create.
Give me a shout on yahoo IM:
my screen name is :ebred
playing cards
How do I access a midi keyboard from visual basic 2005?
unfortunately there is not a namespace in VS that can be used for MIDI or any other more complicated sound playing or compression use.
I am almost finished with a .dll that will be able to compress, transmit, playback and save sounds. Its a serious app and very difficult to set up. Lots of reading for the api functions is needed.
If you are familiar with API functions I would be more than willing to work on this project with you so that you can create your own MIDI dll.
It should take about a week of reading and programming to create.
Give me a shout on yahoo IM:
my screen name is :ebred
playing cards
How do you load a second form in Visual Basic?
I'm trying to make a program for an online game i play to show the world map. It opens the first form with the main map and I want to be ablke to click on an image of say, an arrow, to go to the right. I made another form with what would be to the right but i can't figure out how to load that second form and get rid of the first one. any help appreciated. thanks.
How do you load a second form in Visual Basic?
(VB5/6) A simple way would be:
button_click() 'whatever you named the event button
form1.hide
form2.show
end sub
Change the form names to whatever you named them.
Reply:OK; first I asume you created a form class like this:
class Form1: Inherits System.Windows.Forms.Form
public sub new()
Me.size=new Size(400,400)
Me.FormBorderStyle = FormBorderStyle.None
Me.StartPosition=FormStartPosition.Cente...
Me.ShowDialog()
end sub
end class
Then you create
class Form2: Inherits System.Windows.Forms.Form
public sub new()
Me.size=new Size(400,400)
Me.FormBorderStyle = FormBorderStyle.None
Me.StartPosition=FormStartPosition.Cente...
Me.ShowDialog()
end sub
end class
Then you instantiate Form1: dim f1= New Form1()
And when you want to get rid of this use this code:
f1.close()
then you show the second form:
dim f2= New Form2()
I hope it helps!
Reply:Do a .Hide and .Show to your two forms as another poster has already explained.
If you want the first form to still exist, but not be clickable, then when you do a .Show on the second form, add vbModal to the end, which means that the first one won't be clickable until the second form closes.
Hope this helps, best of luck to your project!
How do you load a second form in Visual Basic?
(VB5/6) A simple way would be:
button_click() 'whatever you named the event button
form1.hide
form2.show
end sub
Change the form names to whatever you named them.
Reply:OK; first I asume you created a form class like this:
class Form1: Inherits System.Windows.Forms.Form
public sub new()
Me.size=new Size(400,400)
Me.FormBorderStyle = FormBorderStyle.None
Me.StartPosition=FormStartPosition.Cente...
Me.ShowDialog()
end sub
end class
Then you create
class Form2: Inherits System.Windows.Forms.Form
public sub new()
Me.size=new Size(400,400)
Me.FormBorderStyle = FormBorderStyle.None
Me.StartPosition=FormStartPosition.Cente...
Me.ShowDialog()
end sub
end class
Then you instantiate Form1: dim f1= New Form1()
And when you want to get rid of this use this code:
f1.close()
then you show the second form:
dim f2= New Form2()
I hope it helps!
Reply:Do a .Hide and .Show to your two forms as another poster has already explained.
If you want the first form to still exist, but not be clickable, then when you do a .Show on the second form, add vbModal to the end, which means that the first one won't be clickable until the second form closes.
Hope this helps, best of luck to your project!
What is the best Microsoft Visual Basic 2005 tutorial that is free and available online?
I'm currently doing my internship and i need to brush up on my C#, so does anyone know where i can find free tutorials for Visual Studio 2005? ASP.NET 2.0 btw.. Cheers..
What is the best Microsoft Visual Basic 2005 tutorial that is free and available online?
i dunno about tutorials... i know of a few sites to get really good eBooks...
What is the best Microsoft Visual Basic 2005 tutorial that is free and available online?
i dunno about tutorials... i know of a few sites to get really good eBooks...
What is the generic symbol for the root directory in visual basic?
how can I indicate the root direcotry in a file path description when writing a visual basic macro?
What is the generic symbol for the root directory in visual basic?
You can try using the tilda ~ to indicate the current path as
~/mySub/myProgram.exe
this would indicate to use the subdirectory from the current application path
Or you can use the application object and extract what path info you need. This code extracts the root of the current dirve based upon the application path string
Private Sub cmdDir_Click()
Dim appPath, appRoot As String
Dim ay() As String
appPath = Me.Application.Path
ay = Split(appPath, ":")
appRoot = ay(0) %26amp; ":\"
End Sub
Reply:you should use a function wich shows the root directory
get help from MSDN
What is the generic symbol for the root directory in visual basic?
You can try using the tilda ~ to indicate the current path as
~/mySub/myProgram.exe
this would indicate to use the subdirectory from the current application path
Or you can use the application object and extract what path info you need. This code extracts the root of the current dirve based upon the application path string
Private Sub cmdDir_Click()
Dim appPath, appRoot As String
Dim ay() As String
appPath = Me.Application.Path
ay = Split(appPath, ":")
appRoot = ay(0) %26amp; ":\"
End Sub
Reply:you should use a function wich shows the root directory
get help from MSDN
How to change a read-only property to a property that can be changed (Visual Basic 2005 Express)?
For example, the size, font family, etc. of Textbox1. The compiler keeps telling me they're read-only. How to make them changable?
How to change a read-only property to a property that can be changed (Visual Basic 2005 Express)?
You can in fact change Font properties at run-time. However, you cannot do it the same way as you did in Visual Basic 6.
In Visual Basic .NET, fonts are read-only at run-time — you cannot set the properties directly, but you can assign a new Font object:
_______________
' This next statement generates an error—property is read-only.
TextBox1.Font = Arial
' These next two statements are the correct way.
' Assign a Font object—Name and Size are required.
TextBox1.Font = New System.Drawing.Font("Arial", 10)
' Assign additional attributes.
TextBox1.Font = New System.Drawing.Font(TextBox1.Font, FontStyle.Italic)
' Note: The Answers Editor does not always properly display information that is placed within parentheses.
' It sometimes truncates the enclosed expression.
' Please replace the above truncated parameters with:
' TextBox1.Font, FontStyle.Italic
_______________________________
Reply:The values in the properties are members they are read only at run time; however, you can assign a new object of the property type to you control.
In order to change certain properties at run time you have to: 1) create an object of the type of the property. 2) make changes to the values. 3) then assign the new object to the control.
Here is a simple sample I wrote. On the click of the button the size and font of the text box changes. The size of the button also changes.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim size As System.Drawing.Size
size = TextBox1.Size
size.Width = size.Width + 50
TextBox1.Size = size
size = Button1.Size
size.Height = size.Height + 200
Button1.Size = size
Dim f As System.Drawing.Font
f = New System.Drawing.Font("Comic Sans MS", 10, FontStyle.Bold)
TextBox1.Font = f
End Sub
graphics cards
How to change a read-only property to a property that can be changed (Visual Basic 2005 Express)?
You can in fact change Font properties at run-time. However, you cannot do it the same way as you did in Visual Basic 6.
In Visual Basic .NET, fonts are read-only at run-time — you cannot set the properties directly, but you can assign a new Font object:
_______________
' This next statement generates an error—property is read-only.
TextBox1.Font = Arial
' These next two statements are the correct way.
' Assign a Font object—Name and Size are required.
TextBox1.Font = New System.Drawing.Font("Arial", 10)
' Assign additional attributes.
TextBox1.Font = New System.Drawing.Font(TextBox1.Font, FontStyle.Italic)
' Note: The Answers Editor does not always properly display information that is placed within parentheses.
' It sometimes truncates the enclosed expression.
' Please replace the above truncated parameters with:
' TextBox1.Font, FontStyle.Italic
_______________________________
Reply:The values in the properties are members they are read only at run time; however, you can assign a new object of the property type to you control.
In order to change certain properties at run time you have to: 1) create an object of the type of the property. 2) make changes to the values. 3) then assign the new object to the control.
Here is a simple sample I wrote. On the click of the button the size and font of the text box changes. The size of the button also changes.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim size As System.Drawing.Size
size = TextBox1.Size
size.Width = size.Width + 50
TextBox1.Size = size
size = Button1.Size
size.Height = size.Height + 200
Button1.Size = size
Dim f As System.Drawing.Font
f = New System.Drawing.Font("Comic Sans MS", 10, FontStyle.Bold)
TextBox1.Font = f
End Sub
graphics cards
Does anybody know what the code in Visual Basic is too have it execute a file?
For instance, I want to import a reg text file. So I want VB to execute file.reg and have the registry file import the settings into xp.
Does anybody know what the code in Visual Basic is too have it execute a file?
if it is vb I thnk it is
shell(FileName).
In VB .Net
System.Diagnostics.Process.Start _
("c:\somepath\somefile.txt")
Reply:Use the Run command of the Scripting host Shell Object.
In addition to launching .exes, it can launch document files if you have the proper association for the file type.
Note a syntax difference. Their example uses:
WScript.CreateObject.
In VB, just say
CreateObject
Does anybody know what the code in Visual Basic is too have it execute a file?
if it is vb I thnk it is
shell(FileName).
In VB .Net
System.Diagnostics.Process.Start _
("c:\somepath\somefile.txt")
Reply:Use the Run command of the Scripting host Shell Object.
In addition to launching .exes, it can launch document files if you have the proper association for the file type.
Note a syntax difference. Their example uses:
WScript.CreateObject.
In VB, just say
CreateObject
Are there any master visual basic 6 programmers that can help me?
I am having this problem making this concentration game and was wondering if I could send you where I have gotten so far with my code by email, just give me you email address and I send it.
Thank-you!
Are there any master visual basic 6 programmers that can help me?
Yes we can help you.
Contact us at
http://expert.itutorial.info/
Reply:why not just post the source somewhere and have a link in this topic?
what exactly is the problem?
add the url to additional information, check planetsourcecode.com as it has alot of useful information and code
Thank-you!
Are there any master visual basic 6 programmers that can help me?
Yes we can help you.
Contact us at
http://expert.itutorial.info/
Reply:why not just post the source somewhere and have a link in this topic?
what exactly is the problem?
add the url to additional information, check planetsourcecode.com as it has alot of useful information and code
Which book on visual basic is best to use?
I am a new programmer. I used some of the microsoft help to learn, but now I want to learn more advanced stuff. Not so advances, but slightly more advanced then loops and opening new projects. PLEASE HELP. The best answer will be the one that names the book, writer, and why and what it covers. Thanks.
Which book on visual basic is best to use?
Professional VB.NET, 2nd Edition
By.. Wrox Publishers
Book Description
Written and tested for the final release of .NET v1.0, this book explains the underlying philosophy and design of the .NET Framework and Common Language Runtime, and details the differences between Visual Basic 6 and Visual Basic .NET.
VB.NET is covered virtually from start to finish: beginning with an overview of the .NET Framework, and ending with best practices for deploying .NET applications. In between, everything from database access to integration with other technologies such as XML is covered. Each of these new features are investigated in detail. You will see that VB.NET has emerged as a powerful yet easy to use language that allows developers to target the Internet just as easily as the desktop.
You will learn how to:
- Develop applications and components using Visual Studio .NET
- Effectively apply inheritance and interfaces when designing objects and components
- Organize your code using namespaces
- Handle errors using the Try...Catch...Finally structure
- Access data using ADO.NET and bind controls to the underlying data sources
- Create Windows applications and custom Windows controls
- Interoperate with COM and ActiveX components
- Create transactional and queuing components
- Use .NET Remoting to exchange serialized objects between clients and servers
- Create Windows Services
- Use Visual Basic .NET to access information on the Web
- Create and consume Web Services
- Secure your applications and code using the tools provided in the .NET Framework SDK
- Arrange your applications and libraries in assemblies and deploy them using Visual Studio .NET
From the Publisher
This book is primarily aimed at experienced Visual Basic developers who are looking for an introduction to Visual Basic .NET and the .NET Framework.
Reply:You can download books for free from p2p.
Reply:complete reference...
Reply:Teach Yourself Visual Basic 6 in 21 Days: Complete Training Kit By Greg Perry.
I used that one and it taught me so much.
Which book on visual basic is best to use?
Professional VB.NET, 2nd Edition
By.. Wrox Publishers
Book Description
Written and tested for the final release of .NET v1.0, this book explains the underlying philosophy and design of the .NET Framework and Common Language Runtime, and details the differences between Visual Basic 6 and Visual Basic .NET.
VB.NET is covered virtually from start to finish: beginning with an overview of the .NET Framework, and ending with best practices for deploying .NET applications. In between, everything from database access to integration with other technologies such as XML is covered. Each of these new features are investigated in detail. You will see that VB.NET has emerged as a powerful yet easy to use language that allows developers to target the Internet just as easily as the desktop.
You will learn how to:
- Develop applications and components using Visual Studio .NET
- Effectively apply inheritance and interfaces when designing objects and components
- Organize your code using namespaces
- Handle errors using the Try...Catch...Finally structure
- Access data using ADO.NET and bind controls to the underlying data sources
- Create Windows applications and custom Windows controls
- Interoperate with COM and ActiveX components
- Create transactional and queuing components
- Use .NET Remoting to exchange serialized objects between clients and servers
- Create Windows Services
- Use Visual Basic .NET to access information on the Web
- Create and consume Web Services
- Secure your applications and code using the tools provided in the .NET Framework SDK
- Arrange your applications and libraries in assemblies and deploy them using Visual Studio .NET
From the Publisher
This book is primarily aimed at experienced Visual Basic developers who are looking for an introduction to Visual Basic .NET and the .NET Framework.
Reply:You can download books for free from p2p.
Reply:complete reference...
Reply:Teach Yourself Visual Basic 6 in 21 Days: Complete Training Kit By Greg Perry.
I used that one and it taught me so much.
How can I add things in Visual Basic?
I am making an order form and I have a section of options that are checkboxes. I want to add the options (if they are selected) together and add them to the total. How can I do that?
How can I add things in Visual Basic?
One problem is that you are re-setting 'price' with each if statement instead of adding.
If CheckBox1.Checked Then
price = THICK_ENVELOPES 'price is now the value for thick_envelopes
End If
If CheckBox2.Checked Then
price = ENVELOPE_SEALS 'price is now the value for envelope_seals
End If
If CheckBox3.Checked Then
price = FOIL_ENVELOPES 'price is now the value for foil_envelopes
End If
So you need to use either 'price = price + variable or
price += variable
If CheckBox1.Checked Then
price = price + THICK_ENVELOPES 'price is now the value for thick_envelopes
End If
If CheckBox2.Checked Then
price = price + ENVELOPE_SEALS 'price is now the value for thick_envelopes PLUS envelope_seals
End If
If CheckBox3.Checked Then
price += FOIL_ENVELOPES 'price is now the value for foil_envelopes plus the previous total from thick_envelopes and envelope_seals
End If
hope that is clear
Reply:if statements
In java:
int total = 0;
if(checkbox1.checked())
total += checkbox1.value();
....
Reply:Scratch what I said before...
All you need to do to your calculating code is...
price + = THICK_ENVELOPS
That's short term for "price = price + THICK_ENVELOPS"
Note: Make sure you do this for all your variable calculating lines of code.
Reply:Here is some code which will work for anynumber of check boxes you add into a groupbox.
The groupbox must only contain checkboxes and the value you wish to assign for each checkbox mut be the first characters in the text property. (OR you can place the value in the tag property of each check box and change the code to read itemval= val(chk.tag)
Because the checked property uses a value of zero to represent an unckecked box you can multiply the value times the checked property to set the itemval = to zero.
When checked the checked property has a value of -1 which is why the math.abs function is used
Dim chk As New CheckBox
Dim tot As Double
Dim itemVal As Double
tot = 0
For Each chk In Me.GroupBox1.Controls
'object is a check box
'chk = obj 'copy the object into a checkbox variable
itemVal = Val(chk.Text) 'extract the value from the checkbox text
itemVal = itemVal * Math.Abs(CInt(chk.Checked)) 'Boolean false = 0
'Boolean is either a zero or one which will result in
'in either itemVale * 1 OR itemVal * 0
tot = tot + itemVal 'totalize the values
Next
Label1.Text = tot
botanical garden
How can I add things in Visual Basic?
One problem is that you are re-setting 'price' with each if statement instead of adding.
If CheckBox1.Checked Then
price = THICK_ENVELOPES 'price is now the value for thick_envelopes
End If
If CheckBox2.Checked Then
price = ENVELOPE_SEALS 'price is now the value for envelope_seals
End If
If CheckBox3.Checked Then
price = FOIL_ENVELOPES 'price is now the value for foil_envelopes
End If
So you need to use either 'price = price + variable or
price += variable
If CheckBox1.Checked Then
price = price + THICK_ENVELOPES 'price is now the value for thick_envelopes
End If
If CheckBox2.Checked Then
price = price + ENVELOPE_SEALS 'price is now the value for thick_envelopes PLUS envelope_seals
End If
If CheckBox3.Checked Then
price += FOIL_ENVELOPES 'price is now the value for foil_envelopes plus the previous total from thick_envelopes and envelope_seals
End If
hope that is clear
Reply:if statements
In java:
int total = 0;
if(checkbox1.checked())
total += checkbox1.value();
....
Reply:Scratch what I said before...
All you need to do to your calculating code is...
price + = THICK_ENVELOPS
That's short term for "price = price + THICK_ENVELOPS"
Note: Make sure you do this for all your variable calculating lines of code.
Reply:Here is some code which will work for anynumber of check boxes you add into a groupbox.
The groupbox must only contain checkboxes and the value you wish to assign for each checkbox mut be the first characters in the text property. (OR you can place the value in the tag property of each check box and change the code to read itemval= val(chk.tag)
Because the checked property uses a value of zero to represent an unckecked box you can multiply the value times the checked property to set the itemval = to zero.
When checked the checked property has a value of -1 which is why the math.abs function is used
Dim chk As New CheckBox
Dim tot As Double
Dim itemVal As Double
tot = 0
For Each chk In Me.GroupBox1.Controls
'object is a check box
'chk = obj 'copy the object into a checkbox variable
itemVal = Val(chk.Text) 'extract the value from the checkbox text
itemVal = itemVal * Math.Abs(CInt(chk.Checked)) 'Boolean false = 0
'Boolean is either a zero or one which will result in
'in either itemVale * 1 OR itemVal * 0
tot = tot + itemVal 'totalize the values
Next
Label1.Text = tot
botanical garden
Where can I find a Wavelet image compression and decomposition code for visual basic 6 ?
I need the code for my graduation project, Wavelet image compression code is needed for Visual Basic 6 ... please help
Where can I find a Wavelet image compression and decomposition code for visual basic 6 ?
You know, the Haar Wavelet is very easy to code. Although there are wavelet bases that might be better suited to images, you might consider just writing this code yourself. This might actually be easier than trying to locate a visual basic implementation. Why are you writing this in basic, anyway?
To get started, type "wavelet tutorial" into google, and you'll see a whole bunch of links. They'll probably all talk about the Haar basis, and probably use it as an example of the 2D wavelet, which is what you want.
Where can I find a Wavelet image compression and decomposition code for visual basic 6 ?
You know, the Haar Wavelet is very easy to code. Although there are wavelet bases that might be better suited to images, you might consider just writing this code yourself. This might actually be easier than trying to locate a visual basic implementation. Why are you writing this in basic, anyway?
To get started, type "wavelet tutorial" into google, and you'll see a whole bunch of links. They'll probably all talk about the Haar basis, and probably use it as an example of the 2D wavelet, which is what you want.
Subscribe to:
Posts (Atom)