Over 1 million tech questions and answers.

Visual Basic 6.0 Upgrade Samples: Feb 11

Q: Visual Basic 6.0 Upgrade Samples: Feb 11

Hiya

Download these Microsoft Visual Basic samples to learn more about upgrading your application from Visual Basic 6.0 to Visual Basic .NET. Each sample contains three projects - one in Visual Basic 6 and two in Visual Basic .NET. The two Visual Basic .NET samples show the range of options available in upgrading your applications.

System Requirements
Supported Operating Systems: Windows 2000, Windows 98, Windows ME, Windows NT, Windows Server 2003, Windows XP

Visual Basic 6.0
Visual Basic .NET

Important: One of these samples also requires Code Advisor for Visual Basic 6.0. In order to install the Code Advisor, you must be running Windows® 98 or later, Internet Explorer 6.0 or later, and Visual Basic 6.0. Note that the Code Advisor relies on the VBScript and MSXML components distributed in Internet Explorer 6.0. Internet Explorer is not required to be the default browser.

http://www.microsoft.com/downloads/...3a-ef97-454d-839e-7668c1113022&DisplayLang=en

Regards

eddie

Read other answers
RELEVANCY SCORE 200
Preferred Solution: Visual Basic 6.0 Upgrade Samples: Feb 11

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/download.php. (This link will automatically start a download of Reimage that you can save to your computer.)

RELEVANCY SCORE 94

Hiya

ListBox and ComboBox

This sample demonstrates several different techniques for binding data to ListBox and ComboBox controls, and shows different ways to retrieve the selected item or items from the controls.
System Requirements
Supported Operating Systems: Windows 2000, Windows NT, Windows XP

- Microsoft Visual Studio. NET Professional
- Access to the Northwind database residing in SQL Server or the Microsoft Data Engine (MSDE)
http://www.microsoft.com/downloads/...b6-a75d-45a3-8200-7f5e396558ed&DisplayLang=en

XP Theme Support

This sample demonstrates how to enable support for XP themes in your application
System Requirements
Supported Operating Systems: Windows 2000, Windows NT, Windows XP

- Microsoft Visual Studio. NET Professional

http://www.microsoft.com/downloads/...8f-bad3-4b37-a99d-be48f6fb3913&DisplayLang=en

Automate Office

This application has three demonstrations involving the following Office components: Microsoft Agent, Microsoft Word, and Microsoft Excel. When referencing the various COM Office assemblies, Visual Studio .NET automatically creates COM runtime callable wrappers (RCW) so you can program against them from within .NET.

System Requirements
Supported Operating Systems: Windows 2000, Windows NT, Windows XP

- Microsoft Visual Studio. NET Professional or greater

http://www.microsoft.com/downloads/...31-d4c4-4716-abd6-74a11bb85c9f&DisplayLang=en

Send and Receive Data

This solution demonstrates how to send and receive da... Read more

Read other answers
RELEVANCY SCORE 92.8

Hiya

This sample illustrates how to create custom owner-drawn menu items

System Requirements

- Microsoft Visual Studio. NET Professional

Operating System - Windows NT 4.0 & 2000, Win XP

http://www.microsoft.com/downloads/release.asp?ReleaseID=40929&area=search&ordinal=25

This download represents a master set of Visual Basic .NET code samples demonstrating various aspects of the language in the following areas: syntax, data access, Windows Forms, Web development and Web services, XML, security, the .NET Framework, file system and file I/O, interop and migration issues, COM+, ADO.NET, and advanced topics including graphics with GDI+, remoting, serialization, MSMQ, and Windows services.

System Requirements

- Microsoft Visual Studio. NET Professional

Note: some samples also require access to the Northwind database residing in SQL Server or the Microsoft Data Engine (MSDE)

Operating System - Windows NT 4.0 & 2000, Win XP

http://www.microsoft.com/downloads/release.asp?ReleaseID=41079&area=search&ordinal=22

Regards

eddie
 

Read other answers
RELEVANCY SCORE 68

Hiya

OpenGL I: Quick Start Sample

This article describes GLEasy, a simple OpenGL program. OpenGL is a three-dimensional (3-D) graphics library included with the Microsoft? Windows NT? version 3.5 operating system. GLEasy is a Microsoft Foundation Class Library (MFC) application that provides a good starting point for investigations into the Windows NT implementation of OpenGL.

