VS 2005 .NET Equivelent Of API Functions?
Mar 11, 2011
I've read that API function calls in .NET aren't needed nearly as much as they were in VB 6 as .NET can do so much more directly. So, I don't suppose there is list out there anywhere that details API functions and how you can accomplish the same thing in .NET without API?
View 5 Replies
ADVERTISEMENT
Mar 4, 2009
Is there a way to see exactly what the functions are doing. What i mean is there a way to see the class? I know what it does, i just want to know the code.
For example the function: Membership.FindUsersByName()
View 1 Replies
Dec 6, 2010
What I am trying to do is have a class where the functions of the same name are both instance functions and shared functions.
Public Shared Function Get...(byval xx as xx)
and
Public Function Get...
The Public Function uses a Property xx created in the constructor, whereas the Shared Function has the parameters (byval xx as xx).
View 1 Replies
Nov 30, 2010
I am using xml reader to read an xml file into a dataset and and then create some dataviews and bindingsources for binding combo and text boxes as such:
Dim folderName As String
Dim xmlFile As XmlReader
Dim ds As New DataSet()
[code]....
I don't know how to do the same thing I am trying something like:
Me.yearavgdomtxt.Text = CStr(ds.Tables("Property").Compute("AVG(DaysOnMarket)", Nothing))
No error but no result
View 5 Replies
Jun 17, 2010
I'm having a trouble with a function from a class and I need some help.I've just 1 webpage and 1 vb file. In the vb file I have something like this:
Public Class myclass
Inherits System.Web.UI.Page
<System.Runtime.InteropServices.DllImport("somelib.dll")> _
Public Shared Function function1(ByVal par1 As string _
ByVal par2 As string) As Long
End Function
End Class
[Code]...
View 5 Replies
Jun 23, 2009
I have a solution with 5 visual basic projects in it. Each project has an identical module with a few functions and constants - like handling our RS232 data, outputting events to log files, etc, etc..
If I want to change any of this common code, then I have to manually go through and change in each project. Is there a way to have a single module or class that's shared throughout the projects in the entire solution? I've considered creating and referencing a class library, but I'm likely to be making several little tweaks and changes to this "global code" and that method sounds like it could be just as awkward. Can I not just have a module that's visible to all projects, and compiled into each one seperately when the solution is built?
View 3 Replies
Feb 11, 2009
I am trying to get a handle on SyncLock and multithreading, but I am having some trouble wrapping my head around exactly how it should be implemented. I have a Public Class Utilities with a many Shared Functions. I want to make sure that each function can only be executed when there are no other concurrent calls to the same function. So If I have 2 functions, A and B in a Public Class Utilities, what is the syntax so that a function "locks" while it is being executed, preventing any subsequent calls until the "locking" thread has completed?
CODE
Public Class Utilities
Public Shared Function A (ByRef i As Integer) As Integer
[CODE].............................
I know I need to wrap the statements of execution in a SyncLock block, but I am unsure of the scope of the parameter used with SyncLock...is it private to the function, class, etc? Can the same object be used to lock both functions if they are independent?
View 36 Replies
Feb 9, 2011
I am attempting to have my program select a file, create DataTables and then perform some other functions. I want to be able to open another file and re-do the same steps.The problem I am having is that I add columns to my Datatables and when I try and to open another file while one is already open I get a message that a column of xyz is already added how do I properly "clear my datatable" or perhaps that isnt even the correct approach? Here is the code I have that Opens a File
HTML
Private Sub OpenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripMenuItem.Click
[code]....
This was working at one time but after adding to my project I must have placed something in the wrong place inadvertantly or it has soemthing to do with adding columns,?
View 4 Replies
Jan 29, 2007
1) Is it possible to access the Excel mathematical functions without actually opening Excel?
I was thinking of through a DLL WinAPI call or maybe a delegate function or smaller program?
2) Does anyone know of a MS link or area that gives instruction on "how to" use every function of every Windows DLL at all?
Or for all those that Microsoft have chosen to document online at least.
View 1 Replies
Feb 19, 2009
While converting types, I have found myself using both VB functions and BCL Convert.To* methods.
E.g.)
Cstr() vs. Convert.ToString()
CInt() vs. Convert.ToInt32()
CDbl() vs. Convert.ToInt64()
etc...
Are there any subtle differences that should be noted?
View 1 Replies
Jul 1, 2011
I'm redoing a program for my company and my boss wanted me to created the entire thing through functions...
For the task I wanted to know is it possible to have functions within functions?
Sort of like in C where we would have nested structures?
Its a FILE I/O, with robot commands, moves and verifications....
So I would find the line in an excel spreadsheet where it moves, the coordinate, put it into an array.
Take the actual results store them into a two dimensional array...etc, etc....
Another function would eventually compare the results with the moves, and within a tolerance.
View 9 Replies
Oct 26, 2009
When you refrence a Function like this one:[code]You may want to be able to get more out of that, like this.[code]So how would I be able to add subs or functions onto a sub or function like that?
View 4 Replies
Feb 1, 2011
I have made quite a good library for calculating Math problems like Quadratic Equations and many other. Now I met a friend, and hes programming a little in VB, and we were thinking if it is possible to import my functions from C++ to his code, so he can call them, when they are needed, so we can make a calculator? How can we do that?
Edit: My friend is using VB.net
Edit: My library is organized in free functions.
View 2 Replies
Jul 27, 2010
I am not sure if i am using these in the correct manner. Basically i have an app that downloads a file from an ftp server (i am kinda cheating cos i am using chilkat). Now if i put the code directly in the form i can get it to do a progressbar.value = ... in it['s own sub.What i decided to do was stick my ftp download parts into a dll i created. Created a function within the dll and i have a return on that which returns the message 'file downloaded' or 'no file to download'. But can i return a value to update the progress bar as it goes when the code is contained in a dll? Or am i totally missing the point and how to use dlls?
View 5 Replies
Jan 6, 2012
I have a code which I call many times in my soft,its an external exe commandline file with arguments,Here is a piece of my code
Dim processgetver As New Process()
processgetver.StartInfo.UseShellExecute = False
processgetver.StartInfo.RedirectStandardOutput = True
[code]....
View 8 Replies
Jun 21, 2010
I want to ask help from you guys, about on how to use the listview functions in vb.net. I also just starting to study about the vb.net for my object-oriented programming. Please help me in writing the codes for a simple listview.
View 4 Replies
Mar 13, 2011
The following syntax is valid VB.NET code
Dim myCollection As New List(Of Stock)
myCollection.Add(New Stock(Guid.NewGuid, "Item1"))
myCollection.Add(New Stock(Guid.NewGuid, "Item2"))
[code]....
How can I accomplish the same thing in C#? I have tried...
myCollection.FindAll(bool delegate(Stock stock) {
if (blah blah) {
}
});
But it appears I have somehow structured it incorrectly as I get the following error. "Error 1 Invalid expression term 'bool'"
View 3 Replies
Mar 28, 2009
How do I check which functions are in a dll I don't who's contents are unknown to me? I am looking to use a certain function and I have a couple of dlls and I don't know in which one it is are its name. So i need to be able to show all function available in a dll and their parameters.
View 6 Replies
Nov 22, 2011
I'v got 3 functions that I'd like to combine into 1. There is only one line in each function that changes. can think of a few ways off the top of my head, but not sure which is "the best", or "proper way" to accomplish this.
Private Function CheckQuads(ByVal QuadNumber As Integer) As Boolean
Dim intArray(3) As Integer
Dim x As Integer = 0
[code].....
View 8 Replies
Dec 13, 2010
We know some functions in dll files and can use them but if we haw a dll file and dont know functions names. is there a way to get the functions name and their parameters
View 3 Replies
Jul 19, 2009
I am new to visual basic and currently doing my major project on sending sms using visual studio 2005. I want to create it in window application. I have search the net but I could not understand it. I have download some of the project that the net has found for me but when i test it the receiver did not received any message but the application have come out the popped out box saying "message send".
View 8 Replies
Mar 1, 2010
I have a DLL library, but I am not familiar with it. How can I get its usage in vb.net?
View 2 Replies
Mar 7, 2010
Does VB.net have anything built in for graphing functions? Linear, quadratic, cubic, log, and absolute value functions would be my main needs. I would want to display the functions on a graph whose x- and y-axes both go from -10 to +10, with grid lines.
View 1 Replies
Dec 22, 2009
I am fiddling with the code here: [URL] I had a couple errors when I copied/pasted it into my project. I dimmed a couple variables, now the squiggle lines are gone, but I'm not sure how to call the functions in the project? Do I use a Lable or a TextBox? How do i make this work?
[Code]...
View 7 Replies
Feb 6, 2008
I am working on a migration project of vb6 to vb.net, in vb they did some string actions with left, right, mid functions. How to achieve the same in vb.net.
View 3 Replies
Jun 4, 2012
How do you use the e.graphics functions? I have visual studio 2010 professional installed. I opened a windows form project, in the code window I type e., there's only End. or Enum., no e.! Do I need to import something at the beginning, or do I need to open certain type of project to use the e. graphics class of functions?
View 6 Replies
Oct 28, 2009
I have a visual basic file with a number of functions I want to use inside my XSL. I can build it as a dll and reference in my XSL project but I don't know how to reference it in my XSL file. I am using visual studio.[code]...
View 1 Replies
Feb 21, 2010
I was reading the lesson on how to use functions and subs and I'm having a bit of a hard time understanding this part:
[Code]...
View 4 Replies
Apr 4, 2010
I am currently working with an IPhone API which consist of about 40 pages of aspx along with their respective aspx.vb pages. They are all partial classes because the API continues to add other phone platforms to it. Currently I have them residing just in a folder. /API/0.1 and /API/1.0..How would I call the functions from those IPhone API classes without having to put them in the App_code? [code]How do i use that function in a webform? or do I need to put it in App_Code? [code]
View 1 Replies
Jul 20, 2009
I am trying to use the same form for several functions which means I have to change the properties. In order to do this, I was trying to put a select case in a module that could be recalled anywhere in the project.
As soon as I start a select case in a module, I get an error message "Error1Statement cannot appear outside of a method body." Does that require that it be in a form only and cannot be used in a module?
View 2 Replies