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...
User Profile
Collapse
-
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.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 LoadLeave a comment:
-
-
I find string comparisons very fast so I try to do alot of operations with them....Leave a comment:
-
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?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...Leave a comment:
-
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
Leave a comment:
-
I like that Ticks uses Nanoseconds (just read about it). I'll see if this works. Thanks for the suggestion....Leave a comment:
-
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... -
-
-
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...Leave a comment:
-
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?Leave a comment:
-
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... -
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....Leave a comment:
-
.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... -
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....Leave a comment:
-
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....Leave a comment:
No activity results to display
Show More
Leave a comment: