Forms :: Accessing To A Folder?

Jul 5, 2009

how to access to a folder created inside the project from the code.i want, once the program installd in the machine it access to that folder and then access to the files which i want.i tried this : My.Application.Info.DirectoryPath() & "Docsa.docit works well in the developpment phase, but once the application is installed, it doesn't work

View 3 Replies


ADVERTISEMENT

Accessing Desktop Folder From Code?

Dec 29, 2010

I'm writing an application in which the user can select files from a directory structure. My problem is that I only have the C: drive and a D: drive. I also need to be able to provide access to the "Desktop" directory structure. How can I add the Desktop directory structure to a "Directory" control? I basically need something like Windows Explorer.

View 9 Replies

Creating And Accessing An Environment Folder?

Jun 6, 2011

I have written a data analysis program and I want to keep a list of recently accessed data files. I have kept this list in a text file in the same directory as my .ese file which is installed in a subfolder in my programs folder. But in Windows 7, it is not possible to write to files in the programs folder without assigning privileges to that folder which I found confusing to do. I would rather not subject clients to this process. It seems like a good place might be in one of the user folders. But I have no idea of how to go about establishing a path to such a folder in code. I thought it might be possible to identify an environment path such as %userapps% or some such thing that would work in both Windows XP, Windows Vista, and Windows 7. I would also like to generate a .log file in the same directory to aid in debugging.

View 3 Replies

Accessing Printers And Faxes Folder On A Network Machine In Asp.net

Oct 8, 2009

From my vb.net code I am trying to set a printer name for the crystal reports printing

rpt.PrintOptions.PrinterName="johnKingHP LaserJet 2200 Series PCL"

But when I go to windows-->Start--> Run and enter JohnKing

It is showing me Printers and Faxes folder and Scheduled task folder. But when I open Printers and Faxes it will show the adderess as Printers and Faxes on JohnKing.

From my web application I want to sent the Printer name is the name shown above.

View 1 Replies

VS 2008 Get Username Accessing File With Folder Monitor?

Aug 27, 2009

How to use Folder Monitor (or something else) to get the username along with folder activity?

View 1 Replies

Accessing Controls Between Forms?

Sep 4, 2010

I have a thread running on a child form, I want to activate a control on the parent form but cannot. It works fine if It's done from the child forms UI thread:

(FormMain.SetControlPropertyValue(FormMain.RBSQL2005, "Checked", True))

but not from a thread running on the child form:

Public Class FormRestoreDB
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim t = New Thread(AddressOf UpdateListView1)

[code]....

View 2 Replies

Accessing A Forms Html Programatically In Asp.net?

Nov 26, 2011

If I have a form called index.aspx and I want to set the background colour programatically how do I do such a thing? Like if I wanted to set the pages background by calling a method called Changebackground? [code]

View 1 Replies

Accessing Labels From Different Forms&threads

Feb 5, 2009

Recently i was trying to access the labels of main form (Form1) from a thread that was running on the other form (Form2), and I have noticed, that the label.Text is not changing.Form1 code - after the main Form is loaded I launch the second Formular, and the method on it : [code]There is a sample code attached to show how is it working.Is there any possibility to change the label values on the Main window?Peter.

View 2 Replies

Forms - Accessing Declared Form From Another

Jul 18, 2009

Basically what I need to do is change a textbox on Form1 (AKA mainwin) from Form2 (AKA loginwin) using data that is inputted into Form2. I've done this before with applications by declaring Form1 in Form2, but this time I just get a NullReferenceException error. Here's the code I'm currently using for Form2. Maybe someone here can tell me why it's not working. [Code] I can't figure out why it's not working. I've used this same method before and it always worked.

View 1 Replies

Forms :: Accessing Folders In Application?

Mar 27, 2009

i have an application for which i have created help files which are html files. my pplication resides in a directory for which the system path comes out as c:Document and settingsvisual studio 2005crmscrmsindebugcrms.exeI have the help files put under the crms directory which has the bin as its sub directory.i.e. c:Document and settingsvisual studio 2005crmscrmshelpmain.htmlIn my application i would like to access this file and launch it in Internet Explorer. I dont want to hard code it as this will be deployed on a terminal server and therefore i would like to use a relative path. I searched on the net and could only find solutions that used Application.StartupPath or few others which point to the exe file.

