VS 2010 Single Or Multiple Datasources?
Sep 23, 2010
Is it better to add just one datasource to your project that holds all your database tables and queries that you use as typed datasets. Or, create a datasource for each individual form or situation where your using the database tables as typed datasets. It seems simplier to have just one datasource but is there a down side. We're talking about @25 database tables/queries.
View 8 Replies
ADVERTISEMENT
May 25, 2010
I have a grid view that will display columns from multiple data sources (3)The data sources are stored procedures that contains a variety of columns not identical,How can i select the columns from these datasources and bind them to the Grid programtically (from code behind)?
View 1 Replies
Sep 23, 2009
Im designing a report with reporting services (not crystal) I add a table drag some fields to that table and that works great, now I need to add another table component and drag fields from another query (in the same dataset).When I try to test it it says:A data source instance has not been spplied for the data source Dataset1_SP1 (this is the second query).i need to list first elements from one query and then from another.
View 7 Replies
Oct 4, 2010
im trying to add multiple labels in a single panel via code and not design thats what i got so far :
Controls.Add(hoveritem)
hoveritem.BringToFront()
hoveritem.AutoSize = True
[code]....
both test1 and test2 are registered as labels , when i hover over a picture i see only the test1 label and i dont know how to put the test2 under test1.
View 1 Replies
Nov 11, 2011
I have written a program that uses directshowlib to capture a stream from a webcam and save as an AVI whenever a bird lands on the experiment platform for behavioral research. What I would like is to be able to allow another program or connection to the same webcam at the same time simply for preview purposes, is this possible?
Basically I want my app to still be able to record on demand when a bird interacts but I would also like a IP cam program like webcamXP/Webcam7 to be able to stream a live feed to the internet so we can have a live view of the platform. I had found some articles about connecting multiple streams from one webcam but am not sure how to go about it. If I have to I will simply mount a 2nd cam in the Bird colony and dedicate it to the web stream but if I can use the same cam as the recording cam that would be great.
View 2 Replies
Sep 25, 2010
In VB6 you can debug.print multiple values from a loop to a single line by simply adding the ";" or "," chars.
[Code]...
View 1 Replies
Dec 23, 2009
Say I have a code with 3 methods that do some pretty intensive work. Would executing these methods on 3 seperate threads be faster then executing them one after the other on a single core cpu? And what if it's a dual core or HT?
View 8 Replies
Dec 13, 2011
I am looking for the code to consolidate multiple .xls sheets from within multiple work books in a file all containing the same format of information. Each sheet needs to be coppied to a new sheet within a single work book.
Once in a single sheet I need to then copy data from a range of fields into one consolidated sheet.
View 1 Replies
Jun 6, 2009
i've trin' to setup in my server, a connection to my Microsoft sql server, in order to develop an web application using this type of tech. Of course, VB.Net. after tryin to research an aspx.net here in msdn, i havent found yet anything.
I have my connection string "on", pointed to Windows Authentication. I've changed to A new login created in Microsoft SQL Management Studio (sql Server 2008), such as a user guest.testing locally, the asp.net develop server is up and running because it uses my domain credentials.If testing by access in my website, like a guest, it throws an execption pointing to a Login Failed. I've tried so, with my own credentials, and not succeded.
View 1 Replies
Feb 11, 2011
I have two comboboxes. Depending on what is selected in the first combobox, I want the second combobox to display a different field from a different table within the same database (.mdb).Is this possible?I have the following code, but I get a "Complex DataBinding accepts as a data source either an IList or an IListSource." Error when running the code.
[Code]...
View 5 Replies
Nov 21, 2008
I'm having some trouble setting up binding sources to these types of files, not sure if I'm selecting the correct driver in the wizard. Tried the generic ODBC and .NET drivers but it doesn't work, the dataset is created and adds a table but there's no data retrieved. The design object being used to display the table is a datagridview. Can't find documentation on dealing with files, only databases.
View 1 Replies
Sep 23, 2011
I have a form that has three comboboxes in it, cbxStudy, cbxMethod, & cbxAnalyte. When I call the form I load a data table and use that table to fill the comboboxes. I want to assign a value to cbxStudy, then fill cbxMethod by filtering the data table using the value in cbxStudy, then fill cbxAnalyte by filtering the data table using the values in cbxStudy and cbxMethod.
This code keeps failing when the forms New constructor is called, but once the form is loaded the code works great. I indicated below where the code is failing. It's failing because Me.cbxStudy.SelectedValue is = {System.Data.DataRowView} when the constructor is called even though I set the SelectedValue myself.
Public Class frmSelectMethod
Private cv_dt As New DataTable
Private cv_strPrevValue As String
[Code]....
View 4 Replies
Sep 27, 2010
Is it possible to have a single class reside within two name-spaces and how can I do this?
To clarify: We have a class library (let say root namespace is classLib1), which has grown over time (more classes) and I want to logically group classes into different namespaces. However some of the older classes need to be grouped into these new namespaces (e.g classLib1.section1) and doing so will break legacy code in other assemblys that use this class library. So I want to be able to refer to a class using both name-spaces until we can phase the old ones out.
I can't find any information on this, which suggests there is a reason that people would not want to do this!?!
View 3 Replies
Sep 16, 2010
My program has two forms which get data from the same data source. After binding controls to tables and fields on both forms, I noticed each form has it's own apparently duplicate DataSet. Is it standard practice for each form to have its own DataSet even though they use the same ConnectionString and connect to the same database at the same time?
View 1 Replies
Apr 19, 2008
I originally developed a simple application software [VB.Net + MS Access] (Lets call this project A) but now I want to include more functionality in it. I have an encryption/ decryption software utility (Lets call this project B ) and a Text to speech generation utility(Lets call this project C) . That is, I want to add Projects B and C to project A. [Such that clicking on the main form of project A calls a form from project B or C as desired].In solution explorer, I right clicked--Add Existing Project--and added both the above mentioned projects 1 by 1. (Added B and C to the solution explorer with the already present A).As the application software's (Project A's) main form is the main form of my project, I want to have a menu option on the main form (Of Project A) so that a user could click on one of the menu options and the main form of my other projects ( Project B or Project C or Encrypt/Decrypt or Voice Generation) should open by him doing so. To this effect, I tried the following:
1. I dragged the form simply from one of the projects (From B or C ) into the folder of my Application Software (Project A).This generated a lot of Build errors and the Voice Generation utility (Prj. C) would not work like this.
2. Tried to reference a dll, however the authors of Projects B and C did not include a dll in their projects.
3. Now I came to know that to call a form residing in another project folder or even another folder within the same project, you have to give a path for the form. HOW DO WE DO THIS?
As you can understand, I cannot copy the entire code of the 3 projects here....I will try attaching my project here though..Here it is: http: rapidshare.co...MY_Prj.zip.html[Dear Administrator: The downloading option on the webpage does not allow files bigger than I mb, thts why I used an external link]As I said, in the application, Project A is TMS.NET ; Project B is EncryptFile and Project is C.I encountered a problem while adding project C [spoken word], so the project contains only projects B and A. I will try to attach project C seperately.That is, TMS contains proj A+B and Speech contains C.
View 4 Replies
Jan 12, 2011
I am trying to understand transformation matrices (not just their implementation in VB, but in general) and I've put about 3 full days into this so far. I believe I have the data in my matrices correct. Applying any single matrix to an array of points does a correct transformation.I am wondering if I understand how to combine multiple matrices into a single one.I understand you just have to multiply them together.I took this to mean you just have to multiply each element with its corresponding element in the second to make a third matrix?[code]
View 5 Replies
Mar 7, 2010
I've written an application with about 30 forms and am almost ready to publish, my biggest concern though is that i'm not sure if its a normal thing to do having all these forms and hiding, disposing and showing forms throughout the use of the application.I've toyed with the idea of converting to a MDI Child / Parent interface as well as having one form with lots of subcontainers that are hidden and then hiding / showing them as the navigational buttons are shown.Ive worked on this application for about 8 months now, but would be happy to rewrite the interface and appearance of it if i know that it is not generally an acceptable practice having forms flashing open and closed while navigating through the application.
View 3 Replies
Jun 18, 2012
I have some task regarding do operations on database using ADODB in Vb.NET.regarding using the same record set multiple times?
I have tried on this topic just by closing the recordset after performing First operation and doing second operation e.t.c.
In ADO.NET we have "MultipleActiveResultSets=True" in ConnectionString for SqlDataReader.Do we have any property like this in ADODB?
View 1 Replies
May 10, 2011
I'm working on a project that involves using multiple scrollbars. Scrollbar1 displays the medium value and its thumb is disable, scrollbar2 displays min value and scrollbar3 displays max value. I can try to use three separate scrollbars to accomplish thetask but that doesn't look nice. Therefore,
View 3 Replies
Dec 4, 2011
ok i need a code to save multiple textboxes in a single .txt..
EX:
TextBox1.Text = ("Michael Rittenburg")
TextBox2.Text = ("United States")
TextBox4.Text = ("Nashville")
TextBox3.Text = ("Tennessee")
TextBox5.Text = ("37203")
View 3 Replies
Jun 7, 2009
basically im looking to have two textboxs with 3 buttons
TextBox1.text contains the path to the new file and
TextBox2.text contains the path folder to subdirectories
i have everything i need working, haha i know not much, this is only my second day with vb.I just needed a button now to carry out the function of copying the file i tried using simple file copy but i had to specify a file output in that and it only gave me option to copy it to one directory.For instance
C:index.php TextBox1.text <- loaded in from button 1
C:www* TextBox2.text <- button 2 loading subdirs
now i need a button 3 that would carry out the function of copying textbox1.text to all subdirs in textbox2.text.i thought i would have been able to use simple copy as stated above with wildcard in my program but no joy
View 6 Replies
Aug 12, 2010
I have a form which displays temperature and humidity data for a device in the field. I have multiple devices. Rather than creating a separate form for each device, obviously it is much better to have a single form that I instantiate, pass data to, and display. The devices are listed in a treeview, and when the user double-clicks the node, I create an instance of the form, pass the device's data to the instance of the form, and display the form. All of this works perfectly. However, I have a challenge: If the form for a particular device is already open, I don't want another one opened when the user double-clicks the node.
However, whenever I place logic in the program to check for the existence of the form and only allow another instance to be created if one doesn't already exist, it prevents me from creating a form instance for any other device that I may wish to view, simultaneously. So, I have a dilemma -- allow the user to display the data for multiple devices, including allowing multiple forms to be open for a single device, OR only allowing one device to be displayed at any given time.
View 2 Replies
Jun 17, 2009
I've developed a couple of different stand-alone projects, myRibbonRTF and myRibbonCalendar and have them functioning well. I want to tie these together with other projects in a single solution called myMain. When I add these projects to the solution, their forms are not accessible in myMain (e.g. myRibbonRTF.frmMain.Show()). I've searched high and low for the last week trying to solve this and the only nearby solution is to turn the other projects into .dlls and access them in myMain that way.
View 7 Replies
Jun 9, 2011
How can I prevent a single user from logging in to my asp.net website from more than one computer at the same time?I have tried using the application server side state managenment but it is not work properly.
View 1 Replies
Apr 7, 2010
I have been working with Visual Studio 2005 for about a year and a half but the deployment task was never left to me. So now I'm being asked at my company to build a setup which will prompt to install up to 4 applications, which can be chosen by the user using checkboxes.
All of the 4 share the same dependencies, so I created a merge modules package for that purpose. But I still don't know how can I build a single setup to install these 4 applications.
View 5 Replies
Jun 21, 2010
i am trying to make screen saver in vb.net i m using picturebox and timer (for separation of time), but i cannot attach multiple pictures in a single picturebox.
View 1 Replies
Oct 11, 2011
i have a project and i want to insert multiple rows into a single column and then display them into a single text box...
this is what I'm going for:
DATABASE: column 1
| column 2 | column 3
| column 4 |
[Code]....
yes i know I've posted this in 3 different forums but no one seems to know either
View 2 Replies
Jul 9, 2009
after finally fixing many problems with my program, and finally fixing it so it could run in a backgroundworker... I started to learn INVOKE but a small problem with this. Im not sure.. do I have to INVOKE for EVERY component of a FORM I want to modify? or is there a way to group all the invokes into a single big one?or a groupbox could work?
If progreso1.InvokeRequired Then
progreso1.Invoke(New updateprogressbardelegate(AddressOf updateprogressbar), New Object() {Me.ProgressBar1, valorprogreso})
[code]....
View 4 Replies
Sep 9, 2008
I have written the following code:
Dim cmdString As
String = "Select x from abc where s='Y'"
[code].....
View 1 Replies
Aug 18, 2011
I want to store images like finger prints and data in a single file so i can send that file via mail.
View 1 Replies