http://www.microsoft.com/downloads/release.asp?ReleaseID=44238&area=search&ordinal=25
GLEasy Sample

This article describes GLEasy, a simple OpenGL program. OpenGL is a three-dimensional (3-D) graphics library included with the Microsoft? Windows NT? version 3.5 operating system. GLEasy is a Microsoft Foundation Class Library (MFC) application that provides a good starting point for investigations into the Windows NT implementation of OpenGL.

http://www.microsoft.com/downloads/release.asp?ReleaseID=44239&area=search&ordinal=24

GLPal sample

If a program written for the Microsoft Windows operating system needs more than 16 colors and is running on an 8-bits-per-pixel (bpp) display adapter, the program must create and use a palette. OpenGL programs running on Windows NT or (eventually) Windows 95 are no exception.

http://www.microsoft.com/downloads/release.asp?ReleaseID=44240&area=search&ordinal=23

Easy GL Sample

If a program written for the Microsoft Windows operating system needs more than 16 colors and is running on an 8-bits-per-pixel (bpp) display adapter, the... Read more

Read other answers
RELEVANCY SCORE 67.2

Hiya

System Requirements

Visual Studio 6.0

Operating System - Windows 98, NT4 & 2000, Windows Me, Win XP

http://www.microsoft.com/downloads/release.asp?ReleaseID=40951&area=search&ordinal=9

Regards

eddie
 

Read other answers
RELEVANCY SCORE 67.2

Hello,

I guess my question can be asked in two ways, the short way and the long way.

Here's the short one:

Can you do everything that you can do with VBA with VB?
The long one is:

I need to be able to write programs that conceivably invovle web forms/web services (VB right?), Microsoft SQL Server 2002 (VB again right?) but also Microsft Office applications like Excel and Access (VBA??). Does that mean I need to learn both Visual Basic and Visual Basic for Applications? In my initial research into Visual Basic I've learned that Visual Basic for Applications is a subset of Visual Basic, so shouldn't that mean that Visual Basic, being the parent and more powerful than Visual Basic for Applications, is capable of performing all of the functions that Visual Basic for Applications does?

Thanks for your help,
Bsdslayer
([email protected])
 

A:Solved: Visual Basic vs. Visual Basic for Applications

I do not know VB at all, only some VBA. The main difference is that VBA has words specifically for the applications, a classic exanple would be the
Range("a65536").End(xlUp)
both range and .End(xlUp) are for use in Excel.
 

Read other 3 answers
RELEVANCY SCORE 66.4

Hiya

A collection of sample files that support Visual Studio .NET white papers available on MSDN

System Requirements
Supported Operating Systems: Pocket PC Software 2002, TabletPC, Windows 2000, Windows 2000 Service Pack 2, Windows 2000 Service Pack 3, Windows 98, Windows 98 Second Edition, Windows ME, Windows NT, Windows Server 2003, Windows XP, Windows XP 64-bit, Windows XP Media Center Edition

.NET Framework versions 1.0 and/or 1.1 depending on the sample.
http://www.microsoft.com/downloads/...a9-0f6a-421f-879a-d3c7138627da&DisplayLang=en
Regards

eddie
 

Read other answers
RELEVANCY SCORE 62.4

Hello everyone. Right now im doing a proyect in Visual FoxPro v. 6.5 where i am using a control names MAPX.OCX, this is used to display maps and its cordinates. I have already started to use this control, but im a bit stuck. I read in the manual of the control, but it is made for Visual Basic and C++ and I have very little experience using Visual FoxPro.

The instructions of the VB as the following:

Private sub Globessymbol_click()
Dim top20cities as mapxlib.layer
set top20cities = map1.layers("ciudades")
top20cities.style.symbolbitmapname = "x.bmp"
end sub

The Map1 is the name of an OLE object that identifies the MAPX.OCX and this also has some layers to put the name, icons, lines, etc. This layers are the ones i am having trouble codificating it in Visual FoxPro.

does someone here have any knowledge of how to do this? i'll thank very much the help.
 

Read other answers
RELEVANCY SCORE 61.2

