473,486 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

changing a folders custom picture

Hi everyone.

I'm going to write an app in C# that changes a folder's custom picture
to some kind of picture that represents how much 'stuff' is inside the
folder...

.... as soon as I can figure out how to change this:

http://naikrovek.org/stuff/folderPicture.png

programmatically.

does anyone know how to do this in C#?

Thanks!

jeremiah();
Apr 21 '06 #1
3 2067
I think you can use SHGetSetFolderCustomSettings( ) API to get and then set
it. Not sure if the Shell object expose method/properties to control this.

ms-help://MS.MSDNQTR.2005JUL.1033/shellcc/platform/shell/reference/functions/shgetsetfoldercustomsettings.htm

HRESULT SHGetSetFolderCustomSettings(
LPSHFOLDERCUSTOMSETTINGS pfcs,
LPCTSTR pszPath,
DWORD dwReadWrite
);

ms-help://MS.MSDNQTR.2005JUL.1033/shellcc/platform/shell/reference/structures/shfoldercustomsettings.htm
typedef struct {
DWORD dwSize;
DWORD dwMask;
SHELLVIEWID *pvid;
LPTSTR pszWebViewTemplate;
DWORD cchWebViewTemplate;
LPTSTR pszWebViewTemplateVersion;
LPTSTR pszInfoTip;
DWORD cchInfoTip;
CLSID *pclsid;
DWORD dwFlags;
LPTSTR pszIconFile;
DWORD cchIconFile;
int iIconIndex;
LPTSTR pszLogo;
DWORD cchLogo;
} SHFOLDERCUSTOMSETTINGS, *LPSHFOLDERCUSTOMSETTINGS;"jeremiah johnson"
<na*******@gmail.com> ???????:eC*************@TK2MSFTNGP02.phx.gbl...
Hi everyone.

I'm going to write an app in C# that changes a folder's custom picture to
some kind of picture that represents how much 'stuff' is inside the
folder...

... as soon as I can figure out how to change this:

http://naikrovek.org/stuff/folderPicture.png

programmatically.

does anyone know how to do this in C#?

Thanks!

jeremiah();

Apr 21 '06 #2
Read KB here
http://msdn.microsoft.com/library/de...ing/custom.asp
I'm going to write an app in C# that changes a folder's custom picture
to some kind of picture that represents how much 'stuff' is inside the
folder...

.... as soon as I can figure out how to change this:

http://naikrovek.org/stuff/folderPicture.png

programmatically.

does anyone know how to do this in C#?


--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Apr 21 '06 #3
Thanks everyone.
Apr 22 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1170
by: Kamau | last post by:
I have been charged with creating customized visual studio project templates for our organization. I have been successful to a point. I would like to add folders to the project template and I have...
2
5318
by: MENTAT | last post by:
Hi, I am trying to create an installer for my web application. So I added a web setup project to my solution (I am using VS.NET 2003). Been playing around with it since then and it basically...
2
1075
by: tperri | last post by:
I've got a page with a couple ascx files on it. One od the controls displays a user's picture, the other contains a datagrid where a user can upload more pictures, change their default picture,...
3
2149
by: Brian Henry | last post by:
How would you go about doing this I have a tree view which where anything is a parent it is a folder (folder icon, and the tag for the object is a string that says "FOLDER:{name of folder...
4
1476
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...
15
6468
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
1
1961
by: rizwanahmed24 | last post by:
Hello i have created a custom control. i have placed two template controls on it. One is check box and second is picture box. The custom control also contain two picture boxes as property. These...
2
3236
by: ahmed.maryam | last post by:
Hello Everyone, I designed a custom control that is entirely covered by a picture box. I then dragged this custom control onto a windows form application (called main) and I need to handle mouse...
5
2102
by: Per Juul Larsen | last post by:
Hi. My application creates empty libraries. How do I ensure that the user copies at least one or more picture files (.jpg) in each of the empty folders ? Result , no empty folders! regards pjl
0
7099
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6842
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5430
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4864
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3069
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
262
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.