Use A Package Class As A Folder With Same Performance?
Jun 7, 2010Is it possible to use a package class as a folder with the same performance?
View 7 RepliesIs it possible to use a package class as a folder with the same performance?
View 7 RepliesVB.NET, .NET 4
I am writing an industrial control front-end that has some "fancy" graphics to indicate the states of some machinery. For example, I indicate that some heaters are on by showing red wavy arrows emanating out from a picture of a heater. I accomplished this by creating a class that inherits from PictureBox and using a timer to advance the images:
Public Class AnimatedPictureBox
Inherits PictureBox
Private WithEvents Timer As New Timers.Timer
Public Property Interval As Double
[Code] .....
My question is "Is this an alright way to go about this or is there some obvious better way?" I'm not too good at programming and am worried that having several of these objects with their embedded timers taxing the CPU. I went with animated GIFs for some other animation stuff, but here, I wanted to be able to handle image formats that can handle a larger palette than a GIF (if that makes sense). In other words, when I tried to save some of my animations as GIFs, the image quality took an unacceptable hit.
I am trying to run the application created in the example at [URL] The code errors at the line dtsDataReader = dtsCommand.ExecuteReader(CommandBehavior.Default)
the error is A requested parameter does not exist in the package. I have checked everything that i can think of in the package Also when I try to run the package using the dtexecui utility I two errors "Error: SSIS Error Code DTS_E_PRODUCTLEVELTOLOW.
[Code]...
I am wanting to use an application to package all my files together into a setup package. I have tried InstallShield 2011, but when i click on Visual Basic .net wizard, it tells me I do not have Visual Studio.NET installed on my system. I am currently using VB2010 Express How can I fix this... or is there a better application available for packaging?
View 2 RepliesI have a very simple class that is located within my App_Code folder in my VS2008 web application project. I am trying to instantiate an instance of this class from my code-behind file. Intellisense does not seem to be seeing my class and I am not sure why. I am using VB.NET which I am admittedly not that familiar with as compared to C#. Perhaps I am missing something. I would bet it has something to do with something I am missing in VB.NET.Here is my simple class (for testing):
[Code]...
I created a simple VB application in Visual Studio 2010.My computer, which I am using to create the program, is Windows 7 Pro, and SQL Server 2008 is running on a Windows Server 2008 Enterprise, which I have full access to.
I want to click a button and have an SSIS package execute.I looked around on the Internet and found examples, but they do not seem to work for me.I try to add a reference, Microsoft.SqlServer.ManagedDTS.dll, as a few sites advise, but it is not listed when I go to PROJECT>ADD REFERENCE.
I also type:
Imports Microsoft.SqlServer.Dts.Runtime but all I get is a squiggly green line, which when hovered over states "Namespace or type specified in the Imports 'Microsoft.SqlServer .Dts.Runtime' doesn't contain any public member or cannot be found." Below is some code I copied from one of the websites and pasted in my button click event (the path is correct), but a get blue squiggly lines under "Package" and "DTSExecResult":
Dim pkgLocation
As String
Dim pkg As
New Package[code]....
What can I do to make the SSIS package run when I click the button on the Windows application a created?
I have an ASP.NET website written in VB.NET and trying to add MVC to it.
I managed to add controllers (to CS_Code folder) and make them running. However, I have to use some code from aspnet pages.
When I try to call method from page I ma having compile time error
public CustomerFrontend.DefaultForm DefaultForm { get; set; }
Error:
The type or namespace name 'DefaultForm' could not be found (are you missing a using directive or an assembly reference?)
Page directive definition which proves than namespace is correct:
<%@ Page Language="vb" ValidateRequest="false"
EnableViewState="False"
AutoEventWireup="false"
Inherits="CustomerFrontend.DefaultForm"
CodeFile="DefaultForm.aspx.vb" %>
After being spoiled for years with C# automatically setting the default namespace for new classes to match my folder structure, I'm wondering if there is any way to get VB.NET to do the same?
I've been aware for awhile that it doesn't do this automatically but I've never really researched alternatives. keep my VB.NET class namespaces in sync with my project folder structures?
How would I call a class from the following code?
'Calculate size of Desktop folder
Public Sub Ck_Box_Desktop_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CK_Box_Desktop.CheckedChanged
[CODE].......................
Has any one used BITs in VB.NET? If so, do you have code samples? I was looking at SharpBits but I have a VB project that I wanted to use BITS for. Is it possible to use it with my VB.NET program? (.NET 2.0) I was tempted to try to convert each class to VB.NET in the SharpBits.Base folder but figured I'd ask in case someone has headed down this route before.
In case you run across this question. What you can do is in the Sharpbits.Base folder (that you download from codeplex) there is a DLL you can reference in the Bin directory. You can add that into your references to access it. Marking Konrad as answer since he was kind enough to post.
I managed to get sharpbits working with some quick code which I pasted below for anyone who might stumble upon this question. Like I mentioned above add the DLL to your project.
Dim b As New SharpBits.Base.BitsManager
Dim mynewjob As SharpBits.Base.BitsJob = _
b.CreateJob("jobname", SharpBits.Base.JobType.Download)
mynewjob.AddFile("\servershareigfile.zip", "c:igfile.zip")
mynewjob.Resume()
You'll need to write some logic to check for the status of the job. Once it hits "Transferred" status you can then mark it as complete. This will write the file from a .bin to the file name you listed. Something that helped me was installing the Windows Support Tools (you can get it from a Windows 2003 Cd/DVD in the sup tools folder)and using Bitsadmin.exe to view the status of the job while debugging.
Can it give a problem if a file is saved this way in a program:
Public aPath As String = Application.StartupPath
Dim outfile As New StreamWriter(aPath & "" & accountfile1)
I have a Visual Studio 2005 project. Formerly, all our PC's and servers were 32-bit but we have rearchitected everything and purchased new hardware and we are running 64-bit servers. Here is my scenario. I would like to convert my 2005 project to 2008, maybe that will solve all my problems, if you think so tell me and I will concentrate on that. But when I tried to convert the project via the Conversion Wizard, I got 102 compiler errors and I think there would be more but that was the max. So I gave in and just worked on it in VS2005 on a 32-bit machine. The solution consists of five projects, one is a web program, one is a windows service, one is a library and the other two are install programs - one for the web program, one for the windows service. I want to install the Windows Service on a test machine which is 64-bit. When I tried to run setup.exe on that machine, I got this error:MsiInstallProduct returned '1638'
View 2 RepliesI am basically an EAI consultant and for my work I took an initiative to develop a windows based GUI whose functionaility would be to simply execute a couple of Oracle SELECT queries and display the results in the form. I took the help of my friend who is a VB.NET expert and he was kind enough to develop the complete code for me within a day (He isn't available now).
[Code]...
Is it possible to create an app. that collects info from the user, writes that info to a file then package another app with the file bundled with it.
View 1 RepliesI need a DLL to be available to my app at runtime but the app has to be standalone with no installer so I can't package the DLL and ship with the app.I am using the technique discussed in this thread: url..That works perfectly. My problem is that I need to do the same thing with an additional DLL and I can't figure out how to do it. It would be easy enough to create a "stream2" and a "raw2" but how do I return both of them from the function? Or how do I only return the one that is needed at the time?
View 6 RepliesI am basically an EAI consultant and for my work I took an initiative to develop a windows based GUI whose functionality would be to simply execute a couple of Oracle SELECT queries and display the results in the form. I took the help of my friend who is a VB.NET expert and he was kind enough to develop the complete code for me within a day (He isn't available now). The application did work fine and we tried to package into an MSI using the Deployment & Packaging Project option. Now when I installed the application on a different computer, it throws OraOps10.dll not found ! I also tried the Setup Wizard from the same Deployment & Packaging Project option but it results in the same error.
Please note the following:
-> We used .NET 1.1 and the backend database is Oracle 10g.
-> We downloaded the Oracle Data Access components for .NET from Oracle's website. The DLL file in the error message actually came with this installation.
When I am packaging the solution, I expected all the dependencies including this OraOps10.dll should have also been packaged. What could go wrong here? I don't think I can request my customer to install the Oracle Data Access components for .NET, in this case we don't even need a packaging feature. I would be grateful to you guys if this silly issue is fixed very soon.
I created a DTS Package for SQL Server 2000. I named this as DTS_Attendance. How will I run this using VB.NET 2005? What are the references I need to add?
View 6 Replieshow to package and deploy vb.net application.
View 1 RepliesPlease provide any affordable solution for packaging a VS 2008 deploy to a single *.exe.
If the solution also encapsulates and protect viewing then all the better.
If Class X is within the scope of Class Y, is X a subclass of Y?If Class A is a sub Class of B, then is Class B considered a super class of A?if Class C inherits Class D is Class D a superclass or parent of Class C?if Class E extends Class F then we can consider Class E a child of F?if Class G inherits Class H and is within the scope of Class I then who is the parent of Class G? Classes that inherits Class J and classes that are within Class J are all sub classes of Class J?
View 1 RepliesI was wondering if it is possible to bundle a .net framework client runtime (.net framework 4 to be exact). Because not many computers have .net framework 4 Installed and i don't want them to download from the microsoft site. As i checked the program itself is a redistributable package <link>. Now the problem comes how do i integrate this into my own installer so that instead of asking for a download it would just ask to install the framework and then install from the setup that will be included in the package. I am using a standard setup project. Using VS 2010 Pro.
View 1 RepliesI am getting one issue while working with DTS Package using VB.Net application. I am using the following code to execute the DTS package.
[Code]...
The DBA has created a DTS package to update a SQL Server 2000 table. We have a VB .NET 2008 application that needs to execute this package. We thought that having the application execute a stored procedure to do this would suffice; however, we are exploring a way to execute the DTS package programatically.
View 1 RepliesI created a ssis package in visual studio 2005. I want to execute the package from vb.net code. How can this be done?
View 1 RepliesI Just want to know is is possible to execute a ssis package from vb.net application?If so how to do that???
View 3 RepliesIs it possible to kick-off a SQL Server package from a VB.NET 2.0 app? Can a VB app talk to SQL Server - other than what is built into the ADO.NET API?
View 2 RepliesI am trying to make a debian package in windows. I have been searching for a few days and havent found much. Is there a way to make debian packages in vb.net/c#? is it possible with cygwin or msys?
View 14 Repliesi want to do a graphics project in Vb.net but have to use OpenGl Libraries . How do i download compatible OpenGl package and how to use them in my .net code.
View 3 RepliesI have a finished application that is ready to be delivered to my client, I am looking for an efficient way to add my database file (i.e. .mdb file) into the installer package, thats one thing..another thing is that how can I customise the installer package to always put that .mdb in the D: drive during installation..
View 3 RepliesHow do you password protect a zip package?
View 6 Replies