Publishing Final Version Of Software Generates ActiveX
Jul 19, 2011
I'm having some problems with publishing an application I constructed in Visual Basic 2010 Express Edition. My application is used to calculate uncertainty coefficients, as per ISO requirements for fluid flows. My application calls 4 COMs:
I've written a really simple launcher app for my team at work to use. However I wrote it in VB.net Express 2010 so its using .NET 4. I need it to be compatible with older machines that are using .NET 2 or maybe 2.5. I don't want to force upgrading to a higher .net if its not needed. And in some cases we work on old machines that can't be upgraded. My app is really simple and I'll post the code if needed. I am still a noob, my coding is ugly, and this is a quick and dirty tool.
Is it possible to change the application version without publishing the application? Because I'm going to make an auto updater which needs some version information to work, but I don't want to have an installer.
About publishing my program. there's a lot of files made after publishing unlike in vb6 when i converted it to exe file theres only one file. hmm how can i make just one exe file in vb9 is it possible? another question do i have to install the program after publishing?
I am trying to load an actixex component in a VB project which was made in Visual C++.n VBA it works fine.In VB6, when I try to load the component on the toolbox I get an "Error 35005"In VB2008 the component can be added to the toolbox, but when I try to place it on the form, the following error occurs: "Failed to import ActiveX control. Please ensure it is properly registered."
How to Resolve following Error in .netNon-modal forms cannot be displayed in this host application from an ActiveX DLL, ActiveX Control, or Property Page.
Is there any way to make my programs use a lower version of net.framework other than the newest version 4 that comes with VS2010?I use my programs within a closed network and there isn't an easy way for me to install any software since I'm not the administrator.
I'm trying to add functionality to my application that will disable buttons and checkboxes depending on what version the OS is when the app is launched. I made a test app to test this but unfortunately I can not get it to work. Here is my code:
'OS Check Dim osValue As Object osValue = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrent Version", "CurrentVersion", "5.2")
[Code]...
*Note - 5.2 is Windows 2003, 6.0 is Vista, 5.1 is Windows XP
I have created a license system for my application with MySql about half a year ago. What it would do is take the serial number and send it to my server if the key was correct it would return a 0 if its wrong the return value would be a 1.The problem was that when the serial number was entered correctly my program would create a "fake file" for example vb.dll in the system.And on run time my program would check for that vb.dll if the file exist it would skip my trial program and run the app as a full version. Half year later i think creating a "fake file" and checking for it on start up is extremely wrong and that's not very good security.How can i check the difference between a full version and unregistered version?
I have a XML file with the latest application version number, I have this loaded into a variable, how can i compare this against the application.info.version to see if it's the latest version??
I want my application to do something special :D.. jks
I just want it to compare assembly version to the file version something like this (btw i also want it if it is the same i want it to enable a button):
Private Sub StartSplash_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load If Assembly Version = File Version Then
[Code].....
so how do i detect Assembly & File version numbers?
Does anyone know how to implement in VB an algorithm for final differences that changes the network (the matrix) during the computation (decrease its dimensions)?
The program I am making contains many Form ,and I see that adding Forms increase the size of the final .exe . Is there any way to avoid making the large .exe ,as I have came to know that Large .exe is not good and also consume more RAM memory.
I've looked up this answer and changed 'build' option to embed the files but I still get a io file not found error. where exactly are my resources located? atm my code is this:
Private Sub TextBox1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown Select Case e.KeyCode
Dim Test_Output As System.Byte = 0 Try For test_value As System.Byte = 0 To 255 Test_Output = test_value Next test_value Catch ex As Exception MsgBox("Exception occurred: " & vbNewLine & "Test_Output is: " & Test_Output.ToString & vbNewLine & ex.Message) End Try
I have a BaseClass, a DerivedClass1 and a DerivedClass2 from a third party library. DerivedClass1 and DerivedClass2 both inherit from BaseClass.There's a ContainerClass, from the same library, with a member variable ActiveItem, which can be of DerivedClass1 or DerivedClass2, so it is declared as BaseClass.I want to know if ActiveItem is of DerivedClass1, as it can change in runtime without notice.If I do
Dim isDerivedClass1 as boolean = TypeOf(oject.ActiveItem) Is DerivedClass1
then I get a compile time error, telling me that ActiveItem can never be of DerivedClass1 type.I have tried several combinations of GetType and TypeOf but it doesn't seem possible to check this. I have also tried to declare an auxiliary DerivedClass1 variable and comparing their types, but haven't got any luck either.
Edit:The following code doesn't compile in vs2005 SP1.
Public Class Base Public x As Integer End Class Public Class Derived1
I have a system that has a gridview on one page with an Update Panel. On selection of one row of a gridview the system posts-back using that CommandName and CommandArgument to post the row that is selected, and then set a Session variable as the ID of that posted selected row. The other controls run Async correctly and the button in question is already registered using this on the RowDataBound event.
Dim gvRowSelect As GridViewRow = e.Row Dim imbSelect As ImageButton = DirectCast(gvRowSelect.FindControl("imbSelect"), ImageButton) ScriptManager.GetCurrent(Page).RegisterPostBackControl(imbSelect)
I would like to try and get this session on the button command and somehow within the master page, set a label to the current Session. On the imbSelect command the code is:
Dim cellSnapshot As TableCell = gvSnapshots.Rows(e.CommandArgument).Cells(0) Session("Snapshot") = cellSnapshot.Text
Within the masterpage is there anyway of calling a function after the Page_Load, and after it has resolved all Postback events?
I am having trouble trying to get my shared class final value
Class name : Encryption Public Shared Sub PassEn(ByVal PassTxt As String) Dim strText As String = PassTxt Dim salt As String = "61651616516161651615" Dim bytHashedData As Byte() [Code] .....
I am trying to call this from the call and get the return hash but when I try to make a global variable it doesn't allow it. How would I call this and get "HashValue" on to a textbox on my form.
Over the last few weeks i have been trying to add a final level of nodes to my treeview from databases.Within each database is the title of the next node and the key of the node, the child nodes are linked to the parent nodes by the row number/ID column.That is my scenario.
Now comes the next "challenge" At the moment in my code i have had to take out the parts that cycle through each database to add the children as it was causing an error that is described (Learn how to insert hyperlink) here: [URL].. So to overcome that i removed it (dumb approach i know) My justification is that i wanted to see if "my" code worked to add all levels of the nodes. But instead of having All the nodes that should be visible, i only have all the last ones: heres a 'picture to show'What i have below; Whereas all the parents should have children, all the children grandchildren and the grandchildren greatgrandchildren.
Dim roommates = From p In dbroom.Residents _ Where p.room = queryStudent.First.r.id _ Where p.building = queryStudent.First.b.id _[co de].....
But I still get the same error: The method 'First' can only be used as a final query operation. Consider using the method 'FirstOrDefault' in this instance instead.
I'm running three subs in turn (one for each stage of the process that I'm carrying out).The first two of them run a VB Process using:
myProcess.StartInfo.RedirectStandardOutput = True
[code]....
They then use the StandardOutput of their process to update one TextBox that I'm using for the output of all three stages.The final sub uses the shell because I can't get the EXE that I'm running with it to work properly using a process (this is not necessarily the problem though).The problem is that nothing changes in my textBox until the final sub has finished. The first two sub's output doesn't appear even though this should be just a linear process...