Hi there
I'm just messing around a bit with Visual Basic - I just want to use EXCEL (mainly) and a couple of really simple Windows stuff. I can't be bothered with C# or .NET -- I'm not (nor intend to be) a professional programmer -- but would like to have a go with some small applications and get to grips with the Basic in EXCEL.

I've got the old Ms Visual Basic 6 disks -- is it worth while messing about with these on W8 (Ms believe it or not is going to support the platform through W8 releases !!!) or should I just bite the bullet and download Visual Studio express which seems a bit overkill also for what I'm really trying to do.

As I'm running a 32 bit version of Office it would seem that most of the VB6 stuff could run quite simply in EXCEL 2010 (32 bit) even though my OS is x-64 --or I could even run it in an XP VM.

Any suggestions as to which is the better way to go -- I just want this for casual use -- not as a professional.

Cheers
jimbo

A:Visual Basic 6 or Visual Studio for EXCEL use

Doesn't Office 2010 still support VBA (Visual Basic for Applications)? I think that is what you mean by Basic in Excel?

As far as supporting VB6 in Win 8, VB6 apps do run in Windows (32 bit), though we've had issues at work with some 3rd party components. I'm pretty sure 64 bit is out for VB6! I couldn't get any VB6 executables to run on my Windows 7-64 box, though they will run just fine in an XP VM.

I think your options are VBA in Excel if you want to stick with classic VB...

Read other 3 answers
RELEVANCY SCORE 58.8

Hi everyone,

I've been trying to get my feet wet in creating a .vbs file from notepad to do a basic function. I wanted to be able to run .reg files remotely but also interactively. This led me down the path of simply finding an example of a .vbs that would open anything remotely at all. Notepad is what came up with the most results and the Win32_ScheduledJob object appeared to be what was needed.

I researched many different places but this is a decent walkthrough. http://msdn.microsoft.com/en-us/library/windows/desktop/aa394601(v=vs.85).aspx

I grabbed the code below out of the website and changed the date parameters to run in a couple minutes from my current time. I could see the task in scheduled tasks but when the time had come and gone nothing would happen and this is just trying to get it to run locally so far.

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
JobID = "Test"
Set objNewJob = objWMIService.Get("Win32_ScheduledJob")
errJobCreate = objNewJob.Create _
("Notepad.exe", "********143000.000000-420", _
True , 1 OR 4 OR 16, ,True, JobId)
If errJobCreate = 0 Then
WScript.Echo "Job created successfully: " & VBNewLine _
& "Notepad.exe scheduled to run repeately at 14.30 (2:30 P.M.) PST" & VBNewLine _
& "on Mon, Wed, and Fri."
Else
WScript.... Read more

Read other answers
RELEVANCY SCORE 54.4

Hi everybody,
When I try to open a Visual Basic file (from a network drive) by double-clicking the file, it won't open. The error message says that path is not found (then gives the path of the file I just tried to open). However, if I leave the Visual Basic window open and try to open that same exact file from the same exact location, it opens. Also, If I copy the folder that the file and the forms are in from the network drive to the desktop, I can open it. And if I open the file within Visual Basic and do a Save As and save it to the desktop and close the window and open the file from the desktop, it works. Any ideas what would be causing this?

Read other answers
RELEVANCY SCORE 54.4

Here is the story. My dad's friends called this morning, and told me he had signed up for online courses. He said he only pays $25 a month, and gets all he wants. Suprisingly, he gave me the site, and his user name and password. Well, I looked through what they had, and I decided I want to learn visual basic. How much is the program to write in VB cost? Where can I get it? Help is appreciated.
 

A:Visual Basic

Ok, I feel a little stupid now Checked out VB, looks nice, I think I'm going to stick to learning it
 

Read other 2 answers
RELEVANCY SCORE 54.4

Here is my code...The only error I am getting is a identifier expected after the "b" on Private Sub at the very top. Can anyone help me out??

Private Sub
btnFactorial_Click( _
ByVal eventSender As System.Object, _
ByVal eventArgs As System.EventArgs) _
Handles btnFactorial.Click
Dim x As Double
Dim Fact As Double

lblOutput.Text = "To determine the Factorial of a number. " _
& "Please enter a number less than 10."
& "Then, click on the Factorial Button to view the results."

x = Val(txtInput.Text)

Fact = Factorial(x)
lblOutput.Text = ("")
lblOutput.Text = (" " & x & "! is " & Fact)
End Sub

Private Function Factorial(ByRef x As Double) As Double
If x <= 1 Then
Factorial = 1
Else
Factorial = x * Factorial(x - 1)
End If

End Function

End Class
 

Read other answers
RELEVANCY SCORE 54.4

just got this program and dont no how to use it. is there anywhere on the internet with an easy to learn guide of how to do things with it?
 

A:visual basic 6

Read other 9 answers
RELEVANCY SCORE 54.4

Can anyone help me correct this code?? I have to figure out what it does and design the GUI in the form.

Private Sub btnFactorial_Click( _
ByVal eventSender As System.Object, _
ByVal eventArgs As System.EventArgs) _
Handles btnFactorial.Click
Dim x As Double
Dim Fact As Double

lblOutput.Text = "To determine the Factorial of a number. " _
& "Please enter a number less than 10."
& "Then, click on the Factorial Button to view the results."

x = Val(txtInput.Text)

Fact = Factorial(x)
lblOutput.Text = ("")
lblOutput.Text = (" " & x & "! is " & Fact)
End Sub

Private Function Factorial(ByRef x As Double) As Double
If x <= 1 Then
Factorial = 1
Else
Factorial = x * Factorial(x - 1)
End If

End Function
 

A:Visual Basic Help

Well, you'd have a label, a textbox, and a button. The user would enter a number in the textbox & click the button-then this would calculate the factorial & display it in the label. BTW, the lblOutput instructions don't belong here. They'd not only not show up until the user clicked on the button (and how would they know to do that if the instructions aren't shown?) but they'd also be overwritten by the output.
 

Read other 3 answers
RELEVANCY SCORE 54.4

who's got some good links to learn either or both of them. I know there's a few of you out there with good links.

It's a simple request *evil laughter*
 

A:Visual Basic .net and or C#

Read other 11 answers
RELEVANCY SCORE 54.4

I have just started learning Visual Basic in one of my high school classes. I am currently trying to create a program in VB for my parents' business. My parents have to constantly write out orders to their suppliers since they aren't good with computers so i am trying to make a program that would be user friendly and would allow them to select the number of each item they want(with all the items being in a list) and then they just have to click on a command button that is linked to another form in which there is chart of all the items the want ordered(not including the items they put zeros for). Also my parents would need to be able to print out the final chart to send to the suppliers and make a copy for themselves. This would save them a lot of time and would look much neater! I have tried starting to program but i have no idea where to start. can someone please show me a sample source code of a similar program to what i need or show me how to make this program on Visual Studio 2005 Express. Thanks in advance to anyone who will help me!
 

A:Need Visual Basic Help

Read other 7 answers
RELEVANCY SCORE 54.4

I just need to know two things, how to get the current date, the second is the program that Im writing is linked to a Microsoft Access Database, I need a way to print the contents of the database through the program, anyone happen to know any code for that?
 

A:How Do I?... In Visual Basic 6

Read other 15 answers
RELEVANCY SCORE 54.4

I use VB 2008 Express Edition, and I cannot get my multiple form application to work correctly. I am trying to get frmNext to show up after frmInput is done. So, in frmInput's button click event, I type in strName = TextBox1.Text, frmNext.Show(), and Unload frmInput. Unload does not work in vb 2008 anymore I guess, because it gave me an error. So, I typed in Me.Close(), which closes the application altogether. So, I decided to go into frmNext's form load event and type in Me.Text = strName and frmInput.Close(), which causes the entire program to close. I need help getting frmNext to show up and frmInput to close down.
 

A:Visual Basic Help

Read other 6 answers
RELEVANCY SCORE 54.4

I have Visual Basic 2008 Express Edition. I have successfully built a project. Is there some way that I could put my program on a website so that whenever a user accesses the website, the program will run?
 

A:@@@ Visual Basic Help @@@

Read other 10 answers
RELEVANCY SCORE 54.4

Where can I download Visual Basic 6
 

A:Visual Basic

Nowhere. You have to buy it. It's an old version, so you might have trouble finding it. Check eBay.
 

Read other 1 answers
RELEVANCY SCORE 54.4

I want to start learning visual basic. I have office 2000, I was told to press alt + F11 to go to visual basic. I have done this and it brings me to the visual basic screen, when I hit the help menu it say this is not installed so I put my office 2000 disk in the cdrom to install it and it cant find it. Do I actually have visual basic and its help files or do I need to purchase them seperate from office 2000.
Also does anybody no any good site that I can go to for learning. I am a complete green horn when it comes to visual basic, so I have to start right at the begining. I don't even no where to start entering the code or if I have to complile it or how to complile it. So thats what type of site Im looking for.

Thanx
 

A:visual basic

Read other 8 answers
RELEVANCY SCORE 54.4

how do u make things transparent in Visual Basic?

becuase when i make things transparent in it the egdes have 2 be harp, you can have glowing edges.

A:Visual Basic

Does this help?

http://www.codeguru.com/vb/gen/vb_gr...cle.php/c6979/

Read other 4 answers
RELEVANCY SCORE 54.4

I am writing a simple little program for school, and it turns out that it is not as simple as I thought it would be. Here is my problem:
I have a text box named txtPass, and I need to make the contents of the text property invisible. I was told to declare the the global variable of sPass and have it capture all the characters of the txtPass text box. I'm probably making this sound harder than it is, but in other words, i just need the password to be invisible when it is typed into the text box. Anyone know how to do this?
 

A:Visual Basic Help

Read other 10 answers
RELEVANCY SCORE 54.4

I have heard of chipmunk but that changes code around a bit. I am looking for a way to run some time of shell or something like that so i can program in VB on the mac operating system. who knows what to do
 

A:visual basic on MAC

The closest thing I have seen to VB for the Mac is REAL Basic. I haven't even messed with a Mac in quite a while so I'm not sure how easy it is to get ahold of. From what little programming I did on the Mac, the syntax and code is much the same.
I hope this is what you're looking for and that it helps you out some. I really liked REAL Basic but I wasn't very experienced when I used it so I'm not certain about it's limitations, etc.
 

Read other 3 answers
RELEVANCY SCORE 54.4

How would you convert a and b from a While loop to a Do While loop, and a Do Until loop.

a. While J <> hugeJ
largeJ = largeJ + J
J = J Mod bigJ
End While

b. While N <= display
Print “Visual Basic 6 How To Program!”
N = N * 7
End While
 

A:Visual Basic Help!

Do your own homework!
 

Read other 1 answers
RELEVANCY SCORE 54.4

Ok, I'm writting my first real program in Visual Basic.

I have questions.

This program is going to generate a CSS, and I need to know if it's possible for me to get a quick color picker implented in the app. So, when they pick the color, it will automatically input the hex code for that color in the box.

Help is really appricated.
 

A:Visual Basic

there is this activeX component called Microsoft Common Dialogs Control (mscomdlg.ocx) and can be used to popup a color picker. learn more at www.msdn.com
 

Read other 3 answers
RELEVANCY SCORE 54.4

Greetings all,

I am constructing a macro that will allow me to have my summary sheet open, hit a button to browse for a .xls file then import the values from it and add them to any existing values. File location and the amount of files are a variable so adding the one at a time is fine.

So far I have been able to get Excel to open the browse window, allow me to select the desired file and import the values from the specified cells but I’m having trouble with getting it to place the values into the same cell co-ordinates and add them to any existing values that may be present.

My coding experience in Visual Basic is limited to what I have learnt in the past few days trying to get this working. What I have constructed up until now has been done so primarily through salvaging bits of code from other macros modifying them and basically putting them together through trial and error, so it’s entirely possible I have made simple mistakes.

Here is what I have so far…

Sub Compile ()

Dim x As Long, z As Variant
Dim bk As Workbook, sh As Worksheet
Dim sh1 As Worksheet

Set sh = Workbooks("DTS09.xls").Worksheets("DTS Totals")

z = Application.GetOpenFilename(FileFilter:= _
"Excel files (*.xls), *.xls", MultiSelect:=False)
If Not IsArray(z) Then
MsgBox "Exit?"
Exit Sub
End If

For x = 1 To UBound(z)

Set bk = Workbooks.Open(z(x))
On Error Resume Next
Set sh1 = bk.Worksheets("Trigger Info")
On Error GoTo 0
If Not sh1 Is Nothing Th... Read more

