VS 2010 Hiding A Folder?
Feb 25, 2012Is it possible to hide a folder completely? By this I mean, not just set its property to hidden, but make it completely invisible so that the folder cannot be seen via Microsoft Windows Explorer?
View 2 RepliesIs it possible to hide a folder completely? By this I mean, not just set its property to hidden, but make it completely invisible so that the folder cannot be seen via Microsoft Windows Explorer?
View 2 RepliesDim Result As Integer
Result = MessageBox.Show("Question...", "Key", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question)
[code]....
It seems like such a simple thing to me, but it seems like the usual, me.hide() isn't working in this case. I have 2 forms that tie together, the login form, and then the main for being form1. The login form has an autologin feature, which works out fine, but with it enabled, the login form doesn't automatically hide like it should.
[Code]...
I have a form that searches a db. Some searches will always result in one row of data, others might return multiple rows. I want to have the data from a single row shown in text boxes and the multiple rows show in a datagridview is it possible to hide/show those depending on the amount of rows.
View 6 RepliesI am using a MDI parent to house each of the forms in my application. I have a main form and 2 sub forms. The sub forms are opened using the code below. Also, when I am finished entering info into these forms, i am hiding them so that I can reopen them with the same info still entered.
The problem is that when i show the form again, it is blank. Why would this be the case? I am never closing or disposing the form, so shouldn't it just unhide easily?Showing the sub-form(savingsfrm1) and and hiding the main form(riskfrm1)Public savingsfrm1 As Savings
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code]...
I've created a program with a login form. Once you log in, the login form should close and the next form should display... my problem is...
If I use Me.Close()... than both forms close and the application terminates.
If I use Me.Hide()... than the application never unloads from memory and run indefinitely.
So what do I do? Neither of these work how I need them to.
I'd like to design a Winform with expanding controls if that 's overly complicated. The idea is that I would have rows of information, each with an "Expand" button. On pressing the button, the rows underneath the selected row would move down and the controls that are associated with the selected row (some textboxes/ dropdowns etc) would appear. Vice versa when you click the "Hide" button.
View 2 RepliesSo i want to start an application with my vb.net app and it should start as a hidden process, meaning no window and nothing in the task bar, only in the task manager ofcourse.
This is what i do
Dim fov As New Process
If CheckBox2.Checked = True Then
RichTextBox1.Text = RichTextBox1.Text & vbCrLf & "* - Launching"
fov.StartInfo.FileName = ("test.exe")
[Code]...
This does not work.. I have also tried the "fov.StartInfo.CreateNoWindow = True" command which does not work either. I can live with a solution that would start the window minimized instead of totally hidden.
Is there any way of hiding the tab page headers without having to create a new user control?
View 2 RepliesHow would I create a dir Inside %temp%? Then extract the file to it and Open a That folder. So far this is my code.
[Code]...
Visual Basic 2008/2010 - Save Page As, create a Folder, upload the folder to a specific ftp site I am working on this vb app that will goto a specific site, click on a button(i am still working on the button process) do a save page as, create a folder, save those files to a folder and then upload that folder to a ftp site.
[Code]...
Having difficulty with the module below failing on line 21. It is telling me: The system cannot find the file specified. (Exception from HRESULT: 0x80070002) Basically what it is designed to do is look for a directory, if that exists then look for a file in that directory. If both = True then it should open the folder to browse the files. I believe the issue is with the "Program Files" being 2 words since the script runs using a root path, but I'm not sure how to format the path correctly to make it work?
[Code]...
Well guyz its been a long time since my last post here but i got some troubles with a new project i am on and the members of vbforums always had the solution So as the title says i want to make a launcher that will sync 2 folders and some files from my Website to my local HDD. Something like that with Api s
[Code]....
Iv'e seen this in some program. How can I make something like this?
View 10 RepliesI was wondering if VB can access a folder on a secured network and just download the whole folder with all the files in it?
View 3 RepliesI want to do the following cut (not copy) all the desktop .txt or if i choose .rar files into folder named Text or Rar
View 2 RepliesI have a program with a database full information about stuff. When I click on one I want it to do a search for all the files containing that name on a predefined location.Previously I solved this by just launching a regular windows search like this:
Try
Dim Partition As String = My.Settings.Explorer
System.Diagnostics.Process.Start("search-ms:displayname=Search%20Partition%20in%20" &
[code]....
In VS 2010, under "Installation folder URL" (under Publish) I have inserted this "\localhostProgram FilesRajoni" - my project name is "Rajoni". Isn't this the path where I want my app to be installed on user computer? Because in my Program Files I don't have anything
View 2 RepliesI wish to know what location does the "|Data Directory|" in "|Data Directory|XYZ.sdf" that shows in the connection string when I create a dataConnection using the wizard in VB 2010 Express. Is it the Application's directory in Program Files or is it the AppData folder of the client computer.If it is the Application Directory in Program Files then the client user wont be able to write to the database without Admin rights. If so how do I make a dataConnection to a file in the AppData folder using the new data connection wizard.
View 2 Replieshow can i open a folder with Visual Basic, preferably with a Message Box? e.g. when the user clicks "OK" on a message, a certain folder will open.
View 3 RepliesI am running into an issue when retrieving a folder size.
'This does not work when I insert %TMP%, If I insert an actual path like C:Temp, it works fine.
objFolder = objFSO.GetFolder("%TMP%")
Am I missing an import or something? I currently have no imports.
I'm trying to write a program where people can click a browse button, click a file to copy, and then click a second browse button and click a destination folder. I've tried
My.Computer.FileSystem.CopyFile(TextBox1.text, TextBox2.Text)
and get the error "Could not complete operation since a directory already exists in this path 'C:UsersSamDesktop'."
FileCopy TextBox1.Text, TextBox2.Text
gives me "The target file "C:UsersSamDesktop" is a directory, not a file."
Both methods work if I put C:UsersSamDesktop'filename'.'extension' in the destination. But I want the user to be able to select the destination without having to type a new file name.
I am trying to show a list of folders then copy only the selected folders.It displays the folders correctly but copies only the contents not the folder itself, how can I correct this?
Display files
Private Sub ListDirs()
SrcFolder = (("\" & (OldPCTxtBx.Text) & "" & "C$"))
Dim dir As New IO.DirectoryInfo(SrcFolder)
For Each subFolders As IO.DirectoryInfo In dir.GetDirectories
[code]....
This seems almost to easy to ask, but I must be missing something simple.I've added a folder in the project explorer, by right clicking>add>new folderBut when I run under debug, I am unable to save to that folder as it's not in the debug folder, I get:"A Generic error occurred in GDI+"In this code, the first line saves the bitmap fine (in the debug folder), the second line fails with the above alarm..
"vb"
If Not value Is Nothing Then value.Save(Application.StartupPath & "Image.bmp")
If Not value Is Nothing Then value.Save(Application.StartupPath & "ImageImage.bmp")
[code].....
how can i change the owner of folder
this will Explain
i got code that change the access to the folder and it's work but not with all folders
I posted this on the Deployment forum, but you guys reply so much faster
Quote:
How can I create a folder on my Application Installation Path upon installing my application?
I'm in the mid of creating a program that will get the security permissions of a certain folder/s but some properties of the security permissions of a certain folder I can't query or get the values. I'm using VB.NET 2010This what I want to get in every permissionApply to:This folder and subfoldersThis folder, subfolders and filesSubfolder and files
View 2 Replieshow to get the names of all the files in a folder (lets call it folderOne) ?
View 3 RepliesHow can I write ProgramData path?
[Code]...
Im trying to make a game launcher, and I want to have it first see if there are updates. I know this is a really simple problem, but I can't figure it out. This is the code. I want it to read the link.txt and version.txt in the same folder instead of C:/ Oh and make it so it unzips the update into the same folder, and replaces the old files for the new ones.
[Code]...