Topics
-
-
- Leaders
- 5 replies
- 1k views
I added string items to an array then tried to do a for loop to count the number of items so I could add the items to a combobox This is what I have... Dim licArr() As String = {"Item1", "Item2", "Item3" - "Item4", "Item5", "Item6"} ' Now I want to count the number of items added to this array For i As Integer = 0 To licArr.Count - 1 ' However there is no .Count available ' It wont let me do this WHY? ' and how can I get this done? ' WHat I hope to do is this cboLicense.Items.Add(licArr(i)) Next So what am I doing wrong... why isnt their a .count option for this string array? I guess I could do this like this but …
Last reply by snarfblam, -
-
- 5 replies
- 874 views
I have a sub that connects to a remote database to download records, could be 10 could be 10,000. I have a progress bar that shows the progress on which record its on, with a text to display a number 5/239. I have a "me.refresh" to keep the lable updating between records. I have a cancel button on the form that when pressed, should set blnCancel to True. While my other sub is looping through the records, if it sees blnCancel = True then it should " throw new exception("Aborted") ". Maybe theres a better way then how im approaching this. However. my problem lies in clicking the button. I can't click it. my app is too busy to listen for the click event. What should…
Last reply by mskeel, -
-
- Administrators
- *Experts*
- Leaders
- 9 replies
- 2.1k views
By user interface I mean monitor, mouse, keyboard, etc. I used to work for a company which would get you something basic like a keyboard wrist pad, but not special keyboards unless you had like a doctors note. The monitors were all like 8 years old, huge and the screen was slightly fuzzy with internal smudges (looked like smudges on the screen, but they were in/under the glass) and a normal $6 mouse. The management had displays with like 3 plasma monitors and super keyboards and whatnot... only they didn't use their computers as much as the developers & support did. The company I work for now isn't awful, but there is a certain level of complacancy around t…
Last reply by mskeel, -
-
-
- Administrators
- 4 replies
- 701 views
I just wanna know if there is a better way to get a recordset into a dataset... This code works, just wondering if there is something 'better' Dim rsDB2Data as RecordSet sSQL = "Select * from " & sDB2Qual & ".SH_QUOTE" Dim ds As New DataSet rsDB2Data = AdoDB2Conn.Execute(sSQL) Dim oleda As New OleDb.OleDbDataAdapter oleda.Fill(ds, rsDB2Data, sDB2Qual & ".SH_QUOTE") Additionally, is it normal to have my AdoDB.dll in C:\Program Files\Microsoft.NET\Primary Interop Assemblies\ADODB.dll I want to be using ADO.NET, but since it's in Interop folder it makes me worried I am using the old COM version. -Th…
Last reply by Nate Bross, -
-
- 2 replies
- 669 views
I'm looking for a command that breakes (not break; ) the computer for a few seconds... wich command is ok? i can't find it..
Last reply by Jelmer, -
- 0 replies
- 1.1k views
I'm automating a report where I have to pull data from a database and copy a template worksheet in the workbook and rename it for each 'campaign' i get back from the database. When doing this, I get the following COMException: "The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))" Error Code: -2147417851 The code I have at the moment: worksheet = DirectCast(workbook.Worksheets("(campaign name)"), Excel.Worksheet) Dim newWorksheet As Excel.Worksheet = DirectCast(workbook.Worksheets.Add(), Excel.Worksheet) worksheet.Copy(, newWorksheet) worksheet = DirectCast(workbook.Worksheets("(campaign name) (2)"), Excel.Workshe…
Last reply by rot13, -
- 0 replies
- 741 views
I copied and modified a little application that retrieves emails via pop3. Now comes the hard part of parsing the data. I found a pretty comprehensive solution here: http://www.codeproject.com/csharp/mime_project.asp to be honest it's probably too much. i can't view the help files and getting through all the relevant code for just using one feature might not be the best solution. i'd prefer to code some of it myself anyways. maybe s.o. knows a different solution that is easier to adopt?
Last reply by Malfunction, -
-
- Administrators
- Leaders
- 6 replies
- 1k views
Let's say I have an array containing about 1000 objects. Now I need to perform an operation with each object. Since this operation requires some I/O and webrequests I don't want to go through the array sequentially but parallel using threads. Using four threads I would probalby double the speed of the application and using eight probably quadrupling it. At a certain point adding more threats the application will become slower as the number of threads would use all cpu power. Right now i would just do some trial and error to determine the right number for my machine. Other uer would probably have total different experience. Another solution would be to give t…
Last reply by Malfunction, -
-
-
- Administrators
- Leaders
- 5 replies
- 777 views
If you have an item, a module or a class say, which exists in one project, and you add it to another project, how can you then remove it from the second project? If you right click on it you can exclude it from the project, which results in it still being shown, but faded out, or you can delete it, which means it will be lost from the original project. I just want to go back to the situation where it wasn't part of the second project at all. How do I do that?
Last reply by rbulph, -
-
- 0 replies
- 705 views
Is there any way to make my DetailView control (linked to an AccessDataSource) update a memo field? in other words allow multiple line, input. I have it setup and working, but I cannot post multiline data into the 'single line' textbox created by the control. -Thanks!
Last reply by Nate Bross, -
- 0 replies
- 761 views
We need to localize our web app in both English and Spanish. Currently, the English and Spanish texts are in 2 tables: one for English, one for Spanish. These 2 tables are used by our propritary Windows app. My manager wants me to still use the 2 tables when we're coding the web app. I read these 2 sites: http://www.codeguru.com/csharp/.net/net_asp/miscellaneous/article.php/c12407__2/ http://www.codeproject.com/useritems/localization.asp At the end of the second link, it does talk about having translations in the database. my question is is there a way to populate the RESX files from the database? How can I use the resx files if the translanslations are in …
Last reply by eramgarden, -
- 0 replies
- 730 views
I am having a serial issue and may need counseling if I do not get it fixed soon. I am writing a process to communicate with a device serially. The command button procedure calls 4 different sub procedures that communicate with the device. Each sub procedure opens writes to/reads from the device. Then closes and disposes of the device. I encapsulated the serial function in a class. As the program is running it will periodically error out with a �The I/O operation has been aborted because of either a thread exit or application request.� error. Additionally if I run it in the IDE it is more reliable then running it from the exe. When it runs in the sub routine i…
Last reply by MTSkull, -
- 1 reply
- 3.6k views
Is there anyone who knows how to convert dynamically PostScript documents to PDF? I work on a project that create PostScript file for publishing and now client want to have them in PDF also. It's C# project.
Last reply by mskeel, -
-
- Administrators
- *Experts*
- 3 replies
- 2.6k views
I did a search for ICustomTypeDescriptor only to be told that no results were found and that (presumably this was the reason) ICustomTypeDescriptor had been excluded from the search because it was either too short, too long or too common. Presumably it was too long. Isn't it a bit silly that there's an exclusion for words which are too long?
Last reply by PlausiblyDamp, -
-
-
- Administrators
- *Experts*
- 3 replies
- 18 views
A user just brought up the fact that searching by words that are too large won't work - they get excluded. For example, searching for ICustomTypeDescriptor is 21, which goes beyond the 20 char maximum. I see the note about setting this number to be larger and how it may make the database size grow. Could we increase it to 25 anyhoo? I don't know how to check the stats to see how much bigger the index may grow with a max of 25 vs 20, but I wouldn't guess it's too big. There aren't a lot of keywords that would need to be this big, but in programming people sometimes have pretty long names. If I haven't heard anything by Monday (8/21/2006), I'll go ahead and make th…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 5 replies
- 1.3k views
im using a webservice to process things and return the result, now im planning to do this - send request via webservice (from client side) - return an acknowledgement (that i received the request) (to client side) and breaks the connection - process it (on server side) - return the process result (to client side) atm, i have these - send request via webservice (from client side) - process it (on server side) and return the result (to client side) my question is, is there a way to push the process result via webservice or process something after i return an acknowledgement to client side?
Last reply by lamy, -
-
I am trying to add a record count to a database. When it does an Insert command, Dim rec as Interger rec = 000000 code........ code........ rec = rec + 1 insert num value (rec) VB errors in rec = rec + 1 any ideas
Last reply by David222, -
- 1 reply
- 1.8k views
I'm currently working on an app that can view the registrys on remote computers located on the same server. I can successfully view some of the registry keys but when i try to access "HKEY_CURRENT_USER\Software\VB and VBA Program Settings" i get an "Access Denied" Message. After doing some research i found out that i have to have admin rights on those machines in order to access all the registry keys. My question is: Is there a way to send in the admin credentials in order to have access to the registry keys?? Or is there another way to go about this?? i have the admin username and password. I just don't have a means of sending it to the proper machines. Tha…
Last reply by jayy66, -
- 1 reply
- 2.7k views
I'm trying to retrieve values from a remote registry. I have successfully connected to the remote computer using WMI (system.management). I have an error in my code below. Dim strKeyPath As String = "Software\VB and VBA Program Settings\Current" Dim Values() As String Dim options As New ConnectionOptions options.Username = "username" options.Password = "password" Dim scope As New ManagementScope("\\" + PCname + "\root\default", options) scope.Options.EnablePrivileges = True scope.Options.Impersonation = ImpersonationLevel.Impersonate scope.Connect() …
Last reply by jayy66, -
- 0 replies
- 859 views
I am starting out on a big new project and before I leap in I wanted to figure out if I could go the 'heavy-duty' .NET for doing this or if I should roll my own solution to maintain some semblence of control and understanding in my code. Here is what I need to do: I have n number of tables in SqlServer that I need to display inside of Windows forms so that the users can view, delete, update and add new records to. Some of these tables have upwards of 50 fields in them. And some will be changing periodically (new fields, dropped fields). What I want to do is write code to dynamically query the table collection, determine the fields with data type, map those to speci…
Last reply by VBAHole22,
-
Who's Online 0 Members, 0 Anonymous, 46 Guests (See full list)
- There are no registered users currently online