The roots of education are bitter,
but the fruit is sweet.
-Aristotle
 
Home   News   Courses   TechHelp   Templates   Forums   Help   Order   Contact   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!

 

Column Resizing Link 
Kevin Robertson     
2 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   
2 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    
2 months ago
Alex,

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 Link 
Kevin Robertson     
3 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
3 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? Link 
Richard Rost 
3 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   
3 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.
Add a Reply
Convert RGB to HSV Link 
Kevin Robertson     
3 months ago
Hi,
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
3 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   
3 months ago
http://www.vbforums.com/showthread.php?786243-HSV-and-RGB-conversion
Add a Reply
TXT to ListView Link 
Kevin Robertson     
5 months ago
Hi,

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   
5 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
ListView.Items.Add

Or there might be an AddRange
Kevin Robertson    
5 months ago
Cheers Alex. Got it working perfectly.
Add a Reply

Show Older Comments...
View in Table Format

Post a New Comment or Question
 
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.
 
Subscribe
 
 
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
Lost Password
Free Upgrades
Insider Circle
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Articles
Search The Site
Waiting List
Production Schedule
Collapse Menus
Help
 
Live Chat
Customer Support
WalkThru Tutorials
Troubleshooting
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order
 
Video Tutorials
Handbooks
MYOLP Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Live Chat
General Info
Support Policy
Contact Form
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Facebook    Twitter

YouTube Channel    LinkedIn

Blog RSS Feed   
Keywords: vb forum visual basic  PermaLink