User Profile

Collapse

Profile Sidebar

Collapse
SyGC
SyGC
Last Activity: Apr 21 '08, 09:21 AM
Joined: Feb 23 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • SyGC
    replied to DO LOOP String.IsNullOrEmpty Threading VB.NET
    in .NET
    Hi Vanc

    Yea doing the DO While LOOP makes much more sense. The issue hasnt been resolved though.

    Ive put in the button click event the following;

    Code:
            
    
            Dim GifThread As Thread
            GifThread = New Thread(AddressOf Me.backgroundprocess)
            GifThread.Start()
    
            GifPicBox.Visible = True
    
            If GIf = True Then
    ...
    See more | Go to post
    Last edited by SyGC; Apr 5 '08, 11:58 AM. Reason: add thanks

    Leave a comment:


  • SyGC
    started a topic DO LOOP String.IsNullOrEmpty Threading VB.NET
    in .NET

    DO LOOP String.IsNullOrEmpty Threading VB.NET

    Hey All,

    im trying to simply display an image depending on whether a text box has been populated or not. To do this im using the String.IsNullOr Empty(My String) approach.

    Becuase the image will change depending on the textbox field state the String.IsNullOr Empty(My String) is placed in a DO LOOP and Thread

    Code:
        Private Sub backgroundprocess()
    
            Dim Results As String
    ...
    See more | Go to post

  • SyGC
    replied to DB Data Computer.Network.PING DO WHILE loop
    in .NET
    Hello All,

    Ive been able to extract the IP Addresses from my data set and parse them to an array which in turn parses them to the Network.Ping method running in a WHILE loop in a seprate thread. Ive then pointed the the results from the Network.Ping method (True/False) displaying the IP address if returning False in a textbox field. However all i want to do is simply return line each time an IP address is parsed to a textbox field....
    See more | Go to post

    Leave a comment:


  • SyGC
    replied to DB Data Computer.Network.PING DO WHILE loop
    in .NET
    Hi Plater,

    yea im giving it a go as we speak. I think the issue at the moment is extracting the IP Addresses from the Datagridview to parse to the Network.Ping.

    Anyway ill crack on! Any suggestions though feel free! :P

    Sy...
    See more | Go to post

    Leave a comment:


  • SyGC
    started a topic DB Data Computer.Network.PING DO WHILE loop
    in .NET

    DB Data Computer.Network.PING DO WHILE loop

    Greetings All,

    I have established a working Remote Connection to a MySQL DB using ODBC which allows me to select data in a Datagridview in my Form. The data is a list of IP addresses. What i want to do is take each IP address, parse it to My.Computer.Net work.Ping if the result returns false then the IP address is diaplayed in a TextBox1. If the result is true then the IP address is either disgarded or displayed in another TextBox field....
    See more | Go to post

  • SyGC
    started a topic System Reboot Application Load on specific Form VB.NET
    in .NET

    System Reboot Application Load on specific Form VB.NET

    Greetings All,

    Ive been able to initiate a system restart in my VB.NET application on a button click with the following code;
    Code:
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    
            System.Diagnostics.Process.Start("Shutdown", "/r")
    
       End Sub
    What id like to do is restart the system...
    See more | Go to post

  • SyGC
    replied to OleDbConnection problem (VB.NET)
    in .NET
    Thanks Plater....very foolish of me indeed! Although the permissions set up for that username account are only granted to my local IP address etc. Still a change would be sensible.

    Cheers guys,

    Sy...
    See more | Go to post

    Leave a comment:


  • SyGC
    replied to OleDbConnection problem (VB.NET)
    in .NET
    Hey balabaster,

    Dont apologise! Its funny really. Whilst having no luck with the ODBC method i moved back to OLeDB and managed to get it to work!!!! Amazing what happens when you spend hours and hours researching the internet AND more importantly getting help from people such as yourself!

    Code:
     Dim SQLConnection As OleDbConnection
            Dim SQLInsertCMD As OleDbCommand
    
            Dim sConnString
    ...
    See more | Go to post
    Last edited by Plater; Mar 19 '08, 08:58 PM. Reason: removed username password

    Leave a comment:


  • SyGC
    replied to OleDbConnection problem (VB.NET)
    in .NET
    Hey balabaster,

    Ok looking at the driver name it is "3.51.23" however changing the Driver string to Driver={MySQL ODBC 3.51.23 Driver} i get the error message
    "ERROR [IM002][Mircrosoft][ODBC Driver Manager] Data source name not fond and no default driver specified"

    So it would seem the driver 3.51 is the correct string to use?

    Looking at connectionstrin gs.com and your suggestion that...
    See more | Go to post

    Leave a comment:


  • SyGC
    replied to OleDbConnection problem (VB.NET)
    in .NET
    Hey balabaster,

    Thanks for all your help so far....life saver!

    I added the MsgBox, and i get an "Open" response then followed by the other catch exception message box stating....'Exe cuteNonQuery: Connection Property has not been initialised.'

    Could it be an issue with the ODBC setup on my developement environment? The screen shots i attached on a previous post show what ive configured. Noticing...
    See more | Go to post

    Leave a comment:


  • SyGC
    replied to OleDbConnection problem (VB.NET)
    in .NET
    Hey balabaster

    Thanks for you help today. Helpfull to have the commented sections, makes learning a lot easier. Since looking at your code a few developements. I see you've used the OleDB method so ive adapted my connection string work with this

    Code:
    Dim sConnString As String = _
          [U][B]  "Provider=OleMySql.MySqlSource.1;"[/B][/U] & _
            "Datasource=wampmysqld;" & _
    ...
    See more | Go to post

    Leave a comment:


  • SyGC
    replied to OleDbConnection problem (VB.NET)
    in .NET
    Hey,

    Ok ive changed the odbc command to OleDB Command. I dont totally understand what you mean by the line of code for 'instantiating' the connection object (:$)...sorry..( ill get 'Newb' tattooed across my forehead!) The code below is all ive been working with ...

    Code:
        Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
    
            Dim
    ...
    See more | Go to post

    Leave a comment:


  • SyGC
    replied to OleDbConnection problem (VB.NET)
    in .NET
    Hi balabaster,

    thanks for getting back to me.

    Ive tried your Connection string replacing mine. I inserted the breakpoint as you said and unfortunatley i get the "nothing"respon se when holding my mouse over the connection object....

    Code:
    ConnectionString = "Driver={MySQL ODBC 3.51 Driver};Server=192.168.1.121;Port=3306;Database=airproductsipdb;User=[B]USERNAME[/B];Password=[B]PASSWORD[/B];Option=3;"
    ...
    See more | Go to post
    Last edited by Plater; Mar 19 '08, 08:59 PM. Reason: removing username/password

    Leave a comment:


  • SyGC
    started a topic OleDbConnection problem (VB.NET)
    in .NET

    OleDbConnection problem (VB.NET)

    Hello,

    Im trying to connect to a MySQL DB on my home network (testing purposes) using the following VB.NET code;
    Code:
    Imports System.Data.OleDb
    
        Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
    
            Dim SQLConnection As OleDbConnection
            Dim SQLInsertCMD As OleDbCommand
            Dim sConnString As String
    ...
    See more | Go to post
    Last edited by SyGC; Mar 15 '08, 01:45 PM. Reason: Adding additional information

  • SyGC
    started a topic Threading with Network.Ping
    in .NET

    Threading with Network.Ping

    Hi Guys,

    I have used Threading for Network.Ping to continuously ping an IP address if ping is successful Image A is displayed if not Image B. The code is as follows:

    Code:
    Imports System
    Imports System.Diagnostics
    Imports System.Threading
    
    Public Class Form1
    
        Dim PingThread As Thread
        Dim PRes
    
    
        Private Sub Form1_Load(ByVal sender As System.Object,
    ...
    See more | Go to post

  • SyGC
    replied to My.Computer.network.ping Do Until Loop
    in .NET
    Hi Jagged

    yes indeed in my infinite newbiness i should of put the IF statement inside the DO until Loop.

    However something strange now happans. After implementing your code and compiling my Form no longer appears. Debugging is occuring but i dont see my form.

    If i quote out the 'Do' and 'Loop' and compile my form again i can see it.

    Any Ideas?

    Thanks again
    Sy
    See more | Go to post

    Leave a comment:


  • SyGC
    started a topic My.Computer.network.ping Do Until Loop
    in .NET

    My.Computer.network.ping Do Until Loop

    Hi People,

    Im trying to do a simple Loop where by an IP address is pinged (Using My.computer.net work.ping) and the results, true or false, are used to invoke another line of code.
    Basically if the IP is pingable (true) image A is displayed if it is not (false) then image B is.

    The code i am using is as follows

    Code:
    Dim IPAddress As String = "192.168.1.122"
    ...
    See more | Go to post
No activity results to display
Show More
Working...