Hide the folder and navigation vb.net - vb.net

I want to hide the folder and it should not be found when i click show hidden file at navigation.
I use this code to hide the file
System.IO.File.SetAttributes(FilePath, IO.FileAttributes.Hidden)

Even if you mark something IO.FileAttributes.Hidden or even as IO.FileAttributes.System, they will still be visible after a couple checkbox clicks. The only way to really hide something would be like in stenography, truecrypt, etc.

Related

VB Using ShowDialog, can I get SelectedPath entry to scroll to top?

I'm setting the SelectedPath parameter of a dialog on a Windows form and it's working. The problem is that it's not visible when the modal form displays. If I scroll down, I can see that it has highlighted the correct folder, but I'd like that folder to be at the top of the scroll window if possible. I'm not too familiar with VB or VStudio so I would appreciate any help. Here's the code that I'm using to set the parameter.
If myVariables.myEHDConnected = True Then
dlgTarget.SelectedPath = myVariables.myEHDDrive & "Storage\"
End If
This code does highlight the directory but it's not visible when the modal form opens.
I changed the Root Folder property of the dialogue to My Computer instead of Desktop and it worked fine. It scrolled down to a point where the selected directory was visible. The problem was mine for not having set the Root Folder properly.

Outlook 2003 toolbar customization: add/edit button list

I have macros in my VbaProject.OTM file. A new toolbar is created when Outlook is launched to allow users to easily run the macros.
(sorry about the interface being in French ;-))
I would like users to be able to customize the toolbar by removing some of its buttons or adding them back. Here is the customization panel:
All my macros are there (all the public Sub()s in modules). However, the macro names and icons aren't really user friendly. I'm looking for a way to change both the icons and names. I'm actually using default FaceIds for my toolbar buttons (but I will add some custom icons in the future too). Also, if there would be a way for some public Sub()s to not me showed there, it would be perfect. Or to add a whole category instead of the Macros category.
When searching through the Web, all I can find is how to add toolbar buttons (which is already done in my example). Does anyone have any idea on how to edit the names/icons in the toolbar Customization panel? Is it possible?
I suggest built-in dialog boxes cannot be modified with VBA.
Try adding a permanent button "Add/delete buttons" to the toolbar, to launch a userform to choose the specific macros you want users to work with. You could then use a better name and other text to describe the macros in your own listbox.

How to change a program Icon in taskbar (VB.NET)

Would like to ask how can i set my own icon instead of default icon displayed by vb.net? Thanks in advance. It seems hard to find a solution in Google as i don't know what keyword should i search because all the result show me changing the .exe icon.
Had tried to change the icon in project properties but it's not working..
You can change icon form from properties form like this picture.
The Icon you set on the above window is the default program icon. to change the taskbar icon you need to set the currently showing form's icon.
Change your Form's icon prom the property tab of the form of your application.
If there is a single form, you only need to change it, but if there's multiple, you need to change all of them individually.
Hope it helps! :)

How to stop my tools strip menu items from appearing in the taskbar?

I have a program which runs mainly though a NotifyIcon in the bottum right of my windows screen (XP). Whenever I open the ContextMenuStrip that appears when the icon is right clicked, a box also appears in the task bar. I also have nested menus inside the menu (mouse over one item leads to another menu), and each additional menu also creates a taskbar box upon appearing. So once I am at the third or fourth nested menu, there would be 3 or 4 windows appearing in the taskbar. After the menu disapears, so do the windows in the taskbar.
How can I stop the taskbar from displaying boxes to represent these menus? I have done nothing in my code as far as I know to create this type of behavior. I have searched for similar problems but have found nothing similar. There is no "showintaskbar" property for these items as far as I can see, and no other property that I can find which would affect this. I have investigated the owner of the contextmenustrip since I read the owner may effect these type of behaviors, but that doesnt seem to be helpful as there isn't an owner property of the contextmenustrip.
I don't know what else to search for, so I am here hoping someone can give me a clue as to what else may effect this type of behavior.
Any help is greatly appreciated. Thank you!
If you are using the ContextMenuStrip.Show() method, it will display in the taskbar as you describe. Try assigning your menu to the NotifyIcon.ContextMenuStrip property instead.

Hide command button on word doc

I have a .doc with a command button (cmdStart) which opens a form.
After populating the form I click a button to close the form and populate the .doc.
I want to hide the initial cmdStart on the .doc as well when the form closes,
Ive tries document.shapes(1).visible=false and cmdStart.visible=false but none seems to work.
Any ideas?
thanks
(ps I cant just opne the form from the autonew, I need the cmdStart visible to begin with)
You have several options to deal with that. However, you won't be able to hide your command button but you will be able to remove it.
Removing a command button can be done by the following code:
Private Sub CommandButton1_Click()
CommandButton1.Select
Selection.Delete
End Sub
(Note that usually you would be able to hide text in Word by setting the font hidden, e.g. by calling Selection.Font.Hidden. However, this does not affect controls.)
If you deleted the button and you need it later on again you will have to re-create it. In that case it might be a good idea to mark the position of the button with a bookmark.
Another option would be to use a MACRO button field. Such a field can be inserted from the Insert Field dialog and can be used to launch a macro.
If you really wanted to "hide" the button, you could set the Height and Width to 0.75 and it's virtually gone. Then resize back to "show". I've also seen people put them inside tags and hide the tag. Hope this helps