Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
G

George_Lucian

@George_Lucian
About
Posts
7
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Problem launching email client
    G George_Lucian

    I figured that out ...but I do not trust SMTP... maybe there is another way

    C# question help

  • Problem launching email client
    G George_Lucian

    Hi! I am trying to launch from code the default email client. Here's how I do it: emlText = "mailto:" + strAddress + "?subject=" + strSubject + "&body=" + strBody; System.Diagnostics.Process.Start(emlText); If the body text is smaller than 2024 characters the client launches perfectly. If it exceeds 2024 characters I receive an Access Denied exception. Can anyone please tell me how can I overcome this problem? Thanks

    C# question help

  • Outlook email text ignores \r\n
    G George_Lucian

    strMail = "mailto:" + strAddress + "?subject=" + strSubj; strMail += "&body=" + sbBody.toString(); System.Diagnostics.Process.Start(strMail);

    C# help

  • Outlook email text ignores \r\n
    G George_Lucian

    I have tried adding
    instead of \r\n...but in this case it just displays
    in the text...this means that it is not in HTML view mode

    C# help

  • Outlook email text ignores \r\n
    G George_Lucian

    Hi! I am trying to creat the body for an email. First I create the text of the email like this: System.Text.StringBuilder sbBody = new System.Text.StringBuilder(); sbBody.Append(" asdasfsdgfdfg dfgh \r\n"); sbBody.Append("fw4 34wtrc345v345345gv43bv3 \r\n"); sbBody.Append("asdasdaskjfn39i4fn3498gn4oegerlkg. \r\n"); Then I start a process that launches the email client. The problem is that the text of the email is not displayed correctly in Outlook, meaning that the \r\n are ignored(if I display the text in a message box the \r\n work fine). Can anyone help me with this problem... PS: I have tried using Convert.toChar(13) but still nothing...

    C# help

  • sending messages to a window from a windows service
    G George_Lucian

    ...i have the following problem: i have a windows service that when it starts opens the serial port COM1 and then listens on it. Once it receives something(a code) it does something to winamp(depending on the code received e.g. 1=play,2=stop...etc.).to see if it works i have connected pin2 with pin3 of the serial port and i have added a timer in the service which from second to second sends a code to the serial. when i install the service and start it it does nothing to the winamp...i have debugged the code and found out that the function associated to winamp function is executed with no errors ( IntPtr hwnd = SerialPortListner.PortListener.FindWindow(windowName, null); SerialPortListner.PortListener.SendMessageA(hwnd, WM_COMMAND, WA_STOP, WA_NOTHING);) when the timer event is raised...but i do not know why it does nothing to winamp(play,stop...etc). If i put the exact same code in a windows application it works perfect but in the service it does nothing... ...can u help me pls... thx in advance!

    C# help

  • serial communication
    G George_Lucian

    ... i have a problem communicating on the serial port(COM1 or COM2).Here's the code: private void Form1_Load(object sender, EventArgs e) { if (!serialPort1.IsOpen) serialPort1.Open(); serialPort1.DtrEnable = true; } private void serialPort1_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e { MessageBox.Show(serialPort1.ReadExisting()+"geo"); textBox1.Invoke(new EventHandler(delegate { textBox1.Text += serialPort1.ReadExisting();})); } ...if I connect pin2 with pin3 of the serial port(RX,TX),and i try to transmit something on the serial port, it works(the serialPort1_DataReceived event is raised and i get the data i have sent)...but when i connect a sensor(for a remote control) on the serial port and a push a button on the remote nothing happens. the sensor works because i have tested it with a special program named GIRDER(when i push a button on the remote it shows the code of the button on the screen). If someone could help i would appreciate it.

    C# help iot
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups