Search results for query: *

  1. cBarry263

    forcing program to wait

    simply genius....thanks!
  2. cBarry263

    forcing program to wait

    I have a program that monitors a directory for incoming files using the fileSystemWatcher class. Some of these files can be quite large in size and I don't want my program to take action until the file is fully copied into the directory. Is there any way to force my program to wait maybe 5 or...
  3. cBarry263

    Windows service in VB.NET 2005

    All, I am trying to create a windows service in VB.NET 2005, I have done this before in previous versions of .NET, but something seems to be different now. In other versions once you created the projectInstaller, you could go the properties page for your project and set the startup object to...
  4. cBarry263

    app.config file

    In my app.config file, I'd like to know if (and how) you can nest the applicationsettings. HEre is an example of what I am trying to do, obviously with different data, but I thought this might make it easier to understand: Here is what I have: <applicationSettings>...
  5. cBarry263

    forcing page to reload

    I got it to work now, with this: Protected Sub RadioButton1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadioButton1.Load RadioButton1.AutoPostBack = True End Sub However if there is a more efficient/better way to do this I'd still like to know:)
  6. cBarry263

    forcing page to reload

    MSDN says that is for checkboxes, I can't get it to work for radiobuttons, see code: Protected Sub RadioButton2_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadioButton2.CheckedChanged lblFrom.Enabled = False lblTo.Enabled = False lblFromDate.Enabled = False...
  7. cBarry263

    forcing page to reload

    Gentlemen, This is my first foray into ASP programming, I have been developing in VB.NET for a couple years now. I am trying to make a simple page that will query a DB and put the results in a gridview. However, I want the query to change based on a radio button that is selected by the user...
  8. cBarry263

    SQL*Loader & VB.NET

    Does anyone know if it is possible to call Oracle's SQL*Loader from a VB.NET application?? Much thanks.
  9. cBarry263

    How do I get the selected cell value from the Microsoft Office SpreadSheet.

    Not sure how to read from an excel spreadsheet, but here is how to write to one: Dim EXL As New Excel.Application Dim WSheet As New Excel.Worksheet WSheet = EXL.Workbooks.Add.Worksheets.Add . . . . WSheet.Cells(row, column).value = some string value '(row and column should be numbers, not a...
  10. cBarry263

    Try...Catch help

    Good post TechGnome. Just out of curiosity, what is trowing an excetpion? I understand the concept of: Try ' try code here Catch ex as exception ' handling here End try But what is the Throw used for?
  11. cBarry263

    vb.net help

    you have 10 text boxes, but you are going through your loop 12 times. You are probably getting an error because you are trying to assign the values of 0 and 11 to txtbox0 and txtbox11, these text boxes do not exist.just change your existing code to this: for i=1 to 10 txtbox & i.text = i next i
  12. cBarry263

    Setting the base priority of my application

    thanks for the quick reply. A little curious on how this works....I have this statement at the beginning of my program, it's the 3rd line of Sub Main() ( right after setting up a logfile). So once this line executes, it will terminate the rest of the app if a higher priority process requests...
  13. cBarry263

    Setting the base priority of my application

    I am writing an application that I only want to run if the CPU is not busy working on a higher priority process. Is there any way I can set my app up as a "low base priority"??
  14. cBarry263

    ODBC connection

    I want to connect to a DB2 database with a traditional, already defined ODBC connection. I know that I could do something like this: "driver={IBM DB2 ODBC DRIVER};Database=myDbName;hostname=myServerName;port=myPortNum;protocol=TCPIP; uid=myUserName; pwd=myPwd".However I have been told not to do...
  15. cBarry263

    CPU usage

    Thanks for the link, % Processor Time, as I understand it, only gives me the the percentage of elapsed time for this thread. I want the total CPU Usage, as in if I open the Task Manager and look it says 25%, I want my program to do the same thing. The reason for this is that my program is...
  16. cBarry263

    CPU usage

    Does Private Shared cpu As New PerformanceCounter("Processor", "% Processor Time", "_Total") give me the total percentage time that my paticular program has gotten? It seems like there should be something like : Private Shared cpu As New PerformanceCounter("Processor", "% Processor Usage"...
  17. cBarry263

    CPU usage

    Thanks, I tried this, but I get 0 everytime, even when the task manager says that it is anything but 0. Did I leave something out?
  18. cBarry263

    CPU usage

    Anyone know how to get the CPU usage at any given time (i.e. 30%)??? Thanks.
  19. cBarry263

    Nasty TreeViews

    Guys, A friend of mine is working on a program and we are trying to do something kind of unique, in that I have found nothing on the web about this so far. We have a treeview of say 100 nodes. Each of these nodes corresponds to an image. We want the user to enter a "page" number (in the form...
  20. cBarry263

    Getting results from an ODBC database

    I have a program in which I want to poll a database via an ODBC connection. I have set up the connection, and the query. THe problem is, I can't figure out how to see the results of my query. Basically, the table in the database has a bunch of rows, each containing a field called "Site_ID"...
Back
Top