Over 1 million tech questions and answers.

Visual Basic .NET Code Samples: Jan 3

Q: Visual Basic .NET Code Samples: Jan 3

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 data using HTTP and streams using the System.Net classes.

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

- Microsoft Visual Studio. NET Professional

http://www.microsoft.com/downloads/...dc-6d9d-4dfc-8c16-0928d36f3df7&DisplayLang=en

Use Sockets

This demonstration shows you how to use Sockets in Visual Basic .NET.

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

- Microsoft Visual Studio. NET Professional
http://www.microsoft.com/downloads/...c0-62e7-4b84-9944-7582b8cd0125&DisplayLang=en

Work with XML

This sample shows how to take advantage of the XMLDocument class built-in to System.Xml.dll. This class exposes the XML Document Object Model, or DOM, which can be used to manipulate XML data.
System Requirements
Supported Operating Systems: Windows 2000, Windows NT, Windows XP

- Microsoft Visual Studio. NET Professional

http://www.microsoft.com/downloads/...68-3f4b-483b-993a-8dc4d2f3ac3a&DisplayLang=en

Regards

eddie

Read other answers
RELEVANCY SCORE 200
Preferred Solution: Visual Basic .NET Code Samples: Jan 3

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 114

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 94

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 80.8

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 75.6

Hi Guys

Im trying to find some sort of Visual Basic application that allows me to query AD through a VB interface

I found this code :

http://www.freevbcode.com/ShowCode.Asp?ID=710

Can some tell me exactly what im suppose to do with this code?

Essentially what i want to to do is Creat a Simple Text Box and a Button where i put say the USer or PC number in the text box and it querys AD and returns the result is it possible with the ^^ Above code?
 

Read other answers
RELEVANCY SCORE 75.6