A:Visual basic help please.

Read other 7 answers
RELEVANCY SCORE 54.4

I'm trying to run an SQL INSERT INTO statement in a macro in Microsoft Access. This is the general line I'm trying to run:

Code:

INSERT INTO [2004Q27] (TrainingID, Count) SELECT 1, Sum(IIf([Q27_1]=1,1,0)) FROM 2004Data

It basically tallies up the count in the Q27_1 field. Note that this is just one instance of this line. I'm running it in nested For loop to run it for every year and for questions Q27_1, Q27_2...Q27_i. This is the actual code, with the variables for the year and the Q27_<counter>.
Code:

adoRS.Open "INSERT INTO [" & Trim(sYear) & "Q27] (TrainingID, Count) SELECT " & j & ", Sum(IIf([Q27" & Chr(95) & j & "]=1,1,0)) FROM " & Trim(sYear) & "Data", adoConn

I'm getting a "Syntax Error in INSERT INTO statement", and the only problem is the underscore. I have this statement for other questions, such as Q1, Q2...Qi and it works perfectly, but question 27 contains multiple answers, and so the field names are Q27_1, Q27_2, etc. Any suggestions on what to do?
 

A:Visual Basic / SQL help!

Nevermind, I got it to work.

Apparantly "count" isn't a good word to use for a field name. Once I changed it to "tally", it worked like a charm. And the underscore wasn't a problem at all.
 

Read other 1 answers
RELEVANCY SCORE 54.4

I've got some time on my hands and thought to teach myself VB. Can someone give me a quick differentiation between VB6 and VB.NET? Is the latter just the more recent version, or does it include internet controls?

Thanks
Pradhan
 

A:Visual Basic.NET vs Visual Basic

Read other 6 answers
RELEVANCY SCORE 54.4

Hello.

im developing an application under visual basic, Now im stoped because I dont know how to setup the parameter about that my application can print automaticly the "PDF file loaded into my application" inmediatly after after a print job is send from another application what ever Word, excell or POS software.

Its possible to make my application can print automaticly after other print job is send to the default printer ?....
 

A:Visual basic

Welcome to TSG Jeismair,
I worked with this issue in 2012.(I did a TSG thread on it). Seems we were not able to autoprint a pdf. The best I could come up with was to open the PDF so the user could then manually print. He was only wanting to print 1 page. So your request may be different.
 

Read other 1 answers
RELEVANCY SCORE 54.4

http://www.vbtutor.net/vbtutor.html

Where can i download the program that is discribed in this tutoral. I have googled it but cant find a suficent download. And also if i can get it for free?
 

A:Visual Basic

Read other 13 answers
RELEVANCY SCORE 54.4

**EDIT** Apologies, it's C++, not C#
Hi there.

I'm currently working on a coursework project and I've come across some trouble.
I'm making an animation and in one scene I want to have a string of text scrolling to the right, and another string of text scrolling to the left.
I am able to get one string of text scrolling, but if I try to add another one, it just screws it all up.
I've also tried adding another view port on the same scene but it still doesn't seem to do the trick. Ideally, I need to have two view ports in the scene.

Here's the code I have:
This is declared at the beginning of the code:

Code:
float fTranslate = 0.0;
Translating code:

Code:
//TRANSLATION STARTS
glPushMatrix();
//glTranslatef(0.0f,fTranslate,0.0);
glTranslatef(fTranslate,0.0f,0.0); //Determine whether the text translates side-ways (x) or upwards (y)
glTranslatef(75,200,0.0); //Starting point of text
glTranslatef(-50,-200,0.0);
glColor3f (1.0, 1.0, 1.0);
renderSpacedBitmapString(20,600,5,GLUT_BITMAP_HELVETICA_18,"We've got great deals at");

fTranslate += 2.0; //Translation speed - ALSO, + makes text go right, - makes text go left
glPopMatrix();
//TRANSLATION ENDS

glViewport(0,0,300,400);

glPushMatrix();
glTranslatef(fTranslate,0.0f,0.0); //Determine whether the text translates side-ways (x) or u... Read more

Read other answers
RELEVANCY SCORE 54.4

Hello All

I don't know if anyone can help me but I'd really appreciate it if someone can.

