VS 2005 .NET 2.0 Is A Piece Of Trash?

Apr 6, 2011

Having same piece of code, but debugging on 2 separate machine, both running WinXP, 1 higher spec'ed than the other.The lower spec'ed one threw Exception on the implementation of IP Injector class. It worked if I step through it slowly.

View 10 Replies


ADVERTISEMENT

Leaving Trash Behind - Stop - Removing A Copy Of Program Shown On The Task Manager After Close

Jan 3, 2009

Need help removing a copy of my program shown on the Task Manager after I close.

I must kill a conflicting program that cannot share the COM port and then reinstate when myprogram ends. To reinstate I use: System.Diagnostics.Process.Start(conflictingPath & conflictingProgram)

In the last line of my Form1.Closed I try to end all with:System.Windows.Forms.Application.Exit()

Not working - each time I run this program it does kill the conflicting program, can do its dialing function and upon closing reinstates the conflicting program. But each time another copy shows under Task Manager.

View 3 Replies

Timers On Server-side - From A Client-side Piece, Call Off To A Server-side Piece

Apr 22, 2011

I'm trying to, from a client-side piece, call off to a server-side piece. I need to do this synchronously. On my server-side code, though, I'm calling off to another piece of code, which I want to have a maximum of, say, 10 seconds to return a value. If I don't have a response within 10 seconds, I want to force my own server piece to set my result equal to 0, and return to the client.

Here's what I have on my server-side code so far:

Public Function GetWebResult(ByVal inputParameter As Object) As WebReturnObject Implements IWebInterface.GetWebResult
Dim result As New WebReturnObject
Dim webItem As WebItem = Nothing

[CODE]...

I realize this code is not functional. The problem is that I'm unsure how I would go about getting back into GetWebResult to set the appropriate return values before it is sent back to the client.

View 1 Replies

Converting Piece Of VBAcode To .NET?

Apr 29, 2012

I would love some help on converting this piece of VBAcode to VB.NET. Line Input #1, regel1 'Basis_debiteuren_mutaties Line Input #2, Regel2 'Debiteuren_Mutaties_yyyymm

[Code]...

View 3 Replies

Getting A Special Piece Of Software?

Jun 22, 2011

I am running an experiment that datalogs to the computer. I need to know when there is a change in on of the databoxes. Since there is no way to modify the software, my mind thinks the next best thing would be to design a software that allows you to select part of the monitor's screen and have it refresh very quickly to detect any change in the image in that area.

View 3 Replies

How Would I Multithread This Piece Of Code

Mar 3, 2009

On this piece Of code I want to multithread, beginning where the for loop takes the data out of the array arydata. The threads would all do the same task.

View 1 Replies

Translating A Piece Of C# Code

Aug 6, 2009

I am translating a piece of C# code into VB.NET using online convertors..[code]The VB.NET translation is not up to the mark and gives compiler errors Any VB.NET expert who can suggest what to change to make the code compile?url.

View 10 Replies

Get All Dates From A String/piece Of Text?

Feb 28, 2010

I'm stuck on an issue I think is actually pretty simple but I just can't get it sorted.

I have a string containing (a lot of) text, and in that text there are dates. Like 2/28/2010 or 11/12/2007 or whatever.There are multiple dates in that text.

How do I get the dates from that piece of text into another string so I can put the dates into textboxes?

I'm using VB.NET in Visual Studio 2010 RC,

View 2 Replies

INSERT Statement Leaving Out One Piece

Aug 24, 2011

I have a modal pop up that is supposed to upload documents. It does that just fine, except that it doesn't give them a title, therefore nothing shows up on my page since Title is how they show up in the list. What should I replace LinkTitle.Text with to get this to work?I am trying to fix this guys code because none of it worked right. I added a comment below that has new code in it that is parameterized. This is in ASP.net 4.0 VB using Microsoft SQL Server.[code]

View 1 Replies

Making A Piece Move From One Spot To The Next?

Sep 21, 2010

TI have a picturebox on top of another picturebox, like a smaller square perfectly in the middle of a lil bigger square picturebox, if you click on the smaller one inside the slightly bigger one, it checks to see what the color is of the picturebox "under.It", or the Picturebox thats bigger than it, and is like sourounding the smaller one in the middle of it... If when you click the small one, and the BG Color of the one that's under it is Black, change it to white, "my forms bg color is also black"....so the highlighted pictureboxes will seem more like they get highlighted, ya know...

