Make A Root User Interface That "calls" The Functions And Subs Remotely?

May 25, 2010

I have an application that I am reworking. It has many reports and a pain to compile and roll out.I'd like to make a root user interface that "calls" the functions and subs remotely.I was concidering pulling them and making formless exe's of them, passing the needed criteria via command line. Yet still be able to update and control them.

View 4 Replies


ADVERTISEMENT

VS 2010 Add Subs / Functions To Subs / Functions?

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

Excel Maths Functions And Calls To All DLL Functions Documentation?

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

Use Functions And Subs?

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

Insert Subs And Functions Into Vb?

Jun 14, 2009

I don't mean to sound unintelligent, but is there a way to insert your functions and subs into visual basic and call them from and program made in visual basic? I don't want to have to put the code in over and over again.

View 8 Replies

Shared Functions And Subs?

May 21, 2009

I was wondering how to implement a vb script file with functions and subs that can be used in all code pages of a project. Similar to the old VB 6 bas files.

View 2 Replies

Sum Of N Numbers Using Subs And Functions

Apr 7, 2009

Option Explicit On
Option Strict On
Public Class frmMain
Private Sub btnSub_Click(ByVal sender As Object, _
ByVal e As EventArgs) Handles btnSub.Click
Call CalcSumSub(CLng(txtN.Text))
[Code] .....
I'm not receiving any errors or any thing I just need figuring out the logic in this program. The Program Needs to Accept Input in One text box and adds n numbers together and displays the sum using only subroutines and Functions.
Attached File(s)
Assignment5.txt (4.49K)
Number of downloads: 84

View 4 Replies

Find The Root Of A Number Such As The Square Root, Cube Root 5th Root Or Whatever

Sep 23, 2011

For those of you interestested in mathematics you can find a root of a number in two different ways. Lets say you want to find the 5th root of 27.

[Code]...

View 2 Replies

Getting Progress Bar To Follow Subs And Functions?

Jun 2, 2011

Earlier I was working on a project, and I added a StatusToolStrip and the the ToolStrip I added a label and a progress bar. The label will say the current sub or function that is in progress and the progress bar will show how far along it is through the sub or function. I have tried this myself but I cannot figure it out as I rarely use progress bars.

An example of a code that I would like the progress bar to show would be like this:
Private Sub StopServer_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StopServer.Click
'Checks to give server notice
If My.Settings.warningmessages = True Then
Dim cmd As String = My.Settings.warningmessagetext(2)
[Code] .....

So while the sub is running the label would say "Stopping Server" and the progress bar would show how far along the sub is.

View 4 Replies

Should All Subs & Functions Always Be Inside A Class

Oct 4, 2008

This is very basic about the layout of classes, subs etc. 1. Should all my subs & functions always be inside a class? I haven't used classes too much before, mostly just a bunch of subs in a form file. Now I downloaded a sample program which I want to develop. This has all the code of the form inside "Public Class Form1": [Code] The code is an example of use of the ZedGraph library. It produce a simple window with one graph/chart. Now I want to develop this code with several tabs, a dusin different charts, file I/O and so on. I'm ok with most of the specific coding, but my question is on the general coding;

2. Should I continue my subs&functions inside this form? inside this class? inside a new class? Earlier when I've NOT been using class, I can make global variables by placing the "Dim" outside the subs. This does not seem to work within a class. 3. Should I avoid global variables all together, or how is this done without always passing arguments?

Also I will make more forms, for program options etc. 4. Should these forms be coded as classes? or just subs&functions in a form? Obviously I'm not well trained on the proper use of classes and have trouble to find this easily explained.

View 2 Replies

Create A .dll In VB Express With Multiple Functions And Subs?

Apr 15, 2010

I'm trying to create a .dll in VB Express with multiple functions and subs.

For the .dll program, I create a class module with:
Public Class Class1
Public Function ReturnOne(ByRef MyVar As Integer) As Integer

[Code]....

Upon execution, it tells me that it cannot find the entry point in the .dll.

View 4 Replies

Declare Some Global Variables For Use In Various Subs/functions?

Oct 21, 2011

At the head of a module, I wish to declare some global variables for use in various subs/functions.

What is the difference between.Dim x as string and Private x as string / Public x as string, and when would I use one over the other?

View 1 Replies

Keeping All Functions And Subs In Separate File?

Mar 4, 2009

When I code in PHP I usually keep my functions in a separate file functions.php, I am going to write a small function in VB, is it ok to keep all my functions and subs in the 1 file linke in PHP? will they be available in all my form code?

View 3 Replies

VS 2010 - Referencing Shared Functions And Subs

Feb 1, 2011

I am porting an app from VB6 and I run into problems with references to functions and subs. Basically, let's say I have 2 classes added to the project, like this.

Public Class OOOOO
Public Shared Sub BBBBBBB(ByVal FileName As String)
...
Call CCCCCC()
Call DDDDDD()
etc.
...
End Sub
[Code] .....

I had to make the BBBB() shared to be able to call it from another function AAAAAA() from another class PPPPP. However, I get error on the references in the BBBBB(), that CCCC() and DDDD() have to be made also shared (so instead of 1 error I got number of errors).
When I tried to make them shared as well, I got tens and tens of errors due to other references of both variables and functions.

