Adding Custom Comments To A Folder?
Jan 30, 2008I need to add custom comments to a regular folder.
How should I programatically do this with Visual Basic?
provide the required code.
I need to add custom comments to a regular folder.
How should I programatically do this with Visual Basic?
provide the required code.
How do I add my own todo and comments list to appear on Interfaces? I want it to pop up like IDisposable does:
[Code]...
I am using Visual Studio 2008 Setup project. I need to copy one folder and the sub folders into the program files but when I tried to copy or add the folder to "Application Folder" in File System editor, I am able to add only files and not folders.
View 1 RepliesSo I've been using some code to generate directories and such in a custom treeview, but am looking to expand upon this idea. While it's not using recursive functions, and only calls functions when expanding levels, I'm not quite sure how to put some of these together.find a way to just search through all folders on the PC. If the folder contains audio files, that folder is than added to an array (searching a folder for audio files and adding that folder to an array is done). It's just recursivly searching all folders on the PC.Here is the code I've been using for the treeview (I'm not sure if it can be adapted):
Public Function ListAllDrives() As String()
Dim arDrives() As String
arDrives = Directory.GetLogicalDrives()[code].....
I've noticed that in C# XML comments and code comments can have different colors by changing the settings in Tools > Options > Environment > Fonts and Colors > Display Items:
- Comment: controls code comments XML comment: controls XML comments
This works well in C# <summary>This XML comment is green</summary>
[Code]...
I recently downloaded VB 2010 Express so i am quite new to the language, but i have worked with dark basic, which seems to b very similar.Anyway, my problem is that i cannot seem to correctly set out my array of a custom type/class. i am trying to create two arrays, one of available entities and another of selected entities of which the user selects the entities to be dealt with in irrelevant ways. i have creates a button (called test) which adds some entities to the available list and all the entities come back the same value but they shouldnt be as you'll c in the code. i have run the step into command a found that "available.item(#).Name = " will change all of the entity's names.As of current i am working with lists as the array kept asking for a 'new' statement but i couldnt figure out where to put it.[code]
View 7 RepliesI want to create a folder " c:imagebox " when the user runs my setup. I tried this in " Add special folder --> Custom folder " then a folder appears i renamed it to ImageBox and in default location i typed " C: " and set its property to always create but when i tested the setup on xp an vista i did not created any folder.
View 1 RepliesI am attempting to customise the CreateUserWizard by following it in my book, but when I come to reference them in code behind I get an error saying 'FieldName is not declared' for each field i'm adding, they are present in the page with the correct ID's, am I doing something wrong?
I am only trying to add a firstName and lastName field to the bottom of the CreateUserWizard and remove the need to a security question.
Markup:
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server" OnCreatedUser="CreateUserWizard1_CreatedUser">
<WizardSteps>
[Code].....
Is it possible to have a custom control (inherits from Control) and add sub-controls to it (like, a label for example)? Basically I want a composite control. I know controls can contain other controls, but if I try to add a control to MyBase.Controls, this doesn't work because that's readonly.
[Code]...
I want to custom code to a report. For example, I have a text box, txtABC on the report. I want to assign it a value from variable, when report runs. How to do it.
View 1 RepliesVB 2010, Trying add custom colors to a dialog box, save and reload on opening. The "add custom color button" just adds it to the boxes on the left and does not save it for future use. If the user select that color having added it the left you can then get the integer value and add it to the code
ColorDialog1.CustomColors =
New
Integer
() {CustCol1, 16646145, 16580610, 16645891, 16711426, 65536, 6699546}
And save for displaying next time. but it does not return the same color.
Why does it return a different color, it displays the correct color when used at the time of saving? Is there no way of saving all the custom colors, if a user puts several in the boxes on the left? You have to make sure you select Basic color first otherwise it changes existing custom color or if you select a blank box you cannot select anything.
When custom colors are added via code as above it goes along the top row first but when you click the "Add custom color button" it adds the first color to first position of the top row and the next to the first position of the bottom row. How to add custom colors to a dialog box, save and reload on opening.
How to add a custom component to my toolbox.I have a class that inherits Panel. I want to add this to my toolbox.I followed these steps:
Right Click on Toolbox (On general tab )Choose Items In the .NET Components Tab, I can't find my Class.Where am I wrong ?
I'm creating a web browser but i can't seem to add the Favorites function to it.can someone help me, like tell me what Functions i can use or any suggestions?I don't have any code though, because i am clueless about how to add the favorites function to the my web browser.
View 8 RepliesI have a small application that creates users in the AD. It adds the users fine, and creates them a home directory. My problem is with granting the user permission to the home directory and is two foldFirstly the code detailed below adds the user to the folder, but because the account is newly created it displays as the SID rather than the name, not such a big deal, but sometimes the code fails as the replication has not caught up and the user isnt found. I beleive the answer here is to use the SID rather than the users name to add permissions, however I am not sure how to retrieve and store this when the account is created using directory services. Secondly and more frustrating is that once the user is added to the folder ACL their permissions are all blank.
Try
Dim Dinfo As New DirectoryInfo(Directory)
Dim DS As DirectorySecurity = New DirectorySecurity()
Dim Rights As FileSystemRightsFileSystemRights = FileSystemRights.Modify
[Code]....
I would like to put some (image, folder etc ) in resources. However I am not sure how to do this.
I have put the .txt file, .iso image in resources (from my project) but unable to add blank folder.
This folder is referring to "sc1" folder in my codes.
sc.CaptureScreen.Save("sc1/" & imagename & ".jpg", System.Drawing.Imaging.ImageFormat.Jpeg)
I do not know how to call this item in the codes using my resources (e.g. my.resources.pic.jpeg ?? )
The main reason I would like to do this is because when I publish the project, Upon clicking setup installation everything will be embedded together in respective folder instead of I add it manually.
I've used the following code, taken from here, to create my own custom column for datagridview, so that I can now have images and text in the same cell:
[Code]...
It works very well, except that the image that I use is right at the edges of the cell. I'd like to give it a small margin. How can I do this?
[Code] I have a panel as the base of my custom control and I am adding other panels to it, along with a flow layout panel(myInnerContainer). I know the code above isn't going to work because when I try to add the regular panels to the main control, they will attempt to be added to the flow layout panel myInnerContainer, and cause a circular error. [Code] but intellisense doesn't display anything which leads me in the correct direction for adding only the buttons to the flow layout panel (myInnerContainer).
View 4 RepliesI'm afraid I don't have any code to show, as I don't know where to begin with this. I'd like to have it so that if the user presses "Ctrl+O" it will run the OpenDialogue from the Menu. If someone really wants me to (don't see how it'd help, but whatever it takes ) I can post the fully functional open function.
View 4 RepliesI am having issues adding a custom object to an arraylist at runtime.
Details of what Im trying to achieve.
My object is Fixture which represents a light. My light has the following properties:
Name, isMover, HighlightValue, UserNumber, Channels.
Channels is a dynamic arraylist which lists all the different channels of the fixture. A channel could be the lights colour or its intensity. A channel has the following properties:
Type, FeatureGroup, Value, Universe, Address, Slots and Offset.
Slots is the same again, breaking down to another ArrayList with more details.
Code:
Private Sub Patchingtest()
Dim TestFixture As New Fixture_Structure
Dim Intensity As New Channel
[Code].....
I created some custom controls which I use quite often and I thought if I add them once to my ToolBox they just will be there next time I start up VS2008; however, that does not seem to be the case! Each time I start VS2008 I have to re-add that controls (which is quite annoying!). Is there a trick / way of having them there permanently?
View 6 RepliesI was just wondering if there was a possible way to add a custom button into the title bar using VB.NET. I've seen many such questions on Stack Overflow but failed to get a sure-shot and a working answer.
View 3 Replieswhen deploying an application is it possible to add a shortcut .exe to the startup folder to where the application will startup with windows?
View 1 RepliesI would like to know how to create/add a folder when installing the application using the Setup and Deployment in VB.net.I have tried [TARGETDIR]\[USERNAME], but the target folder name that gets created seems its adding the Domain name\Username, and this is where it stops where it only created the folder with the Domain Name.
View 1 RepliesI'm following an article (here) and stuck on the following:"Once you have created this class and compiled it, to use it in an ASP.NET Web application, start by adding it to the Web application's References folder."
Ok, so do i now need to compile my vb class file into a .dll and reference it from the BIN folder? If so how do i compile the vb file? I'm running VS 2005 .net 2.0
Adding custom buttons to a visual basic form
View 6 RepliesIs it possible to add custom command in a shortcut (.lnk) menu (right button) through .net? How can i add the command and executed that command.?
View 4 RepliesI am fooling around with VB for a while now and it is not the first time I created custom controls to use in an application. The situation: I have a database application (FormView / not GridView). The form is designed the following way: At the left I have a Panel1 with TextBoxes and other controls to view / edit dataset records. At the right I have a Panel2 which contains on default a custom control (a number of PictureBoxes mainly) to view / add / delete pictures associated with the currently viewed data record.
On a ButtonClick at a special button on the ToolStrip, I would like to replace that custom control in Panel2 with another custom control (which contains a search with different search possibilities), so, I basically throw out the PictureControl and load a SearchControl instead. This is the first time where I actually designed the custom controls within the actual project. In past, I always developed the custom controls seperately in a new project and later imported the dll. However, my first attempt just does not work and I don't even know where I should start troubleshooting since I don't get any errors.
[Code]...
I have below code that set customised form border color and title. the form is missing icon though.how to add icon to the form as well.
Code blocks are created by indenting at least 4 spaces... and can span multiple lines 'A form with custom border and title bar.'Some functions, such as resize the window via mouse, are not implemented yet.
Public Class CustomBorderColorForm
'The color and the width of the border.
Private borderColor As Color = Color.GreenYellow
Private borderWidth As Integer = 3
[code]....
I have seen that BindableAttribute is used to decorate public properties in custom controls. MSDN briefly mentions that it provides the ability to control the binding direction and whether binding is supported at design time.
public class MyControl : Panel
{
[Bindable(BindableSupport.No, BindingDirection.OneWay)]
public string MyString { get; set; }
[code]....
1) I set BindableSupport to No, however I could still do this in markup (.aspx).What does BindableSupport affect then? Does it hide the property in the toolbox?
<cc:MyControl runat="server" MyString="something" />
2) How does one-way binding and two-way binding work in the context of custom controls and ASP.NET?
There is a response to this question using C# - I am looking for a VB answer and the C# code is too deep for me. I have a custom user control and I have a toolstrip on it. I have certain default buttons on the toolstrip, but I want the user to be able to add additional buttons at design time. I exposed the Toolstrip.Items collection in a public property. I can open the collections editor in design time, but I cannot edit the collection.
View 1 Replies