In MS Access 2003, you can right click on a table, select export and save it as an XML file. You can then unselect Schema etc. I want to replicate that feature through code in VB 6.0 but can't process it efficiently. The code I have written is:

Dim OLacUpload As New Access.Application
Dim PWD As String
PWD = "DATABASE PASSWORD"
OLacUpload.AutomationSecurity = msoAutomationSecurityLow
OLacUpload.OpenCurrentDatabase DATABASE LOCATION, False, PWD
ExportXML acExportTable, "TABLENAME", "FILENAME"
Set OLacUpload = Nothing

The code above works but it asks to open Access and sometimes errors if you delay the click 'Open'. What I want is for the user to click a button and just create an XML file. Is this possible? My database is password protected too if that helps?

Any help would be much appreciated.

Kind Regards
 

A:Visual Basic 6.0 XML

Just read the database, and write the object to XML. If there is an export function built in to do everything, you wouldn't have to write a query to do much. You just have to configure an until loop to write each iteration of the read. I use a list to pass between the read and the write.

I too have used your export trick to make sure my XML was properly formated. But, in the end, you need to understand every character in an XML markup to properly program for it.

If you're trying to format a dynamic table structure, you'll have to build the tables to be constructed to fit your XML schema. XML is a bit particular. Example: If I need to take in an unknown.length set of dollar amounts, they need to be placed in the same element and reconstructed with a split("Delimiter goes here as string").

I found out today that XML predates the HTTP standard.. WhaWha..What?
XML was designed by NASA in the late 70's to track parts. WHAT DOES THAT MEAN?

GL
 

Read other 2 answers
RELEVANCY SCORE 54.4

I have this assignment where i have use case blocks and if statements and I'm so confused on how to do it. I have to make it where button 2 will calculate the total charge that also tells that there is a $30.00 deposit. and my label control i have to enter 1,2,3 for the item and "F" or "H" for day rental. I have to make it to where i can put either upper or lower case.
Someone please help me. I dont know where to start. This is what i have so far
 

Read other answers
RELEVANCY SCORE 54.4

Tech Support Guy System Info Utility version 1.0.0.4
OS Version: Microsoft Windows 10 Home, 64 bit
Processor: Intel(R) Core(TM) i3-5020U CPU @ 2.20GHz, Intel64 Family 6 Model 61 Stepping 4
Processor Count: 4
RAM: 8097 Mb
Graphics Card: Intel(R) HD Graphics 5500, 1024 Mb
Hard Drives: C: 419 GB (265 GB Free); D: 24 GB (24 GB Free); F: 1863 GB (0 GB Free);
Motherboard: LENOVO, Lenovo Edge 15
Antivirus: Avast Antivirus, Enabled and Updated

See screenshot. Do I need all these Visual Basic files? I do not use it. Or will they be needed by the system for some actions I will do?
thanks, Frank
 

Read other answers
RELEVANCY SCORE 54.4

HEY ALL!

