Any Alternative Available For Control Array?

Aug 16, 2009

I was just wondering if there is and alternative for control arrays in .net as these were quite handy in vb6?

View 8 Replies


ADVERTISEMENT

VS 2008 Alternative To A 2 Dimensionable Array?

Jul 24, 2009

I'm writing an app that reads zip files from a folder and then displays them in a listbox. As a user clicks on one of the zip files in the list they can see a particular file that is located inside the zip archive in a textbox. The way I'm doing this now is to read the files from the folder and store the zip file name and the file associated with it into a two dimensional array. Kind of like this:

Dim a_files(500, 1) a_files(0,0) = name of zip file in folder a_files(0,1) = name of a particular file in the zip file The problem is that there may be more than 500 files so the array has to be scalable. I know you can use 'ReDim Preserve' to resize the right element on the fly, but I need to resize the left element. I've looked at collections, but I can't see an example where they can be multidimensional. Does someone know of an alternative way to store these values that would have the flexibility I need?

View 19 Replies

Alternative Than SendKeys To Change The Focus In The WebBrowser Control?

Mar 4, 2011

At the moment I have this to change focus of an element:

SendKeys.Send("{TAB}")

Instead of using that I was wondering if I could do something like this:

WebBrowser1.Document.All("id").InvokeMember("click")

But to get focus to the next element in line, like the next one from the current focused item.

View 1 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

Auto-renumbering Control's Control Array?

Jun 21, 2010

The situation is like this, says:I have textbox1 to textbox20 to show real-time reading, then textbox21 to textbox40 for other purpose. So textbox1-20 can be manage in group through: For index As Integer = 1 To 20 Form1.Controls("Textbox" & index).BackColor = SystemColors.Window Next The problem is, after some time i feel i like to change the order or add/delete few textbox, then i need to change the control name one by one by entering the name by hands(says if i add a text box then its name will be textbox41, then then For loop wont work, Or I deicided to delete the textbox15, forloop wont work either, then i need to rename them manually.)

Question: If there a ways that create a control array in VB 2008 express edition? which can set the name of Textbox1-20 to ButtonGroup then refer to them by says Buttongroup(1) for textbox1? (which means set a group of control in one name)

View 2 Replies

How To Find Out If A VB6 Control Is Indexed (control Array) In .NET

Dec 16, 2010

I working on a VB.NET project to manipulate a VB6 form using COM Interop. Some of the controls on my VB6 form are indexed and some not, so calling ctl.Index fails on those that have no index. Is there a way to work out if a control is indexed?

View 1 Replies

Creating Control From 'control Array?

May 8, 2011

I have an array of picture boxes as so:

Dim pieces(500) As PictureBox
pieces(1) = New PictureBox
With pieces(1)

[Code].....

The program does not crash or anything, but the picturebox is no where to be seen on the form. How to I make this work correctly?

And is 'Control Array' the correct term for this? or something else?

View 2 Replies

Get The Index Of A Control In A Control Array?

Dec 26, 2009

I populated a form with several progress bars and added a function to handle a click event via AddHandler. The event fires and I have been able to do things with the control using the passed object 'sender', but I can't for the life of me determine what the index of the control is in the array.

Why is that important to me? Because I want to click the control, have a container of textboxes become visible, and populate them with data from the reference in my database based on what control was clicked, and update that data as needed. Making the container of textboxes visible, and even moving it based on the location of the clicked control in the array are all done and working fine. I just can't seem to get the index of the control.

I need to know what entry (progress bar in this case) was clicked. In the function, I can even do things with a select progress bar using something like pb(x).value = some integer, but I'm trying to find out what 'X" is when the click event fires.

Here are some code snippets...

'Populate page 0 of tab control with progress bars
'TimerCount(int) = number of timer instances active in the database
For x = 0 To TimerCount

[code]....

EDIT: I figured out a work around using the 'name' property, but I would still like to know if what I asked about an index is possible.

View 6 Replies

One Tooltip For Control Array; Not One For Each Control?

Mar 27, 2012

I have an application with as many as 625 Textboxes in a runtime generated control array.I add textboxes one at a time in a subroutine.The application ran with no problems until the parameters required more than 256 textboxes at which point it slowed drastically as textboxes were added. At circa 400 Textboxes it died with an out-of-memory condiiton.

The system has 8GB & a 64Bit version of Windows 7.It looks like the tooltips are eating up memory, causing excessive use of virtual memory from Hard Disk & finally causing out-of-memory.I am now running the application with a label which flashes when the mouse hovers. This uses the Handler for MouseHover.Is it possible to get a single Tooltip to function for all the Controls in an Array? I would prefer this to using the Event Handler.

View 5 Replies

Alternative To SQL CE?

Jul 15, 2010

I've created an app (VB.NET) where each installation of the app works with a single local database on the PC. No multiuser and no ability for the user to change databases - the database is effectively part of the app, with a fixed scema, only the data will change.At the moment the database is SQL CE. It has about 30 tables with some simple relationships between the tables.

I'm wondering if there is an alternative to SQL CE that might be faster in this scenario. Although SQL CE is excellent and easy to use, I get the feeling there is perhaps an unecessary overhead when using it for something simple - and it does seem a little slow when my app is doing complex stuff that interacts a lot with the DB. In my prototype I actually loaded the 'database' tables from text files into Arrays and developed subs and functions to perform the database searches etc. It was blindingly fast but I realised it wasn't a scaleable solution because it was an 'in-memory' database. A compromise would be to 'page' data into array when needed, but it all gets horribly complex and that's probably why some very clver people have created SQL CE !

View 3 Replies

.net - Namespace With An Alternative Name?

Jan 27, 2011

Using VB.net, I have a namespace which I'd like to rename for the future. However, I'd also like to keep the old obsolete namespace for a time to ensure backward-compatibility for our consumers for awhile. Is there a way in .NET to have two namespaces, one ordinary and one that merely is an alternative name for the other?

[Code]...

View 2 Replies

Alternative DateTimePicker?

Apr 2, 2009

From the WINDOWS Date & Time settings FORM is this accessible as an alternative

View 1 Replies

Alternative For Each - In Loop ?

Mar 31, 2012

Below is the code for a linked list search I have tried to implement in to searching through each of the elements of htmlelements .For some reason If element.InnerText = (item) will only work if if is only a string ("example") .Are there any other ways of Implementing the for each loop to search through my item linked list?

Original code for searching for 1 string

Private Sub block()
Dim elements As HtmlElementCollection = webBrowser.document.All
Dim word_found As Boolean
word_found = False

[CODE]...

This is the Loop for item I have tried to implement but is not working ,because of the for each loop .The value of element.Innertext = "" or null when I try to use one of the linked list item[If element.InnerText = (item)] is used and only have a value when a string is used to [If element.InnerText = (google)]

Private Sub block()
Dim elements As HtmlElementCollection = webBrowser.document.All
Dim word_found As Boolean
word_found = False
Dim item As LinkedListItem = words.Head

[CODE]...

View 1 Replies

Alternative To A Combo Box?

Apr 28, 2010

I've encountered a problem in a application that I inherited. It contains a combo box that loads information.The problem is that there are more data that the control will hold (32767

View 2 Replies

Alternative To Uri.EscapeDataString?

Nov 6, 2011

Is there an alternative to Uri.EscapeDataString? I'm trying to upload an image, by converting it into a base64 string, but I need to use Uri.EscapeDataString on it first, and if the image is big then Uri.EscapeDataString will say that the URI is too long.

View 2 Replies

Asp.net - Alternative To TidyCOM

Dec 31, 2011

My clients web application is using TidyCOM to clean up dynamically created XML files from a SQL database query. With this TidyCOM, they are not able to upgrade the web application to .Net 4.0 framework. Is there an alternative to using TidyCOM so that these dynamically created XML files are validated correctly?

View 1 Replies

Best Alternative For QueryString?

Feb 28, 2009

We heard a lot about the vulnerabilities of using QueryStrings and the possible attacks.Aside from that, yesterday, an error irritated me so much that i just decide to stop using QueryStrings, i was passing something like[code]....

View 8 Replies

Getting Alternative For Outlook?

Jul 11, 2010

My VB application also needs to manage simple appointments in an agenda, however one user has no MSOutlook. Someone knows of an alternative calendar tool, with which I can do this?

View 2 Replies

Is There Alternative For Timer

Jun 9, 2011

is there an alternative for timer?

View 4 Replies

Looking For A Alternative To SendKeys?

Jun 8, 2010

So I've been doing a lot of reading today and apparently SendKeys isn't very reliable anymore.Does anyone know of another alternative to it for what I need:

The application works by the form being positioned over a open window, notepad, word, excel etc and it then determines what it is over, notepad, word, excel etc and then reads the file, and does some processing using SendKeys at the moment.Though I do believe I could probably change the later at some point. The problem I'm having right now is when I try to send the Alt + Tab to change focus it's working roughly 12% of the time.If you are wondering I ran it 50 times and it worked 6 of those,thus the 12%.I'm thinking that is rather unacceptable.This is what I'm using which should work: SendKeys.SendWait("%{TAB}")

XP Service Pack 3 and vb.net 2005

View 16 Replies

Sendkeys Or An Alternative?

Aug 30, 2010

First off, using VB2010. I'm in the process of upgrading some applications from VB6 to 2010 and haveing a great time of it. The current application I'm working on is using Sendkeys of which I have changed over to the WSH.Sendkeys of which is pretty decent. Basically the program is copy and pasting the current open file, reading some data and saving it as a different file type. It also has to change xls files to csv and then saving it to the format as well as a smiliar thing with word. Thus the reason for the copy and paste as it's changing the extension to a dot date (for example, test.830).This is the flow of how it works for a text file (most basic)

1. changes focus to notepad

2. Select all Copy to ClipBoard

3. Open Programmers File Editor and a blank file

4. Paste in text

5. Save as code.date extension to the directory

Excel files obviously have a few extra steps.

View 5 Replies

System.Web Alternative In The .NET

Sep 22, 2011

I need a good alternative for System.Web that is included in the .NET 4 Client Profile. Currently all of my frameworks are included in the client profile, except System.Web. What is a good alternative?

View 7 Replies

Set Control Array In .net?

Aug 19, 2009

how can we set control array in vb.net

View 4 Replies

What Is The Best .net Alternative To Dde For File Associations

Aug 13, 2009

I have an MDI Windows Forms application (.net 2008) that allows the user to associate various file types with the application. I currently do this with a registry entry something like this, that causes the application to load and access the file name via the command line:[code...]

In the pre-.net version of the application, I used DDE (ddeexec in the registry). If an instance of the application was executing when a file was double-clicked in Windows Explorer, it would open the file without starting up a new instance of the application.

Now that DDE has been deprecated by Microsoft, what is the best way in .net for an executing MDI application to open an additional file when the file is double-clicked in Explorer, as opposed to starting a new instance of the application?

View 1 Replies

Alternative For INKEY Command?

Sep 23, 2007

I'm running Visual Basic.net. I used to use the INKEY command, available in older DOS versions of Basic, to allow the user to change the flow of a program by touching a keyboard key. It seems to be available only in Visual Fox Pro. Is there an alternative for Visual Basic?

View 4 Replies

Alternative To InnerHTML/outerHtml?

Oct 24, 2011

If I wanted to make changes in page site (using with WebBrowser, and only the user will see it) I would do it:

Dim Rstring As String = WebBrowser1.Document.Body.InnerHtml
Rstring = Replace(Rstring, "Some Text To Replace", "<B>Some Text To Replace</B>")
WebBrowser1.Document.Body.InnerHtml = Rstring

View 10 Replies

Alternative To Transaction Lock?

Mar 20, 2012

In my project i am using begin transaction commit or rollback changes. but this causes lock to the tables in that particular functionality.

So if the any other user does any other functionality those locked table are not available until the transaction is completed. I want to know if there is any alternative to transaction which insures data security but the tables are not locked out.

View 1 Replies

Alternative Way To Display Rows From A DB

Mar 14, 2003

I assume that this is not possible.Could somebody please suggest an alternative way to display rows from a DB in a nice way. (with word wrap)

View 10 Replies

Alternative Way To Save File?

Mar 15, 2010

in my database i have an admin form, where it allows you to do admin stuff.Example: Allows you to enter price per membership, and change it.Problem i'm having is how would i save it, since all previous files had more than 1 records, so it would be in the form of:

FilePut(1, OnePerson, NumberOfRecords + 1)

Since this file will only cosist of one record, i don't know how i would save it.i tried FilePut(1, OnePerson, Index) But it doesn't work.

View 3 Replies

Application.DoEvents Alternative?

Jun 6, 2011

Any good alternative to using DoEvents in VB.NET

View 6 Replies







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