Constantly Returning A Value From A Funtion

May 12, 2009

How would one receive a value from a function while it is running?

View 2 Replies


ADVERTISEMENT

Calling Function A In Funtion A?

Jul 5, 2009

I have this simple function (below) that randomizes number between 1 to 10. This function works well, except when Random() returns 5, which means intLot=5, randomizeAgain = true, and then the same function RandomizeNo will be called to randomize again. (refer the code below)

Even the new value of intLot equals other than 5 next time, say 4, the funtion returns 0.

I have no idea why. Function RandomizeNo(ByVal totalLot As Integer) As Integer

[Code]...

View 4 Replies

Make Tab Index Funtion?

Aug 23, 2009

heres the funtion:
Private Sub Tabs_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Tabs.SelectedIndexChanged

[code].....

View 9 Replies

VS 2008 With Bin2Dec Funtion?

Apr 24, 2009

at first i have to say: i'm from germany. but i'll try the best I have a Bin2Dec funtion:

[Code]...

View 5 Replies

Button On Program Doesnt Seem To Funtion On Another PC?

Jun 22, 2012

Ive created a program for work which is very plain and simple, a problem i have been having with it is that the OK button. the OK button deletes a key from registry and copies a pdf to the desktop and also creates a .txt file in a folder and as well closes the program. This seems to work on the machine that i have created it on and also from a Flash drive but when i have the folder and program on another PC every button works apart from the OK button.

View 2 Replies

Multithreading Proxy Checking Funtion?

Feb 7, 2012

I was just trying to program a multi threading proxy checker it all work perfect with list box but at last when it finish checking it just crash the application due to multi thread i have try ed lot but didn't get any success cathis my code thanx.

#Region "check proxy"
Const Tc As Integer = 1
Private _ThreadCount As Integer = Tc

[code].....

View 3 Replies

VS 2005 Create Loop For Funtion?

Jan 9, 2011

I am using the following code to return the long and lat of a property, how can I create a loop to return the same for multiple address's?

[Code]...

View 10 Replies

VS 2008 Why Does Click And Move Funtion Does Not Work

Jun 27, 2011

PHP
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
Button6_MouseClick(Button6, New MouseEventArgs(Windows.Forms.MouseButtons.Left, 2, 100, 200, 0))
End Sub

[code]....

Why does this function not move the mouse to X100, Y200 and then doubble click?Has it something to do with user32.dll/user64.dll?

View 12 Replies

Zoom / Magnify Funtion For Unknown Control?

May 26, 2011

I have a Application that has a web control that loads a map from internet on a timer.what I need is to have a designated part of that blown up so I can see it better, think of it in this term, a map of the USA displayed and I want to draw a box around a state and display that in a seperate box and have it say.. 3x bigger.heres the original pic strait from the web now it displayes it just like it displayes it here, and I can draw a square around where I want it to zoom just so the user knows what area is zoomed, and this will be able to be turned off/on as it isnt really coded to do anything its just a visual aid and this pic below needs to be the result on the same form just out beside the webpage, I can have it load to a picbox, or another control that loads images Note that this was done with a photo program manually, I dont know how to code something like this.you Know Your Addicted To Computers When - Your main computer is a 7 terabyte, Core2Quad 3 Ghz +, with 4 or more gigs ram, over 200 programs installed, and you would rather sit with it programming than go to the movies!I've got 13 PC's in the House and 7 are in my bedroom and my main one exceeds this set of stats.

View 14 Replies

VS 2008 Funtion Which Takes Two Integers And Returns One Integer?

Apr 22, 2011

implement MOD(%) function without using the MOD or %. Function should take in two integers and return one integer.

View 2 Replies

Asp.net - Returning In Oracle INSERT Is Not Returning Proper Value?

Mar 15, 2012

I have an ASP.NET web application (VB.NET) using an Oracle database. On an insert, I need to get the identity of the inserted row back. I am trying to use RETURNING, but I keep getting a value of 1 returned.

Dim strInsert As String = "INSERT INTO L.TRANSACTIONS (LOCATION_KEY, TRANS_CREATOR, TRANS_EMAIL, TRANS_PHONE) VALUES (:location_key, :trans_creator, :trans_email, :trans_phone) RETURNING TRANS_ID INTO :ukey"

[Code].....

View 2 Replies

VS 2005 Make The Calculate Funtion Work Up Selection Change In Combobox?

Nov 21, 2009

I have a calculate function that adds twenty text boxes together a+b, etc... 20 +20, B changes value when a selection in combobx is changed, how can i make the calculate funtion work up selection change in combobox ? You would think the selection change or index change , but that doesnt work because the tetbox doesnt actually get the new value till after the combo selection is made, so you actually have to go and make the selection twice I know i can put the code in the textbox value change , but i dont want to do that for 20 text boxes and i am assuming there must be a BETTER way?

View 1 Replies

C# - Deploy A DLL That Is Constantly Changing?

Dec 19, 2011

I have created several small applications that use my own DLL. The problem is, this DLL is constantly changing. My current solution to this problem is that I have a Setup project in the class library solution that creates and registers the DLL. In all my applications I then have to open the solution and re-reference the newly created/registered DLL. Then I have to re-compile their setup projects, uninstall the old applications, and then re-install the new application.

There has to be a better way and I'm just not sure because I'm fairly new to all this. I have looked into ClickOnce but I don't think that will solve my issue as I cannot publish a class library. I have looked into checking version numbers but I must be doing something wrong because it doesn't work either.I understand that once a DLL is created and being used in an application it should essentially not be touched. I do not have that option in this situation. It is constantly updated. Done.

Edit: The DLL is not constantly changing during runtime but it is constantly evolving to allow more functionality and detail within the other applications. Also, one big thing I guess I should have mentioned is the Public interface is constantly chaning - usually adding new methods.

View 4 Replies

RS-232 Only Able To Read In Data That Changes Constantly?

May 5, 2011

I am working on a project that reads in data from a device. I am able to read in the constantly changing data only, i need to be able to read in the saved data that is in the device as well.

My question is if the data that is saved in a certain type and i only read try to read it in as text for example, will the saved data I am looking for not be displayed?

ex: im trying to read in text but my device has the data saved in hex, do i see anything or nothing?

idk if this helps or matters but the rs-232 connection is a null modem and im working with VB 2010

View 10 Replies

Returning A Function Vs. Returning Variable Name?

Dec 12, 2011

My brain may just be fried since it's the end of the semester, but my teacher kicked this back to fix and resubmit...she said that I am "returning the name of your function rather than your variable name".

Here is my code for all 3 forms.

code:

These are forms to calculate the cost of getting a cell phone package.

View 6 Replies

Javascript Code Constantly Changes And The Url Itself Will Change ?

Sep 13, 2010

