Search results for query: *

  1. C

    convert define

    hello, anyone can help finding the equivalent in c# of this? define PERM_OP(a,b,t,n,m) ((t)=((((a)>>(n))^(b))&(m)),\ (b)^=(t),\ (a)^=((t)<<(n))) many thanks
  2. C

    Question Updatetextbox inside a class

    How can i update a textbox from inside class ? Error 1 Cannot access a non-static member of outer type '_server.Form1' via nested type '_server.Form1.handleClinet' using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing...
  3. C

    Question convert string to byte array

    yes you are right abaut the string is a series of hex values representing a string of ASCII characters, i need parse 4 character not 2, example 3031 converted must result in a hex byte 0x01
  4. C

    Question convert string to byte array

    hello, i need to convert a string (every 4 character ) in one byte array, example string str("30313032303330343035"); while be byte array [0]=0x01; [1]=0x02 etc how can i convert?
  5. C

    mdc-2

    i only find MD2 not MDC2.
  6. C

    Reuse virtual com port

    Hello, im trying to reuse the usb serial virtual at second time but the aplication hang, at first use it works all ok, but when i close port or close aplication i cannot use again virtual com, i must unplug usb cable and reconnect to work. using System; using System.Collections.Generic; using...
  7. C

    Label increment

    hello, supossing i have a file length whit 33000 bytes, how can a convert or calculate for increment a int until 100% when a finish to write all bytes ? example: label1.Text = "Progress at " + int +"%"; it can be whit decimal too like 100.00%
  8. C

    write to usb from two forms

    thanks to all answer, Sheepings you solve my issue.
  9. C

    write to usb from two forms

    hello, i write to usb hid device from form1 but now i need write too from form2 as well. in form 1 write functions is: public static extern bool WriteFile(SafeFileHandle hFile, byte[] lpBuffer, uint nNumberOfBytesToWrite...
  10. C

    int array increment

    hello , how can i increment a int array? example start whit: int[] myint = new int[6]{0,0,0,0,0,0}; int[] myint = new int[6]{0,0,0,0,0,1}; int[] myint = new int[6]{0,0,0,0,0,2}; and so on...
  11. C

    tcpserver port

    in this case: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Net; using System.Net.Sockets; using System.Configuration; namespace...
  12. C

    tcpserver port

    @Sheepings your option works only if inside a function, when calling TcpListener glabaly not like in the example. @Skydiver , yes i could read dorm setting but how? using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using...
  13. C

    tcpserver port

    yes i must convert to int, the texbox is already filled whit system.configuration.
  14. C

    tcpserver port

    yes but how do i set port value from a texbox (texbox is already fillup by setting)
  15. C

    tcpserver port

    hello, is there a way to load port of tcplistener server when form loads? example: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Net; using...
  16. C

    tcp read bytes

    hello, why i cant read all bytes ? i receive 27 bytes confirmed whit wireshark. my code for print: Byte[] buffer = new Byte[27]; // String to store the response ASCII representation. String responseData = String.Empty; // Read...
  17. C

    send email

    hi, im trying to send a email. ii already try many codes but no one works. try { MailMessage mail = new MailMessage(); SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com"); mail.From = new...
  18. C

    textbox length check if odd or even?

    hello, how can i determine if a string length (not the number itself) in a textbox.Text.Length is odd or even? example: 1A2B //odd 1A2B3 //even many thanks
  19. C

    mdc-2

    Hello, anyone can point me mdc2 hash function~in c#? many thanks
Back
Top Bottom