Output Of The Program Segment?

May 12, 2010

What is the output of the following program segment?

[code]...

View 11 Replies


ADVERTISEMENT

Connecting An Application Program To SQL Server From Another Network Segment?

Jun 8, 2011

I want my vb.net application to access the sql database from another network segment.I have two network segment, the application program that I made is in 192.168.7.xx segment and the SQL Server 2005 Enterprise Edition is in 192.168.1.xx segment but that application program cannot access the sql server unless I make them in the same segment.

View 1 Replies

Program Run Out Of Memory - Draw Segment Of The Spline To The Bitmap

May 31, 2009

I am building an app that builds a bunch of cardinal splines by storing their PointF structures in arrays. As the program runs, new points are added to the arrays, and the graphics are drawn to a bitmap. I can let it run for ages and the splines just keep growing like they should with no problems. The amount of points in each spline can grow into the thousands. To speed up execution as time progresses, I don't completely redraw the splines after each pass, I simply draw the last segment of the spline to the bitmap, having let the bitmap 'record' the earlier part of the splines.

But if I pan across the scene or zoom in/out of it, then I DO have to completely redraw the splines, since the size and resolution of the display is limited to its dimensions. Panning works, no problem. But if I zoom in and out of the bitmap with the mouse wheel, after about 14 wheel clicks, I get an "Out of Memory" error. BUT...I have it set up so that whenever the mouse wheel turns, the graphics and the bitmap are disposed so that new ones can be built for the new zoom setting. So why would the program run out of memory when as far as I can tell, I am disposing of all my unused, unmanaged resources on a regular basis?

View 3 Replies

No Output In Asynchronous Program - Retrieve Output After The Events Are Invoked?

Mar 1, 2012

What I am trying to do: There are three powershell scripts with different time delays as shown below.I am trying to run them asynchronously in .NET and I followed this article to implement Asyncrhonous programming. Where I am stuck:The I am not able to retrieve output after the events are invoked.The scripts are being called but then the program ends and it shows "Press any key to continue" in console windows.I don't what I am missing here.

Info: JobRequest is a class that I use to pass around information keep track of jobs.

Sub Main()
OurAsyncFunctionCalling("psDelayScript2.ps1", "-arg1 4 -arg2 5", 1)
OurAsyncFunctionCalling("psDelayScript1.ps1", "-arg1 2 -arg2 3", 2)[code]......

View 1 Replies

Trying To Understand Code Segment (XML)

Nov 21, 2009

I'm just getting back into VB and was never a pro. The last environment I was in, briefly, was VB6 but spent a good amount of time coding in early VB's back to QB.I'm trying to read RSS feeds and found a nice demo reader but now I want to understand the code I'm seeing:[code]

1. Why does the demo create a new XML to read through an existing XML or is this all in memory as I can't find an actually file? Is this even needed as what I want to do is read the RSS feed, grab some info from it (Source, Title of each story, Date stamp, author and the story text) and then process that in various ways (not actually view it... I want to e-mail specific stories directly to me that fit my search criteria). Or is this just opening the XML out on the web? That would explain why sending it "test" gives me an error saying it can't find "test" in the bin folder as without an HTTP address it goes local.

2. doc.load... what check can I perform here to be certain that the data entered by the user is actually a valid feed? It should, for example, have a first line header that is reliable but is that the best method?

3. Where or how are the elements stored that I can then refer back to pull the data out I want?

4. I don't understand how this part works: navigator.Select("/rss/channel/item/title") Can someone shed some lite on the 4 pieces at the end?

5. I'm assuming the clean-up isn't really needed for e-mail but I didn't remove it as it doesn't seem to harm anything.

View 2 Replies

Change Color In A Segment Of Fastline?

May 23, 2010

i need to draw a fastline chart but i need to change color of a specific range.how i can do it?

View 2 Replies

VS 2008 Execute A CLI Program And Have It Output Or Return What The CLI Program Saids Such As Ping Etc?

Apr 25, 2009

Is there a way i can execute a CLI program and have it output or return what the CLI program sais, such as ping etc.

View 3 Replies

Mortgage Amortization Program Output?

Jan 26, 2009

I am suppose to be creating a mortgage amortization program that calculates the monthly payment and the amortization table for a mortgage based on user input of the mortgage amount, the interest rate and the length of the loan. I have worked on the program all week and finally got the program to compile; however, the interface does not give me any output. I already posted the assignment yesterday and am getting a C in the class but each week the program builds on the last week? Attached is the complet VB 2005 project file.

Public Class MortgageCalc 'Forms Click Event Handler
Private Sub MortCal_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Click
End Sub

[code]....

View 3 Replies

Redirect Output To Window Within Program?

Dec 21, 2011

I made a Visual Basic program that adds an interface to some Windows network diagnostic tools like Ping and Telnet. Currently the program opens a new DOS window and displays the results. For each system you test or each time you hit the button it opens a new window.

What I want it to do is redirect the output back to the program and display it using a List box or whichever is the best choice for displaying results. I have checked out posts that talk about capturing the text and redirecting it back to the program but I can never get those to work.

Is there an easy answer for this or does it entail a lot of additional coding? I am using Visual Studio 2008.

View 1 Replies

Sends The Output To Our Charting Program?

Jun 4, 2009

2.0 Framework.Our software does some measurement and then sends the output to our charting program. Right now it is taking 20-30 seconds for the results to print after our chart has sent the data to the printer since the printer is in sleep mode. What we are wanting to do is send a command to wake the printer at the end of our test, before it sends the results to the charting program, so the printer is (hopefully) done "waking up" by the time the chart program auto prints.

I have been looking around and haven't been able to find anything regarding this. The printer we are mainly using is a Brother HL 5250DN. I have contacted Brother but I have yet to hear anything back from them.

View 1 Replies

Unable To Get Sp Output Parameter Value In Program?

Jun 25, 2009

I am having a stored procedure in sql 2005 the procedure is to retrieve year code between two days it works correctly in sql query analyzer and it returns value [code]...

View 2 Replies

VS 2010 Program Keeps On Displaying The Same Output

Dec 2, 2010

I am working on a program where a user either enters "small" or "large" and then the number of toppings. Once the user has done that my program outputs the total cost of a pizza based on user input.

My problem is no matter if I enter LARGE or SMALL into the textbox for size of pizza the output displays "A small pizza with 2 toppings cost: $x.xx"

It also displays the price of the pizza as a small one. So somewhere along the lines it changes everything to be small.

this problem only started occurring after I made this procedure.

Procedure that I believe is causing problem
Function IisUserInputValidSizeOfPizza(ByRef mytextbox As TextBox, _
ByRef errorMessage As String) As Boolean

[Code].....

View 2 Replies

Asp.net - Global Code Segment In MVC View Giving An Error "Expression Expected"

Sep 6, 2011

I have a View in which I have a code block where I am setting some variables and later on using those variables to show or hide some areas.When I build this website. A compilation error comes up on the line @( stating Syntax Error and another one stating Expression Expected. Can anyone guide me what I am doing wrong here...

[Code]...

View 2 Replies

Output Screen Just Flashes On Running Program

Sep 30, 2009

I have windows 7 installed on my laptop and visual basic 2005 academic edition as well. I can use VB but when I go to run program, it compiles, links, and executes, but the output screen just shows up for about 1 second. I have tried updating my computer and manually updating VB2005, with no luck.

View 3 Replies

Program To Select The Proper Output In The Listbox?

Feb 5, 2010

I need my program to select the proper output in the listbox based on what the user input as the delivery code!I have attached the complete file that is run in Visual basics 2008 express edition.

This is the code:

Public Class frmMain
Private Sub btnExit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnExit.Click

[Code].....

View 1 Replies

Sales Commission Program - Output Values?

Oct 21, 2009

I wrote this code and everything works as planned:
Module SalesCommissionProgram
Sub Main()
Dim name As String = 0
Dim code As String = 0
Dim monthlySales, commissionDollars As Double
' Prompt user to input value for name
[Code] .....

For the finished project I am supposed to have it output the total sales and commissions for that were calculated before the sentinel value (Eugene) was entered. Here is what I tried and here is where I am lost.
Module SalesCommissionProgram
Sub Main()
Dim name As String = 0
Dim code As String = 0
Dim monthlySales, commissionDollars As Double
[Code] .....

View 10 Replies

Use Select Case But When I Run The Program It Won't Output To The Text Box?

Mar 15, 2010

I am taking an intro to VB 2008 course and i am having difficulties with a particular project.The project is to calculate to Federal Tax based on income, I am trying to use Select Case but when i run the program it won't output to the text box. i did the problem using If/Else blocks and it worked perfect. Do I have to put the txtTax.text output statement somewhere else?

Private Sub btnCompute_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCompute.Click
'Project 3 using Select Case
'Program is to find Federal Income tax[code].....

View 2 Replies

VS 2010 Output Data Without Slowing Program Down?

Nov 28, 2011

So I got this program to generate me some data and I want to show that data to a label.

If I don't do a display I can generate about 20,000 data per second, but if I do, I get about ~9,000 data per second.

PS. Since the generating logic in is a thread, I have a function that does the displaying to the label.

View 1 Replies

.net - Validation Summary Control ASP.NET Program Output Error?

Aug 3, 2011

I am executing this validation summary program in Visual web developer 2008 express edition, found the validation summary property is not visible in output.

<div><asp:ValidationSummary ID="sum1" runat ="server" ShowMessageBox="false" HeaderText="You details cannot be processed due to following errors:" DisplayMode="BulletList" ShowSummary ="true" Font-Names ="arial" Font-Size ="12"></asp:ValidationSummary>
<asp:CompareValidator ID="cmp1" runat ="server" ControlToValidate ="txtname" Display="Dynamic" Operator="DataTypeCheck"

[code]....

View 1 Replies

Create A Program That Produces Random Sentences As Output?

Nov 14, 2010

I'm trying to create a program that produces random sentences as output. With five arrays of strings, one each for nouns, adjectives, verbs, prepositions, and articles. Each array should hold several words for that part of speech. It's supposed to generate sentences by randomly choosing eight words (randomly generating eight array indices) from these arrays, always constructing sentences by using the parts of speech in the following order: article, adjective, noun, verb, preposition, article, adjective, noun.Also, theh code should be properly modularized so that the code to generate each part of speech is not repeated.

View 8 Replies

Dynamically Output Checkboxes To Aspx Page In Program?

Feb 10, 2010

I have 50 checkboxes that I need to write onto an aspx page. Each checkbox comes with 3 textboxes.[code]...

Now this shall go for all 50 states, depending on which states the person wishes to donate. In each state's row shall be a checkbox. So initially the page shall have value 0.00 in donation and new donation checkboxes, but all 50 states shall be visible. When the person puts a value of donation in certain state, that state shall get "checked" value and the donation, after submitting. On reloading, the value shall be populated automatically and checkbox checked automatically.

How do I make these 50 checkboxes in VB.NET?

View 2 Replies

Social Security Program, How To Remove Dashes For Output

Oct 18, 2011

Hi, I am doing the SSN program.So when I type "345-584-5869", it should display "3455845869".I'm just learning how to use string manipulation.My problem is I cannot get all dashes remove when I output

' Name: Social Security Project
' Purpose: Removes the dashes from a social security number
' Programmer: <your name> on <current date>

[code].....

View 6 Replies

VS 2008 Additional Output To Data Extraction Program?

Sep 24, 2009

This is my current output in a textfile that is created during the program. (Its different from my previous post)

!CH1 = S11,CH2 = S12,
-66.979,-60.518,
-61.403,-60.546,

[code]...

View 17 Replies

VS 2010 Program To Output A String, Based On Each Value Not Selected

Jun 7, 2012

I have 12 Boolean values in an array. Each of these values represent a CheckBox in my application. I want my program to output a string, based on each value not selected. Each of these values will have a predetermined string that is different from the CheckBox's caption and will be joined to create a final string. I want to generate all the possible combinations for when there are 1, 2, 3, 4 and so on up to 12 of these options at once. I can better explain my problem through the repetitiveness of the code below.

[Code]...

View 12 Replies

VS 2008 Write A Program That Will Output The Sum Of The Powers From 1 To The Supplied Number?

Jul 17, 2009

Write a program that will output the sum of the powers from 1 to the supplied number. For example an input of 4 will produce 288 ( 1 exponent 1 + 2 exponent 2 + 3 exponent 3 + 4 exponent 4 = 288)how can i work with this?

View 37 Replies

Output A Graph Drawn In Program And Plotted With Data To Pdf File Format?

Mar 31, 2010

Is it possible to output a graph drawn in vb.net and plotted with data to a pdf file format? or any microsoft office format?

View 3 Replies

Save Application Data (input+output) In A New File Format In Program?

May 16, 2011

I work in an engineering design house and programming is not my actual profession. And I am relatively new to VB .net (previous i had worked in vb 6)

I am working on an in house application. I am coding a simple application in vb .net. This applications takes a few inputs from user and calculates a result. Now I want to implement a simple functionality that user should be able to save the input and results just like most of the windows programs can in a new file format. And user should be able to open the save file when desired.

View 10 Replies

Unable To See In Output Window Number 5 As Output?

Sep 25, 2011

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Microsoft.VisualBasic.Interaction.Beep()
System.Diagnostics.Debug.WriteLine(3 + 2)
End Sub

Why I don't see in Output window number 5 as output?

View 4 Replies

Cannot Change The "Output File Folder" Value In .net Program

Jul 16, 2010

Under the program properties, tab devices, I am unable to change the value listed. Is there a value elsewhere that controls the editing of this field?Example:Under Projects...Properties...Devices current value is %CSIDL_PROGRAM_FILES%estDial I want it to be %CSIDL_PROGRAM_FILES%CCClark?

View 3 Replies

Cannot Change The "Output File Folder" Value In .net Program?

Apr 22, 2011

Under the program properties, tab devices, I am unable to change the value listed. Is there a value elsewhere that controls the editing of this field?

Example:Under Projects...Properties...Devices

current value is %CSIDL_PROGRAM_FILES% estDial

I want it to be %CSIDL_PROGRAM_FILES%CCClark

I have searched the forum and cannot find the answer.

View 1 Replies







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