I have built a web browser and my new window function is working great, it allows me to open popups that use normal https links without a hassle. But I am having some problems when the links contain java code (like the one below:

("javascript:var%20x=window.open('https://auth.det.nsw.edu.au/pls/orasso/orasso.wwsso_app_admin.fapp_process_login?p_app_id=F0CB644DAE48EDE00D83EFE378FD435E','My_Staff_Email','menu=no,toolbar=no,resizable=yes,scrollbars=yes,status=yes')"

The reason why this operation fails because the string that is being passed to the Navigate method is not an actual URL.It is apiece of Javascript code which needs Javascript engine to process it firstly. Apparently, Webbrowser.Navigate() does not have this functionality,so it fails. If you simply put the string in IE�s address bar and press enter, IE will also not able to open it. The reason why it does work if you access the HTML page in IE and click the hype link is because this will make IE to use Javascript engine to process the code.

Since the API(Webbrowser.Navigate) does not have the functionality to process Javascript code,build up my own code to process the string which you get by using the GetAttribute method. The code reads the string and finds the actual URL and passes it to the Navigate method.

The only problem is that the javascript code constantly changes (varies upon what link is opening) and the url itself will change depending on what the link is linking to! Below is the code that I use at the moment to get the full link .finding the actual URL in the javascript even with the javascript differing from link to link).

Dim myElement As HtmlElement = CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Document.ActiveElement
Dim address As String = myElement.GetAttribute("href")

View 4 Replies

Checking Internet Connection Constantly?

Nov 22, 2009

I've project where i wanna check if user is connected to internet if he isn't then form must close and another form should show up ! Problem i'm getting is i can't use check it constantly, even if i use while loop

keep looping the following code until condition is wrong or until connection is made
While IsConnectionAvailable() = False
' code goes here for when connection to hotflask can't be made[code].....

but here form 2 keep showing up and it crashes system, is there any simple way to do it .

View 8 Replies

Constantly Refresh Text Set By Net.Webclient?

Sep 5, 2010

Is there any way to get this code to constantly refresh in the background to post the latest text located in the "OppScore.text file in the textbox?

Dim OppScore As New Net.WebClient
Label4.Text = OppScore.DownloadString("(source URL)/OppScore.txt")

View 1 Replies

Get Parts Of A String That Constantly Changes Size And Value?

May 2, 2012

I have a stream reader that reads a website text and places it in a txt file synonyms.txt
then I can read to a specific line in the textfile that the results always end up on and place that line in a richtextbox in my project.the line looks something like this:

\tab\tab\tab\tab <br /><div class="ResultsSubTitle">Synonyms (Grouped by Similarity of Meaning) of <span class="Accent I">verb</span> house</div><br /><div class="Accent Sense">Sense 1:</div>house<br /><span class="equals">accommodate, hold, admit</span><br

[code].....

View 2 Replies

Make An Object Move Up And Down Constantly?

Mar 27, 2012

So I have been trying to make this game in visual basic, it is basically like the worlds hardest game but in viusal basic but I am having problems programming the enemy, it doesn't seem to move up and down or left and right at all.

[Code]...

View 4 Replies

Program 2010 Constantly Crashing

Jan 12, 2012

This is an annoying issue that started less than a week ago and couldn't come at a worse time, as I have a major project deadline to meet. At least once every TEN minutes, the program crashes with the error "Microsoft Visual Studio has stopped working" -- it only occurs when I am writing/editing code while execution is paused (Edit and Continue), which I do all the time since I am stepping through rather complex subroutines line-by-line. I literally have trained myself to save after each line of code I write, delete, or change, so thankfully I never lose much, if anything, when I restart, but it is irritating and time-consuming having to set up everything in the program and get to the place in the code that I was before. I have installed VS 2010 SP1, tried deleting the .suo file, and a few other supposed fixes that I came across online, to no avail.[code]...

View 5 Replies

VS 2008 - How To Check For Condition Constantly

Jan 19, 2010

In my program, I have a condition I need to constantly check for. When my program gives an error, I change a label to a different text, lets say "fail" for now. I'm trying to make a condition where the program constantly checks for the label change to "fail" from the start of the program. I am having trouble trying to get this to work.

View 4 Replies

Constantly Firing Form Paint Event?

Sep 3, 2009

I have the following code for a gradient form below. When I step through my code it seems to fire constantly. Does this mean that it fires constantly at run-time? If so, is there a way to stop it from firing constantly

Private Sub Form1_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
Dim Mybrush As New System.Drawing.Drawing2D.LinearGradientBrush(Me.ClientRectangle, Color.LightSkyBlue, _
Color.Snow, Drawing2D.LinearGradientMode.Vertical)
e.Graphics.FillRectangle(Mybrush, Me.ClientRectangle)
End Sub

View 4 Replies

DB/Reporting :: Constantly Loops - While Not EOF Keeps Going Even After It Reaches The End Of The File

May 3, 2008

i am having the hardest time trying to figure out why this While Not EOF keeps going even after it reaches the end of the file! What am i missing????

[Code]...

View 3 Replies

Running A TCP Server Script Constantly But With Low Cpu Usage?

Sep 13, 2009

I am using creating a server/client style program, and it uses tcp connections.Now, the server is like this, but it will only listen until it has received its one request. My issue lies in the fact that it only listens till it receives the one message, then closes. The bigger issue, though, is the lag, it will not let me interact with the form in any way until it closes the connection. Is there a way to make it "passively" listen, for lack of a better word? I do not want it to take up tons of cpu.

View 2 Replies

Webpage Is Constantly Refreshing After Clicking Button?

May 13, 2011

I am navigating to a web page and when I programicly click a button to go to the next page that next page is constantly refreshing over and over.Is there anyway to stop the page from refreshing constantly?

View 2 Replies

Working With Mouse Wheel Not Moving Constantly

Feb 15, 2011

I was getting some slightly unusual behavior when using the mouse wheel for some zooming/scaling work (only vaguely related to the earlier thread, for those who remember it). Frankly, it is likely that I have a bug in some code, but that wasn't quite enough to explain what I was seeing. Therefore, I used a error logging feature in my app to note the delta being passed in each Mouse Wheel event. I then ran the app and gave the wheel one good spin, which was about the maximum that I would normally ever spin the wheel in one steady, continuous motion. I wasn't going slow, I wasn't going fast, and I rotated it about as much as my finger comfortably could in a single roll.[code]I then rolled it back the other way using the same motion, and got 8 events, mostly under 200, but one of them was -331 and the other was -7940.

After a handful of tests, it appears that the wheel event is raised often, which is no surprise, but that the values fluctuate all over the place. With a continuous rotation, or as nearly continuous as I can make it, I can see a series of events with one of them easily being ten times the rest.The problem this presents is that the scaling I am using is not smooth (nor is it standard mathematical scaling, but that's a different story). Each zoom level doubles the size of the objects relative to the previous level, though the distance between them stays the same. I would like to do this by dividing the delta by some factor, and if that is above a threshold, increase the zoom level. That won't work smoothly, in this case. If I make the factor something small enough that I pick up a small rotation, then any larger rotation is likely to include a delta that takes the screen through all zoom levels in a single step. Alternatively, if I make the factor large, then all smaller rotations are simply ignored.One option would be to filter out rotation values below 200 and above 800, or so. I am looking for other alternatives.

View 15 Replies

Developing An Application That Constantly Checks A Particular Webpage For Changes In The Page?

Feb 25, 2010

im developing an application that constantly checks a particular webpage for changes in the page. im using the webbrowser.documenttext to read changes in the source, its working great. until when i tried to use webbrowser.refresh(), an ugly popup that says. "To display the webpage again, Internet Explorer needs to resend the information you've previously submitted.If you were making a purchase, you should click Cancel to avoid a duplicate transaction. Otherwise, click Retry to display the webpage again."

View 2 Replies

Once Parse Array How To Constantly Check Without Reopening Txt File

Feb 26, 2012

dim reader as new streamreader("txt.txt")
dim placeholder as integer = 0
dim line as string

[Code].....

this checks my file for any position with latdif < 30, I want this to be on a timer but I want it not to open the text file everytime is this possible?

View 4 Replies

Run VB 2005 Program Constantly And Compare Date/time?

Sep 29, 2009

I made a little application that check the servers and if the servers go off for more than 5 mins then the program will sent me a mail.My problem is how do I compare the server date time witch display in a textbox to the real datetime which display in a label also how do I run the program constantly till the user decides to exit by clicking on a exit button.

View 4 Replies







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