[RESOLVED] Transfer Of Control Array VB6?

Dec 28, 2011

I have been programming in VB6 for a while now and am gradually trying to get to grips with .Net (VB 2005)I am tryng to transfer some of my programs from VB6 to .Net with some success but have got a little stuck on trying to transfer what was a control array to .neto try to sort this i have set up a form in VB6 with 4 Vscroll bars and 4 Text boxes.Vscroll1(*) & Text1(*) where * is 0-4when you change the value in any scroll bar then the associated text box value changes.

Private Sub VScroll1_Change(Index As Integer)
Text1(Index).Text = VScroll1(Index).Value
End Sub

[code].....

View 8 Replies


ADVERTISEMENT

VB Database Transfer To 2-way Array?

Dec 30, 2011

How i can fill 2-way array (integer type) of records from my tabel from file data base. Tabel is also integer type ?? i try many way but i can solve this problem . Pls help me .

ok question was not clear i wona copy all records from one of table from db in file (mdf) to 2 way array but only 6 from 9 columns of this tabel .

View 3 Replies

TCP File Transfer Using Byte Array 'Chunks'?

Jul 21, 2011

I've been trying to create my own backup system by sending specific files to a server running on my desktop, and then having those files copied to an external. So far, I'm trying to send files using a tcp network. Unfortunately, for soem reason, tcp cannot send more than 9kb at a time, so when i tried to send a 30kb image, it recreated 1/3 of it. My fix to this problem was to send data by chunks of 8kb, then reconstruct the file chunk by chunk. For some reason, when I run the server and client, the client says it sends all the data, however the server seems to be stuck. Here is my code;

[Code]...

View 2 Replies

Transfer An Array Of Variable Length Between Subroutines?

Feb 3, 2011

I have 2 arrays X(n) and Y(n). I would like to pass them between subroutines:

Sub sub1()
...
call sub2(X,Y)[code]...

The problem comes when n can be changed in sub1 say a textbox. How do you transfer an array of variable length between subroutines?

View 3 Replies

Asp.net - Transfer Between Page And Web Control?

Aug 3, 2011

There are test.aspx page and test.ascx web user control.

I have a button in test.aspx = btn_test and above code in my button is :

Dim ct As Control = Page.LoadControl("test.ascx")
Panel1.Controls.Add(ct)

There is a dropdownlist with value 1 to 10 in test.aspx and there is label_test in test.ascx

I need some code when test.ascx loading, get dropdownlist.selectedvalue and show it in label_test.

View 1 Replies

Internet Transfer Control Request Timeout?

Jun 10, 2009

I am getting an error 12002, which is Request Timeout.I would like to know what its default timeout is.

View 1 Replies

Adding A File Transfer Through A Winsock Control In App?

Jul 21, 2009

Im adding a file transfer through a winsock control in my app. But the connection to it seems to be wrong

clientside Private Sub cmdConnect_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles cmdConnect.Click

[Code]...

View 1 Replies

Asp.net - Get User Control Property After Server Transfer?

Apr 14, 2011

I have a host page with multiple user controls in it. Some of these controls have a user created property named Enabled, and is boolean.In some controls the default value for Enabled is set to False. In the host page, I am able to access the property and set it to True. The control does what it is supposed to.On this host page there is a "Run Report" button which executes a Server.Transfer to a "Results" page.In the codebehind of the results page, control values from the PreviousPage are checked via other user created Properties for the controls and added to a ParamterList.

I am attempting to check the Enabled property of the controls on the PreviousPage, however when this is done, it appears that the Enabled property is set to that of the default (in this case False), and not what I had set it to on the page when it loaded.Does the value of this property need to be put into a hidden text box or something so its value is available after the ServerTransfer? It seems like any control which contains a value is retrievable via the PreviousPage and its user created property, but any variable set inside of the control is reset back to its default value.

View 1 Replies

Asp.net - Transfer Data From A Web Form To A User Web Control?

May 1, 2011

How can I transfer data from a web form to a user web control ? does the diffrence in the programming language affect ?

View 1 Replies

Way To Be Able To Use Tab Control On Main Form And Transfer All 3 Other Forms

Feb 8, 2011

I am looking for a way to be able to use the tab control on my main form and transfer all 3 other forms onto that main form that has the tab control. Problem being is that some functions are named the same in each of the septate forms i want to bring into just one for the tab control.Is there a way to separate the code for each form ON the main form of the tab control so i don't have to rename/recode each of the 3 forms i want to place on the main form of the tab control? [code]so when i put both form1 and form2 code on the main form where the tab control is, its going to tell me that i have a duplicate function name.

View 2 Replies

VS 2010 Internet Transfer Control Omitted From Express?

Dec 30, 2011

I'm trying to write a program using Internet Transfer Controls, but I'm using Visual Studio (Visual Basic Express) 2010.

Is Internet Transfer Control omitted from the express version?

View 1 Replies

Transfer Data From A Table In Access To A Listview Control In Excel?

Feb 9, 2010

I am currently building a tool which uses access as the backend and excel as the user interface (I am unable to change the applications).I would like to be able to use the listview option, howver I haven't a clue and searching on the internet is causing me a headache.

Basically what I would like to do is get the heading names from the table in access and populate the listview, later on I will what it to look at specifc data to populate the list view.

My connections is already open, I think I'm ok witht he sql, its just the other bits.

View 1 Replies

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

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

Vb6 Migration - .net Taking Too Much Time To Load User Control Containing Label Control Array?

Dec 22, 2011

I am upgrading user control from vb6 to vb.net.In the vb6 application I am loading 3000 labels using a label control array.In vb.net I am doing same but it's taking too much time to load.In vb6 it's taking 1-2 seconds, but in vb.net it's taking 30-40 seconds for same work. Why does it take too much time in vb.net for same work?Code is given below, here Led is the label control array.

For l = 1 To 3000
Led.Load(ledCounter)
ColLed.Add(Led(ledCounter))

[code]....

View 1 Replies

Transfer Control To The New Instance In A Single Instance Application?

Jul 15, 2011

I have a single instance VB 2010 application I know how to communicate with the next instances run through the StartupNextInstance application event. The usual way of working with this is parsing command line arguments of the new instance and continue execution of the old instance. What I would like to do is replace the running instance with the new one. Is there any way to do this other than disabling the single instance property ?

View 1 Replies

Resolved How To Play Sounds In Vb 9

Oct 29, 2009

i wanted to make a piano with visual basic 2008 and i searched around the internet to see how to play a sound but my search returned results relating only to visual basic 2005 & 6 so i am again forced to waste your time (sorry about that) oh and i also have the wav soundfiles i only want vb to read them in the final exe

View 3 Replies

VS 2005 The Remote Name Could Not Be Resolved?

Feb 19, 2010

When trying to connect an URL, thru my vb.Net application using System.Net.WebClient object,I got the following exception

View 6 Replies

VS 2008 [RESOLVED] ComboBoxes

May 11, 2012

I have 3 Combo boxes that have number 1-9 in each, i would like to make it so that if the first one is set to 9 then the and the second it set to 8 then the first 1 is set to 1, i need them to only equal 9 through all the boxes?

View 6 Replies

[RESOLVED] Application For 64 Bit Computer?

Apr 2, 2009

I wrote a small application for a friend that opens a Excel sheet, get's some data from it and stores that data into a file. I compiled it for AnyCPU (I also did a compile just for his 64 bit machine, same result).Here is the problem:He is able to run the program on a 32 bit computer without any problem, it just won't work on his 64 bit computer.Here is the error he is getting App failed to initialize properly (0xc0000135)

Is this my problem or could this be his problem? As far as I can tell I'm all up to date with VS2008.Is there somewhere I can look specifically what the latest build is for VS2008? I am using VB2008.

View 7 Replies

[RESOLVED] How To Make A Key Generator

May 3, 2011

I m new to VB and i just need a special keygen which i dont know if exists yet or not.First off i'd like to mention that i dont want to make a keygen that will generate a random key out of keys that i have to manually code in (cases) E.G.

[code]...

I want to know how to make a keygen that will generate a letter/number randomly out some example letters which would need to be defined.E.G.Random number out of 0-9 (0,1,2,3 etc) Random letter from A-Z (A,B,C etc) And then obviously display generated key in TextBox. Ideally i would like to improve this more but if i could get the basics then i would move on from there

View 8 Replies

[RESOLVED] Looking For A Word In A Sentence?

Oct 14, 2009

I am looking for a way to display a whole sentence if a word that Iam searchign for found in that sentence:Here is an example:

[Sun Aug 30 2009 04:01:12] Ping failed.
[Sat Aug 29 2009 04:01:10] Ping failed
[Fri Aug 28 2009 04:00:37] Ping failed

[code]....

View 4 Replies

[RESOLVED] Run Exe As Embedded Resources?

Nov 19, 2011

I am wanting to use a vnc installer as an embedded resource, and if the computer running the program does not have vnc installed then typing in a password will install vnc. I have tried everything I can think of and running the process from my computer works, however when ran on a different computer i get the error "File not Found". I am sure I am not calling the embedded resource correctly. I am using Process.Start(" ightvnc.exe /S")

View 24 Replies

Transfer Control To A Different Form When One Form Is Minimized

Dec 15, 2011

i wanted to transfer control to a different form when one form is minimized..,how do i achieve this?

View 4 Replies

Resolved Integer Double String?

Sep 8, 2009

i've got another problem with my coding in this sub...

Private Sub buyLemon_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles buyLemon.Click
lemonL.Text += 1

[code]....

View 10 Replies

Resolved Stumped Regex Works In C# But Not VB?

Jan 12, 2010

I'm working through the Pro ASP.NET MVC Framework book by Apress (which is great, btw) and it's in C# although we mostly work in VB so I'm "translating" the examples along the way. So far so good but I ran into something that has thrown me.Long story short we need to validate that the string the user gave us as an email address. This returns true in C#:

Console.WriteLine(System.Text.RegularExpressions.R egex.IsMatch("Me@me.com", ".+\@.+\..+"));

But this returns false in VB:Console.WriteLine(System.Text.RegularExpressions.R egex.IsMatch("Me@me.com", ".+\@.+\..+"))

View 2 Replies

VS 2008 [RESOLVED] ListView Changes Mid Code?

Aug 27, 2009

This one is causing me a lot of frustration, and as far as I can see, it should work. What I have is a form with 9 ListViews (ListView1 through 9), and I want to add items to them.The issue is, I have a routine that sets which ListView to use. Say I have set it for ListView4, it works initially on the first file, but after one line of code. it reverts back to ListView1 for the remaining files. (itmModelItem = lvwModels.Items.Add(ModelName) in AddModel.

[Code]...

View 3 Replies

VS 2008 [RESOLVED] System.Net.Dns.GetHostAddresses

Apr 9, 2010

Yesterday s**ked, and today ain't (sic) looking better. I have an application I have been working on and it can be slow to start when my ISP is down because of DNS. My ISP was down for 3 hours yesterday, so I didn't think much about this piece of code I had added, until I found that it is always slow to start. This code is supposed to return your IP address and my reading of the link suggests that should be immediate, but it isn't, at least on my machine.Oh, and yesterday before the internet went down, I upgraded (oymoron) to XP SP3, and have had other problems.So my questions / request:

1. Am I doing this right?

2. If you run this on your machine does it take 39 seconds to return your IP address? [code]

View 11 Replies

[RESOLVED] Need Help With 8 Bit Binary Number Manipulation

May 4, 2012

GUI: textbox1.Text, button, textbox2.Text What i want to do is when the user inputs an 8 bit binary number The program finds the places of ones and outputs them For example: user inputs 00010011, the program outputs a 4,1,0 because the 7th place is the one closest to the left and the 0th place is the farthest, e.g. 76543210 is and in the 8bit string the 4th 1st and 0th are ones I was thinking of something like this:

[code]...

View 4 Replies

[RESOLVED] Simple 3D Graphics With DirectX

Jun 6, 2010

I'm just having some difficulty with nitpicky details. To give you a gauge of the level of programming I'm at I'll just tell you about some of the work I've done. Of course, you can skip down to the last paragraph if you don't have the time.I've created an emulator for a programming language I call "Blue Code". It's kinda a spoof on Redcode, which you may have read about before. You load programs which use simple commands like add, divide, copy, jump, split (like making a new thread), etc. You can load multiple programs in and each instruction sits on a line of a circular memory. Then each program takes turns trying to get the other to run an illegal function, at which time it looses. I think it's quite a bit better than Redcode actually.I also wrote a program a couple years back (when I was 13?) that draws fractal trees, it's quite fun.

So, I have a pretty good grasp on VB, but recently I got into 3D graphics using the Direct3D library. Unfortunately, the function I'm using to save meshes is not working. I know the rest of my program works just dandy because I've loaded quite a few sample meshes. Now, I've come to the conclusion that my saving code is irreparably broken, so I won't even show it to you. What I need is somebody to write an outline of what I need in a saving function, or, better yet, actually write a saving function which I can customize to my purposes. The parameters are, a somewhat unconventional List(of List(of CustomVertex.PositionNormalTextured)), List(of Material), and List(of String). List of lists includes a bunch of lists of vertices I wish to use, where each list represents a subroutine. The list of strings and list of materials represent texture file names and surface materials respectively.

View 3 Replies







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