Computer Learning Zone CLZ Access Excel Word Windows

Knowledge is power. Information is liberating. Education is the premise of progress, in every society, in every family.

-Kofi Annan
Home   Courses   Seminars   Templates   Help   TechHelp   Forums   Contact   Join   Order   Logon  
Home > Forums > VB
Visual Basic Forum

Welcome to the Visual Basic Forum. This forum is for everyone to read but only students (paid customers) can post here. If you'd like to become a student, you can watch VB Beginner Level 1 for free, and then purchase Level 2 for just $1.00 here. After you create a logon, you will have full access to the Forums.

You can post questions about any version of Visual Basic, Visual Studio, VBA, VBScript, or whatever you like. Right now, my only course on VB covers the old Visual Basic 6, and of course I cover VBA for Microsoft Access in the Developer and 300-level classes. I'm going to be releasing courses for Visual Basic in Visual Studio 2019 soon, including the free Community edition.

Subscribe to this forum and receive an email update whenever new posts are added. You will also be notified by email if any conversations you are involved in receieve new comments. Yes, even non-students can subscribe to update notifications.

Click Here to Post a comment and start a new discussion!


Date to Notepad VB6 Upload Images   Link 
Dwight Arroyo 
7 days ago
I know this is probably a boring question, however, I have scoured the Internet for answers and no one seems to have an answer to the following question listed below. Since I have just joined The Computer Learning Zone and Richard Rost knows what he is doing, talking about and is a complete expert at this, I am sure he can help... Read More...
Richard Rost
7 days ago
That's a tricky one. You could use the clipboard, copy the date from your app, shell open Notepad.exe, paste it there, but that might involve a WinAPI call.

Alternately, if all you need is just the date, you could just write out a text file as MyFile.TXT and then open that with Notepad. That would be easier to do.

I haven't had VB6 installed on my machines in YEARS, so I've got no way to try it for sure.
Alex Hedley
7 days ago
Open Notepad
Press F5
It inserts the current datetime
Add a Reply
My Code Works Upload Images   Link 
Richard Rost 
45 days ago

I have no idea why

Alex Hedley
45 days ago
If it's working I don't tempt fate by checking, it might change it's mind :p
Add a Reply
Column Resizing Upload Images   Link 
Kevin Robertson 
7 months ago
I was wondering if it was possible to prevent a  user resizing the columns in a ListView control.

After several google searches I am unable to find any documentation.
Alex Hedley
7 months ago
I'm surprised this isn't a properly, looks like you have to go down into the Win32 API.

Could you use a DataGridView instead?
Kevin Robertson
7 months ago

Actually found some code that works.

In the ColumnWidth Changed event:

        Static blnChangeWidth As Boolean = True

        If blnChangeWidth = True Then
            If e.ColumnIndex = 7 Then
                blnChangeWidth = False
                lvwCurrentAlarms.Columns(e.ColumnIndex).Width = 0
                blnChangeWidth = True
            End If
        End If

Then in the ColumnWidthChanging event:

e.Cancel = True
Add a Reply
Simutanious Event Handling Upload Images   Link 
Kevin Robertson 
8 months ago
I have a program that has a PictureBox (Time Machine) that moves alolng the width of a Panel (Time Line). I need the Panel to flash while the picture is moving.

The problem is the Panel only starts flashing after the picture has finished moving. How do I get both to occur at the same time? Read More...
Richard Rost
8 months ago
That's a tough one. One of the problems Visual Basic has is that it doesn't handle asynchronous actions very well. Access VBA has a DoEvents command that you can use to allow background processes and user interaction to run while a process is in progress. I'd have to play with your project to tell you for sure how to get that to work.
Add a Reply
Who Wants VB 2019 Lessons? Upload Images   Link 
Richard Rost 
8 months ago
Well, I finally broke down and installed Visual Studio 2019. I have to say, I'm pretty impressed. There have been some nice changes.

Who here is looking for some updated lessons in Visual Basic using Visual Studio? Remember, this is NOT VBA for Access or Excel. It's for building standalone programs.
Alex Hedley
8 months ago
I'd loved to see Access Developer 14 the Easy Access POS as a VB.NET app.

I know connecting to an Access db was planned for the original VB6 courses. Might need a few beginner courses first though.
Abraham Breuer
9 days ago
Does this offer still go on?
Add a Reply
Convert RGB to HSV Upload Images   Link 
Kevin Robertson 
8 months ago
I am building a new version of my color picker program in VB2019 (I built a very basic version in VB6). I have successfully converted the RGB values to HSL, but cannot figure out how to convert to HSV. Read More...
Richard Rost
8 months ago
Hi Kevin. I've never done this myself, but here's a page I found with a quick Google search that shows the math behind how to get it done: RGB to HSV Color Conversion
Alex Hedley
8 months ago
Add a Reply
TXT to ListView Upload Images   Link 
Kevin Robertson 
10 months ago

I am building a small program to store my study schedule. I have successfully added the item to the List View and appended to a text file. How do I read all the data from the text file back into the List View? Read More...
Alex Hedley
10 months ago
Hi Kevin

You can use System.IO to read in the text file.
Then use Split function by comma to convert to an array.

Then you could loop the array and run

Or there might be an AddRange
Kevin Robertson
10 months ago
Cheers Alex. Got it working perfectly.
Add a Reply
Cant Find VB Upload Images   Link 
2 years ago
I have Windows 10 and I cannot find Visual Basic on it. Any suggestions?
Richard Rost
9 months ago
Visual Basic doesn't normally come with Windows. You have to purchase it separately or download one of the free editions. Office applications like Excel and Access have VBA built in. See this post about the different options.
Add a Reply
Determine case in combo box Upload Images   Link 
Kevin Robertson 
2 years ago
Hi Alex,

I am looking for a more efficient way of writing the following code;

'set the case for items in combo box
If strMediaType = "cd" Or strMediaType = "Cd" Or strMediaType = "cD" Or Read More...
Alex Hedley
2 years ago
How is strMediaType being set, is this a input that a user can input?

I tend to change the case first then you know you only have to check say all lower.

The other option is to intercept the key entry and force it to be upper/lower etc then only check for the allowed option.
Add a Reply
Vscroll in VB 2012 Upload Images   Link 
Kevin Robertson 
3 years ago
I am attempting to add a spinner button using the vscroll control in vb 2012 to change a numeric value in a label. How do I determine which button is clicked on (up or down)?
Add a Reply

Show Older Comments...
View in Table Format

Start a NEW Conversation
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.

Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Account Login
Online Theater
Lost Password
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Customer Support
Web Site Tour
Consulting Services
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Contact Info
Support Policy
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Keywords: vb forum visual basic  PermaLink