Create A New Project, Instead Of Keeping Hard Coded Paththe 'my Documents' Gets Replaced

Jun 15, 2011

Below is an snippet from my project template. I have some classes I want to link to in the project.One of my developers created the template and I copied it to my PC.It seems to work on his, but when I create a new project, instead of keeping the hard coded path the "my documents" gets replaced.I know this is a little cryptic, but I was hoping to flesh the question out with your questions.[code]

View 8 Replies


ADVERTISEMENT

Can Not Find XML File Unless Hard Coded

Feb 24, 2010

The simple website I am trying to build is a list of banks with their corresponding website. I also wanted the ability to add banks/website with the use of some text boxes and a button click event.[code]...

View 6 Replies

IDE :: Why Dir Path Is Hard Coded In The Generated Dll

Mar 9, 2009

am a build engineer of some VB6 and MSVS VB applications. Inotice the directory path (the location of source code, e.g. c:uild_viewsv70r3 ....)information is stored in the generated dll, exe.This gives us a lot trouble, because I can't use another path to build the dlls, otherwise the binary compare tool will say the dlls are different, due to embeded path info is different.We have parallel development, and the code has to be built in different machines, different paths. Is there a way to resolve this

View 2 Replies

Max Number Of Tabs Is Not Hard Coded?

Jul 30, 2011

I been using the following and it appears to work OK but I just noticed that it appears to allow no more than 32 tabs because of rgxTabs(31).

Is that correct? If it is correct, how can I fix it so that the max number of tabs is not hard coded?

Also, I believe SizeConst:=32 just means the array element is 32 bits long.

[Code]...

View 2 Replies

VB - Programmatically Checking A Hard Coded Checkbox?

Jan 18, 2009

OK, to make a long story short, programmatically generated data is taken back to the original page and the goal is to have this information cause checkboxes (hard coded into the aspx page) become checked.

Using feedback, the exclamation below confirms that I want the found control ctl to be checked:Dim ctl As Control
For Each ctl In form1.Controls

[code]....

I'm not sure what to put for XXX and my gut feeling is this is really easy. ading my question. I went through pages of search results on "VB Programmatically check checkbox" and found pages that should have had an answer that worked

View 7 Replies

Change The Word That Is Already Hard Coded Into The Loading Of The Form?

Jun 4, 2011

I need to change something that is hard coded into my application - Souds simple i know - however.....In essence what i need is a single word that will be interchangable and will be available straight away and the next time the application starts up.So need to change the word that is already hard coded into the loading of the form.Like an internal password system?

ps. i was thinking of something on the lines of a sub that finds and replaces line 'x' in the load sub. unless that is uber complex - so open to any and all suggestions but please keep in mind i'm not the greatest at code - only been teaching myself for 9 months (and learning from people here for 1 month)

View 3 Replies

Calling A Hard-coded Existing Method With Reflection.Emit In .NET

Nov 15, 2011

I'm designing a .NET-Type at runtime by using the Reflection.Emit-Namespace. Currently, I'm about to generate a method which invokes an already existing method in the generating class:

[Code]...

View 1 Replies

Asp.net - Merge Word Documents (Office Interop & .NET), Keeping Formatting?

Mar 25, 2010

I'm having some difficulty merging multiple word documents together using Microsoft Office Interop Assemblies (Office 2007) and ASP.NET 3.5. I'm able to merge the documents, but some of my formatting is missing (namely the fonts and images).

My current merge code is shown below.