I want to learn VB.. I was just wondering if there are any good freeware editors for it? if not, I`ll just stick to Qbasic
 

A:Visual Basic

For an introduction to the VB language get the MS supplied, free VB compiler for use with WHScript. You will learn the language, but the compiler produces only .com activeX files. Eventually, if you become serious, you will have to buy VB (currently version 6 SP 6).
 

Read other 3 answers
RELEVANCY SCORE 54.4

Would it be all right to use Visual Basic 4.0? I mean, since it's older it's alot cheaper than the newer versions, but would it make a big difference? Thanks for your help!
 

A:Visual Basic 4.0

There is quite a large difference between VB4 and 6. Although you can wite working apps in 4 there is alot you couldn't do. You can pick up VB6 on ebey pretty cheaply now, I would go for that.

You could also look into .NET if you wanted to using the free editor here:

http://www.icsharpcodenet/OpenSource/SD/
 

Read other 1 answers
RELEVANCY SCORE 54.4

hey. prolly shudnt paste stuff twice but im told this really isnt that hard, im just way out of time... and desperate.

at 6:00 i have to submit an interface game for a major project... ive prolly messed this up, but im still hoping.....

anyway, i have a circuit board with 12 LEDs (6 red, 6 green) and 12 buttons. its basically a really small version of a roulette table... and i have to write a VB program to control this.... so you click a button to start, pick one of the numbered lights with a button, and then the game picks one of the random 12 lights. If it is the same then you win... a 1 in 12 chance game

does that sound simple to anyone? cos i just cant learn it and produce it in time and im facing failure.

id appreciate any help so much, even if you just know someone else who mite know...

thanks

B
 

A:please someone who knows visual basic! PLEASE!

Hi, Brad.
I'm really sorry to say that it's highly unlikely that you'll get anyone to help you out. Most people will not assist you with homework, much less when you have not taken the responsibility to do it on time.

I'm sorry, but please don't hold out hope for it. I have to lock this thread, and I'm gonna delete your other duplicate.
 

Read other 1 answers
RELEVANCY SCORE 54.4

Hi, can anyone show me code that i can apply to a button in Visual Basic to open up a program, i am having trouble... Thanks in advance (Y)
 

A:Visual Basic

http://msdn2.microsoft.com/en-us/library/sxz296wz(VS.80).aspx
 

Read other 2 answers
RELEVANCY SCORE 54.4

first post so please go easy on me -

I have written a macro in VB within Excel to send a saved copy of the wokbook as an attachment in an email to predetermined addresses, this part is so far fine and working okay, however i now want to set the importance of the email to high when a certain priority is selected in the spreadsheet anyu help would be great, this is what i have so far...

Sub email()
On Error GoTo NotSent
ActiveWorkbook.SendMail Recipients:=Array("[email protected]"), Subject:="New RSPR Request"

MsgBox "Do Not Save Any Changes To This Document. Any problems contact EATF x54512."
Exit Sub

NotSent:
MsgBox Prompt:="This RSPR Request has not been sent. To send the request select Yes when the file has loaded."
MsgBox "Do Not Save Any Changes To This Document. Any problems contact EATF x54512."
End Sub

Thanks
 

Read other answers
RELEVANCY SCORE 54.4

Hello,

I was interested in programming and I was wondering if Visual Basic would be a good language to learn.

Thanks,

Mike
 

A:Visual Basic 6

Read other 13 answers
RELEVANCY SCORE 54.4

Hey Guys, It's me again... I am a Computer Engineering Student and working on our thesis now... I wonder if you could help me in my problem.

I Want to print a receipt from the form in visual basic 6.0... If it clicked a button, it will print automatically... I want to know what is the code for that.. thank you!

Hoping for your immediate replies.. Thank you so much!

A:Help! Visual Basic 6.0

PrintForm

Printing a form In Visual Basic | Visual Basic 6 (VB6)

Print VB Form Using cmdialog Control in vb6 - Toolbox for IT Groups

Read other 1 answers
RELEVANCY SCORE 54.4

I'm trying to learn VB. I have a picBox and some optButtons along with chkBoxes.
I can't figure out how to name font styles and apply them to the text in the picBox.
IE. I want Comic Sans as my default font with Arial and Courier as optButtons. What is the syntax to do that? my picbox is called picDisplayBill
Do I need to create a sub procedure to do this?
Thanks!
John
 

A:Visual Basic

Why can't you just change the FontStyle property in the Properties box? I'm not quite sure I understand the question.
 

Read other 1 answers
RELEVANCY SCORE 54.4

I am looking to learn one of these languages.

Basically I want to create simple windows applications. The first application I want to create will be a simple mp3 player with a playlist.

I am very good with PHP and web development programming, but am bored of it and want to move on to creating simple but very useful windows applications with GUI's that use the default windows buttons etc.

Would Visual Basic be better than C++?

What are some disadvantages of using Visual Basic in this day and age?
 

A:Visual Basic or C++?

Basically I want to create simple windows applications. The first application I want to create will be a simple mp3 player with a playlist.Click to expand...

Thats not a "simple application". Also, iirc, being able to support mp3 files requires the sdk which costs money.

If you are just wanting to create simple windows applications though, I would probably go with Visual Basic over C++. Anything more advance (or portability) then I would go with C++...it all depends what your goals are.
 

Read other 2 answers
RELEVANCY SCORE 54.4

I really wanna learn how to make these two work together. Can anyone tell me where I can learn to make VB work with the web in many different ways?
 

A:Visual Basic and the web?

Read other 7 answers