Search results for query: *

  • Users: cBarry263
  • Content: Threads
  • Order by date
  1. 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...
  2. 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...
  3. 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>...
  4. 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...
  5. 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.
  6. 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"??
  7. 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...
  8. cBarry263

    CPU usage

    Anyone know how to get the CPU usage at any given time (i.e. 30%)??? Thanks.
  9. 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...
  10. 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"...
  11. cBarry263

    Strings and substrings

    What's the .NET equivalent of the "Right" function in VB6. For example: Imports System.String . . . Dim s as String s = "example" 'Let's say I want to get rid of the "ex", in VB 6 you could do: Dim temp as String temp = Right(s, 2) I'm trying to do something similar in .NET, but when I use...
  12. cBarry263

    How to connect to a directory on a remote computer

    1) Does anyone know how to connect to a directory on a remote computer, that requires a username and a password? For example, you would use Directory.GetFiles(pathname) to get files from a directory on the local machine, I want to get files from a directory on a remote server that is within...
  13. cBarry263

    = nothing?

    I am writing a program that polls a database every 60 seconds. Do saying things like objDataAdapter = Nothing, objDataSet = Nothing actually do anything? And is this the proper way to free up these objects so the next time I poll the database (done with a timer1_elapsed method) these objects...
  14. cBarry263

    Connection to another computer

    I want to write a program that will go to another computer on the network and look in a specific directory. This can be done manually by going to start->run and typing in \\servername\d$\path. A username and password will also have to be passed to the server to be able to login. How can this...
  15. cBarry263

    objDataAdapter.SelectCommand.CommandText

    I have opened a connection to a database, and want to run a query to it. I have used: objDataAdapter.SelectCommand.CommandText = "query" Dim objDataSet As DataSet = New DataSet objDataAdapter.Fill(objDataSet, "result") When I run the query, where does the result get stored, and how would I...
  16. cBarry263

    ODBC connection string

    I'm trying to connect to an IBM DB2 database. When I try to do Dim sqlConn As New SqlConnection( "Driver={IBM DB2 ODBC DRIVER};.......) and run the program, I get an error saying "driver" is not a specified keyword. Anyone have any ideas? Can I even use SqlConnection to try to connect to DB2?
  17. cBarry263

    environment handles

    Could someone please explain to me what "environment handles" and "connection handles" are? I have never heard these terms yet they are showing up everywhere I this code I am working on.
  18. cBarry263

    Screen.MousePointer = vbDefault

    I have this code in a VB 6 project that I am converting to .NET, which doesn't like this statement. Is there a namespace that must be added for this statement to work, or is this no longer supported in .NET?
  19. cBarry263

    "Attibute" in VB 6

    Guys, I'm converting a VB 6 app to VB.NET, howerver the VB 6 code has some modules that say "BEGIN" and "END" at the top, and they also have an "ATTRIBUTE" at the top. I have never seen this before, could someone explain what these are used for and what their equivilant would be in .NET?
Back
Top