Search results

  1. N

    Populating variables from DataGridView selections has a steep learning curve, so please bare with me. I am trying to create a program where you can select multiple Linux hosts, then select a bash script (which already exists on the Linux hosts), and click a button to execute the script on all the hosts. I've managed to get to...
  2. N

    SSH view command output in real time

    Hi, I am trying to create an application that runs bash scripts on a remote Linux computer. The scripts already exist on the Linux computer, I just want to run them using this application. I'm using SSH NET by Renci to establish the SSH connection. The scripts are expected to provide full...
  3. N

    Question Editing a text file problem

    I have a CheckedListBox and I want to use it for editing a text file. This is what I have so far. Private Sub CheckedListBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles CheckedListBox1.SelectedIndexChanged If CheckedListBox1.CheckedItems(0) = "test1" Then...
  4. N

    Question cannot open service "servicename" on computer '.'.

    For some reason, when using the code below, when I click any of the 2 buttons to stop or start the spooler service, I get the error attached. I've googled it, but I could not find the reason why. Any ideas? Imports System.ServiceProcess Public Class Form1 Dim Spooler As New...
  5. N

    defining all the if's when first loading a form

    So, I'm creating a form with a label, a picture box and two buttons. This form will control the Spooler service. The label will say "Running" when the service is running and the picture box will be green. The "Start" button will be disabled and the "Stop" button will be enabled. The label will...
  6. N

    Read from text to textbox

    I have a form with a textbox and I want that textbox to read from httpd.conf on line 162. Line 162 reads ServerAdmin Shouldn’t this code work? Because it does not. Public Class Form1 Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles...
  7. N

    error message when pressing save button

    Hi, Can anyone please explain to me, what I'm I doing wrong here and how can I fix it? Thank you
  8. N

    enable button if checkbox state changes

    I know how enable a button when the state of a checkbox is enabled or disabled. But in my case I want to enable the button simply when the state of the checkbox is changed. It doesn’t matter in which state the checkbox is. It can be enabled or disabled when the form opens, but when the state...
  9. N

    editing a config text file with checkboxes

    Hi, I want to create a Windows form with checkboxes, which will edit the configuration file of apache webserver. That’s a 437 lines text file, which means that each time I want to edit a setting, visual basic will have to find the correct line and make the appropriate modification. I have have...
  10. N

    Question Progress bar for Windows Service

    Hi, I am using visual basic 2010 express for the past three days, and I am trying a few things out I am using this to start a service Private Sub StartService_Click(sender As System.Object, e As System.EventArgs) Handles StartService.Click Dim sc As New...
  11. N

    Slight problem with VB code / VB Express or VB 6?

    A friend created this form for me, so that i would be able to control my local webserver. He created it in Visual Basic 6. I have tried using it in VB Express 2005 (since it's free) but i get error messages. Some of those errors are these:
  12. N

    Start/Stop Windows Services / indicator / progress bar

    I need to create an application, that will have 2 buttons, to start and stop a windows service. If i make the first 2 work, more butons for more services will follow of course. There should also be a progress bar showing the service starting or stopping, and also an indicator showing if the...
Top Bottom