View 4 Replies

Pass Parameters Of LINQ DataTables Through Functions And Subs?

Oct 30, 2011

How do I pass parameters of LINQ DataTables through Functions and Subs

View 1 Replies

Passing Subs And Functions With Varying Signatures Into A Class

Dec 28, 2011

I have a number of unrelated subs and functions that do various things on my server (e.g. Lighting control, data caching, server maintenance, etc). They are all in various classes which I have coalesced into a single solution.My goal is to create a single, simple interface which each of these disparate classes can be integrated and called from a command line interface. Instead of hard-coding a longish case statement which parses arguments and passes them to the various subs, I wanted to make a generic class which can be instantiated with a minimum of information and put into a data structure. Ideally, adding a new function would involve:

1.) Providing the function pointer (Delegate). The delegates will have various signatures. This is the crux of the question.

2.) Providing ancillary info such as the command-line callable name, number of arguments, argument types, etc.

I have a 100% working class called "node" which is basically a hierarchical tree of node instances. I can use this to simply organize function calls in related branches. All is working quite well.NodeFunctionDelegate(ByVal args As String) As String.The node takes the arguments passed to it by the command line and sends it as the "args" string as comma-separated. The delegate function then needs to know how to split up these comma-separated values, type them, tryparse them and etc. It then must return some string.It works, but it involves writing a middle-man function stub which can receive the argument string from the node class, do the parsing and type checking, and then call the destination function.My goal is to eliminate this trivial middle-man function. The problem is, I can't figure out how to create a variable-signature delegate for the node class.

View 9 Replies

Multithreading Efficiency (Reuse Background Worker Subs / Functions?)

Oct 3, 2011

I have an application that queries DHCP and pulls scope/subnet information. There are roughly 8k scopes on our network to query so reporting this data takes a little bit of time. I currently have this running on it's own thread and reporting to a progress bar so the applications doesn't seem inactive.

The DHCP api functions can report a total, a max read and a resume argument. This means that I can, in theory start 4 threads and have each thread read through 2k subnets, so it will only take 1/4 of the time to read all this data. Would I need to create four separate background worker handlers, do_works, runworkcomplete, report progress etc.?

View 3 Replies

VS 2008 Subs/Functions Intellisense Listing Values To Parameters Upon Using It

May 30, 2010

I'm almost sure that I've seen this somewhere, but I can't find it anymore. Or maybe I'm imagining it, which would'nt be strange either.

When creating a sub or function and adding parameters used when calling it.

-Is it possible to list the parameters that I can enter when using it somewhere in my code?

E.g.

Public Sub MessageMain(ByVal Message As String, ByVal MessageType As String (List of possible values for MessageType)) Same for example as when you have boolean values in a sub/function. As soon as you use that somewhere in your code intellisense will present you with True/False to select.

I'd like the same for parameters in subs or functions I create and calling them from somewhere in my code. Saves me the trouble of remembering which options are available for those parameters.

View 8 Replies

VS 2008 - Difference Between Public, Private, Protected When Declaring Functions And Subs?

Jul 19, 2009

i have have a few questions about the syntax of the lan.:

1) What is the 'Get' statement and when do you use it?

2) Whats the difference between public, private, protected etc... when declaring functions and subs.

3) When would you use the overrides property?

View 4 Replies

Asp.net - Legacy ActiveX Control Calls DLL Functions?

Sep 1, 2010

Hint: this one might sound complicated, because I am trying to give as much info as possible, but I suspect that I just want someone to tell me "yes, you are correct".On this legacy system, which dates from 2002, the user visits a web page and uses an RFID reader to read a tag number, which is then written to an input field on the web page.

The only s/w that comes with the reader is a custom DLL, nop .exe. The very sparse documentation insists that only MSIE be used and that all security relating to ActiveX be disabled.When I look into the source of the web page I see calls to functions in the DLL.Now, here's the fun part: I know zilch about ActiveX, I have to make a minor change to the DLL _but_ the VB6 source code has been lost, so I guess that I have to recreate the (seemingly very simple) DLL from scratch - this week.

Decompiling the DLL shows me the functions (locateReader, getTagVal, closeReader). However, by decompiling I can't really know the number or type of the parameters, nor the return values ... and if anyone knows the API they are refusing to share it, but basically it all seems to have been lost in the mists of time as companies went bust, were bought & sold, merged & demerged and the initial DLL might have been written by an external guy, but no one knows who.So, can I get the function params & type from the ASP page source?I see things like

Reader = new ActiveXObject("<dllName>.Reader");
Reader.locateReader();
tagVal = Reader.getTagVal();
Reader.closeReader();

I would say that none of the fn()s take parameters, that closeReader doesn't have to return anything; it looks like locateReader doesn't return anything either, so I guess that error handling will have to be in the DLL (loop forever with a popup demanding that a reader be attached; and getTagVal seems to return a string.

View 1 Replies

Hooking Another Program's Calls To Winapi Functions ?

Oct 22, 2010

I have been trying to build a game bot in vb.net.One of the main problems is getting access to the text the game prints on the screen so I have been trying to hook the games calls to the windows api drawtext and textout functions.I have been hunting for examples of how to set up a hook in vb.net for a long time without any luck.I have found it impossible to translate examples in old school vb, C++, and C#.For convenience's sake I would like to use the freely available deviare and/or easyhook libraries.

View 2 Replies

Send Data With Subroutine Calls And Functions

Oct 28, 2009

I am trying to send data and arrays using System.Object and System.Event. Lets say I have 4 pieces of data: date, y(1),y(2),y(3).

sub main(...)
Dim date,y(1),y(2),y(3) as integer
Dim obj as System.Object
Dim args as System.Eventargs

How do I organize obj with all the integer data above so I can send it to main2.

main2(obj,args)
end sub
Sub main2(obj as System.Object,args as System.Eventargs)
End Sub

And how do I apply this to (ByVal sender as System.Object, ByVal e as System.EventArgs). I am using VB.net 2005.

View 12 Replies

VS 2010 - How To Track Duration Of Functions Calls

Feb 15, 2012

In our VB6 applications, we added a few utility functions for tracking the amount of time spent in a function. We did this to track performance bottlenecks. Basically, how it worked was there were two utility functions:
StartTickCount() and EndTickCount().

You would pass the name of the function in each, and the functions would use a dictionary to get the tick count when StartTickCount() was called, and then subtract the tick count when EndTickCount() was called. This wasn't perfect because it didn't of course take into consideration that calls to get tick count takes time, etc, but basically it worked for our purposes. How to make sure to call StartTickCount() at the beginning of each function and EndTickCount() at each exit point:

Private Function SomeFuction() as String
' indicate the function started
StartTickCount("MyClass.SomeFunction")
' some logic that causes the function to end
[Code] .....

Anyway, is there any functionality built in, either through the VS 2010 debugger or in the System.Reflection namespace, to do something similar in VB.NET? Basically, what I want is to log the number of times each function is called, the total amount to time spent in that function, the average number of seconds spent in that function, and the maximum amount of time spent in a single call in that function.

View 2 Replies

VS 2008 Class Library - Declare New Instance Of MainClass() Before Using Subs/Functions In Class2 Or Class3?

Feb 3, 2011

Namespace MyClassLib
Public Class MainClass
Public Sub New()

[CODE]...

Is it possible to make it so that the user using the Class Library has to declare a new Instance of MainClass() before using Subs/Functions in Class2 or Class3?

View 2 Replies

How To Make User Interface

Sep 7, 2010

I want input from user and when he click on view report button report should come in report viewer. May be my design is not good but my aspect is to design a user interface so that user should able to pass parameter in all the ways and get desired report.

Drop downlist
Radio Button
Check box
and other countrols
Gaurav

View 1 Replies

User Interface Not Reflecting Changes Make?

Mar 23, 2012

Basically the question is, Why are NONE of the changes I've been making in the designer reflecting on the program when it runs ?'none' is in bold because I've tried moving everything around and nothing seems to be affecting it, it's like it's reading from a different design file, I tried reloading the project and that did nothing, and none of my code affects position of any items on the form (way too much to post it all)

View 1 Replies

Make User Interface To A Database With Visual Basic (vs2008)?

Feb 4, 2011

Write code or use tableadaptors, bindingsources, dataset, etc.? I have experience with the older ways i.e. connection strings, ado code, sql, etc. but was hoping the newer tools in vs would make the user interface easier and more flexible. So far i have been disappointed. Am I wrong and I am missing something? Am I alone in this opinion or ? What is your past experience in VB and have you found vb.net to be a step forward in db user interface design? if your answer is yes then what is the easiest way to put a table record count into a text box? should i bypass all the new stuff/objects ( adaptors, binding sources, navigators, designers, etc) and just write code or what?

View 3 Replies

User Interface - Make TextBox Field To Have FlatAppearance Effect Such As In Button?

Nov 6, 2011

I am in the making of creating a database desktop application using VB.NET. I want my UI to have similiarity the same as Microsoft Money. By this, now I want to make all my textbox to behave this way :

flat will have no border, or if it's still if the mouse hover on it, the border will get emphasized.That's all.I recognize that in TextButton, we have FlatAppearance, so we can tweak all Button to behave like this. But the same is not happened for TextField.

View 1 Replies

VS 2010 Calling Subs And Functions Within Classes That Are Within Classes?

Oct 24, 2009

Here is some example code of what I mean:

vb
Public Class Form1
Private Sub Button1_Click(ByVal sender as Object, e as systemEventArgs) Handles Button1.Click

[Code]....

View 5 Replies

Remotely Add Domain User To Local Group?

Jul 14, 2009

I'm in the process of writing a script for use in our lab. I need it to remotely add a domain user to the local group "Remote Desktop Users" on some remote desktop servers we use to bridge two subnets. The person adding the user would have admin rights for that remote server. I would use GPO, but we don't control the domain and it'd be damned near impossible to convince IT to set aside a OU for us with just those machines. I've been looking at using WMI in the script I've been working on but I haven't got the slightest clue how I'd implement it.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved