User Profile

Collapse

Profile Sidebar

Collapse
emhiil
emhiil
Last Activity: Aug 23 '10, 01:51 PM
Joined: Jan 30 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • emhiil
    started a topic Problem with remotly turn on/off monitor

    Problem with remotly turn on/off monitor

    Hi!

    I'm trying to remotly turn on/off my monitor using this code below. The problem is whenever I call the method that turn on/off the monitor from within the tcp asynchronous receive data method, the application just ends with no exception. So i put in a delegate but the same problem was still there.

    What is the correct way of doing this?

    Code:
    public delegate void SendMessageCallback(int hWnd, int hMsg, int
    ...
    See more | Go to post

  • emhiil
    started a topic Add/Get pictures into/from a zip file

    Add/Get pictures into/from a zip file

    Hi!

    Please help me! Is it possible to add pictures into a zip file and later display them in a picturebox using C#?
    I don't want to decompress the whole file but only get a single picture from the zip file. How should I do?

    /Emil
    See more | Go to post

  • emhiil
    replied to Update combobox from a dialogbox?
    I am totally confused, I do not understand a thing of custom events.

    But I got this to work, just do not know if it is the right way.

    Button1 on Form1:
    Code:
    private void button1_Click(object sender, EventArgs e)
    {
       Form2 f2 = new Form2();
       f2.ShowDialog();
    
       if (f2.DialogResult == DialogResult.OK)
       {
          MessageBox.Show("It works!");
       }
    ...
    See more | Go to post

    Leave a comment:


  • emhiil
    started a topic Update combobox from a dialogbox?

    Update combobox from a dialogbox?

    Hi! I have just started programming C# and I have a problem.

    On my main form, I have a combobox filled with names of people. To add more people to the combobox I want to open up a dialog box and fill in the person's name in a text field and when I hit the save button it should update the combobox on my main form. How do I do this?

    / Emil
    See more | Go to post
No activity results to display
Show More
Working...