VS 2010 - Design A Dialog Box To Input Pipe Dimensions Like Length And Diameter

Jul 11, 2011

I'm trying to design cathodic protection for offshore pipelines using visual basics. However, I'm not very familiar with vb. I'm hoping I can start with basic calculations like finding pipe surface area etc. how I can design a dialog box to input pipe dimensions like length and diameter to enable me calculate the surface area?

View 4 Replies


ADVERTISEMENT

VS 2010 - Input Validation To Verify User Selected Input For 'cb Length Of Stay'

Jan 15, 2011

I need some help with the input validation of my application. Attached is the code that I have written as well as a screenshot of the front end. I specifically need input validation to verify that the user selected input for cbLengthOfStay is a number between 1-10 as well as input validation to verify the user input for txtMedication, txtSurgicalCharges, txtLabFees and txtRehabilitation is a positive numerical number. Please feel free to critique my attached code. [Code]

View 2 Replies

VS 2010 UDP Proxy Or PIPE?

Sep 1, 2011

I'm looking for a UDP Proxy aka PIPE in any .NET langauge VB.NET or C#..I searched all over google and cannot find any example of a UDP Proxy in .NET language.. best I could find in TCP.. and I know how TCP proxy works.. built a bunch of them.. but now it's time to build a UDP Proxy and it doesn't seem to function well..

[Code]...

View 1 Replies

Implement A Controlling Design Logic That Prompts The User For A Length And The Area To Calculate?

Aug 12, 2009

I am trying to implement a controlling design logic that prompts the user for a length and the area to calculate until he or she enters a number less than zero in the length to end.So far I have it where I believe it�s doing the calculations but it�s not ending when I input a number less than zero or zero.

Sub Main()
' Declare Length As Float
Dim Length As Double
' Declare s, c, t As Float

[code]....

View 4 Replies

Use Named Pipe For Full Duplex Inter-process Communication In Vb 2010 (Framework 3.5)?

Apr 13, 2012

I have 2 applications that needs to talk to each others. After some research, I wanted to go with managed pipe (namespace system.io.pipes). The problem is, the client must send commands to the server but need to also wait for incoming message from the server at the same time. I tried to go asynchrone but it doesn't work.

[Code]...

View 5 Replies

Array Dimensions - Error Message 'ReDim' Cannot Change The Number Of Dimensions Of An Array?

Oct 20, 2011

I'm upgrading my VB6 project to VB.NET and I found one of the problem below relating to dimensional array.Here's my VB6 coding :

Private Function ConvertMatrixToBase0(ByVal MyMat() As Double) As Double()
Dim i, j As Long
Dim ConvMat() As Double[code.]...

When i port it over to VB.NET, i encountered error message 'ReDim' cannot change the number of dimensions of an array. for the line highlighted in red. And I suspect that VB.NET need to always define the exact dimension of the array during the declaration. But for the function above, for the array of 'MyMat()', I do not know what is the exact dimension every time it runs, and that is why i need to check the dimension of the array.My question is do we have any solution in dealing unknown dimension array in VB.NET? As in VB6, we can just define Array() instead of Array (,) in VB.NET.

View 6 Replies

VS 2010 Dimensions Of A Window With API?

May 15, 2011

i have found the Hwnd for a window and i now wish to get information about this window, the location on the screen of the window and its width and height. Problem is the values i get are not anything near right.

vb.Net
<DllImport("User32.dll")> _
Private Shared Function GetWindowRect(ByVal hWnd As IntPtr, ByRef lpRect As Rect) As Boolean

[Code].....

this returns 0 for height and width and the remaining figures are nearly 0 (1.68E-311) what am i missing and how can i get this information?

View 5 Replies

VS 2010 Ribbon EditBox Dimensions (width)

Apr 12, 2012

I am creating a ribbon for an Office application using VB.NET in Visual Studio2010. I drag an edit box onto the ribbon but am unable to resize it. How would I do that? I want the user to be able to enter and see up to about 20 characters. StringSize does not do the trick.

View 1 Replies

Create A Multiline Input Dialog Box?

Oct 21, 2011

I've checked various numbers of resources to try and find a way to create a multiline input dialog box.IE something that is a simple inputbox() with any number of lines in it or capable of a scrolling multiline dialog box.

So far I have found nothing. I know I can create one using vb Studio, but i'm trying to write a script for SecureCRT that will allow multiple lines of data to be input, then only certain information pulled from that data, run in a command, then the output set to a file. This will then loop and append any further output data to the end of the same file.I've so far got it built to ask for how many times it needs to loop based on how many servers we are checking on, but we are looking to cut the time down to where we can copy the info into the clipboard, paste it into a text box (when prompted for a mutli server check) then run the above paragraph as noted.

how to create a multiline text box with vb script?

View 2 Replies

DataGridView - Using Dialog To Input Contact Details

Jan 3, 2011

I tried to make a phone book but I having some problems inserting it to the databank and then updating the Datagridview. I use a Dialog to input the contact details. I have 7 dialog's and 7 Label's.
Name + Textbox for giving contact details , ...

Then I click the button and I thought to use this code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'I have set it to false so they have to use the dialog to make the contacts but I don't think its the best way'
Form2.DataGridView1.AllowUserToAddRows = True
'Simple Check For checking phone number and Name has values(user must give the value)'
[Code] .....

View 14 Replies

Increase The Diameter Of The Sphere Of Radio Buttons In VB10?

Dec 19, 2011

can I increase the diameter of the sphere of radio buttons in VB10?

View 2 Replies

Reading Diameter Circle Can Be Presented Inside Computer?

Aug 7, 2009

what should I doing to interpret reading outer diameter which measures diameter circle by way when I join port usb to pc reading outer diameter will be read in computer when plate placed on top outer diameter to see reading diameter plate that and how way for me doing this process?

View 16 Replies

Write A Program To Request Positive Numbers One At A Time From The User In An Input Dialog Box

May 12, 2009

I'm currently in VB class at my highschool and we just got chapter 6.1 to read on this online textbook that we follow. Anyway, we are doing loops now and the problem reads "Write a program to request positive numbers one at a time from the user in an input dialog box. The user should be instructed to enter -1 after all the positive numbers have been supplied. At that time, the program should display the sum of the numbers." So far I know this much

[Code]...

Now I know this isn't right But I can't find out how I'd pull out the numbers the user entered to get the sum of them and not include -1 because as it stands, when I hit ENTER with -1 the label just shows -1.

View 22 Replies

Create A Project That Will Compute The Area And Circumfrence Of A Hot Tub By Entering The Diameter In Feet And Inches

Apr 19, 2011

I have to create a project that will compute the Area and circumfrence of a hot tub by entering the Diameter in feet and inches.

Dim radius As String
Dim diameter As Integer
Dim circumference As Integer
Dim area As Decimal

[code]....

View 4 Replies

.net - Basic UDP C# Or Pipe ?

Aug 31, 2011

Looking for a basic UDP Pipe or redirector. Should of course be able to see both client 2 server and server 2 client data.Here is what I tried but it fails because I don't know when to call which Receive..Say I call

data = serverUdpClient.Receive(sender)

Then I have to reroute this, so I call this

clientUdpClient.Send(data, data.Length)

[CODE]...

Pretty much the code flow is all fucked.. because it's socket is blocking. When I started working on UDP.. all examples say stay away from non-blocking as it's too advanced for newbie's trying to work with networking sockets.. I find that statement wrong.. the other way around!.

Public serverUdpClient As System.Net.Sockets.UdpClient
Public clientUdpClient As System.Net.Sockets.UdpClient

Sub runProxy()

[CODE]...

Also tried this.. doesn't work properly.

While True
If serverUdpClient.Available > 0 Then
data = serverUdpClient.Receive(sender)

[CODE]...

View 1 Replies

Process Is On The Other End Of The Pipe?

Jun 23, 2010

I have a perplexing problem. I have written a DB App using SQL Express 2005 as the back end and Visual Studio 2005 Standard VB.Net as the front end. I have a master DB that needs to import from an external database from another SQL Express server. I detach the DB from that server and attach it to my server. I import the data I need, close all connections to the import DB and try to drop it from the server since it is no longer needed. Yet one active connection remains so I get a drop error. To get around this problem, I set the import DB to single user with roll back immediate and then drop the database. However, when my application tries to access the Master DB I get the follwong error

A transport-level error has occurred when sending the request to the server. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)

[Code]...

View 1 Replies

Substring - Error: Index And Length Must Refer To A Location Within The String. Parameter Name: Length

Apr 17, 2009

this is not working?

[Code]...

End WhileI am trying to read from the ": " to the end of the line. I keep getting this error: Index and length must refer to a location within the string. Parameter name: length

View 3 Replies

Index And Length Must Refer To A Location Within The String. Parameter Name: Length Exception

Feb 17, 2011

am getting the above exception while swaping Items in the list(lstRoutePriority).PFB my code

if (lstRoutePriority.SelectedIndex > 0)
{
//Swap the two items

[Code].....

View 2 Replies

Error On Transportlayer (No Process On The Other End Of Pipe)

Jan 10, 2011

I have a lot of Microsoft SQL Backup files. The application should restore each backup-file with

RESTORE DATABASE {0} FROM DISK = '{1}' WITH REPLACE

Then I fill another database with some data from the restored database and drop the restored database with

DROP DATABASE {0}

If I only restore one backup-file, no problems. The data from this backup is in the new database and the restored database is dropped. But if i use more than 1 backup-file, i get this error:

German:Fehler auf Übertragungsebene beim Senden der Anforderung an den Server. (provider: Shared Memory-Provider, error: 0 - Kein Prozess ist am anderen Ende der Pipe.)English (something like): Error on transportlayer while sending the request to the server. (provider. Shared Memory-Prover, error: 0 - No process on the other end of pipe.)

View 1 Replies

Exporting A File As Pipe Delimited?

Jan 18, 2011

Currently I am building an application that will do Data Validation on an Excel Spreadsheet.The application will allow a user to load an Excel Spreadsheet in and runs checks on the data. The application needs to export the spreadsheet as a pipe delimited file with all of the fields separated by the character.Currently I have written an Excel Macro that will export it as a Text File then delimit it and save the text file as a .ps1 file. I cant seem to figure out how to write this same code in VB instead of VBA.I am currently using Visual Studio 2010.Here is the code for my Macros that work fine but I need it in the application and not on the spreadsheet.

[Code]...

View 2 Replies

When Using SHELL Can't Pipe (>) The Output To A File?

Aug 20, 2010

Just trying to get EXIF information using ImageMagick. If I set the variable command to:-

"C:Program FilesImageMagick-6.6.2-Q16identify.exe" -ping -format "%[exif:*]" "C:est.jpg" >c:exif.out
And then:-
Shell(command, AppWinStyle.Hide, True)

I don't get an exit.out file. There's a delay so it's clearly doing it. Obviously the same line from an actual command prompt does work! And I get an exif.out file... Any idea how I can shell that command off and get an output file?

View 5 Replies

Import A Pipe Delimited File (#) Into Access

Mar 5, 2009

Now i'm coding for a project in VB.net that allow user to browse to text files (i am done), after that i have to import this text file into access.

The problem i have to import a pipe delimited file (it is: #), that '#' help to distinguish each filed.

Example: my text file is: #BC2323#23241#12345. This mean that: There are 3 fileds in it: BC2323; 23241; 12345.

There is my coding for browse any text file:

Private Sub btnBrowse_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnBrowse.Click
Dim alltext, lineoftext As String
OpenFileDialog1.Filter = "Text files (*.txt)|*.TXT"

[CODE].........................

View 2 Replies

VS 2010 - How To Find Out Length Of Array

May 31, 2010

I have an array in my application and I don't know how many values there will be in the array because it gets the data from a webpage. Filling the array with information from the webpage works except for the length, it always returns 999. This is my
dim Array() as string
Array = GBA(source, "<b>", "</b>")
Count = Ubound(Array)
How can I find out the length of my array?

View 8 Replies

VS 2010 - String Length No Longer Available

Jul 17, 2011

I have an API that loads into memory from a button click. It can then either load an approx 10MB txt file (ASCII comma delimited characters/decimal list as a string) or live timed data from the internet. The idea is to be able to view the data in a text box. From there I can see what I am doing as far as spitting that info into a datagridview or database. The data is completely out of order in the txt file but has various Getinfo Functions / DLL's accessed via button clicks that split the data into its correct format to display in the text box. The problem I am having is not having fixed length strings in VB 2010. I don't know enough to work out if there is a simple work around or something more complicated required. Everything I have tried has left the textbox empty.

VB 2005 code that works:
Option Strict Off - I want to solve with this ON
Option Explicit On - I want to solve with this ON
Imports VB = Microsoft.VisualBasic
Private Sub Command3_Click(ByVal eventSender As System.Object, ByVal eventArgs As
[Code] ....

View 13 Replies

VS 2010 Graphics.DrawCurve Length?

May 3, 2010

I am pretty sure that my questions will soon get so annoying you won't answer them, but before it happens.I am using DrawCurve (with density set to default) to draw on my picturebox. I need to know the exact length (well, not *exact* but knowing it is around +/- 1px from exact length would be nice) of the curve drawn.

Is there any function in API I could use to get what I want? If not, could you point me to the algorithm (preferably implemented in any language) that I could use with array of points as an input and length as an output value?

View 13 Replies

VS 2010 Length Of The String In Pixels?

Feb 3, 2012

I have a title (in one line) that can have different lengths. I need to print this title on A4 landscape - page ( draw string in print page event), but always it should be located in the middle of the page, regardless of length. If I want to determine the exact location I have to calculate the length of the string in pixels. Or maybe there is a better way to center the string on page? How can I do it?

View 2 Replies

VS 2010 Null And Zero Length Strings?

Mar 14, 2011

This is related to my last question.Even though Access considers Nulls and zero-length strings (ZLS) separate values, often developers wish to treat them as equivalent for the sake of an If...Then statement or some other stretch of code. One way to accomplish this is to write code like this:

' Not so efficient
If IsNull(varAge) or varAge = "" Then
' do something

[code].....

View 4 Replies

Interface And Graphics :: Any Way To Pipe Output Of Bat File To Control

Mar 26, 2010

I have a visual basic .NET application that starts up a command prompt window using the following method:[code]The bat file then goes on to start up an application, which has a lot of output to the command prompt.I was wondering if there was any way to pipe the output of the bat file to a visual basic control. I am trying not to modify the bat file, if I can help it.

View 9 Replies

Reading A Text File (Pipe Delimited) Using .net Script?

Oct 19, 2011

I am reading a text file (Pipe delimited) using .net script the sample file is .. first line is column names and second is data

Part Number|Rev|State|Type|Weight|PC Wt Units|Noun Phrase|Noun Phrase Description|Noun Phrase Modifier|Bore|Bore Type|Dynamic Capacity (kN)|Number of Rows|Number of Seals|Number of Shields|Outside Diameter|Type of Ball Bearing|Width-LC|Linear Dimension Units|Max
Housing Fillet Radius|Max Shaft Fillet Radius|Heat Treatment

[code]....

So Here i am getting columns up to "NounPhraseModifier" what ever the columns after that should be inserted into PROPERTIES column.

View 2 Replies

Talk To A Byte-type Named Pipe Server?

May 22, 2011

I am writing a VB.net client to write to and read from a named pipe in byte transmission mode.I learned from the MSDN article that CallNamedPipe() only works for message-type named pipes.

So do I have other choices, or do I have to change the pipe server code to message type.

View 1 Replies







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