Here's the code, after you've looked at those pictures, you can probably imagine what I want this code to do, and it's really Guiness really, because when I program in VB.NET, and before I go to YouTube to teach others how to do different things with VB.NET,I like to make sure that my program is very simple, but very effective, and does the job.When I click two pictureboxes, and when my app knows that I have clicked 2 of em, which I had no problem being able to do, I want the FIRST PictureBox To Switch With The Second One That Gets Clicked, It's CHESS....It Seems So Damn SImple, BUT I'M STUCK AGAIN, AND I WANT TO MAKE A CHESS BOARD IN VB.NET.

View 6 Replies

Program Crashes Because Of This Piece Of Code?

Apr 16, 2009

my situation is this; I have a search button which searches records with Surnames, when two or more records have the same surname, the first record appears and 4 navigational buttons appear, they are 'Go back to first record' (btnFirst), 'go back one' (btnPrevious), 'go forward one' (btnNext) and 'go to the last one (btnLast)'. All of these work properly except for 'go back one' (btnPrevious). When I click this and the record is currently the first one, the program crashes. Its probably a very elementary mistake but I can't figure it out. Here is the code for btnPrevious

[Code]...

View 30 Replies

VS 2008 : Parsing Piece Of Text?

Feb 13, 2011

i am getting a piece of text from a webpage, but i would like to only let the text after a $ to show up?

View 1 Replies

VS 2010 Chess Piece Movement

Sep 17, 2011

In an attempt to try and make a chess AI I started working on a chess project. The AI will basically be in a class that implements my AI interface. To provide flexibility this can be used for a human player or a computer AI. In any case the problem I'm having is calculating the valid moves that a single piece can have.I calculate on what blocks the piece would be able to move if the board was totally empty. (this is represented by a array of point)Then I get a list of piece locations of the same team and Except that from said list.(since pieces can move through other pieces of its team)Now here is the tricky bit obviously taking an enemy piece is a legal move I can't just subtract enemy piece positions. Lets say there are 2 black pawns and a white rook in the same column. The rook would be able to take the first black pawn but not the second one because the first pawn is in it's way. In reality there would never be such an easy example so I need a way to only include the enemy positions "In the line of sight" of the piece's moves i'm calculating.

View 11 Replies

Executing A Piece Of Code Before The Program Closes?

May 18, 2009

Having read the rules I don't have much code to show apart from these lines I want to have executed just before the program or a form closes.

If My.Computer.FileSystem.FileExists("File.file") then
My.Computer.FileSystem.DeleteFile("File.file")
End if

View 2 Replies

Get Index Location Of A Piece Of Data In An Array

Sep 15, 2011

I am trying to import a text file into a data table using VB.NET. I need to loop thru each line of the text file and put certain elements of that line in a new row of the data table. The line may contain 50 elements, but I only need to get 15 of them. The very first line is a header row, which contains "File Name", "Object Name", "Object Weight", etc. The trick is the element locations move from file to file. For example, "File Name" element may be located at 0 in one file and then 15 in the next file. I need to find the exact location of my desired elements and save them to a variable. Then use that variable to locate the exact piece of data in the text file line to place in my new row.

The code below obviously doesn't work, but it kind of illustrates what I need to have done.

Try
With dt
.Columns.Add("fltObjectWeight", Type.GetType("System.Double"))
.Columns.Add("vchObjectName", Type.GetType("System.String"))

[Code].....

View 1 Replies

Get Time That A Piece Of Code Toke To Execute?

Feb 16, 2009

How can I get the time that a piece of code toke to execute ?

View 3 Replies

Make A Variable That Can Hold More Than 1 Piece Of Data?

Mar 9, 2009

How do i make a variable that can hold more than 1 piece of data. I wan't a variable that can keep 4 number in it. When i count them in using a for loop the only thing i have after it is finished is the last number counted in by the for loop.

View 2 Replies

Pulling A Specific Piece Of Text From A Webpage?

Feb 24, 2012

I would like to search a webpage for a value in the left column of a table, then pull the value from the right column as my result. In a Visual Basic Forms Application.

the data is listed in a table, for example...

abc 123
def 234
ghi 345
jkl 456

and if i just want the value of ghi ( I know "ghi", but i want the goal of the code to find the "345")

View 4 Replies

VS 2008 Successfully Multithread A Piece Of Software?

May 27, 2009

I am trying to successfully multithread a piece of software I have been working on. I have an array of threads 'gen' already working, calling to a method taking a single integer as a parameter (done via typecasting).Now in this thread, when the function gets processed (for each thread a roughly 500 iteration while loop) the index seems to be getting mixed up. As far as I can tell, my threads are messing with eachother and warping values. Now this is happening in locally declared variables inside this function, not global variables.It may be useful to know that I am using a WebRequest via a call to another method. Don't know if that makes a difference or not.

View 7 Replies

Zed Graph Double Click - Know Which Piece Of The Pie They Clicked On

Oct 16, 2010

How can I find out what they double clicked. I have a pie chart and I would like to know which piece of the pie they clicked on. I am using a Zed Graph chart.

[Code]...

View 2 Replies

Create A Child Processes Which Will Execute In Parallel The Piece?

Nov 2, 2010

My aim is to create a child processes which will execute in parallel the piece of VB.NET code say a function. I want to do it specifically using processes and not threads. Please suggest the ways to do this?

View 2 Replies

Create A Piece Of Software That Will People Develop There Ears?

Jan 18, 2009

I am trying to create a piece of software that will help people develop there ears, so that they can learn songs by ear.For this, I am creating a piece of software that plas a musical note and you have to answer what the note is. the plan is, the sound plays, but incase you miss it, you can tell it to replay, and on the page, there is a text box, where you type in the musical note and then you click accept, and you get a new sound, and do the same. and I want it to just loop and randomly play sounds up untill the user clicks end and then I want a score sheet to come up with there answers and what the actual answer was and basicaly what there score was.

I will be ok making certain parts of the program, but there are a few concerns. the main concern is how to get these sounds to randomly play. and have the answers with it too.

View 2 Replies

Databind Label To Display A Piece Of Information From Dataset?

Aug 3, 2010

Can I databind label to display a piece of information from dataset?

View 3 Replies

Get A Quick Piece Of Code To Close All Non Visible Forms?

May 30, 2010

I am starting to debudg my application in depth, and have realised that at certian points, if you close what appears to be the only open form, the application stays open. I was just wondering if there exists somewhere, a list of all open forms that you can view during debugging?Alternatively, is there a quick piece of code to close all non visible forms?

For Each frm In Application.OpenForms
frm.Close()
Next

Doesn't seem to work

View 1 Replies

Piece Of Code To Only Execute Scoring Algorithm At Certain Times

Dec 15, 2011

I have a standard scoring algorithm but I need to help on a piece of code to only execute the scoring algorithm at certain times.I want it to be triggered by dates, but the problem arises if the program is used after 2 (or more) dates have passed, the first date will not be added as the second date is the newest and therefore the one that triggers the scoring algorithm. - The scoring algorithm gets the scores for that week, which are stored in a text file.

View 5 Replies

Piece Of Code Which Loads Either French Or English Text?

Apr 1, 2011

I have a piece of code which loads either french or english text and 2 link buttons that allow to switch between.

<%
if publierFR = 0 Then
if publierEN = 0 Then

[code].....

View 1 Replies

Program That Will Go To A Web Site And Pull Out A Specific Piece Of Data

Jan 19, 2011

I want to build a VB program that will go to a web site and pull out a specific piece of data.I am using VB Express 2010 not sure if it belongs in this .net forum.I am successfully getting to the website using WebBrowser.navigate()The data is provided to me in XML format and I am told that it is ready to be retrieved. They tell me to use XML Parser.When I go to their web site I see the data I need to pull out there is a column with tags in front of each piece, the piece I need is between <Vr0> and </Vr0>.I have no resources other than the net currently I do have a dummies book ordered but will be at least next week (at the earliest) before my first book arrives.Can you explain how I can sort through the data and pull out the data in XML format on a web site?

View 5 Replies

Reading To End Of File Causing 1 Extra Date Piece

Jan 27, 2009

I have this piece of

vb
Public Sub LoadContact()
With frmMain

[Code]....

When It loads to my ListView it does this

123 123 123 123
1234 1234 1234 1234
1234

It adds the Last Item Twice, but, only in the first column.

View 9 Replies

VS 2008 Piece Of Code Involving Threads And Events ?

Nov 25, 2009

This is a very simple piece of code involving threading and events. I am just refreshing the old grey matter as I find myself off work sick for a period of time.

Code:

Imports System.Threading
Imports System.Threading.Thread

Module Module1

[CODE]...

View 5 Replies

VS 2010 : Find The Location Of A Piece Of Text In A Datagridview?

Mar 18, 2012

I have a datagrid view with 3 columns and variable rows. I have many rows so it is tough to know what is where so, the first row consists of names.I have a textbox in which I type in a name and hit a button. Doing this, I want the location of the that cell in terms of row.no and column.no.

Extended : for the adjacent ones just add +1, +2 etc to the column number right ?

View 6 Replies







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