Same Project Concepts And Funtions But Different Outputs?!

Sep 12, 2010

I started programming 6 months ago, Visual Basic is kind of easy and I made lots of programs. Now I am confused now. I have a serious problems about DLL's but I didn't made them but I knew how to make use of them. Okay I have 2 programs and one was having a problem and other one has no problem, they have the same framework, same code, but they have problems.url...

View 12 Replies


ADVERTISEMENT

Different Funtions Used In Visual Basic?

Feb 9, 2010

visual basic's funtions in detail

View 4 Replies

Game Programming :: Running Subs/funtions Simultaneously?

May 21, 2009

i was wondering how to make subs and functions run simultaneously. For example, if i make a box move from the top to the bottom with a sub called move(byval e as label)

which takes say 3 seconds to move from top to bottom and i have

move(lblfirst)
thread.sleep(500)
move(lblsecond)

how would i make it so that it moves 500 miliseconds after the first one start to move, not 500 milliseconds after the first one finishes?

I tried application.doevents with a looped sleep and raiseevnet, none is working.

View 2 Replies

.net - Stop Using Asp Concepts In Asp.net?

Sep 30, 2010

I get the feeling I am still using asp type scripting techniques in the script below instead of proper asp.net scripting...

If this is true, how do I do the below the proper .net way?

<%@ Page Language="VB" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>

[Code].....

View 2 Replies

Does VB Support OOPS Concepts

Aug 12, 2010

Does VB Supports OOPS Concepts?

View 1 Replies

Stuck Understanding OO Concepts?

Dec 14, 2010

so i have a class called FOOTBALL,then another 3 classes/forms that inherit FOOTBALL, they control score (SCOREBOX), possession (POSSBOX), and quarter (QUARTERBOX).the FOOTBALL class has 4 variables, "score" (array of 2 ints), "teams" (array of 2 strings), "possession" (boolean), and "quarter" (int)after that i have another form called MAINBOX, which creates new instances of the 3 classes (SCOREBOX, POSSBOX, and QUARTERBOX) (like this: private scoring = new SCOREBOX)... however they all technically create their own FOOTBALL classes, so I cannot connect them.

View 4 Replies

[2008] Mixing Different Concepts Together?

Mar 15, 2009

This is my first post as I don't like to ask questions without making sure I've exhausted all other means. I'm new to VB2008 and programming in general but I'm learning. I want to do several simple tasks. Doing each separately is easy but when I put them together I don't know what to do. For one thing to work all the code must be changed and everything else doesn't work.

1. Plot a graph of data from a DAQ. I can do this by using a Timer1_tick method and displaying the data on the linegraph as long as the timer is turned on. I've decided to stick with this method of acquisition. I want to acquire data for long periods of time (perhaps 3 hours) so a timer is pretty good. No problems here.

2. Apply a filter to remove noise from the plot dynamically as the data comes in so that I get a smooth curve instead of a jagged graph. I know I can do this with for loops if I'm using an array. But how do I do it since I'm using a timer? Here the problem begins.

3. Log every piece of the filtered data that the timer is getting to be exported to a CSV file. I learned how to do this with do loops but not with a timer or array. But I really need to use the timer this time.

4. Acquire statistics for the data like maximum value, minimum value, and average value dynamically as the data changes. I know how to do this with an array of data after all the data is acquired. But How do I do this with a timer while the data is still being collected?

5. Monitor the data coming in to execute an alarm (Or event, like stopping the acquisition) when the data coming in has plateaued and is constant (eg: The voltage I'm monitoring starts to become constant and becomes one constant value) - Ok I don't know anything about this.

6. Execute a mathematical operation on the data that has been acquired (post acquisition) like finding gradients and such. Basically this means "How do I now manipulate the data I have and where is this data stored?"

Here's my starting code that gathers data with a timer. How do I work from here?:

Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As
System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Timer1.Enabled = False

[code]....

View 3 Replies

[VB 2008] Merging Different Concepts Together?

Mar 15, 2009

I want to do several simple tasks. Doing each separately is easy but when I put them together I don't know what to do. For one thing to work all the code must be changed and everything else doesn't work. I want to:

1. Plot a graph of data from a DAQ. I can do this by using a Timer1_tick method and displaying the data on the linegraph as long as the timer is turned on. I've decided to stick with this method of acquisition. I want to acquire data for long periods of time (perhaps 3 hours) so a timer is pretty good. No problems here.

2. Apply a filter to remove noise from the plot dynamically as the data comes in so that I get a smooth curve instead of a jagged graph. I know I can do this with for loops if I'm using an array. But how do I do it since I'm using a timer? Here the problem begins.

3. Log every piece of the filtered data that the timer is getting to be exported to a CSV file. I learned how to do this with do loops but not with a timer or array. But I really need to use the timer this time.

4. Acquire statistics for the data like maximum value, minimum value, and average value dynamically as the data changes. I know how to do this with an array of data after all the data is acquired. But How do I do this with a timer while the data is still being collected?

5. Monitor the data coming in to execute an alarm (Or event, like stopping the acquisition) when the data coming in has plateaued and is constant (eg: The voltage I'm monitoring starts to become constant and becomes one constant value) - Ok I don't know anything about this.

6. Execute a mathematical operation on the data that has been acquired (post acquisition) like finding gradients and such. Basically this means "How do I now manipulate the data I have and where is this data stored?"

7. Know any good free linegraphs with autoscaling?

Here's my starting code that gathers data with a timer. How do I work from here?:

Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As
System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Timer1.Enabled = False

[Code].....

View 5 Replies

C# - Use The Multithreading Concepts And Deadlock Concept?

Mar 27, 2009

I will connect with one database from several machines. In all machines they need to insert the data in single table. In that time: how to use multithreading and deadlock concepts? Using the MySQL database and also MS Access.

View 2 Replies

Forms :: Any Way To Implement Inheritance Concepts?

Jul 4, 2009

I m new to vb.net need some ideas about how to implement inheritance concepts in vb.net

View 1 Replies

Game, Unable To Grasp Certain Concepts?

Jul 1, 2010

Ok, I've researched for hours about classes, creating classes, creating obj's of that class, but every tutorial I've seen has either talking about things that are different from what I'm doing, or they were written with the assumption that I understand X or Y. What I want seems simple enough but it's just not clicking. Here's what I'm trying to accomplish:

1. Player chooses from a list of characters
2. That character has specific attributes (power level, experience points, ect..)
3. When entering the combat page, the specific attributes are displayed in text boxes
with respective labels.
4. When battle is over, experience points are handed out and saved in player class.

It's probably laughable to some how simple this is but I'm really struggling with it.

View 1 Replies

Vb Figthing Game Concepts/Thoughts?

Jun 11, 2012

Recently I decided it might be kind of neat to make a "fighting' game in Vb similar to a Mortal Kombat or Street fighter style game. If I understand everything it should be mostly collision detection and a lot of animation? What does everyone else think?

View 2 Replies

Write A Single Program That Uses OOP Concepts?

Mar 11, 2010

I am very new to VB.NET coding..My manager assigned me to write a Single Program that uses OOP concepts like Abstraction,Encapsulation,Inheritence and Polymorphism.As there is a time limit.

View 1 Replies

[2008 Express] Merging Different Concepts Together

Mar 15, 2009

This is my first post as I don't like to ask questions without making sure I've exhausted all other means. I'm new to VB2008 and programming in general but I'm learning. I want to do several simple tasks. Doing each separately is easy but when I put them together I don't know what to do. For one thing to work all the code must be changed and everything else doesn't work.

[Code]...

View 1 Replies

Function Gives 2 Different Outputs?

Sep 7, 2010

I have a very strange thing going on...I got a lot the CheckErrorStatus (Int32) error...and so I started to dig into my created functions. At the end I found what gave that error and so I added a new breakpoint on both computers where I want to run it (one is the developping computer, the other is the clients computer).

Developping computer : Windows 7, VS2008, .NET Framework 3.5SP1
Clients computer: Windows XP SP3, VS2008, .NET Framework 3.5SP1

the code of the function is a follows:

[Code]...

how it can that with the same input this function gives 2 differents (of which one is fault) output?

View 10 Replies

String - Different Outputs ?

Jul 24, 2010

About the following code:

Dim vDeletedMessageSubject As String = oMessage.subject
oMessage.Delete()
System.Diagnostics.Debug.WriteLine("Message with subject: {0} deleted.",

[CODE]...

Why the different outputs?

dp.SyntaxHighlighter.ClipboardSwf = '/dp.SyntaxHighlighter/Scripts/clipboard.swf'
dp.SyntaxHighlighter.HighlightAll('3ab83152232341d6a1b8a6f4a3419500')

View 3 Replies

Class Structure For Three Outputs?

Feb 20, 2012

Could someone write me a Class structure for passing the data array below.

Function function1(Byval input1 as Double, Byval input2 as Double, Byval input3 as Double)
'code'
data.data1=value1

[code].....

View 4 Replies

Pause In Between Screen Outputs?

Oct 7, 2008

I've got a little code that just reads and displays all the folders in a particular directory. What I want to happen though is for the program to pause 1 second after adding a new folder to the listbox. When I have Sleep(1000) it simply freezes completely.

Code:
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

[code].....

View 4 Replies

Create Function With Multiple Outputs?

Dec 8, 2010

Is it possible to create a VB function with multiple outputs. Note: I am not looking for an array containing me three outputs or a variable using delimitters

View 3 Replies

How To Question On Listbox Outputs And Arrays

Jul 11, 2009

I a program that you can store stocks in,such information as name of the stock, price of the stock when you purchased it and so forth.This is stored in a file that is read and can be changed.My button that displays the information is giving me some problems as I have it setup and it will read my original file but when I add files its not going to display the new files.I need a way to make it output to my list box the new files as well as the old ones.right now my listbox outputs 5 lines, and each line has 5 records now the amount of records per line will not change but the number of lines I have will.I cannot pre write lines for something that has not happened, and I am stumped on how to fix this problem..

I am still learning and new to code so for me to write code that writes other code seems like some fantasy out of the terminator so I am sure there are much much simpler ways to do this than that.I am guessing using a loop and a variable in my array than the actual number something a long the lines of csvData(i)However I am just not seeing what syntax to use and how I would go about putting this together... Never came across anythign like this in the past.[code]any thoughts for ways to attack this problem and the type of syntax that would have to be used?

View 1 Replies

VS 2010 Overloading A Method With Different Outputs?

Aug 2, 2010

i recently discovered a nice feature called overloading, now the question is can i also do that for outputs? for example i want to call a function that would automatically return the datatype i assign the function toright now im geting an error saying "blabla and blabla cant overload eachother because they only differ by return types

View 3 Replies

Input A Part Number And It Outputs A Image?

May 12, 2010

I'm doing a school project with arrays and I want it so that I input a part number and it outputs a image, price, and name for the part. I need to accomplish this using the array. We've only ever done arrays where you input a part number and one thing comes back out, not multiple.

View 1 Replies

Error: A First Chance Exception Of Type 'System.NullReferenceException' Occurred In Click Game Concepts.exe

Nov 29, 2011

Here are parts of my

Dim setting As My.MySettings
lvl As Integer
Dim xp As Integer
Dim xpt As Integer

[code]....

I have done the settings as type integer and set the values that I wanted but I get this error: A first chance exception of type 'System.NullReferenceException' occurred in Click Game concepts.exe

View 10 Replies

Merges Two Files Together And Outputs One File In Ascending Order

May 1, 2009

[Code]...

Loop 'Bottom of Main Program Loop 'Close the files when you are done with them

readerInputFileA.Close()
readerInputFileB.Close()
writerOutputFile.Close()

Else 'Path/file for one or both input files does not exist - message

[Code]...

View 1 Replies

Serial IO - Build Inputs And Outputs Interface Board

Feb 20, 2009

I would like to build inputs and outputs interface board (if you have schematics for the hardware or where I could purchase such thing) I need 9 inputs and 8 outputs, 24 volte DC for the inputs and I want to build a form in visual basic that utilizes the serial port so for example when I press Button1_Click it will make output number 1 goes high in the board and when input 9 goes high in the board label9 or Button3 will change color in the form.

So basically the IO interface and the form will only be used to energize relays and monitor these relays. I am not worrying at this moment about if this input is high make this output high but if this is possible in visual basic currently running Visual Studio 2008 Express.

View 7 Replies

Service - Update Dictionaries And Outputs XML File Of Contents

Jan 30, 2012

I have created a service that updates dictionaries and outputs an xml file of the contents. It will do it fine first time round, but then I get the following exception when it tries to do it the second time
system.argumentexception an item with the same key has already been added
Is there anyway I can set it so that the dictionary contents are overwritten each time?

View 1 Replies

VB 2010 Underscore And Small Rectangles In String Outputs?

Dec 1, 2010

I've made some good progress with my first attempt at a program, but have hit another road block. I'm taking standard output (as a string) froma console CMD window (results of dsquery piped to dsget) and have found small rectangles in the output. I tried using Regex to clean the little bastards but it seems they are related to the _ (underscore), which I need to keep (to return 2000/NT logins). Odd thing is - when I copy the caharcter and paste it into VS2K10 Express it acts like a carrige return?Going to try using /U or /A CMD switch next..

View 2 Replies

VS 2010 Make A Program Which Outputs A Price Of Something Into Currency

Oct 18, 2010

i'v started learning visual basic on a software development college course and i have to make a program which outputs a price of something into currency only when i click on my calculate button it only comes out as a whole number so instead of �1.00 it just says 1, this is my output code.

qty = txtQty.Text
money = 100
If lstItems.SelectedIndex = (0) Then

[Code]......

View 3 Replies

.Net To Communicate With A Small Unit That Outputs Data Via A Serial Port

Oct 15, 2010

I will be using .Net to communicate with a small unit that outputs data via a serial port. I have used an application that monitors the data between an application and this little box. What I see is functions such as IRP_MJ_CREATE, IRP_MJ_READ, etc. At first I thought I needed to build functions and I would send these via the serial port (a novice thought) now I see that the above functions are part of the Windows Driver Kit. So is it true that I call these functions in my code and then the underlying drivers communicate to the serial port and the approppriate data is seen at the serial port. So for .Net (VB) I need to find and use the appropriate functions and communicate to the serial port.

View 1 Replies

Create An App That Receives Text Input On A Form And Outputs To Printer?

Mar 12, 2010

I am attempting to create an app that receives text input on a form and outputs to printer but I haven't any idea where to start for the coding. the form was relatively easy, now how to code. I have labels that give questions and 16 text boxes 5 list boxes and 10 check boxes to receive input from users how can I arrange the input into a paragraph and output to printer?

View 5 Replies







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