Can anyone tell me what the purpose is to adding items such as a
VBScript file or HTML document to your VB.NET project? Once you have
these things added, how to you access them and use them in your code? 14 1761
* copyco <co****@anon.co m> scripsit: Can anyone tell me what the purpose is to adding items such as a VBScript file or HTML document to your VB.NET project? Once you have these things added, how to you access them and use them in your code?
What exactly do you want to do with the files?
--
Herfried K. Wagner [MVP]
<http://dotnet.mvps.org/>
Website Address Changed!
copyco, Can anyone tell me what the purpose is to adding items such as a VBScript file or HTML document to your VB.NET project?
These files are commonly used in ASP.NET (web projects).
I will use an HTML document in Windows Forms projects to contain
documentation and/or readme files.
Having them in a Windows Forms project is also useful if your Windows Forms
project relies on the Web Browser control for its primary interface...
I'm sure there are other uses for them (read as "think out side the box").
Once you have these things added, how to you access them and use them in your code?
Really depends on why you added them. (web project, documentation, Web
Browser UI, other).
Hope this helps
Jay
"copyco" <co****@anon.co m> wrote in message
news:%e******** **********@news svr24.news.prod igy.com... Can anyone tell me what the purpose is to adding items such as a VBScript file or HTML document to your VB.NET project? Once you have these things added, how to you access them and use them in your code?
Hi Copyco,
As an addition to Herfried,
You can add everything to a Vb.net project.
movies, pictures, html.documents, xmldatasets.
If you are not intended to use them you can better not do that, it uses only
space.
Just my thought.
Cor Can anyone tell me what the purpose is to adding items such as a VBScript file or HTML document to your VB.NET project? Once you have these things added, how to you access them and use them in your code?
Herfried K. Wagner [MVP] wrote: * copyco <co****@anon.co m> scripsit:
Can anyone tell me what the purpose is to adding items such as a VBScript file or HTML document to your VB.NET project? Once you have these things added, how to you access them and use them in your code?
What exactly do you want to do with the files?
Well, I was thinking I might be able to dynamically edit the html
document and then export it. Or with the VBScript, pass some parameters
to it from my WinForm code and execute it. Is this possible? Or does
the VBScript have to be external to the project?
* copyco <co****@anon.co m> scripsit: Well, I was thinking I might be able to dynamically edit the html document and then export it. Or with the VBScript, pass some parameters to it from my WinForm code and execute it. Is this possible? Or does the VBScript have to be external to the project?
You can add it to the project, but in the output it must still remain a
separate file (not embedded into the application's binary).
--
Herfried K. Wagner [MVP]
<http://dotnet.mvps.org/>
Website Address Changed!
This is not new to VS2003. We added .doc files to VB6 project to ensure
that all information about a project was kept as one entity. Using this
allowed these documents to be under source control (better than relying on
people to do it themselves). A get latest version of the project would get
all info. This is the same for any type of file.
Think of it as simply a method to organize the data needed to create an
application. Even if the file is not compiled (as a .doc or .bmp/jpg would
be), those files travel with the project/solution.
Lloyd Sheen
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:ee******** ******@TK2MSFTN GP12.phx.gbl... * copyco <co****@anon.co m> scripsit: Can anyone tell me what the purpose is to adding items such as a VBScript file or HTML document to your VB.NET project? Once you have these things added, how to you access them and use them in your code?
What exactly do you want to do with the files?
-- Herfried K. Wagner [MVP] <http://dotnet.mvps.org/> Website Address Changed!
copyco, Well, I was thinking I might be able to dynamically edit the html document and then export it.
Explain "export it", HTML added to a project is going to be "external" to
the binary, which means you will need to add it to your setup project to
have it deployed. Alternatively you can set the "Build Action" to "Embedded
Resource" to have the HTML file embedded into your executable, which means
you may then need to "export it" to a file, to actually use it. The Build
Action is available from the properties window when you select the file in
Solution Explorer. You can use a ResourceManager and/or ResourceReader to
get at the embedded file in your executable.
Or with the VBScript, pass some parameters to it from my WinForm code and execute it. Is this possible?
You could use either the COM Script control, or Process.Start to exectu
Or does the VBScript have to be external to the project?
You could have the VBScript embedded in the executable like you can an HTML
file.
Hope this helps
Jay
"copyco" <co****@anon.co m> wrote in message
news:5h******** **************@ newssvr11.news. prodigy.com...
Herfried K. Wagner [MVP] wrote:
* copyco <co****@anon.co m> scripsit:
Can anyone tell me what the purpose is to adding items such as a VBScript file or HTML document to your VB.NET project? Once you have these things added, how to you access them and use them in your code?
What exactly do you want to do with the files?
Well, I was thinking I might be able to dynamically edit the html document and then export it. Or with the VBScript, pass some parameters to it from my WinForm code and execute it. Is this possible? Or does the VBScript have to be external to the project?
Hi Copyco,
I think that I start to understand what is the basis of your question
With the VS.studio IDE you can make perfect classic HTML websites.
Therefore you need things as javascript, css, vbscript and of course HTML
files.
Cor
Jay B. Harlow [MVP - Outlook] wrote: copyco,
Well, I was thinking I might be able to dynamically edit the html document and then export it.
Explain "export it", HTML added to a project is going to be "external" to the binary, which means you will need to add it to your setup project to have it deployed. Alternatively you can set the "Build Action" to "Embedded Resource" to have the HTML file embedded into your executable, which means you may then need to "export it" to a file, to actually use it. The Build Action is available from the properties window when you select the file in Solution Explorer. You can use a ResourceManager and/or ResourceReader to get at the embedded file in your executable.
Or with the VBScript, pass some parameters to it from my WinForm code and execute it. Is this possible?
You could use either the COM Script control, or Process.Start to exectu
Or does the VBScript have to be external to the project?
You could have the VBScript embedded in the executable like you can an HTML file.
Hope this helps Jay
"copyco" <co****@anon.co m> wrote in message news:5h******** **************@ newssvr11.news. prodigy.com...
Herfried K. Wagner [MVP] wrote:
* copyco <co****@anon.co m> scripsit:
Can anyone tell me what the purpose is to adding items such as a VBScript file or HTML document to your VB.NET project? Once you have these things added, how to you access them and use them in your code?
What exactly do you want to do with the files?
Well, I was thinking I might be able to dynamically edit the html document and then export it. Or with the VBScript, pass some parameters to it from my WinForm code and execute it. Is this possible? Or does the VBScript have to be external to the project?
Ok let's say I have a VBScript file embeded in my executable. How would
I write the code that would execute the script? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Brad |
last post by:
I'm somewhat of a "newbie" when it comes to programming, so please bear with
me <grin>
Does this work well for combining dissimilar language web projects?
Using the "File" - "Add Project..." - "Add Existing Project..." menu items
in VS.NET?
Or is there a better way to add a "one-page data access" C# web project to a
VB web project?
I have completed the "Editing an Access Database with ADO.NET" walkthrough
|
by: nospam |
last post by:
THIS IS the DOTNETJUNKIES MESSAGE
-------------------------
We're Sorry
As many of you know we have recently launched SqlJunkies.com. We have
overhauled our runtime and will be using it on DotNetJunkies.com also.
--------------------------------------------------------------------------
YEP, DOTNET JUNKIES REDESIGN....
|
by: Ian Hinson |
last post by:
The pop-up (drop-down?) menu items that appear in both built-in and custom
menubars since Office 2000 now sometimes appear "sunken" and by default are
not visible, unless the chevron is clicked at the bottom of the menu.
How does Office determine which menu items are visible, and which items are
sunken/initially not visible?
I've noticed this happens with my custom menus too, but can't figure out the
"rhyme or reason" that Office uses...
|
by: Raghavendra Mudugal |
last post by:
Hello Everybody,
We are creating a new project on Virtual Private Networking (VPN),
and it is decided to use VC++. I actually want to know that
is can be achived by VC#.NET or not. You all know how and what
level VPN can reach. If this is possible using C# then what are the
main namespaces i should use to which they play a main role
of the project.
Hope to receive all your valuable responses on this. will be waiting
|
by: Mark Poppers |
last post by:
I found a *.sln and an *.suo file which belong to my current project because the have the same name
"TestDatabase33....." as my project.
What is the purpose of these files ?
If I delete them accidentially: Are they re-created automatically ?
Why are they currently not in the project folder (where the *.csproj file is) but in the parant folder ?
Can I simply move them to the project folder ?
| |
by: TS |
last post by:
I cannot get this to work. I added an app.config to a project i reference
from my web application project (vs 05) but can see no way to access the
settings within it.
the other thing is that I expected this config file (.dll.config) to get put
in my web app's bin folder along with it's .dll file when i did a build, and
that didnt' happen either.
do I have access to the app.config in my project or is it worthless? If so
why can i add...
|
by: Alan Mailer |
last post by:
Again, I'm new to VB.net and there is something I need help with:
Like (I assume) many of us, over time I want to be able to create some
VB.net classes that I might want to use in more than one Project. So
let's say I've created a Folder called "MyVBNet Classes" to hold these
general-use VB.Net class files that I will eventually associate with
various Projects I create. Now let's imagine I've created a class
called "MyClass.vb" that...
|
by: 97612 |
last post by:
Purpose: Convet the project " ImageStone "(with source code) to a DLL
Platform: Visual Studio 2005 on Windows Vista
What I've done:
1. Create a empty DLL project and add all the source codes of ImageStone in the Header Files of the project(because ImageStone project has only header files)
2. Add "__declspec(dllexport)" in all the functions of .h file in the Header Files of project
3. Add a ImageStone.cpp file to the Source Files
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |