Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. RandyRiegel

    creating a connection string so people can download my applicatiin

    Don't know why that is not working. Try: dbSource = My.Application.Info.DirectoryPath + "\AddressBook.mdb" Here is image of my code and the output, both ways should produce similar results, one includes the trailing "\" and other one doesn't. But the are both giving me the directory of my EXE.
  2. RandyRiegel

    creating a connection string so people can download my applicatiin

    If you have the connection string hard coded you will have to tell the setup application to put the database file where your application can find it (ie. C:\). You can specify when creating a setup where you would like a file copied to on the destination system. I think it would be best if you...
  3. RandyRiegel

    record count

    ...DataTable and then you can get the rows. var conn = new SqlConnection("connectionString"); var da = new SqlDataAdapter(new SqlCommand("select * from blah", conn)); var dt = new DataTable(); da.Fill(dt); var rowCount = dt.Rows.Count; Wrote this quick out of my head without compiling...
  4. RandyRiegel

    record count

    I would use a SqlDataAdapter's fill method to populate a DataTable. Then you can: var rowCount = dataTable.Rows.Count
  5. RandyRiegel

    Update website via AJAX in realtime

    Here are the specs my friend (and client) gave me: The web modifications are done via the Stores Back-Office computer not from Thin Client That is why the other company has a 15 minute polling / refresh timer. Their program checked for updates once every 15 minutes - too slow. Is there any...
  6. RandyRiegel

    Update website via AJAX in realtime

    The monitors are going to be displayed from a thin client (I need to get specs on this still). The thin client is going to have a web browser of some type on it and be networked through computer in back room. What I'm really trying to do is basically sending an AJAX POST to change the DOM of...
  7. RandyRiegel

    Update website via AJAX in realtime

    I have a client that wants to be able to update a website in real time. Here is the scenario: 1.) There is a menu (restaurant) that has a menu displayed on monitors. 2.) They want to be able to update the menu real during business hours without the whole page refreshing. 3.) They want either...
  8. RandyRiegel

    DIV layout

    I finally found out what I was missing. I added "top:0px;" to the top_header_bar class and now it keeps the bar up top. I am going to add a background image to the header. This was just an example and a test for me. It definitely won't look close to the same once things are done :)
  9. RandyRiegel

    DIV layout

    I read the website you sent me to and understand now about not taking up space. How can I get a DIV to take up space on the top without moving and position all the other elements under it? I've been trying tons of things and nothing I can figure out seems to work.
  10. RandyRiegel

    DIV layout

    ...</div> </div> <div id="content" style="width:800px; height:1000px; background-color:#cccccc;margin-top:51px;"> Randy </div> </body> </html> /* Layout.css */ body { margin-left: 0px; margin-right: 0px; margin-top: 0px; } .top_header_bar { width: 100%; height: 50px...
  11. RandyRiegel

    New at IIS - www problem.

    Hi, I've worked with LAMP web setups for years. But now I have to setup a ASP.NET server. Everything is working fine except one thing. mydomain.com --> Get directed to correct site. www.mydomain.com --> Goes to the "default" IIS page. How can I get them both to point to the same...
  12. RandyRiegel

    Ping to see if machine is on

    Something like this should work. If My.Computer.Network.Ping("10.5.7.116") Then Console.WriteLine("Machine On") Else Console.WriteLine("Machine Off") End If
  13. RandyRiegel

    A friend sent me this. I don't hav

    Olaf, This is not a homework question. I've been out of college for 16 years, now your making me feel old. Randy
  14. RandyRiegel

    A friend sent me this. I don't hav

    A friend sent me this. I don't have an answer yet but figured I'd post it here: There 351 tickets in bag. Each ticket has a letter of A through Z. There is a different quantity of each ticket as shown ... A = 1 B = 2 C = 3 ... X = 24 Y = 25 Z = 26 If a person picks out 1 ticket at a time...
  15. RandyRiegel

    Select case statement syntax with multiple choises, is it possible?

    You could create a function that you can use for each image. Something like this. Private Function GetImage(ByVal RandomNum As Int32) As Image Dim returnImage As Image Select Case RandomNum Case 1 returnImage = My.Resources.dice1...
  16. RandyRiegel

    Is it possible to declare a structure in a class and how do you access it?

    You could declare it in a class like: Public Class Class1 Public Structure CheckerBelongTo Public UserChecker As Boolean Public PcChecker As Boolean End Structure End Class And call it like this: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As...
  17. RandyRiegel

    Error String cannot be converted to System.Drawing Image

    You want something like this: Dim Pics(6) As Image Dim str As String For i = 0 To Pics.Length - 1 Pics(i) = CType(My.Resources.ResourceManager.GetObject("Image" + i.ToString), System.Drawing.Image) Next() The above will load Image0, Image1, etc...
  18. RandyRiegel

    Help with regular expression and javascript

    Thanks for you help. For years I've been in desktop application development and the company I started working for now uses a lot of web based apps internally. So I haven't had much experience with Javascript but I'm learning. :) Randy
  19. RandyRiegel

    Help with regular expression and javascript

    I am making a webpage for a user to scan a barcode into an input box (keyboard wedge reader). As soon as I get a good formatted job number I want to set focus to a hidden field which will start processing of data. But I can not get the regular expression to match, have tried all kinds of...
  20. RandyRiegel

    Time calculations to hours

    I'd like to get time calculations between two times into hours as a decimal amount. I currently have: A1 = 9:00 B1 = 11:30 C1 = =B1-A1 All fields are formatted as time. Like this C1 will display "2:30" I would like to get C1 to display 2.5 (how many hours) Is there a way to do this? I...

Part and Inventory Search

Back
Top