private void CombineDocuments() {
object wdPageBreak = 7;
object wdStory = 6;

[code]....

I don't care necessarily how this is accomplished. It could output via PDF if it had to. I just want the formatting to carry over.

View 1 Replies

VS 2008 Editing Word Documents While Keeping The Original Text?

Jul 13, 2009

Public objword As New Word.Application
objword.Documents.Open(FileName:=ofilename)

^ Showing the declaration of the word document that i wish to edit.

Dim oDoc As Word.Document
objword.Visible = True
oDoc = objword.ActiveDocument
oDoc.Range.Text = codes(j, 1) & " " & codes(j, 2)

This gets the document and adds text into it, exactly what i want it to do. But it replaces the whole document. I just want it to add text at the start of the document. Not replace the whole document.

View 3 Replies

DB/Reporting :: Hard-coded Email Message Send To Email Recipients?

Jul 6, 2008

how would i implement a way that i would not hard code the email message that the application send to email recipients? how will i also include email message formatting (text in bold, italic, etc.)?

View 2 Replies

Non Hard Code Way To Reference Public Documents Folder?

Nov 6, 2011

What used to be C:Documents and SettingsAll UsersApplication Data is now Win7 as C:UsersPublicPublic Documents or similar..This folder is not part of the Environment.SpecialFolders list. Is there another way to expose the above Public folder?I'm hoping you can programatically use that location for non virtualized read/write/alluser files.

View 1 Replies

Simple Inventory - Program Using Classes Hard Coded - Database Named "DATABASE" In Ms Access 2003

Sep 29, 2010

I want to create program in vb2008 express with ms access database. Can somebody help me so i can learn how to program using classes hard coded. I have learned vb6 before but it has a big difference on vb2008.

I have a database named "DATABASE" in ms access 2003 and the details are: Table :

EMPLOYEE(EmpNo, EmpName), DEPARTMENT(DeptID, DeptName), CATEGORY(CategoryID, CategoryName), SUPPLIER(SupplierID, SupplierName), ITEM(ItemID, Itemname), ITEMLIST(ItemListID, ItemID, ItemDescription), INVENTORY

[CODE]...

All the CAPITALIZED name are Table and all items inside the parenthesis are fieldnames. I don't know where to start on working on this RECORDS. I was able to understand visual basic 6 a bit, and i am trying to apply the coding to VB 2008 but all i get is errors. I am hopeless now and i need help to be able to start my programs. If someone can give me a sample code, i think i would be able to trace the line of code to be able to understand it. I am currently an inventory manager on the small company i was working with and i like to organize my record by using database.

View 1 Replies

Retrieve Code From A Vb Project Coded In 2005 Version?

Apr 24, 2010

I have a software coded using visual basic 2005. I don't have the 2005 version now and i need to edit that software. Is there any way to retrieve the code using vb2008 or vb2010? If not from where can i download the 2005 version? I need to do it at the earliest.

View 4 Replies

Create And Send An E-mail Within A Coded Ui Test?

Sep 16, 2011

I need to create code to send an e-mail within a coded ui test and cannot get anything to work. I seem to be having trouble getting the correct Import. We use Outlook.

View 3 Replies

Keeping Tables Cached On Server In Project

Mar 7, 2010

I have an ASP.NET project which is a front-end to a database. In addition to the large tables, the DB contains a few small tables to help normalize the larger tables with common values. I have a VB.NET project which loads the smaller tables into memory, using "Shared" (i.e., "static" in C#) member variables, and uses them. I have a call to load the tables in Global.asax - Application_Start. This works for a while. That is, Application_Start runs when I first run my project, loads the cached values, and will correctly keep them in memory for a while.

What I'm seeing (when running my project via Visual Studio 2008 Debugger, hosted locally) is:

A) The Application_Start code will run more than once. Not in a row, but after the user has navigated to some other pages, I'll see (my breakpoint in) another call to initialize the cache, coming form Application_Start. Is it expected?

B) The "Shared" variable that was set to True when the cache was initialized is now False again (which should only happen when the class is first loaded). Similarly, all the data that was chached is no longer present. That is, it looks like VB is unloading all the Shared members. Is this expected?

View 1 Replies

Project That Requires Me To Scan Documents Into Our Application?

Apr 24, 2009

I have been tasked with a project that requires me to scan documents into our application. I was hoping a few of you had experience with coding them for your project and could point me in the right direction.

Here are my questions:

1. Do I have to choose a specific scanner such as Visioneer to code for or can I do I code for twain and assume all scanners that are twain drivers can run my software?

2. Should I write the code in VS2008 to obtain the scan or should I be using the software it comes with? I've found a few bits of code that seem to work but I'm not if I'll just be rewritting something I don't need to.I'm not looking for my work to be done for me, just a push in the right direction.

View 2 Replies

IDE :: Make Project Forget Open Code Documents

Feb 10, 2011

My Visual studio crashes every time I open a specific project, because before closing VS2010 last, I forgot to close a .vb file that I had drug to my second monitor. The issue is likely related to floating tab wells in the VS Productivity Power Tools extension.now when I try to load the solution it will progress part way, but when it tries to reopen the documents that had previously been open, it crashes hard.anyway, I am trying to find out where VS stores info about the code documents that were open at last project close, so I can clear it out.does anyone know where VS stores info about the previously opened code documents? I've checked the project and solution files but neither appears to hold this info. I know that the location must be within the project however, since getting a new version of the codebase from source control corrects the issue (but I still have code to check in...)

View 7 Replies

Create Directory In Documents?

Apr 17, 2011

Dim dir As DirectoryInfo = New DirectoryInfo(Environment.SpecialFolder.MyDocuments + "MyApp")