hi there im a complete noobie to visual basic (although i'v started a program)
and now i'v come to the point of having to program My new work of art.
i will lay out the form setup and if someone could explain how to write the code for it. I would be extremely thankful. here we go , first i have a command button labled "start search" and a standard "drive box" aswell as a drop down "combo box"that
you may write text in at run time
the combo box i'v set up a list of ext example(.bmp) ect.......and i also have a
list box set up to display the search results. Well that is the basic form ,can someone help with the code for all this .
thanks
 

A:Visual BASIC code Pls

Read other 6 answers
RELEVANCY SCORE 75.6

Hi all, listen i got this question, is about visual basic, in part of a program i need to let the user move/grab a picture/label, i tried all the possible ways but no success, anyone knows how?
I tried something like this on code: Label01.Move, but no good.
Thanks.
 

A:Visual Basic 6 code...

I think you probably want this moved to Development, you'll get more attention there.
 

Read other 2 answers
RELEVANCY SCORE 74.4

I want to write this excel code in VB. How can I achieve this?

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 2 Then Target.Offset(0, 2).Value = Now()
If Target.Column = 2 Then
Target.Offset(0, 11).Value2 = Now()
End If
End if
End Sub
By creating an object for excel applications I want to achieve this.Any one to help ?
 

Read other answers
RELEVANCY SCORE 74.4

QUESTION 1:

I have made two Listboxes

One of them contains a list of sheets within a workbook. To do this I did the following:

Sub SheetNames()
With Worksheets("CALC")
For i = 1 To Sheets.Count
Sheets("CALC").Range("Z4").Cells(i, 1).Value = Sheets(i).Name
Next i
End With

End Sub

This placed all the data on the sheet. I then defined the name of the list and by using Data/Validation/List was able to make the list.

Is there a better way to make a list that picks up all the names of all the sheets in the same workbook and puts it into a listbox?

QUESTION 2:
Now that I have the list and I am able to display the sheet I want to use.
How do I go to the sheet using the value displayed in the listbox and then copy a range of data.
I need to have formulae that will allow me to do the same regardless of which value I pick in the listbox.

Any suggestion would be appreciated.
Thanks
 

A:Excel Visual Basic Code

Read other 16 answers
RELEVANCY SCORE 74.4

Hi there

I work for a large hospital and am responsible for project training and support. I am trying to create a tool for users that allows them to enter a value in a spreadsheet and then a range of choices are presented to them as a result:-

Here's the gist- users have to record patient events on the system with specific codes which have behaviours, e.g. start, stop, ongoing, inactive. However, you can only use the codes in certain ways, depending on what code went before, e.g. "Inactive" can't go before "Stop" etc. Staff find this difficult at times and end up putting the wrong thing in- so I wanted to see if I could devise a tool to help them along.

Does anyone have any ideas about how I could create a simple macro to do this? I only have SQL knowledge.

Any help would be gratefully received!
 

A:Visual Basic code for Excel db

It depends on where the Inputs are made, do they enter the data in to a cell or on a User Form.
Any particular reason for using Excel for a database, when Access does the job so much better?
 

Read other 3 answers
RELEVANCY SCORE 73.6

I have a spreadsheet with a list of the months in 'Column A' with each month separated by two empty rows
(e.g. December = A1, November = A4, March = A7, etc.)

I need a code that will insert a new row two-rows below the appropriate month [i.e. when compared against the "=NOW()" month]
(e.g. if =NOW() equals 11-06-2006, then I need a blank row inserted at A6)

Anyone assist me with this request?

A:Visual Basic Code Needed For Excel

Is this matter allready solved?

Read other 2 answers
RELEVANCY SCORE 73.6

hey all...

this is my code that i have so far for the search button on one form.

-----------------------------------

Private Sub cmdSearch_Click()

''' initialize the holder fields on the directory form
frmDirectory.txtFirst.Text = ""
frmDirectory.txtLast.Text = ""
''' open the database
Set conn = New ADODB.Connection
conn.Provider = "Microsoft.Jet.OLEDB.4.0"
conn.Open "c:\VB\Directory\Directory.mdb"

''' build the sql statement
Dim strSql As String

strSql = ""
strSql = strSql & "SELECT * FROM Directory"
strSql = strSql & " WHERE txtLast = '" & lname & "'"
strSql = strSql & " AND txtFirst = '" & fname & "'"
''' open the recordset
Dim rst As New ADODB.Recordset
rst.CursorLocation = adUseClient
rst.LockType = adLockReadOnly
rst.Open strSql, conn

''' if a match was found then display the data on the form
If rst.RecordCount > 0 Then
rst.MoveFirst
frmDirectory.txtFirst.Text = rst!fname
frmDirectory.txtLast.Text = rst!lname

Else
MsgBox "Not Found"
End If

''' close the recordset
rst.Close
Set rst = Nothing

''' close the database connection
conn.Close
Set conn = Nothing

Exit Sub

Search_Error:

''' report errors -- not found condition will not get here
MsgBox "Error in search function"... Read more

A:Visual Basic data access code

Read other 13 answers
RELEVANCY SCORE 72.8

Hi All!

I'm creating an application where I have multiple levels of access. I have created a function using DLookup using VB:

Private Sub Form_Load()

'Retrives "HasAccess" Field from the table "tblHasAccess" where the AccessLevelID = Current users access level ID

If (DLookup("[HasAccess]", "tblHasAccess", "UserLevel = UserLevel" & "[FormName]='" Me.Name & "'")) = False Then


MsgBox "You do not have the permissions required to access this location."

DoCmd.Close acForm, Me.Name




End If

End Sub

Intended functionality:
So upon loading of this form, the "HasAccess" field from the table "tblHasAccess" is retrieved where the UserLevel (Temp variable from the login form code) and the current form is false meaning the HasAccess checkbox in the database is unchecked then close the form and deny access of the form on the program.
However, all users are passing through, when they shouldn't be. I was wondering if anyone could help me. I have attached the login form code and DLookup function. I believe it could be a syntax problem with my DLookup function and the variable UserLevel.

Best wishes
 

Read other answers
RELEVANCY SCORE 72.8

Visual Basic: Can somebody give me a code for a progress bar for WebBrowser1 please. It is for this free tool im making:
http://mattvot.googlepages.com/home
 

Read other answers
RELEVANCY SCORE 72.8

there are actually 3 steps for this to work perfect... no hard codes, so everyone can understand....

let's imagine that we are removing form border so set that to none, then rename form to fmrMain, after that copy and paste this code in your codes

______________________________________________________________

Public Class frmMain

Dim vMoveForm As Boolean = False
Dim voldmx As Integer
Dim voldmy As Integer
Dim voldfx As Integer
Dim voldfy As Integer

Private Sub frmMain_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles frmMain.MouseDown
If e.Button = Windows.Forms.MouseButtons.Left Then
voldmx = MousePosition.X
voldmy = MousePosition.Y
voldfx = Me.Location.X
voldfy = Me.Location.Y
vMoveForm = True
End If
End Sub

Private Sub frmMain_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles frmMain.MouseMove
If vMoveForm = True Then
Dim vmx As Integer = MousePosition.X
Dim vmy As Integer = MousePosition.Y
Dim vmdx As Integer = voldmx - vmx
Dim vmdy As Integer = voldmy - vmy

Me.Location = New System.Drawing.Point(voldfx - vmdx, voldfy - vmdy)
End If
End Sub

Private Sub frmMain_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles frmMain.MouseUp
vMoveForm = False
End Sub
End Class

______________________________________________________________

that is basically it, I always say read before running debug so you know it's a legit code and won't mess aroun... Read more

Read other answers
RELEVANCY SCORE 72.8

I need a routine callable from either C or Visual Basic that can turn on and off 1 note at a time using MIDI code sent through a USB port. This is going to be used for a tuning program that helps tune a small Pipe Organ. I am using Visual Basic which could call a C routine to do this. I am using a laptop with windows 7 see details below. I have several caned programs that will play music from MIDI files through the USB interface and run the Pipe Organ. I could either modify one of those programs if I had the source code in C or Visual Basic or write my own routine. I do have a MIDI handbook and can figure out the code, in time. I have not found routines for sending information to the USB port. I am not good at navigating the Microsoft website to find this kind of information (I've tried!). I'm not as good as I used to be at digging through huge volumes of information to find what should be fairly simple routines.
Tech Support Guy System Info Utility version 1.0.0.2
OS Version: Microsoft Windows 7 Professional, Service Pack 1, 64 bit
Processor: Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz, Intel64 Family 6 Model 42 Stepping 7
Processor Count: 4
RAM: 4046 Mb
Graphics Card: Radeon HD 6470M, 1024 Mb
Hard Drives: C: Total - 456223 MB, Free - 302679 MB; E: Total - 15291 MB, Free - 2285 MB; F: Total - 5103 MB, Free - 2126 MB;
Motherboard: Hewlett-Packard, 1618
Antivirus: Microsoft Security Essentials, Updated and Enabled
 

Read other answers
RELEVANCY SCORE 72.4

Hiya

This is the sample code for Programming Microsoft® Windows® with Microsoft Visual Basic® .NET (Core Reference), 0-7356-1799-6.

System Requirements

To use the Companion Content you'll need to be able to compile and run Microsoft Visual Basic .NET programs. The system requirements are as follows:
Microsoft Windows NT 4.0, Microsoft Windows 2000, or Microsoft Windows XP
AND
Microsoft .NET Framework SDK -- can be downloaded from the link provided above (Minimum)
OR
Microsoft Visual Basic .NET (Preferred)
OR
Microsoft Visual Studio .NET (Best for multi-language development)
To run your Microsoft Visual Basic .NET programs on other computers requires the .NET runtime (also referred to as the .NET Framework redistributable package) to be installed on those machines. The redistributable package comes with the Microsoft .NET Framework SDK, Microsoft Visual Basic .NET, and Microsoft Visual Studio .NET. The redistributable package can be installed on the versions of Microsoft Windows listed above as well as Microsoft Windows 98 and Microsoft Windows Millennium Edition (Me).

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

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

Regards

eddie
 

Read other answers
RELEVANCY SCORE 72.4

well i'm not sure where i should post this since Development seemed to concern problems on creating codes and Windows OSes didn't seem like the right place. anyway i've been having alot of problems with Visual Basic 6 and Learning Edition. each time i try to view the code window (double clicking on objects,right click>view code,etc) and even when i try to Run the program with nothing on it, it gives me this error:

i tried searching around Google and one site said that it might have something to do with the computer.i'm using a Hewlett-Packard Pavillion 753n and from the sites i've seen they say that HP computers don't work well with Visual Basic.

i've tried multiple reinstalls and also deleted any previous Visual Basic 6 files and folders before each reinstall, but i'm not completely sure if they are all deleted.

can anyone help me on this issue? thank you!
 

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

Do any of you know where I can find an excellent and massive code sample database on the web? Need samples for Word and Excel.

Many sites have a few samples but I need a database of samples to re-learn what I have forgotten.
 

A:Need VBA Word and VBA Excel Code Samples

Have you taken a look at www.vbaexpress.com? The site is dedicated to VBA and contains a good knowledgebase. The regulars there are also very willing to answer your questions and help develop/refine you code.

James
 

Read other 2 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 58.8

Hello
I am trying to download Visual C++ Redistributable for Visual Studio 2015 x64 and x86 but everytime I try it, it gives me this message:
Setup Failed
One or more issues caused the setup to fail. Please fix the issues and then retry setup. For more information see the log file.
0x80240017 - Unspecified error
Here are screenshots of the log file: 
https://gyazo.com/a94dea8e871b29f944574037f9e854ec
https://gyazo.com/dc28eaf6870e1b4b652efc6924a9351d
Any help would be greatly appreciated.
Thanks,
Nick

Read other answers
RELEVANCY SCORE 58.8

Hi,
We have a performance monitor application that creates CSV files. This was part of a legacy design and changing the CSV to BLG will break many of the other dependent tools in the application. To assist the other teams in viewing the data as one single file,
we decided to use Relog to convert each CSV to corresponding BLG and join all the blg's to one single blg file.
however, while doing the second step I keep getting this error message 
"At least one of the input binary log files contain fewer than two data samples."
Two questions:
1. How can I resolve this problem. The solutions that are provided in the blogs ask to change the account type to "Remote" from "System" but that does not seem to relate to my problem. My problem is merging all the BLG files to one single
file which can be done using Relog and I tested it but in some cases it fails with this error
2. Has Microsoft documented the error codes with which Relog fails.? How can I handle the possible cases of failure.?
3. Unrelated questions: Can Relog join more than 30 files together to one single merged Performance file.
 I found online at some places that Relog had a limitation that it cannot merge more than 32 separate performance file to one single performance file.

I suggested to use Relog but Relog has been disappointing so far with a lot of unknown errors. A detailed documentation of the error codes in not provided by Microsoft.

Finding answers to som... Read more

Read other 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

Hi everyone,

I have a relatively simple question. I have a ms access database app written in vb6. I have a function in the app that allows the user to edit a record. The way i'm currently working this is by using the adodata.recordset.addnew method which writes an new record to the database and then i'm going through using SQL and deleting the old record. I was wondering if there is, and i'm sure there is, a way to bring up a record and edit it and save it as opposed to writing a whole new record and deleting the old one.

Thanks to all who read!
 

A:visual basic 6.0 ADO

G-Man:

As you are using ADO then you have the ability to Update a record:
Code:

With ADOData.Recordset
.Fields("MyField1").Value = "My New Value"
.Fields("MyField2").Value = 400
.Update
End With

This updates the current record with the new field values. Now this appears very simple (and it can be) however you do generally need to consider a few things. Firstly you need to ensure that the recordset (table) that you are updating has a primary key. If you don't then you will either get spurious results or you will get an error message that may say something like "insufficient base information for updating".

I would strongly recommend that you avoid using the ADO Data control and create your recordset(s) in code as this gives you much more flexibility in terms of setting the cursortype/locktype of the recordset which governs whether it is updatable etc.

Another method that you can employ is to use a standard SQL statement to perform the update (though here again a primary key is strongly recommended to avoid odd results) and do something like this:
Code:

ADOData.ActiveConnection.Execute "Update MyTable Set MyField1 = 'My New Value', MyField2 = 400 Where MyKeyField = 123456"
 

Read other 2 answers
RELEVANCY SCORE 54.4

Hello,
I have tried installing Visual Basic 6.0 Pro on my computer using Windows 10 64 bit. I run into the problems with the install of this program. I have had to manually reboot my computer to finish up the install and install MSDN libraries, instead of the program doing this automatically. Then it doesn't install all of the libraries that go with this version such as Active X creation. It also gives an error that the object library for a blank program is not registered.
Does anyone have any ideas on how to get this program installed, so that I have no problems with the install and when the program runs???
Thanks,
dabeartn
 

Read other answers
RELEVANCY SCORE 54.4

Does anyone know where I can learn visual basic? I've read several books on it and they have tought me the basics (variables, data types, arrays, controls, etc) But I want to learn how to take my programming to the next step.

I want to be able to create programs that can communicate across the internet/local network, maybe some visual basic gaming. Anything.....
I'm really eager to learn visual basic, as well as other programming languages.

Please Post

Thanks!!
 

Read other 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

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

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

I am completely new to this but I would like to start writing small little programs... just for my self. For example maybe a little reminder program, no fancy graphics. I would like to be able to take this and run it one any computer with windows without having to download other software to run this. Is visual basic the way to go, if so what software do I need and is there any good online tutorials for this.

PS Years ago I took a course in BASIC computer programing and did well at it... will this help me now days?

thanx
 

A:visual basic

Read other 7 answers
RELEVANCY SCORE 54.4

do any of you guys know of any sites out there that offers visual basic help? i'm currently taking the second half of the course. right now the programming is probably simple to anyone who knows VB, but i'm having trouble w/ a couple my projects that are due. anyone who knows VB and wants to help, feel free to post here and i'll tell you the problem i'm having trouble w/ and the trouble's i'm having w/ it. or if you know a good site for help, post that here too. thanks a lot.

calibretto
 

A:visual basic help

Read other 8 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

Hello,

I am looking for help with a macro. Here's the basics (what I want it to do):

-The macro only works out of one workbook, with 3 worksheets, WIP_Watch Old, WIP_Watch New, and Stocked. Column headings for these worksheets include order number, part number, quantity, description, etc... but I'm only concerned with order number

-I want the macro to find and compare order numbers from WIP_Watch Old to WIP_Watch New. When a match is found, nothing needs to happen but when an order from WIP_Watch Old is NOT found on WIP_Watch New, then I want to copy the row containing the order number (columns A through W) from WIP_Watch Old.

-Next, I want to go to the worksheet called Stocked and insert a row at the top (under the column headings, so row 2), and paste the information copied from WIP_Watch Old. I then want to go to column W of this row and insert the date the copy is made.

-I need the above process to loop through the entire list of order numbers.

I have a macro started, but I've gotten stuck. Anyone think they can offer some help? The macro (called ToStock) is below.

Thanks.

Sub ToStock()

Dim Order As String 'Order Number
Dim OrderCol As Integer 'PO Column Number
Dim PrevRow As Integer 'Row number of the previous file
Dim CurrRow As Integer 'Row number of the current file
'Find Column locations in file
Cells(1, 1).Select
For i = 1 To 50
ColHeaders = Cells(1, i)
Select Case ColHeaders
Case "Order"
OrderCol = i
End ... Read more

A:Visual Basic Help

Post your sample workbook and I'll write the code for you.

Regards,
Rollin
 

Read other 1 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

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

Hello,

Please need help urgently, I am trying to send(FTP) a file via visual basic 6.0 to a server, also the user name and password need to be included in the application too.

Thanks,
 

A:Visual basic and FTP

Use the Microsoft Internet Transfer Control. You can find examples of its usage at http://www.pscode.com. Search for FTP and you should get a ton of results.
 

Read other 1 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

This is probably a really simple question, but I'm just starting out with VB.. What I want to know is how to launch an external program from within my program, for example when I click a button launch say explorer?
 

A:Visual Basic 6

To start Calculator in Windows 95 via VB code:

Private Sub Command1_Click()
Shell "C:\Windows\Explorer.exe", vbNormalFocus
End Sub

That will start explorer when you click the button. You can change the second argument (vbNormalFocus) if you want it maximized or minimized or whatever. Also, of course, you need to make sure the path is correct.
 

Read other 2 answers
RELEVANCY SCORE 54.4

I need to pass an array of values to a select statement in VB6 but need help with the syntax

cmnFileGet.CancelError = True
cmnFileGet.FileName = txtFilePath.Text
cmnFileGet.Filter = "*.txtDate"

cmnFileGet.FileName = txtFilePath.Text

is the line of code that is currently passing a single file to the select statement. I want all files that qualify for the filter "*.txtDate"

txtDate is a text box the end user fills in. For example I want all files that qualify for "*.7/30" if the end user has entered 7/30 into the text box.

The syntax in the case statement must somehow cause the program to go back for the next value in the array once all the other code in the case statement is executed.

Any help will be greatfully appreciated.
 

A:Visual Basic Fun

If I understand your question, you would want to do something like this:

cmnFileGet.Filter = "*." & txtDate.Text

That would limit the dialog box to files with an extention "7/09" in your example. Again, I'm not sure I understand the question. I appologize if I'm way off here, but let me know if I am...

As far as the array part of the question goes, if your array was called Dates() where each member of Dates() was a date entered by the user:

for x = 1 to UBound(Dates)
Select Case Dates(x)
case "7/09"
...
case "7/10"
...
case else
...
End Select
Next x
 

Read other 1 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

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