I tried extracting the path before that and managed to get a substring which held contained c:Document and settingsvisual studio 2005crmscrmsTo this appended the helpmain.html, i tried launching the file as followsSystem.Diagnostics.Process.start("iexplore",s);where s, stores the appended string. This is the error i get, cannot open file at location:Document%and%settingsvisual%studio%2005crmsc rmshelpmain.htmlIts not liking the space in the path, is there anyway to resolve this.

View 4 Replies

Forms :: Accessing Objects At Runtime?

May 24, 2010

I need to dynamically access a bindingnavigator, is this possible? I basically want to have code in my Base form which enables or disables it's descendant's menu buttons depending on access rights.

View 2 Replies

Forms :: Windows Forms App Copy A File To A Preset Folder?

Jan 9, 2012

a program and i need to have a button put a file into a folder, i know how the button works i already have it doing some other stuff. i just don't know the code to copy and past it to a folder.

View 1 Replies

Forms :: Accessing MS/Word Document Properties?

Nov 1, 2011

I am trying to access MS/Word document properties without opening the file in Word. Right now I have an app that reads the document properties but it has to open the document in word. This makes it run very slowly and also makes it susceptible to crashing if the document is corrupted. In Windows Explorer, you can right-click on a word document file and select properties. The ensuing dialog box contains, in addition to the usual information, two additional tabs labelled "Summary" and "Custom" that correspond to the same tabs in the dialog box you can open from File/Properties menu in Word. I know windows explorer is not opening the document in word because there is no instance of word.exe in task manager and because it has no difficulty in obtaining this information from the file even when it cannot be opened in Word because the document has become corrupted.If anyone could help me figure out how to read custom and built-in document fields (properties) from the file without opening it in Word,

View 1 Replies

Interface And Graphics :: Accessing Controls Using Multiple Forms?

Aug 28, 2008

I don't know the best way to use multiple forms in VB, but I have created a problem and I'm not sure where it came from or how to fix it.

Background: I start the program at Sub Main. This is the main function:

Code:
Module modFunctions
Dim frmD As frmDAQ
Dim frmT As frmTrendView

[Code].....

it works, but I don't want to have to change the entire project.

View 1 Replies

VS 2010 Accessing Group Boxes From Multiple Forms

Jul 23, 2011

I have written a code and tried linking up groupboxes from my input form called input.vb and the output form called results.vb.

[Code]...

I have used the above codes to access groupboxes from both forms. However, at run time I get errors saying "InvalidCastException was unhandled" and below that it says "Conversion from string to DOuble is not valid". This error points to a value in a group box that is actually hidden or disabled.

View 9 Replies

VS 2005 Accessing The Controls Of Multiple Data Window(mdw) Forms

Oct 21, 2009

I have to make some automatization on a web server, I use Visual Studio 2005 Visual Basic Windows Console Application. I want to make a load/performance test of the web server, so I open several Internet Explorer instances, and I login the application, that is not a problem. But after that I have a mess on the page and I cannot make any more automatization...The composition of the page after the login is like this: I have the default form, another form and a multiple data window(mdw) controller, which dinamically can switches the forms on this part.

The problem is that I don't know how to access the controls of this mdw forms. I couldn't find much about this mdw controller and I am not an expert.

My code is here:

Imports System
Imports System.Diagnostics
Imports System.Web.Ui.Webcontrols

[Code].....

View 5 Replies

Create A Folder That Can Contain Forms?

May 12, 2012

Can forms be put into folders (inside Vb 2010) and still be accessed?For example.. the resources are contained in a folder inside the solution explorer...am i able to create a folder that can contain forms?

View 4 Replies

Forms :: Make Folder Path?

Aug 26, 2009

i added a folder in my project by using the solution explorer. now i want to include a couple of images there that i can use as a default image for my app. in my app i have a picture box which will:show a 'default pic' if the person doesnt have a picture yet. show an 'error pic' if the picture is not found.show the persons image located in the server.

View 3 Replies

Forms :: Work With Temp Folder

Feb 20, 2009

I hava a form app, that runs hidden, with just a notify icon, the goal is control worker schedule and alert them for some things they have to do.My problem is,when i open a form (with TopMost = True), it works if the user is admin of the machine or domain admin, if the user is "regular" user, the form just don't open or shown to the screen.I believe that it has got something to do with write permissions in the app folder. I have a contextmenu that works great, even restoring the hidden main form, it just doesn't show/open the other form, without any error.Shouldn't .net use the user $temp folder to write something? If not what's the best way for the app use the EnvironmentVariable("temp")?

View 7 Replies

Forms :: Combobox To Populate With Folder List

May 27, 2009

I have a winform that has one combobox. I want to populate that it with a list of folders in a directory. I thought this might be a common thing but I have not found any thing concerning this. For this example lets say the root folder is C:TestingFolder List

[Code]...

View 2 Replies

Forms :: Get All The Files Paths In A Selected Folder?

Feb 9, 2011

I want to display them in a listbox. I have gobbled together this

Dim theFolderBrowser As New FolderBrowserDialog
theFolderBrowser.Description = "Please select a folder for the download."
'theFolderBrowser.ShowNewFolderButton = False

[Code]....

get the actual path and then used that to get a bunch of mp3 files paths from a folder. However the above code gives me nothing in return.

View 2 Replies

Forms :: Navigate To A Local Folder Using Webbrowser?

Oct 22, 2009

I'm guessing there is a really simple answer to this but i've spent the best part of 2 days trying to get it to work and cannot figure it out.Basically, I want is the webbrowser to point to a local folder on a machine. A different one depending on who is logged on. The code I have so far is as follows.

Imports System.IO
Public Class frmFav
Private Sub frmFav_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim username As String

[code]....

I cannot get the URL value of the webbrowser (FavProgs) to take the value of directoryname. If I set the URL value in the properties for FavProgs it does what I want it to do perfectly.

View 2 Replies

Forms :: Check Whats The Highest Rev Number In A Folder

Dec 3, 2009

i'm trying to check whats the highest rev number in a folder (file names are 123456_rev01.*, 123456_rev02.*).

here is my code

For j = 1 To File.Exists("c: est123456" & "*" & j & ".*") = False
MsgBox("looking at rev" & j)
j = j + 1

[Code].....

View 4 Replies

Moving Modules/classes/forms To A Common Folder?

Nov 23, 2009

I have two projects

a.sln and b.sln they have their own classes, modules and forms.

As I work on solution 'A' I devise a class and save it in solution A's folder. As the class develops, I now find a need for it in solution B.

How can I move it from solution A's folder to my Common folder then link it into solution A and B.

Currently I am doing this manually, Moving then linking to it. Is there a way to do this withing the IDE

View 14 Replies

Forms :: Display List Of Files In A Given Folder ( Ordering Based On User)?

Nov 16, 2011

I'm new to the Vb.net. To display the list of files in the given folder, need to processing the files one by one based on the user given the order/arrangement in form based interface.

How can do this in vb.net 2005 or any suggestion.?

View 1 Replies

Create Websetup For Clickonce Type Windows Forms Application By Publishing It To Some Folder

Feb 28, 2012

Trying to publish a click once type app to a local directory and create a websetup with the published contents- so that i can give tat setup to install in two different servers. but as the publishing wizard takes a URL - separate setup is required for each server. Is there any way that i can create a single setup which i can use it in two servers..?

View 1 Replies

Accessing Word Tables Created In Word Templates / Accessing Existing Bookmarks In Word Templates?

Jun 30, 2010

Basically in visual basic 6 I could access word tables in existing templates with the code owordactivedoc.tables(1).select() where owordactivedoc refers to the active word document and tables(1) refers to the first table in the template.Trying the same code in VB 2003 just leads to errors. Secondly how do I access bookmarks or alternatively word variables.Furthermore how do one deploy web.services. For example the current program I am building is for another computer. Simply copying the web service to Inetpubwwwroot dont work because it is not picked up by the Internet Information Services program. I have to create the web service in vb2003 on the other computer change msconfig manually. Copy and paste the existing service vb file in the created folder replacing the empty vb file.

View 3 Replies

IDE :: VS 2008 - Setup Project : Adding Folder Structure To The Program Files Folder?

May 13, 2009

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 Replies

VS 2010 Creating A Folder Inside Temp Then / Extracting File + Opening Folder

Dec 12, 2011

How 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]...

View 5 Replies

Change Appliaction Folder Path From Program Files To Public Folder

Sep 27, 2011

how to change the install folder path in a setup and deployment project/Installer class from program files to C:usersPublic in windows 7 and allusers folder in xp.Want to add MVP with my name.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved