Jump to content
Xtreme .Net Talk

twistedm1nd

Avatar/Signature
  • Posts

    34
  • Joined

  • Last visited

About twistedm1nd

  • Birthday January 5

Personal Information

  • Visual Studio .NET Version
    VS 2003
  • .NET Preferred Language
    C#

twistedm1nd's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. lol i just discovered nullable types , didnt know they existed. // Nullable Type Example int? x; if (x != null) Console.WriteLine(x.Value); else Console.WriteLine("Undefined");
  2. internal struct data { internal DateTime time_stamp; internal double duration_good; internal int count_good; internal int count_bad; internal double value_sum; internal double value_sum2; internal double? value_min; internal DateTime? value_min_timestamp; internal double? value_max; internal DateTime? value_max_timestamp; } The struct works fine when used but What kind of a decleration is DateTime? or double? I'm using .NET framework v2 beta. Thanks
  3. //C# code // KeyPressEventArgs accepts a char as the input private void Form1_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { // do something based on the key pressed } private void button1_Click(object sender, System.EventArgs e) { char ch = 'a'; Form1_KeyPress(new object(),new System.Windows.Forms.KeyPressEventArgs(ch) ); } OR the other way would be to use keybd_event winapi
  4. I have a string which has to be grouped using regular expressions The sample string is \{Voltage\}{VoltageValue, Max\{Value\},5,5}\{Voltage\}\{Pressure\}{PressureValue,12345}\{Pressure\} The output should be Group 1 : {VoltageValue, Max\{Value\},5,5} Group 2 : {PressureValue,12345} Basically should ignore "\{", "\}" and group it based on '{' and '}' Can Somebody help me in formulating the regular expression? Thanks and regards
  5. would this work ? if(Math.Abs(x-y)>z)
  6. Assuming that you wanted to make use of the Array Class otherwise use the myIntArray in the foreach loop
  7. 3+4*2 (standard calc) = 14 3+4*2 (scientific calc) = 11 rules of BODMAS [ brackets , of , div, mul add and subtraction ] hold for one and not the other ?
  8. Source : http://msdn2.microsoft.com/library/t6b8wa5e.aspx Ty Rich :p i always thought the controller communication protocols were standardized ... i guess i do need to research a whole lot more into that.
  9. the time duration is in milliseconds therefore Thread.Sleep(1000) -- > sleeps for a second
  10. FYI, though this is not the rifgt forum, a detailed intro to creating a COM component and accessing it via VB and VC++. To do it via c#/VB.Net you;d have to use DllImport as mentioned above by Mike Dr. GUI on Components, COM, and ATL
  11. IMhO yep it will or should i say its already begun. MSoft itself has been asking a lotta VB coders to start trying out (read convert to) VB.NET In a way its good as it keeps programmers employed, at the price of converting existing programs into .net :p Holy god Automation ... :D you'd be an I/O controller developer. I thought the controllers spoke in an OPC standardized format. or atleast the vendors who supplies the valves, pumps etc provided a black box that gave data out in a standardized format. I'm still to trying to get my head around the industrial automation domain... so pardon me if i'm wrong or talking(typing) non-sense.
  12. Sorry PlausiblyDamp, I decided to remove them(binaries) and then decided to leave them on... guess i should have removed them. Thanks Diesel. Ty to u too shannon, thats my 1st VB.Net program:p lol
  13. Why not just quit learning VB.Net and switch to C# insted ... least u can tell yerself its a new language ( its not very different from VB.NET ) I've found some very good stuff on MSDN Dr GUI.NET :) .. imho MSDN is targetted at medium and experienced programmers ... and not if u want to learn somethin from ground up.
  14. my bad coach its appSettings < yep case sensitivity .. which leads me to the question are XML files case sensitive .. i'm too sleepy now i'll look it up morrow and let ya know > dll1.zip
  15. Theres no direct way of getting the other folders in the but u can always getthe parent folder of the "CommonApplicationData" and then get all the subdirectories in that folder or just check (Directory.Exists) to see if u can find the folder u are looking for
×
×
  • Create New...