How To Achieve The Bus Transfer

Aug 28, 2011

I save the bus Information in the two-dimensional array.As follows:

array 0 1 2 3 ..............................
0 106 A B C ..............................
1 102 D A E ..............................

[code]....

Array(x,0) are bus lines,behind its are place.Now I want go to the E form the A(pass 106),but A can't direct to E.But A can pass 102 to E.So line is [106-102].How can I achieve the bus transfer?

View 3 Replies


ADVERTISEMENT

Using Background Intelligent Transfer Service To Transfer Files To Server?

Mar 20, 2012

I will use the Background Intelligent Transfer Service (BITS) to transfer files from a client (laptop) to a shared folder on a server within our local network.The problem is a very slow network bandwith, if we transfer a file, the other clients can´t work, all requests to other clients (application) or viewing internet pages needs a long time.My idea is to use BITS in my tool to copy/transfer a file from client to server, also I hope to get more performance for the internet requests.

View 2 Replies

Achieve My ToolStrip Design?

May 26, 2011

How to achieve my ToolStrip design the same as the picture below?

View 5 Replies

How To Achieve The C# 'as' Keyword For Value Types

Apr 14, 2009

Most of our development is done in vb.net (not my choice) and one frequently used code pattern uses an 'On Error GoTo' followed by a 'Resume Next' so that all database fields can be read with a DirectCast() and any DBNull values are just ignored.

The current code would be
On Error GoTo error_code
oObject.Name = DirectCast(oReader.Item("Name"), String)

[code].....

View 6 Replies

How To Achieve True 50 / 50 Chance

Feb 11, 2009

I know I'm being quite pedantic here. But, what is the right way to get a true 50/50-chance with a generated random number? Say, to simulate the flip of a coin. [code] I know this difference is close to nothing, but I'm doing some calculations on bell curves, in such a way that it requires true 50/50-chance.

View 33 Replies

How To Achieve Using Winform / Webform

Jul 27, 2011

I want a modal screen on startup of the computer, so that user forces to make some action on that screen. Also I want to disabled close button of the screen, It should cover entire Desktop.How to achieve using winform/webform? is parent/child form is the only solution fro this/?

View 1 Replies

What Should Pass To Achieve Block F12 Key

Sep 10, 2009

[code]What should i pass to achieve block the F12 key..

View 7 Replies

Achieve A List With All Possible Combinations Of Letters?

Sep 9, 2009

I was wondering how to achieve a list with all possible combinations of letters. Now there are some nice examples on the Internet, however, I'd like to have the following:

Let's assume you have 3 letters (A, B, C), and have a limit length of 3, then it should display this list:

A
B
C
AA

[Code].....

Now, this would be fine with recursive calls I think, but I find it really difficult to think how to code that and how the computer will execute the code. It would be easier if all possibilities had a length of 3, but here that isn't the case.

View 30 Replies

Achieve Embedded Custom Tags In Asp.net?

Sep 23, 2011

I found this example:

<telerik:RadDatePicker
ID="RadDatePicker1"
runat="server">

[Code]....

Ideally I don't want the FieldConfig class to be a visual class but it's ok if it is.

View 1 Replies

Achieve Simultaneous File Download?

May 23, 2011

I have a class that uses a BackGroundWorker to download a single file using HttpWebRequest and HttpWebResponse

Downloading single file works.

But if I make two objects of that class and start downloading 2 different files simultaneously, there is nothing produced. Execution exits after getResponse() without any error or exception.

Is there any way to achieve simultaneous file download?

View 6 Replies

Achieve The Look Of The Attached Image Using String?

Jun 16, 2009

I am trying to achieve the look of the attached image using string.Format and PadLeft/PadRight but I have no success with it, anyone who could offer some help?

EDIT:The font I used is not mono-spaced and I am not inclined to use a mono-spaced font for this.

View 4 Replies

Asp.net - Server.transfer To Transfer Execution Of A URL

Mar 9, 2011

I'm using server.transfer to transfer execution of a URL to a dummy page which fetches information from the database. The trouble is that the master page interacts with the session.

global.asax:
Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
' Fires at the beginning of each request
If Not (System.IO.File.Exists(Server.MapPath(Request.Url.LocalPath))) And Request.Url.LocalPath.ToLower

[CODE]...

Master page:
If String.IsNullOrEmpty(CStr(Session("SessionId"))) Then

Session.Add("SessionId", Guid.NewGuid().ToString)

End If

Page declaration: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="utilityCMS.aspx.vb" Inherits="utilityCMS" MasterPageFile="~/MasterPages/main.master" EnableSessionState="True" %>

Web.config snippet:
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="HttpModuleAggregator" type="XPIdea.Web.HttpModuleAggregator,xpidea.web.common" />
</httpModules>

I'm getting an error :
Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration><system.web><httpModules> section in the application configuration.

I should also mention that this same master page works elsewhere in the site. Session is used throughout the site as well (not just in the master page).

View 2 Replies

Achieve Form Controls From The Running Process?

Jan 22, 2009

dim prc1,prc2 as Process
dim f,f1 as form
dim aHandle,bHandle as IntPtr

[code].....

View 4 Replies

How To Achieve Form Controls From The Running Process

Jan 22, 2009

dim prc1,prc2 as Process
dim f,f1 as form
dim aHandle,bHandle as IntPtr

[code]....

View 19 Replies

Possible To Achieve Performance Tuning With Same Thread Concept?

Apr 26, 2011

We have developed a vb.net application using multi-threaded listener concept and a dedicated thread for each folder to monitor. With that we simultaneously keep track of the incoming files in each folder.Currently, we are facing an issue whenever we receive multiple files of bulk volume, parallel processing of the files getting delayed with thread concept or failing sometimes.We need to implement the same logic with some other concept avoiding multi-hreading. Or is it possible to achieve performance tuning with the same thread concept?

View 2 Replies

Use A WPF Control In WinForms To Achieve Transparency Effects?

Feb 10, 2011

Is it possible to use WPF in WinForms, to implement the idea used in this question. I am trying to create a semi-transparent panel.

View 3 Replies

VS 2008 Achieve Mouse Movements With SendInput?

Aug 17, 2009

I�m trying to achieve mouse movements with SendInput.

There is code that got from Pinvoke, [URL]

<DllImport("user32.dll", SetLastError = True)> _
Private Shared Function SendInput(ByVal nInputs As Integer, ByRef pInputs As InputLanguage,

[Code].....

View 4 Replies

Achieve A Drop Shadow Effect Around All Edges Of Form?

May 19, 2009

How would I achieve a drop shadow effect around all edges of my Form?

View 9 Replies

Achieve Acceptable Security Is To Use ASP.NET Web Site Administration Tool?

Dec 7, 2010

Update to my Question the best way to achieve acceptable security is to use ASP.NET Web Site Administration Tool the following is only a demo to use session but it is NOT RECOMMENDED for professional use. follow the advice of PhillFox to achieve better results

[Code]...

View 2 Replies

Achieve CSS With Constant Values , Arithmetic And String Manipulation?

Mar 30, 2012

When developing ASP.NET websites (using VB.NET web forms) - a lot of my time is spend writing CSS files and they always seem to get messy (code duplication) and very long.

All I want to achieve is to be able to manipulate the CSS using VB.NET code in the following ways:

Use an integer variable to store my "golden" number 7 and use that for width, padding, margin etc where needed
Use string variables to store my "golden" hex color codes e.g. "#44C5F2" and use them for color, background-color, border-color etc. where needed Use an integer variable to set the height of an element and have four child elements each with height: mynum / 4

I just want to use basic VB.net number and string manipulation in order to create a CSS file on the fly.

I understand that the end product - the CSS file shouldn't change much - it should at most change on a daily basis otherwise caching couldn't be used.[code]...

View 3 Replies

Achieve Is Split Or Output From Text File For Each Single ID?

Apr 9, 2009

I am having a perl script through which i achieve is split or output from text file for each single ID , the output text file will contain data of that ID and the anme of the file will be ID.txt so if i am having one main file containing 100 or 200 ID's and for each ID's may be 10000 or more lines i would like to have 100 or 200 files containing data for each single ID which i am able to achieve from perl but is it possible from vb.net

open(TH,"myfile.txt")|| die print "not open1";
open(THG,">error.txt")|| die print "not open2";
open(INFO,">myfileAll.txt")|| die print "not open3";
$gt='0';
$flag=0;

[Code]...

View 1 Replies

How To Transfer From Sub To Sub

Jul 31, 2010

I am making an advanced login form but I do not know how to transfer from sub to sub, for example using the fake templates below. How would I make my program go to "ContinueLogin"? As I have tried to explain below.

1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Button1.Enabled = True Then
WebBrowser1.Navigate("http://license.froltentertainment.com/login.html")
WebBrowser1.Document.GetElementById("username").SetAttribute("value", (TextBox1.Text))
WebBrowser1.Document.GetElementById("password").SetAttribute("value", (TextBox2.Text))
Sleep(5000)

[Code]...

View 10 Replies

BITS Transfer Via WMI?

Mar 7, 2010

I get an "invalid parameter" error back from wmi. just trying to download a file via BITS.

Try
Dim classInstance As New ManagementObject("rootMicrosoftBITS", "BitsClientJob", Nothing)
' Obtain [in] parameters for the method

[Code].....

View 1 Replies

Files Transfer Between Two Different PC

Jun 29, 2012

When try to transfer files between 2 different pc but works fine when transferring file from & to the same pc. Here is the error I am getting
Writer.position must be non negative number.

Here is the server code
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
[Code] .....

View 4 Replies

Ftp File Transfer Using .net?

Feb 23, 2012

am writing the pgm using vb.net to get the file from reomte machine & store it on local machine using FTP . but am always getting an error like "remote machine returned an error :(550) file un avaliable (e.g , file not found, no access)

Dim reqFTP As FtpWebRequest
Dim filepath As String
Dim filename As String
Dim filename1 As String

[code]....

View 1 Replies

Get Report From SAP And Transfer It ?

Jul 6, 2009

I make monthly report from SAP R/3. I wanna get these report from SAP in my VB code and transfer it somewhere, say, to Excel or XML. How to do it?

View 1 Replies

HEX Value Transfer Through RS232?

May 4, 2011

I am trying to connect a PC with peripherals thru RS232.The PC program has to send and receive value in HEX to peripherals.However, the value sent out seems to arrive at peripherals in ASCII.Following is two of my trial codes:

Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim HexArray(8) As Byte

[code].....

View 4 Replies

How To Encrypt A TCP Transfer

Sep 9, 2010

I'm building an application which transfers certain cofidential data over the internet through the TCP protocol. I wondered how I could encrypt the connection with

View 3 Replies

How To Transfer Files

Feb 23, 2010

is it possible to transfer files using vb.net? Cutting the files from a certain directory and copy it to another

View 2 Replies

Transfer Checkeditems From First One To Second One

Jan 30, 2011

I am working on a program that has two checkedlistboxes and needs to transfer the checkeditems from the first one to the second one. I finished that part, but now I need it to transfer the items that are unchecked in the second list back to the first one (in case someone accidentally does something. There is no "Checkedlistbox.uncheckeditems" collection (there is a "checkedlistbox.checkeditems" one)

View 5 Replies







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