User Profile

Collapse

Profile Sidebar

Collapse
TTCEric
TTCEric
Last Activity: Aug 27 '08, 08:15 PM
Joined: Jul 22 '08
Location: Pennsylvania
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Oops. Didnt notice it was C#.

    Ok, I found a link related to what you need. A good google keyword search is C# Event Handling. There are actually several ways to handle events in C#. This one I found most easier to follow:

    http://www.c-sharpcorner.com/UploadF...ginCSharp.aspx...
    See more | Go to post

    Leave a comment:


  • TTCEric
    replied to Deserialize multiple XML documents
    in .NET
    is that the data as recieved from the socket?
    i think all you need to do is get an XML reader and use that as long as its relatively well-formed.
    but you mention deserialize. thats taking objects passed between domains and using them as objects in your code. in this case you seem to have the data deserialized already.
    all you need now is an xml object to get to the element you need.
    See more | Go to post

    Leave a comment:


  • TTCEric
    replied to Windows service path, different problem
    in .NET
    Code:
    my.Application.Info.DirectoryPath
    Why not use that?
    See more | Go to post

    Leave a comment:


  • You need a 'Handles TabControl.OnLo ad' appended to the end of the function signature like this

    private sub MyTabControl(By Val sender As System.Object, ByVal e As System.EventArg s) Handles MyTabControl.On Load
    See more | Go to post

    Leave a comment:


  • TTCEric
    replied to Writing XML to SQL SERVER
    in .NET
    Thanks for the link and the reply...
    See more | Go to post

    Leave a comment:


  • I find string comparisons very fast so I try to do alot of operations with them....
    See more | Go to post

    Leave a comment:


  • TTCEric
    replied to Problem in accessing CD Drive in VB.Net 2.0
    in .NET
    Does it make sense that the 'OPEN' condition is saying yes because it is querying the hardware driver which has a much tighter criteria of what it means to be open? So, the instant you ask, it will say yes until it realizes a spin and the shell (explorer) does its part. It might be a timing thing. The object your using is reporting what it knows at the time you ask. Know what I mean?
    See more | Go to post

    Leave a comment:


  • This would be my approach (it avoids the back/forth trips to the database).

    1. Create a function that creates a string containing the values in your controls. For example, it creates one huge string of control values.

    2. Get the result of the function just after loading the database values. Throw it in a global variable.

    3. Before exiting, make another call to the function but this time do a string comparison...
    See more | Go to post

    Leave a comment:


  • TTCEric
    replied to Problem in accessing CD Drive in VB.Net 2.0
    in .NET
    If you know the drive letter assigned to the drive, why not check for the existence of files?

    Using My:
    Code:
    Dim szCDROM as String = "Z:\"
    IF My.Computer.FileSystem.GetFiles(szCDROM).Count  > 0 THEN
       msgbox "Drive must be closed. I see files!"
    END IF
    Although it might error out if you attempt a GetFiles on an open drive. Solution to that would be to use...
    See more | Go to post

    Leave a comment:


  • TTCEric
    replied to Getting random, unique numbers
    in .NET
    I like that Ticks uses Nanoseconds (just read about it). I'll see if this works. Thanks for the suggestion....
    See more | Go to post

    Leave a comment:


  • TTCEric
    started a topic Writing XML to SQL SERVER
    in .NET

    Writing XML to SQL SERVER

    With ADO.NET, you can persist records to file using WriteXML method of DataTable object.

    What I want to do is load this XML into a SQL Server 2005 database.

    So, basically, I have created a DataTable, loaded some information to it, persisted it to file using WriteXML.

    I dont have a table created. Id like to let the connector (or whatever its called) name the table the name given to the DataTable. Of...
    See more | Go to post

  • TTCEric
    replied to Getting random, unique numbers
    in .NET
    Good suggestion. I'll give it a try. Appreciate it...
    See more | Go to post

    Leave a comment:


  • TTCEric
    replied to problem in modifier in vb.net 2003
    in .NET
    my guess is they meant Friend.
    See more | Go to post

    Leave a comment:


  • TTCEric
    replied to Getting random, unique numbers
    in .NET
    Yes. I observed this as well. Stepping through the code, random worked. It was being seeded in milliseconds.

    What can I use instead of milliseconds? Evidently, my routines are happening too quickly- before the next millisecond.

    My temporary solution will be to store used random numbers but only in such a way as not to duplicate more than a few times. I hope this will delay the operation a bit.

    If theres...
    See more | Go to post

    Leave a comment:


  • TTCEric
    replied to Getting random, unique numbers
    in .NET
    Getting random, unique numbers

    I posted this before but did not get a reply so i'm gonna try it again without diluting with detail.

    Real simply put: random numbers are not random even though I seed with time in milliseconds.

    Is there some other method to seed or some other concrete randomizer logic that works?
    See more | Go to post

    Leave a comment:


  • TTCEric
    started a topic Getting random, unique numbers
    in .NET

    Getting random, unique numbers

    This will be original. I promise.

    I cannot get the random number generator to work.

    I tried seeding with Date.Now.Millis econds, it still results in the same values.

    What I have are arrays of values.

    I get a random index value for each array so I can pull the data from them.

    Except the data is similar on every run.

    I know its a timing issue because when...
    See more | Go to post

  • You are not using intFileNo. You need to use it instead of using '1'.

    In code:

    Open "file.txt" For Input As #intFileNo

    I dont know why you are not getting invalid file handle for 1, though....
    See more | Go to post

    Leave a comment:


  • TTCEric
    started a topic .NET find utility
    in .NET

    .NET find utility

    In VB6, you just had available a Find dialog. Now, in .NET you have several options. "Find Symbol", "Quick Find" and "Quick Replace".

    None seem to do what I want: simply find some code. Inundated with all these options makes me think i'm picking the wrong things.

    But, you see, I dont want options. I just want to find a block of code (utter frustration here).

    Any pointers...
    See more | Go to post

  • TTCEric
    replied to plot graph real time on vb
    yes, you should look at the point class to understand where on the screen you could indicate the measure on whatever object you are plotting to.
    With some GDI+, you could make some decent code. Learning GDI+ is a bit of a curve but certainly worth it in your case.
    There are no native/intrinsic graphs in VB.NET that I know of. So, you'll need to mock one up....
    See more | Go to post

    Leave a comment:


  • TTCEric
    replied to plot graph real time on vb
    Is your question how this should be represented? if so, id suggest asking your users. There are many ways coordinates can be rendered. For example, as a monitor where coordinates change and previous coordinates are still seen. This alot like echocardiogram you see in hospitals. Or, it can be simple bar that goes up and down or side to side or both. This is like a pulse monitor....
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...