473,378 Members | 1,403 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Displaying contents of multiple files at the same time in different dialogue boxes

[i]Hey. I need help with a certain problem I'm facing in VB6. I need to display the contents of multiple items in a listview.
The situation is this : Everytime i double-click on an item in a listview, a form containing a richtextbox or a dynamically created dialogue box should display the contents of the file. The problem is that i'm not able to view multiple files at the same time. So, is it possible to display a single form containing a richtextbox more than once or do i need to create a dynamic component to display the contents of the files like dynamically creating a new dialogue box everytime the user double clicks on the item ??
Nov 2 '06 #1
1 1311
Hansi65
13
Hi there,

even in VB6 each form is already a class.
Knowing this, the solution is easy

Write a form handling the display of a single file.
Name could be frmDisplay.

Give the form some properties you need for initialization, e.g.
Dim mFilename As String
Public Property Set Filename(newValue As String)
mFilename = newValue
End Property

When clicking in the list box to display a file, create a new instance of your form class:

Dim newForm as frmDisplay
set newForm = New frmDisplay

'set custom properties
newForm.Filename = "C:\TEMP.TXT"

newForm.Show

Hope this helps...
Nov 7 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Nick Zdunic | last post by:
I may have come across from what I have heard is the 'Multiple Hop' delegation issue. I'll explain the situation somewhat: We have a SharePoint Portal setup. The client wants to use Page...
2
by: yanivoliver | last post by:
Hey, I'm currently trying to find a way to open a dialog box that will allow me to select more than one file at a time, so if I want to upload select all the files in a directory, I won't have...
15
by: Paul T. Rong | last post by:
Hi everybody, This time a very very difficult case: I have a table "tblStudent", there are 50 students, I also made a form "frmStudent" based on "tblStudent", now if I don't want to show all...
11
by: dskillingstad | last post by:
I've been struggling with this problem for some time and have tried multiple solutions with no luck. Let me start with, I'm a novice at Access and I'm not looking for someones help to design my...
3
by: Ryan Ternier | last post by:
Hey, Is there a way to upload multiple files with .net? Currently, with the HTML way, you can uplaod 1 file at a time. We were looking for a system where a user can select multiple files (hold...
2
by: RAJ | last post by:
In our multi-tier application, we have several ASP.NET user controls which will update the same data source provided by middle tier logic. In this particular scenario we have one user control...
3
by: CD | last post by:
An application is logging faxes sent in SQL2000 image column type. I have found code on the net but what it is doing is prompting to save to local which is fine for single page image. Not good...
6
by: Harshpandya | last post by:
Hi all, I am working on the form in which you fill out the whole PHP form and e mail that details to someone. It is working fine. But now i want to send the same form to be sent to different...
38
by: ted | last post by:
I have an old link that was widely distributed. I would now like to put a link on that old page that will go to a new page without displaying anything.
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.