VB Array Push - Add A Value ?
Mar 25, 2012
I am currently iterating through a loop and redimensionalising my array every time I need to add a value (as you can imagine this takes some time for a redim every loop) is there a way I can implement a push similar to ruby or java? This would need to save the processing time needed to redimensionalise the array every time I need to add a value to it.
View 1 Replies
ADVERTISEMENT
Feb 24, 2012
In my inventory mobile application , i use RDA.using the mobile device ,i update only the Barcode of a particular Item which is in the Item Master(.sdf file). then I push the tables to the SQL Server.there is a web application handles all the other functionality , including Item Master Changes.for and eg.
(1) I pull the Item master to the Mobile Device.
(2)change the Item Name from the Web application.(NOT FROM DEVICE)
(3)Update Bar code from the Device
(4)push table from mobile Device to SQL Server.
In this situation Old Item Name is replaced.My need is only to update the Barcode.
View 1 Replies
Sep 8, 2009
I have a fairly simple form that uses a SQLAdapter, a DataSet, and a BindingSource to allow users to navigate through the records in a table. Each time the user navigates to a new record, I update a DataGridView control that shows the appropriate records in another table. Now I'm trying to add a new record to the main form, using this code:
bs.AddNew() 'bs is the BindingSource object.
bs.EndEdit()
daCCS.Update(dsCCS,
"tblCostCodeStructures") 'da and ds are the DataAdapter and DataSet, respectively.
dsCCS.AcceptChanges()
Now, this seems to work alright, but it doesn't seem to actually retrieve a primary key for the new record from SQL Server. This is important, because without a primary key there's no way to requery the DataGridView and tell it what the correct Foreign Key is for whatever new records a user may create. I know the code is writing the record, because I can open SQL Server and see the new record, and I can close the form and re-open it to see and edit the new record just fine.
However, I need a way for the new record to be immediately available. Obviously, closing and re-opening a form every time the user adds a new record is not going to work! How can I make it so that as soon as the user creates a new record, that record is submitted to SQL Server, the dataset updated, and the form updated so that I have the new Primary Key field available?
View 2 Replies
Apr 19, 2012
sub main()
dim menuhistory as stack(of menu)
dim currentmenu as menu
dim apple as new menu("fruit")
[code]....
I'm trying to create a stack of menus so I can navigate forward and back between different menus, however when I get down the push line to push my menu onto the stack I get the following error:"NullReferenceException was unhandled: Object reference not set to an instance of an object.". I'm unsure what the problem is as I am trying to push an object onto my stack, a menu object. The same error occurs even if I change the object I am trying to push directly to apple as well.
View 2 Replies
Jan 9, 2009
I have a Class that is creating a large dataset (over 32,000 records) on the fly. I want to take the dataset and import it directly into SQL Server 2005 but I have not been able to find anything in ADO that allows me to do that all in one chunk. Doing a search I found some people in a similar situation that have exported the dataset to an XML file and then imported into SQL Server, which seems like a long way to go just to get something done that I would think would be part of ADO.Net.
However, for lack of a better option, I went a head and created the XML file but now I am having problems getting it to import into SQL Server so before I lose another day of productivity I am goin to ask a question.Is there a way to insert a dataset directly into SQL Server without going to a file first (even if I have to do it one row at a time)?
[Code]...
View 2 Replies
Jan 8, 2012
I am using following code to push my document to Sql server my problem is each time I push document to sql server. The sql server using memory is increasing never clear the memory. How to clear sql sever using memory after push my document?
Public Sub StoreFile(ByVal sFilePath As String, ByVal ImageId As Integer)
Dim SqlCom As SqlCommand
Dim imageData As Byte()
Dim sFileName As String
Dim qry As String
[Code] .....
View 2 Replies
Feb 17, 2009
I would like to know if it is possible to do a push install with a given MSI file using WMI where I know the credentials of the remote system(s) in VB...I have this so
[Code]...
View 2 Replies
Nov 13, 2010
I've built an IPv4 Header/Datagram implementation and a TCP Header/Datagram implementation - I can verify that all my code is fine (checksums computed right, < 8bit values computed right, etc).
When I try to use System.Net.Sockets and I specify any ProtocolType (including Unknown), the Socket simply refuses to send any datagram where the Protocol Field value in the IPv4 Header doesn't precisely match the ProtocolType. No error or exception is thrown; the socket simply doesn't perform the send.
This means I can't use a raw socket to send customized IP or TCP datagrams, which means I can't communicate with servers that have customized implementations of these basic protocols.
All I need is to push this raw data to the network. I'm not married to System.Net.Sockets - be happy to just shove my data on the network, since the packet headers are fine.
View 8 Replies
Oct 10, 2009
I'm making kind of home autmation system with a usb interface card.8 digital & 8 analog inputs and 8 digital & 8 analog outputs.The status of the inputs is refreshed with a timer.tick and written to variable.Now the problem.I want to make an digital output active when a button(real button, not a switch) is pushed and when it is pushed again the output should be set to non active.
action() is called every timer.tick
StatusDigInput1 = status of digital input =true when pushing button
StatusDigOutput1 = status used for displaying output status
[code]....
View 8 Replies
Oct 4, 2009
I was trying to make it so I push a button then a picture pops up, and I can't seem to make it work.
View 2 Replies
Jun 17, 2009
how to push data into crystal report?
View 3 Replies
Aug 18, 2010
ive been trying to make a application that saves some information from two textfields into a textfile at a fixed location, without any peior confirmation. This is my own best bid. But it says that the Hula string is not a member of a string.
[Code]....
View 13 Replies
Jun 12, 2010
i have a ritch textbox and i wanna if some one selecta text and push the button (sorry i don't know the name in english for this in french :indice et exposant like in microsoft word) like this in the image with color red
View 5 Replies
Mar 23, 2009
I have created the following piece of code to try and see if the user pushes the 'f1' key, and if they do.
[Code]...
I am not sure if this code works yet because the keypressed event is not triggered when I push a key. Could someone tell me how I can change my code so that it will test what key is pressed, no matter what control on the form has focus?
View 7 Replies
Dec 30, 2010
I'm very confusing about this code .When push Button1 ,the code not working
[Code]...
View 1 Replies
Jul 19, 2010
I have a website where people do the data entry. I have data stored in SQL server.Now I need to push the data to 3rd party to do some analysis work.What are my options to do this kind of job?
View 1 Replies
May 6, 2009
When you push a button, i want to make that a text will come in a richtextbox. etc., when you push the button, "hello, my name is NAME" will appear in the richtextbox.
View 5 Replies
Apr 20, 2009
Im trying finish my Chat room and I just need to know how to make it send when they push enter so they dont have to click the button.How would I make it send Whats in textbox1 when they push enter?
View 6 Replies
Feb 2, 2011
Well, the title says it all this time. After I click "yes" on a msgbox,I want to launch the Windows Logon Screen that I can normally launch by pushing Ctrl+Alt+Delete, so how would I do this programatically, or if there's any way to launch that Windows Logon Screen I wouldn't mind.
View 6 Replies
Jul 12, 2011
So I need to make a windows form where it has a button to push and a label. There needs to be a list of 10 words/phrases. And when the button is pushed a random word/phrase is put into the text of the label. I have a section of code/psudo code but it keeps saying I am missing declarations when I try to run the program in debug...
Public Class Form1
'to make the list of different hello world languages
Dim strHello(0 To 6) As String
Dim blDimensioned As Boolean
Dim strText As String
[Code] .....
The errors all seem to be declarations for the lines of the array (strHello(x) = "xxxxx xxxxx")... What declaration am I missing? and how do I make the list give a random response to change the label text?
View 7 Replies
Jan 29, 2011
I want to make an application that can push ads (website) to client..
Here is the case : Client try to connect to internet via wifi. Once the client is connected, server send a website address to client, and a popup (website sent by server) will appear in the client's computer in default browser.
I can list all IP connected to server, but i don't know how to push the website to client
Here is the code to list all IP connected to server : (import System.Net library)
String strHostName = "";
if(args == null || args.Length == 0){
strHostName = Dns.GetHostName();
[Code]....
View 1 Replies
May 14, 2011
I'm supposed to create a linked list and add/remove items with a push/pop. Currently I can only push 2 items and pop one before it stops, and I'm not sure what I need to do to fix that.
[Code]...
View 3 Replies
Mar 13, 2012
How do I get a new window to open with this button push displaying the link. Here is my code. This seems to open the browser in form 5 and however still navigates in current form webbrowser.
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click
Dim myElement As HtmlElement = WebBrowser1.Document.ActiveElement
Dim target As String = myElement.GetAttribute("href")
[CODE]...
View 3 Replies
Mar 15, 2012
I have a form with a text box and a form with a list box. I would like to be able to push a button on the form with the text box and have it be added to a list box.
View 3 Replies
Apr 6, 2011
I can detect single key downs with this code, however once I push multiple keys vb.net ignores previous key and only focuses on the other key. Can someone help me figure out how to detect multiple keydowns at the same time?Private Sub frmMain_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
[Code]...
View 3 Replies
Nov 20, 2011
I have a listview box. I load the listview up from a text file and everything is divided into three groups. I need to be able to select multiple lines then push that out to a single variable, separated by commas. Two things are happening that are problematic:
1) If I just have it set to smallicons and no checkboxes, anything I select is highlighted right up until the control loses focus at which point everything un-selects.
2) If I turn on checkboxes, I can click boxes and they stay selected when I lose focus BUT the checkboxes are cut off on the left side of the control. (The checkbox appears to go off the edge of the control.) There's plenty of space in the control for the checkbox and the listed items.
View 4 Replies
Jun 3, 2011
I need a bit of your help. I am creating a button on my application and I have add the image. I want to know how to make the image to show as the pushbutton when I click it?
View 2 Replies
May 12, 2009
Im really bored an I can't think of another program to make but im going to give it a shot. Im trying to make a program that can turn on caps lock when you push button 1(Yes I know theres already a caps lock button on the keyboard Lol) and turn on off caps lock with button2. Im am also trying to see everytime i push button 3 it will hold shift down for as long as o dont let go of the left mouse button but when I let go of the left mouse button it will let go of button 3 and shift will be off O.o. Is there a way to do this?
View 1 Replies
Nov 29, 2010
When i push the close button on the top right of the exe i made, the process still runs. How can i make it to where when i close the exe it closes the process too? Also, (this is for shits and giggles) if i wanted to make a button that closed certain processes, what would the code be? For example, the button would close explorer.exe, googledesktop.exe, ect.
View 4 Replies
Aug 5, 2010
I have 3 classes: A form that has a button push that calls another class (Runit) to do work. The "Runit" class. It bulids a collection of process classes (see below) and launches them as threads A process class that increments a variable. This is used to build the object that is "collected" in the Runit class.
Here's the code for each. Note that I misnamed ProcessClass. It would be better named ThreadClass, as it contains the Sub that is to be the target of a threaded execution:
Public Class NT_Test
Public Const NUM_THREADS = 3
Public RC As New RunClass
Public Processes As New Collection
[code]...
The way this code looks to me is that when I trace into bDone (it used to be a boolean), I should see "1" on each pass (NUM_THREADS = 3; the size of the collection). What I'm seeing that mystifies me is "3" in all 3 members of the collection. Because of the initial loop, I might expect 1, 2, 3 respectively if either the thread did not update or I was passing through the same block in as opposed to distinct members of a collection. I can upload the project if that would be helpful. I didn't do so only because I edited a bunch of commented code out of this version that I've used for other experiments.
View 4 Replies