473,378 Members | 1,360 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.

Using Folders to change pictures.

This is a bit hard for me to describe but ill try my best. I made a program in visual basic and the GUI is made up of 5 image files. I want to have a skins folder in the root folder for the program filled with folders of other skins. I want to have the dropdown find the names of the other folders inside the skins folder and when they click that option set the picture files to the appropriate image files in that skin folder.

I tried my best to explain it.

Thankyou in advance.
Oct 4 '06 #1
1 1069
Hemant Pathak
92 Expert
Control use
1. Dir1 and Visible Property=false
2. Combo Box

Private Sub GetChildFolder()
Dir1.Path = App.Path '& "\rootFolderName"
For i = 0 To Dir1.ListCount - 1
Combo1.AddItem TrimMark(Dir1.List(i))
Next
End Sub

Private Function TrimMark(str As String) As String
Dim i As Integer
i = 1
Do Until i = 0
i = InStr(1, str, "\")
str = Mid(str, i + 1)
If i = 0 Then Exit Do
Loop
TrimMark = str
End Function
Oct 5 '06 #2

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

Similar topics

43
by: nospam | last post by:
I got three (3) files (1) Untitled.aspx (2) Untitled.aspx.1.cs (3) Untitled.aspx.2.cs These three files must be used together to make file #1, Untitled.aspx, page work via J.I.T. when the...
1
by: josephrthomas | last post by:
hi... can someone pls tell me how can i make a datalist or datagrid connected to MSAccess where i can load info to the datalist or the datagrid.. in the datalist or the datagrid, i need three...
8
by: Subra Mallampalli | last post by:
Hi, I am trying to use <runtime> section within the web.config file. However, the contents of the <runtime> section seem to be ignored. What am i missing here? Is <runtime> section not used by...
8
by: Just Me | last post by:
1)How can I find the folders like "My Recent Document", "Desktop", "My Pictures",... if I want to store a file there? 2) How can I find the icon for those files if I want to display it? ...
13
by: Jim Carlock | last post by:
I have over a hundred pictures I would like to present. Is it practical to create and parse an array of pictures, picture paths, et al using server-side scripting to accomplish this? I...
4
by: Eugene Anthony | last post by:
The code bellow will display a list of folders in a directory. Now lets say I have 20 folders, I want to display the first 10 folders, then display another 10 folders just like the paging concept...
4
by: Zeb | last post by:
Hi I'm using DirectoryInfo.Delete so that when a product is removed, all it's associated images (including the folder they sit in) are deleted. This actually seems to work fine. However, the...
0
by: minex | last post by:
Hi, I have a simple photoslideshow. Now I would like to put several pictures in a database and that during the year, on specified dates the pictures in the flash animation change. example: ...
4
tdw
by: tdw | last post by:
Hi all, This is an Access question, but it may spill over into requiring non-Access solutions. Please let me know if I should look for this answer elsewhere (and if you have suggestions on where...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.