If dir.Exists Then
Else
dir.Create()
End If

I tried the above code and also this: Dim dir As DirectoryInfo = New

[Code]...

View 10 Replies

Create A Database That Manages All Documents

Jul 8, 2010

I am creating a program for my company. My goal is to create a database that manages all the documents that we have and the training progress of all the employees as well as to do some Computer Based Assessments that prints the results etc. I have watched allot of the videos posted on this website but was hoping that someone could help me with videos that explain how to play a sound when a button is pressed - How to open up a pdf form from a button or label - How to open a existing OFFICE documents like word and excel. this would help me allot - Also advice in doing a report that can be printed from the answers on the test.

View 3 Replies

Create Notepad Documents In A Specified Directory?

Aug 11, 2011

I'm developing a little something but I've run into a bit of a wall. I need to figure out the code to to create a folder, a text file in that folder, and then to write specefied information to the textfile. Now I know the code to write to an existing textfile, however, i need to figure out how to create a folder and a text file with a title the users can make.

View 12 Replies

Create Versioning Of Files Like Words Documents?

Jan 5, 2011

I have trouble trying to create versioning of files like words documents. I would like to edit a word document and save it with the same name but I' like to choose between the modified last one with the original unmodified.

View 13 Replies

Create An Application To Copy Pics From Camera To Hard Drive?

Mar 7, 2010

I�m trying to create an app to copy pics from my camera to my hard drive. Problem is when I connect the camera it shows in �My computer� but not as a logical drive. Is there any way I could access my pics using vb.net without the need for the camera SDK which is not available for my camera model.

View 2 Replies

Get The Page Documents Counts For Documents Stored As Tif Files

Feb 2, 2010

I've been asked to get the page counts for documents stored as tif files. What I have now is looping through our third party software to open them and then get the page count. I can't stop the image from flashing and it is very slow. Does anyone know of a way to loop through them quickly and can the page counts (one image can have many documents)?

View 5 Replies

File I/O And Registry :: Keeping File With Project?

May 15, 2011

...VB express... I recently got a new computer, and then realized that a text file that I opened and read from in one of my apps was not there anymore.I copied the project from my old computer but forgot about the text file. the project's file pointed to it's folder, and the text file's path was somewhere else Is there a way I can keep a file with a project when it's compiled, and then how do I set the path in the app so that the file is found when I want to read it?

View 12 Replies

What Has DataSysDescription Been Replaced With

Jan 21, 2009

what I could use to display some help for a function (or subroutine) in the popup that appears when entering said function in the VS2005 IDE when using VB.NET. I discovered later that you could use the XML code documentation to write the description. Just type 3 single quotes (''') on a new line directly above the function you want to document and press return. The IDE creates a comment template. Just enter your description text within <para></para> in the <summary> section and it will show up when the intellisense dropdown is displayed for your function.

View 1 Replies

Form Replaced By A CR Report?

Nov 15, 2011

By accident I named a report like a form that i already had example:

Form Name: CheckIn
Report Name: CheckIn

And know I cant use the form, anyone know how to get back the code from that form

View 1 Replies

Make The Current Name To Be Replaced With The Suggested Name?

Jul 5, 2009

I'm Using resharper 6 nighty builds and VB.net. I've a big medium project with multiple files that don't follow the code style conventions of my company.I've configured resharper with my own convenctions and It suggest to me the right name for each variable (perfect!).But I can't find any automagic way to make the current name to be replaced with the suggested name.

View 4 Replies

Create A "virtual" Folder On Many Hard Disks?

Apr 9, 2011

Is it possible to create a folder that spans over many hard disks?in such a way that the application considers it as a standard folder but the data are distributed on more than one hard disk?

View 3 Replies

Why Cant Dataset Not Be Replaced By Datatable Reading And Writing Xml

Sep 27, 2011

Dim ds As New DataSet
Dim xmlfile As XDocument = XDocument.Load("devices.xml")
Dim reader As XmlReader = xmlfile.CreateReader

[code].....

View 14 Replies

Use Of .Include To Select From An Association Table Which Is Replaced By Navigation Properties

Jul 14, 2011

In my database I have 3 tables Act, ActVisi and Visi. Table ActVisi is an association table between Act and Visi tables. In My EF4 data model the association table ActVisi is replaced by a many to many navigation property in both Acts and Visis entities.I want to select the entries whose Visicode=1 (in the ActVisi association table). I have tried the query below and it works when I remove Include("Visis").Where(Function e.Code = 1) but I am getting all the results. How can I make the below query work. I suspect that my lambda syntax in vb is incorrect.

[Code]...

View 1 Replies







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