That works for me in an application but for some reason not in a service. I am using a namespace for the service and those seem to affect how variables can be accessed. The fix was making the variable shared. I'll try to figure out why later but it's working now.
Thanks for the help.
User Profile
Collapse
-
C# was my choice but the boss said vb. The setup is a generic service form calling a class
to run applicaitons.
I have several applications that use the same fields to insert data into a database. I created a separate class to do this. The initial idea was to pass a structure and that
didn't work at all. It would be easier on the eyes to see the structure passed and then manipulate the data instead of passing ten variables....Leave a comment:
-
Simple scope question
I come from a Java background so this a puzzle to me. I'm wondering why this happens in .net. Why do I have use the class name in order to get the variables value in .net?
Code:Public Class Form1 Public varPub as String = "PUBLIC" Private Sub Main varPub = "PUBLIC" subClass = New SecondClass() subClass.IsIT() End Sub End Class
-
Installer Class VB.NET
Is it possible through an install to run a script to disable a service and then install the files in VB.NET?
I've tried using an installer class with the custom actions and that is not working. The files are installing first and then the custom action runs. I've used message boxes in the code, instead of a script, to see when the files are actually getting written vs the script running.
Code: ( text )
... -
Custom Deployment
Is it possible through an install to run a script to disable a service and then install the files in VB.NET?
I've tried using an installer class with the custom actions and that is not working. The files are installing first and then the custom action runs. I've used message boxes in the code, instead of a script, to see when the files are actually getting written vs the script running.
Code:Public Class TestInstaller
-
-
It helped. The default for copy to output directory is "do not copy". Changing that to "copy if newer" solved the problem....Leave a comment:
-
That's exactly what is happening.
here's the full error message
Could not load file or assembly 'clsLog, Version=1.0.0.0 , Culture=neutral , PublicKeyToken= null' or one of its dependencies. The system cannot find the file specified.
The file is there. I get rid of the problem by removing the reference in the calling program and adding the reference back through project -> add reference.
It just seems...Leave a comment:
-
Two ways
Give the button an attribute of card. Match the card attribute.
Make a card array and assign each button a card in the array.
if the two buttons match the same card then there's a match.
Use some OOP so the code isn't being re-used....Leave a comment:
-
Updating VB dll
I'm unable to update a dll file without breaking the program that calls the dll.
I've referenced the dll file and I'm not sure what I'm missing.
The error message is There is no source code available for the current location.
The calling program works fine if I re-add the dll reference but not if I just deploy a change to a dll. -
-
dynamic array
Is there a way to have a dynamic array besides the redim statement. Is there something in vb.net that is the equivalent to Java's ArrayList? -
The first form is the start up form of the application. Closing the startup form closes the application.Leave a comment:
-
try http://www.connections trings.com/ for the connections. The hard part is reading the database. Once you've read that then you just assign that data to the textbox, combo box, etc.Leave a comment:
-
It doesn't. I know how to make the connection to the database but just not dynamically getting what odbc connection the user has. The connection is not uniform. Each connection can be named differently. The connection is going from a pc to a mainframe db2....Leave a comment:
-
I'll assume your app is exposed to the web and not sure exactly what you're worried about or trying to protect against. Security from hacking comes in layers and just isn't about where the sql statement is....Leave a comment:
-
odbc connections in .net
I have an application in .NET that needs to retrieve the ODBC connections on the pc. VB6 had a way of doing this with SQLDataSources. System.Data.odb c doesn't handle this. Is there a way to do this in .NET?
No activity results to display
Show More
Leave a comment: