VS 2008 How Many Data Readers Can Be Opened
Feb 7, 2010
with 2008 express + MySQL with the data reader object how many data reader object can be opened at one instance against a connection because i am getting a error as "There is already an open DataReader associated with this Connection which must be closed first."
View 4 Replies
ADVERTISEMENT
Nov 30, 2009
this is my code for reading readers list using winscard.dll :
Private Function GetAPIReadersList(ByRef mszReaders As String, ByRef ReadersNum As Integer) As Integer
Dim result%
ReadersNum = Obj_SCardAPI.SCARD_AUTOALLOCATE
[Code]....
but it only returns the first reader and not the rest of them. and if I give readnum anything other than SCARD_AUTOALLOCATE it will returns nothing as readers name .
View 1 Replies
Apr 25, 2010
In WPF I have one window opening a second window that allows some data selections to occur on. Once the selections have been made I then want to submit/close the second/sub window and have the data pushed back to the opening/parent window.
I can push data into the sub window from the parent via public properties, but have not worked out how to get it back the other way.[code]...
View 2 Replies
Jan 18, 2012
I had a weird series of errors involving e.Graphics.DrawString() when painting a panel.I am using a barcode font [Code 128] with a library that converts text to the proper format for Barcode readers.That's fine, however, when I draw it to the panel, that's where things stop being fine:But, here's where things get funky. When I put it into a TextBox instead of drawing it via Graphics.DrawString(), everything is peachy:In fact, the TextBox one looks much better than the Graphics.DrawString() one! Am I doing something wrong?[code]
View 2 Replies
Dec 18, 2011
During Runtime when it tries to open the connection it throws up this error.System.Data.OleDb.OleDbException was unhandled'
View 9 Replies
Feb 19, 2009
I have the following code to open an Intel format hex file. The file is like this
:020000040000FA
:1000000000000000000000000000000000000000F0
:1000100000000000000000000000000000000000E0
:1000200000000000000000000000000000000000D0
[code]....
After I started running my code, I was told "Error opening file". Can anybody tell me what's wrong? Also how to retrieve each byte on each line to array HexValue?
View 2 Replies
Mar 7, 2011
The problem I have is that I have a 3rd party add-in working in excel to convert certain info into a barcode.
When I open excel normally, the add in works without a problem, but when I open it through excel it just doesnt work until I manually go into the add-in option, disable the add-in and the reenable it.
View 4 Replies
Aug 30, 2009
How would I make it so that my programs Title is like"Text File Name"-"Program Name"Also, how would I make it so that text files can be opened with my program?I can open a text file within the program but I cant do
View 2 Replies
Mar 31, 2009
I know you can open a windows program like calculator but is there anyway if calculator is open i can close it with code ?
View 5 Replies
Jan 18, 2010
i have an application that used for entering some modification on images but what i want is that when somebody open any image using right click then "open with" and choose my application program then the image translated to the picturebox in my program so i need to know the code of the image path?
View 3 Replies
Aug 21, 2009
I am trying to get the file path that opened my application. So if I opened my application by making the text file open with my application, how could I get the file path of that text file? Lets put it this way, you have a text file. Ex: MyFile.txt, so when you click that it opens in NotePad and loads the text in MyFile.txt. How can I do that but just get the file path?
View 6 Replies
May 14, 2010
The fact is I'm making an application, which users can install by using a Setup file...once installed the data in the database can be updated by a centralized server. To do this, they can insert a DVD/CD-ROM and export the necessary data towards it. I need to do it that way, because some of the users who really need this data will be using stand alone computers.The application gets it's data from a mdb-file and the connection remains open as long a person works with the application (maybe not the best way to do, but I know :-) )...when the user uses the application, he can perform an export...this exports the .ini-file and pictures (which works fine), but he also needs to export the mdb behind the application...I already tried connection.close() before and connection.open() after the System.IO.File.Copy...but that doesn't seems to work.
View 2 Replies
Aug 21, 2010
I would like to know if its possible to show up a form in front of all other opened apps . Exemple : myapp.exe (is under of all those application) internet explorer , photoshop , windows live messenger. On event (for exemple on new message recived) myapp.exe will show up all over other forms.
View 3 Replies
May 15, 2012
This always happens to me in Visual Basic. Whenever I save a project from one day and open it again using that same VB version the next day, I can never see the form design. But if I click on Debug, I can see the Form design and only use it as if it were a program.
View 1 Replies
Dec 8, 2009
I want to get the list of selected files in the currently opened windows explorer, So that when a user opens a windows explorer and selects a specific collection of file from the selected directory in the windows explorer and presses a short key of the feature then the feature itself will copy the list of full path that can be used in other module.
View 5 Replies
Oct 26, 2009
I have created Usercontrol in visual Basic2008 i want this usercontrol to be hosted/opened in Internet Explorer or any web browser
View 2 Replies
Oct 25, 2009
I want my program to be able to create a '.txt' file when it is run for the first time, with the date and time the program was accessed, and to be able to add new 'logs' of program history every time it is accessed. What i mean is that i want my program to be able to create a '.txt' file, and then fill in the dates and times when the program is opened.
View 7 Replies
Apr 1, 2012
I have a project the was written by someone else. I am very new to VB. I am trying to make changes the the project. When I first opened it it went through the conversion with no errors. The report has not errors however when I try to open the project I get the error "vbproj cannot be opened because this project type (.vbproj) is not supported by this version of the application". I am using VB2008 Express and have read all the other responses to the issue but Ijust do not know waht to do.
View 3 Replies
Nov 29, 2009
If I need to run a sub from another form, I would normally do something like this:
DirectCast(Application.OpenForms("frmTest"), frmTest).PublicSub()
How would I run the sub if the user never opened the form? The form is an options form and it may not be opened by the user if they opt out of changing the default values. I don't want to change the location of the sub because the sub relies on a lot of info on that form.
I tried Google and playing around with intellisense, but I've come up with nothing so far.
View 8 Replies
Sep 6, 2010
I have question regarding how i can check if the form is opened or not ??
View 2 Replies
May 31, 2009
I have 3 simple questions:
1. How to check if a form is opened?
[URL]
End If
2. How to play a sound (just a beep or something?)
3. When i have a string with keywords, separated by ","'s, how to convert this into a array? (F.A. Test1,Test2,Test3)
String.Split(",")
View 4 Replies
Mar 10, 2010
Check If Folder Is Opened?
View 2 Replies
May 1, 2012
I've got an application which I want to only have 1 open.How would I make it check if the application is already open and only open if it isn't? I've had the idea of using 2 forms, one of which is the proper application and the other which just checks if its running then opens the other form.I would imagine it would check if there's more than 1 of the process name running and if there is close all others?
View 5 Replies
Nov 7, 2011
I have a Visual Studio 2008-SQL Server 2005 app that will be throwing alot at it. It's my testbed learning app. I'm also a student of this craft(43 years young) like another poster posted on another thread. I come from a PICK/BASIC jBase background. Anyway as-is my app has a connection to the database that is opened on form load. I close the connection on form close. It's a one form app currently. Is this wrong? It seems that maybe I should not have a connection opened possibly all day. I'm looking into incorporating Datasets, dataAdapters into my next phase of evolution. I looked at the material and it's tough. For me anyway. But I will get into it. I will fetch the data into a dataset so that I can keep the connection open only for a little while. I was turned on to this "keep the connection just as long as you need it" idea from someth
View 3 Replies
Feb 20, 2010
I can't connect to my database now, although yesterday it was perfectly fine. An error message comes up saying "...A database with the same name exists, or specified file cannot be opened, or it is located on UNC share" this has never happened before. Why can't I access my database?
View 2 Replies
Oct 17, 2009
I'm trying to detect which contacts are currently opened, the only way I could come up with that was to actually get the items in the windows taskbar then compare the items to the contact list on Msn. This way when Bob@hotmail.com is currently opened my application can show a listbox of all the current opened Msn contacts. Is there an easier way to view the current open contacts with MessengerAPI
View 3 Replies
Sep 2, 2009
I Was Trying To Get The Username Opened The Process From The Property Process.StartInfo.Username but It Didnt Work I Want To Know If There Is A Way To Get The Username That Opened A Process (I Mean A Process That Is Already Opened)
View 6 Replies
Apr 24, 2009
I have created a windows application which creates a database file and saves it to disk, it uses a custom file extension so that when the file is clicked it opens the application. In order for the application to use the data in the file it needs to rename the file so that it has a .mdb extension. My problem is that I cannot see how to get the name of the file which opens the application.
View 2 Replies
May 15, 2012
i want to detect currently opened swf file name here is my code
Private Const GW_HWNDNEXT = 2 Private Declare Function GetWindow Lib "user32" (ByVal hWnd As Long, ByVal wCmd As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
[Code]....
this code is working fine to detect .doc,.xls files name but not working on *.swf files
View 3 Replies
May 26, 2010
I'm exporting my Dataset to an excel file, and I want to make sure I keep any file errors under control. One in particular that I'm concerned about is accessing a file that's already open. A general IOException occurs that says:
"The process cannot access the file 'C:Reports eport300.csv' because it is being used by another process."
Here is the line in which the error will occur:
Dim output As New IO.StreamWriter(path, False, UnicodeEncoding.Default)
I guess I could just throw a try catch around it, but what if an IOException happens that isnt related to this particular incident? Is there a way I can check to see if the file is already open before allowing this code to run? Especially when I'm using excel.
View 1 Replies