Fill In A Bunch Of Fields (Client Info)?
May 30, 2012
I have a simple app where I am trying to fill in a bunch of fields (Client Info). The controls are bound to a DataSet (ClientDS and the table I need is Clients). I have a data navigator which should allow me to scroll through the selected info for each client. I have the following code
[code]...
The problem is ... it won't accept the Clients in (ClientDS.Clients). ClientsDS is the existing dataset I've created and to which the controls are bound..
View 5 Replies
ADVERTISEMENT
Aug 12, 2009
I have a dataset with a bunch of product info. What I really need to do is send each product individually through a file stream using serialization/deserialization into a web service. I tried for testing purposes to write the dataset to a file, but I don't know how to write each product to a different file.
Dim oProduct As webservice.Product = New webservice.Product()
For Each DataRow As DataRow In DataSet11.Yahoo.Rows
oProduct.MfrName = DataRow("manufacturer").ToString
[code].....
View 1 Replies
Nov 17, 2011
I am trying to do is fill out a form with certain info, put the info into an array, and write it to a listbox using loops, arrays, and maybe a function if I need one. This is for VB2010 and here is what I have so far... I think there are ways to make it shorter but I cannot figure it out.... maybe just brain dead from all the coffee I have been drinking!
[code]...
View 1 Replies
Feb 15, 2012
Can someone tell me what's wrong here: Dim sql As String = "SELECT * FROM courses" Dim con As New MySqlConnection Dim dt As New DataTable(sql) Dim cmd As New MySqlCommand(sql, con)
con.Open() ComboBox1.Items.Add(dt)It doesn't show the courses.
View 5 Replies
Nov 13, 2009
Alright im having some trouble with this peace of code
I use this to send my Account to the server but the server is just not reading it.[code]...
View 2 Replies
Jan 22, 2009
Is it possible to fill a Combo Box with the names of the fields of a table(from a database)?
View 6 Replies
Sep 21, 2009
Just suppose that I define a structure, and an array such as
Structure Person
Dim First_Name as String
Dim Last_Name as String
[code]....
Can I fill in my list of people using a single line of code for each record? Something like this, it doesn't work, but this shows the sort of thing I mean.
My_List(0) = {'John', 'Smith', 24, '555-1234'}
My_List(1) = {'George', 'Jones', 31, '555-8123'}
My_List(2) = {'Tom', 'Green', 40, '555-3434'}
It's easy enough to fill it in line by line. I could do that without problem. But I want to be able to look at the code and see the contents of each line. Doing it as above would make it easier to read.I could make it a multidimensional array of strings, rather than a structure.If it makes any difference I'm using Visual Basic 2005 Express Edition.
View 8 Replies
Feb 4, 2012
Basic scenario is that I need to programatically fill out a PDFs text fields that resides on a webserver. The fields will be mapped and filled out with data contained in a CSV. The PDF must be opened in the browser (browser control or ie/ff/chrome/etc) and edited in place. Cannot be downloaded, filled out, and uploaded (it must be filled out and submitted using the submit button in it; I've tried editing the buttons submission path to no avail).Thus far I've put a web browser control on a form and made it navigate to the website, login, and load the PDF file. How do I interact with the PDF file thats open in the web browser control? Looking through various PDF libraries, they seem to mainly interact with a closed pdf located on the harddrive, make the modificatio
View 2 Replies
Jun 15, 2010
I have a web page that I need to log in, the first page is not a problem I can log in as it only has the company name to enter, but from here is where I have problems, as when the first page is done, I am directed to a second page with two fields that has to be filled, filename and author, then depending on the action you have to click on in button,out,button delay button, here is where I need help, how do I fill the second page fields and how to chose the right button depending the action to take.
View 9 Replies
Apr 3, 2012
Greetings, I have installed Oracle 10g Express Edition database on a server and install the client on my PC. Now, I`m developing a vb.net application using visual studio 2005 and I need to use the oracle 10g express edition database. SO I initialize the connection using the following connection string:
[Code]...
View 1 Replies
Oct 26, 2011
I made a simple TCP server (I've found the example on the web) in VB to receive data from about 40 TCP clients.The clients are not synchronized but sends data about every 18 minutes; the problem is sometimes several clients sends data at the same moment, so I can't receive data.I also made a second program that reads the data (server program writes data on a file, read from the second program) scheduled.
My question is this: I've seen on the web examples about Multithreaded Server Socket Program, so I suppose this could manage my 40 clients (but now the clients are syncronized and send data at the same time in client mode) or is better get data (I have a central client that asks data to all 40 devices in server mode)?
Second question: can I make a single program where I run both TCP client and TCP server at the same time?
View 1 Replies
Jun 21, 2010
We are creating a Who wants to be a millionaire style game in VB. Our server is pulling information such as questions and answers from a Access Database and sending them to the contestants (Clients). All transfer of information is directly from the server to each client. One of the "Life Lines" we want to use is "Ask a friend", where one client is able to Instant message another client for a short time to get help on the question.
[Code]...
View 2 Replies
Nov 14, 2011
I'm currently refactoring an old Visual Basic DLL (VB.Net), which stores all of its data in one module called Globaldefinitions as public fields. There are about 200 fields, referenced thousands of times all around the code:
Public Module Globaldefinitons
Public a As Short
...
Public zz10 As Double
[Code]...
I need to change the module into a class with non-shared fields. This means, each and every of these thousands of references needs to reference the instance of that class:
globalDefinitionsInstance.a = 5
How do I go about this efficiently?
Regular expressions operating on the source fall flat. Refactoring tools like Re-Sharper or CodeRush don't seem to offer this functionality. Visual Studio 2010 cannot do it automatically either.
View 2 Replies
Jun 19, 2011
Class Foo
ReadOnly name As String
Public Sub New(name As String, dependentUpon As Foo)
Me.name = name
[code]....
The output of New Bar() is:
Dependent created. Dependent upon nothing.
Independent created. Dependent upon nothing.
It seems fields are initialized in the same order as they appear in the source code, which (a) leads to an unexpected result, and (b) seems a little puzzling, given that one is normally not permitted to read from uninitialized variables in .NET, yet that seems to be working fine above.I would've expected VB.NET to be smart enough to initialize referenced fields first, and only then those that reference it; i.e. I'd have liked to see this output instead:
Independent created. Dependent upon nothing.
Dependent created. Dependent upon Independent.
how to get VB.NET to behave like that instead, without simply having to swap the declaration order of dependent and independent inside class Bar?
View 1 Replies
May 27, 2012
I'm trying to create a table in Word using data from a table in Access. There are four fields in the access table that I need. 3 fields are text which I can populate the Word without any issues. However the fourth field is a memo with >255 characters.I'm struggling to come up with the proper code to allow me to populate the Word field with the memo data that has more than 255 characters. The code I have so far is listed below. But when it hits the memo field, it crashes on the line I marked with **. I know it's not text, but I've tried many different field types, but nothing has worked so far.[code]...
View 1 Replies
Jan 14, 2012
My intent is to have the code - on a button.click event - check the Username and Password fields and return an error depending on which is wrong. Or if both are wrong, return a different error message. I've set the username as parts and the password as parts (still learning how to use external authentication). [Code]
View 2 Replies
Aug 17, 2010
I have several sqldatasources for my gridview. All of the columns are autogenerated. However they all have some consistent fields and I'd like to make those fields template fields so I can modify the edit template for them such as adding a drop down menu. Is this possible?
View 1 Replies
Jul 31, 2010
I am working on a media player, and I would like to setup a local playlist feature. I am using a single ListBox and its "Display-" and "Value-Member" properties. The display is the song's Artist and Name, and the value is the song's file path (i.e 'C:UsersUSERMusicetc.').To write the file path to the .txt file, I believe I can use the following code:[code]
View 18 Replies
Jul 23, 2009
how to create Quick info and/or parameter info for own code?
View 6 Replies
Jun 22, 2011
I am making a program, obviously, and I require some assistance. I found an explanation on how to read information from a Text file and have modified it for my needs. Here is my (modded) version:
Public Function GetInfo(ByVal playlistname As String) As String
On Error Resume Next
Dim PlaylistInfo As String
[code].....
View 6 Replies
Jan 7, 2010
I'm making a database app. I've finish the search, add new, and add function. What I'm trying to do is to expand the functionality of the add new item function.
View 2 Replies
Sep 6, 2011
under my project I have the following
However when I use this code.
lblABOUT3.Text = "Version : "
lblABOUT3.Text += My.Application.Info.Version.Major.ToString()
lblABOUT3.Text += "." & My.Application.Info.Version.Minor.ToString
[Code]....
View 8 Replies
Mar 17, 2009
how to correlate info from a textbox based on a listbox item selection. For example the user will select an item from the listbox, enter say the length of a song in the textbox say 2:00 for song #1, select say song #2, enter the song time for that song say 3:00, click on song #1 again and have the same textbox display the length of that song and be able to do that until there are no more songs on the list.
View 5 Replies
Sep 3, 2009
experience on how to create an engine using C# (VB.NET is okay too) that is generic enough to handle most cases of MS Word text fields I need to fill with data I'm getting from a database? In short, I'm about to embark on this little Office automation excursion and I'm hoping a little bit of feedback here.
View 2 Replies
Feb 3, 2012
im calling a bunch of different propertys named K0 to K6, im using a string to check which one i need to access, this is damn messy, how can i do it in a more clean way? Im convinced that strings are not the way to go so please give me a comment to get in the right direction.
Dim tempAntDec As Integer
Select Case wd.MClass
Case "K0" [code]....
I would like to call this in some other way like, this.. or dont know but i feel like there is a better way to handle this?
tempAntDec = wd.allMeasUnc.KValue.antDec
View 1 Replies
Aug 11, 2009
I have the following class. Basically, i want to populate a bunch of comboboxes. So i want to return an Id and description column almost all the time.
Public Class combodata
Private _id As Long
Private _description As String
[Code]....
how can I return the items as an array. Is converting to an array the best way? I will need to populate a combobox with the returned result
View 5 Replies
Apr 8, 2012
I have a table which contains a list of products for a company. They input data about how much stock they have and also the level at which they want to be reminded that they need to order new stock.
[Code]...
I want to list all the true results in a form which the user is then able to navigate through. What would be the best way to go about doing this?
View 2 Replies
Dec 1, 2008
I have been reading through Atheists posts in regards to client-server and TCP client/server connection's. But how do i go about writing a program with 1 client and server where the client side creates a text file.Once the server sees there is a text file it connects and downloads it to itself or the client pushes the text file to the server.Once on the server i will read the text file and put its info into a sql db.
View 14 Replies
Jun 29, 2010
I have an application that takes a series of reports and sends them as attachments in an email to a specified group of email accounts.
When I run the Java version of this using apache commons and the same setting, the email is sent. However, when I run the VB.NET version of the code, it fails on my local machine and on the client machine.
I have a VB.NET web application running on a server that uses similar code. I tried that code locally and it fails. Yet, the web application is working perfectly.
Why is it that the Java application can send the email, but the .NET application cannot?[code]....
View 7 Replies
Jun 18, 2012
In my classic asp app, I have a markup page with a bunch of checkboxes. The checkbox control ID is bscv.Once a user checks a box and clicks submit, the value is processed on the next page called next.asp.Based on the value of the checked box, I display the correct dropdown.I use the following code on next.asp to display the correct dropdown.
If bsvc = "master" Then
' only master was checked
' "If the user checks only master checkbox, ...txtmaster with 2 options... is displayed."
%>
<select id="txtmaster" name="txtmaster">
<option value="">-Select a service-</option>
<option value="1">1</option>
[Code]...
View 2 Replies