Making Dll With Some Variables?
Oct 28, 2010
I have created a project to update my applications; it is simply a form, with a progressbar and some other fancy stuff, which will check for updates via FtpWebRequest and download files if necessary. I have code it so that in order to use it for other applications I only need to change the ftp folder address and the .exe name for the main application to be started.
So the question is. Is there a way i can put that project in a dll so that I can simply pass it to my partners without having to pass the source and obviously have some way to change the ftp folder address and the .exe name like some kind of properties�.
View 8 Replies
ADVERTISEMENT
Mar 15, 2012
I know the title seems pretty trivial but i have an issue and i can't seem to get round it, i have the following code within one sub procedure..
Dim X, Y As Integer
X = 32
Y = 285
[code]....
View 2 Replies
Jan 28, 2010
How can i make variables stay true even after i close my program so on next run there still true?Heres the Code i am using to set the variable (if it helps) :
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim Activated As Boolean
If Activated = True Then
[code]....
BTW this is to check if the product has been activated or not.
View 3 Replies
Dec 11, 2011
Last year (2010) I came across a FANTASTIC command that allowed me to take a string of variables with a common delimiter and break it all back out into separate variables (possibly an array) with one statement.
[Code]...
As long as the delimiter was a unique specifiable character, this one-statement command could break it out into elements. my memory and point me in the right direction.
View 2 Replies
Sep 27, 2010
I have code, shown below, that works all except for 1 thing: The variables being passed byRef get passed, but once modified in the else section of the "if me.invokerequired" code of RecordData, the variables are never updated in the calling function. To reiterate, the calling function does not receive the updated data that is in the variables custid and amt.When debugging, I see the data change in the else section of "if me.invokerequired", but once it returns from the callback the data is missing.[code]
View 15 Replies
Mar 23, 2012
I define some global variables of a class as follows:
Private Class MyClass
Private var1 as Decimal
Private list1 as List(Of string)[code].....
But I found that after this form is closed, all above variables, var1, list1, list2 still exist in memory. I thought they should be collected by gc since the form is already disposed as I confirmed.
Add: I have monitored half an hour after the form is closed. But these variables are not collected by gc. I have an automatic update procedure on the form which uses above variables.Since the above variables still hold values, the automatic update procedure is always called which causes exception. (One quick fix is to check if form.isDisposed in update procedure. But I do not think this is elegeant. Besides, these variables occupy memory.)
View 2 Replies
May 16, 2012
I'm a huge music person (got my own lil record thing going) but I'm wanting to design a program that would make music in my way. I have a decent amount of background knowlege of Visual Basic and Java I'm just wondering how could I execute this whole project. The Project is making a MPC Sampler. MPC is a drum machine; a machine with buttons that once you press it that it will play a sound from a drum (ex: snare, kick, tom, ect.) . So I would want to make some pads on my program that each have their own sound. Total of 16 pads. Which the design wouldn't be hard to make nor would the functionality of it having the play back sound (in my opinoin it wouldn't be hard atleast). But the thing is I wanna map out these pads to number keys on the number pad or keyboard. I'm not so sure how to do that. But that's all the easy stuff...
Also finding information is making a sound directory. What I mean by this is that I want to make a User Interface that will open up a file directory of sounds and the user can select what "kick" or "snare" sound he may want for the kick or snare pad. I don't know how to do that or even know what to search; neverless I don't know if this whole project idea is a good idea for Visual Basic or another programing language.
Also LATER ON I am wanting to add a record and export function that alows users to..well...record and export their beat or instrumental ha. That doesn't seem too too complex (mainly due to the fact that all it needs to do is record the users key strokes and then show them and play the sounds, but obviously it would get more complex than that.)
Here is an image of one of many MPCs but one with a directory - [URL]
View 5 Replies
Jan 7, 2010
Does the memory used in declaring variables are reclaimed by the OS when these variables go out of scope?Does the memory used be released by setting thier value to nothing? if not, then how can I force the garbage collector to run or excecute at a certain/desired time..How about in Windows Forms..How can we make sure that the memory used in initializing and showing forms be released if those forms were closed?
View 13 Replies
Mar 8, 2011
Question 1: What is the difference between "Background Worker" and "Worker Pool" as indicated within the MSDN samples provided.
Question 2: I noticed while using, AddressOf _Function_, variables cannot be passed; what would be an efficient solution to this?
Question 3: While using multithreading is it required to invoke before setting variables, or only form properties?
Question 4: While using System.Net.Sockets is it safe/efficient to use Application.DoEvents while waiting for new data; or would be using a Do While loop be fine without DoEvents since the action would be multithreaded? Note: there can be up to 2000-3000 sockets in use at a time.
View 10 Replies
Jun 9, 2012
I'm new in .NET programming.I have a class Form1 that includes Button1_Click event.Button1_Click creates a multiple Text Boxies at run time)Here is the class:
Public Class Form1
Dim shiftDown As Integer
Dim counter As Integer
[code].....
View 3 Replies
Dec 14, 2009
I have text for example:11.12.2009 or 7.8.2004 and how to get three variables, a, b, c
a = 7
b = 8
c = 2004
View 8 Replies
Jul 10, 2011
Is it in VB.NET possible to use variables without the need of use DIM? Now I have to use the variables like this:
dim a = 100
dim b = 50
dim c = a + b
I want to be able to use vars in this way:
a=100
b=50
c=a+b 'c contains 150
I think in VB6 and older VB this was possible, but I am not sure.
View 2 Replies
Feb 6, 2012
This is the updated code:
sql = "INSERT INTO Strings (String_Name, Long_Text, Short_Text, Alternate_Text, Multi_String_ID, Lang_ID) VALUES (?,?, ?,?,?,?)"
Dim command = New OleDbCommand(sql, pConn)
command.Parameters.AddWithValue("@webStringName", "String_Name")
[code]....
I am trying to create and INSERT statement with and OLE adapter. I had it working without paramtersm but now I am trying to add parms and am having issues with the syntax.Here is the code so far...
command = New OleDbCommand(sql, pConn)
sql = "INSERT INTO Strings (String_Name, Long_Text, Short_Text) VALUES (?,?, """ & ptsShortText & """)"
command.Parameters.Add("@webStringName", OleDbType.VarChar, 250, "String_Name")
command.Parameters.Add("@webLang_String", OleDbType.VarChar, 250, "Long_Text")
[code]....
Was just trying to get the first two variables parametrized.
View 1 Replies
Jul 14, 2011
I used to add 2 strings variables and it works but when I tried using VB2008 it didn't work. [code]
View 9 Replies
Sep 30, 2009
I got a problem dealing with variables: I would like in an if-then-else following
If FZ1_KaskoTextBox.Text = 1 And Grundwert_Kasko <= 10000 And FZ1_BMComboBox.Text = 9 Then PraemieKasko_KFZ1_Var1 = 169.33 And PraemieKasko_KFZ1_Var2 = 169.33 Else
But the variables don't get filled?! is there any possibility to fill two variables within one "then" ...
View 5 Replies
Sep 22, 2011
s1nickelFrontImage is a declared variable, and I have others similar to it, they run up to 10.
how can I append/change the variable 's1nickelFrontImage1' to 's1nickelFrontImage2', and so forth, until LOOP is complete.(always increases by 1)
Do While ac1IMGPtoCCount > 0
ac1ImgPtoCString = ac1ImgPtoCString & s1nickelFrontImage1
ac1IMGPtoCCount = ac1IMGPtoCCount - 1
Loop
View 1 Replies
May 14, 2012
I have an ASP.NET application that I am developing. I'm using session variables within the app.In Firefox & Chrome, they all work.But in IE (ver 9), there's one variable that's not working. I'm not sure if it's a storage or a retrieval (or both) at this point. The variable in question that I'm storing is a List(T) type. It's the only one of it's kind that I'm using. Can't help but think there's a correlation there.One other old post mentioned the possibility that cache is causing the problem, but I didn't understand the answer very well.
Dim Rec_IDs As New List(Of String)
Rec_IDs = Session("Rec_IDs")
and
Dim Rec_IDs As New List(Of String)
[code].....
View 1 Replies
Mar 19, 2010
I have a CSV file with 35 fields. I have to read it into 35 variables. i know I can read the line, split it, write 35 assignment statemens. I am looking for an easier way (because I am lazy).
I'm looking for something like ReadCsvFile (A1, A2, A3, A4...A35) that will read a line, split it, and make all the assignments.
View 1 Replies
Jul 26, 2010
I actually came from VB6 and starting to learn VB.NET. I saw this line of code which I cannot understand how it works nor how it goes.
Private MAX_VALUE As Integer = (1 << 14)
View 2 Replies
Jan 9, 2009
We have a couple of applications at work that need a reference to the license server set in the User Variables under the Enviroment Variables on the windows xp client machines(system properties, Advanced, Enviroment Variables). The problem is that both applications needs a reference to the same variable name and you can't have two with the same name. What i intend to do is to create a simple windows application with a button for each application that deletes the variable item present, adds a new variable item with the value needed for that application to be able to run and then run the application itself. This is just a temporary fix until we get a more permanent solution. The 'GetEnvironmentVariable' class in vb is not able to add or delete a item, maybe the WIN32 API could do the job.
View 2 Replies
Jun 28, 2012
I have a structure type, as below
Code:
Public Structure StrFolder
Public isActive As Boolean
Public NameFolder As String[code]....
I would like to retrieve and print each variable name within a given structure (not its value). For example:
StrFolder(0).Name should print "isActive"
StrFolder(1).Name should print "NameFolder"
StrFolder(2).Name should print "URLIDNumber"
StrFolder(3).Name should print "DateOfFolder"
etc..
I would also like to know each type of an item within a structure. For example:
StrFolder(0).Type should print "Boolean"
StrFolder(1).Type should print "String"
StrFolder(2).Type should print "Integer"
StrFolder(3).Type should print "String"
etc..
View 5 Replies
Aug 23, 2010
I am writing an app to streamline my downloading and reading or manga, i usually download and manually extract each chapter into a specific location, based on what manga and chapter number it is. i then use windows picture viewer to read it.however, i can't work out a procedure that would take the manga name and chapter number out of the file name.i want to be able to pass the procedure a string containing the format that the file name is. e.g. "<title>_<chapter>_[IEM]" then i want the procedure to return the manga title and chapter umber into variables.for example, i pass the function "<title>_<chapter>_[IEM]" as the format string and [code]...
View 6 Replies
Jun 24, 2011
i have an int variable a = 8 and b = 2.How can I make variable a = 2 and b = 8 without using any other variable and making it generic so if you enter other numbers like lets say a= 10 and b = 5, you can still get a = 5 and b = 10?
View 7 Replies
Aug 11, 2011
We have these xml formatted .config files that come with all our ASP.NET programs. Well they have keys that need to be populated and I am unable to understand how to create a variable in xml and use it. The articles on variables in xml all seem to be talking about some other type of variable than I am familiar with. I am used to working in C or other programming languages.
I want to do something like
MyVariable = "SomeString"
<add key="Key1" value=MyVariable>
View 4 Replies
Feb 6, 2012
trying to figure out how to declare items here. here is the
[Code]...
View 2 Replies
May 10, 2009
Is there an easy way to rank variables. Currently I have to compare each one to each other then try to eliminate one. Is there an easy code.Say x y z are all numbers. To find the highest I have to
if x > y and x > z then ....
else y > x and y > z then....
else z > y and Z > x then...
this isnt' too bad with three variables, but if I have 10 or more it gets long... and then finding if x is first, finding what is the second highest is tough too
View 5 Replies
Jan 12, 2012
I am new to .net and I usually had a common file which was having information of username,server,password,IPS and fixed integers in php and asp classic which i used to include in all files so that i could use them in any page. Since I have come to know that .net has no include function. how i can do it in asp.net?
View 3 Replies
Sep 29, 2010
I'm sure this gets asked a lot, but I can't seem to find an answer for it. I want to have my Form2 change a variable in Form1.
View 9 Replies
Dec 2, 2009
how would i go by multiplying two variables..
ListBox1.SelectedItem.ToString() * Label1.Text.ToString() = Label2.Text
is what i have but it seems to not want to do it... [URL]
View 3 Replies
Mar 30, 2010
I have my own little tutorial about passing variables, and if you'll look at the code below, you'll see how I am passing the variable from one sub to the secondsub. Here's my question, how can I pass a value back from the 2nd sub to the 1st? So if I want to sum intA plus intB, and want to return that value to the first sub, how do I do that? [code]
View 18 Replies