Search results for query: *

  1. J

    ASP.NET Web service to query Linux service

    Ah, I didn't explain too well. The web service will run on the Windows server, and will remotely contact the Red Hat server.
  2. J

    ASP.NET Web service to query Linux service

    Hi all, I need to write a asp.net web service (in vb.net, rather than c#) asp.net page, which will run a couple of commands on a red hat server (basically, run the "service httpd status" command) and return the output to the browser window. Is this possible, and if so, any idea how I go about...
  3. J

    select statement query

    I have a table with records in that one of the columns (called "entries") has an integer. What I want to do is select all records from the table, but if a row has (for example) 37 as the value for "entries", then that row is selected 37 times. So for example: select name,entries from mytable...
  4. J

    cycle through records in dataset

    No worries - I figured it out in the end by using the following: Randomize() Dim i As Integer = 0 Dim oRow As DataRow Dim iRowCount As Integer = oTbl.Rows.Count i = CInt(Rnd() * iRowCount) + 1 oRow = oTbl.Rows(i) Thanks for your help.
  5. J

    cycle through records in dataset

    Hi Guys, Another query! I have a windows form that has a dataset in it which has been populated from a stored procedure (using enterprise library). This dataset simply has several hundred rows. What I would like to do is, when pressing my "start" button, beging cycling through the records in...
  6. J

    Timer pause/resume

    Thank you very much - a bit of fiddling the code to suit my needs and it works a treat. Thanks again.
  7. J

    Timer pause/resume

    Hi guys, Sadly, a newbie question for you! I've just started playing with the timer in vb.net and am trying to use a start/pause/resume button to start/pause/resume a progress bar I am using. I can make it start and stop the progress bar (so it appears to pause halfway through for example) but...
  8. J

    DateTime - Month to date

    Thanks for your help. Not sure if I understand properly, as I am unable to get this to work. I've posted my code below - I'm not sure what do put for Case "M" - how do I get it to figure out month to date? Dim SqlConnection As String Dim SqlCommand As SqlDataAdapter Dim...
  9. J

    DateTime - Month to date

    I wonder if someone can help me get my head around a problem I have which should be simple to work out, but it's making my head spin! I have an ASP.NET form which gets a variable from the querystring for the period - it'll either be: M, LM or 2M (month to date, last month, 2 months ago). What...
  10. J

    auto-highlight row in datagrid

    Thanks, kulrom, for all your help - at least it's not just me missing something obvious. How do I rate you in this forum? Cheers, Jon
  11. J

    auto-highlight row in datagrid

    This is the entire code (minus the auto generated code)... Public Class Form1 Inherits System.Windows.Forms.Form Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load SqlDataAdapter1.Fill(DataSet11) DataGrid1.RowHeadersVisible = False...
  12. J

    auto-highlight row in datagrid

    Thanks Kulrom - I have been downloading your code - just not straight away as I'm not at my PC all the time. Your code does exactly the same as: Private Sub DataGrid1_MouseUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles DataGrid1.MouseUp...
  13. J

    auto-highlight row in datagrid

    Thanks for that. It appears that in your example, the first entire row is selected when you fire the load button. However, my datagrid loads data automatically. Upon lanching the exe, what you see in 3.gif (attached) is how the display looks. See how the first row is selected, using...
  14. J

    auto-highlight row in datagrid

    I think you misunderstand - I don't want to select the second row - I have already got it to select the first row. What I want is for what happens in 1.gif to not happen - when I load the form, the first cell is selected in edit mode with the cursor flashing within that cell. I want the first...
  15. J

    auto-highlight row in datagrid

    Hi Guys, I need help again! I cannot seem to get my datagrid to do what I want. When I run my form, the first row is selected (that's fine) but the first cell is selected with a cursor in it (not fine) whereas I'd rather either no cell or row is selected, or the first row is highlighted (no...
  16. J

    Datagrid - double click row to fire event

    Thanks alot - that really helped.
  17. J

    Datagrid - double click row to fire event

    Hi Guys, I have been trying to find an answer to this one and can't seem to find it, although there must be a way of doing this... I have a Windows Form I created in VS.NET which I want to be able to double click on any cell in any row and fire an event. Currently, if I double click on the...
Back
Top