Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Chuck Bruce

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Re: Using TextureBrush for custom Hatch pattern

    Update: A better solution!

    I continued to work on this problem, and now I have found a way to use the original bitmaps. In fact, since I am only dealing with a hatch pattern (2 colors), I can...
  2. Re: Using TextureBrush for custom Hatch pattern

    I found a solution!

    Apparently the problem stems from using an indexed Bitmap (in my case 4bpp indexed, 16 colors). Changing the palette out works fine for subsequently drawing the Bitmap (using...
  3. [RESOLVED] Using TextureBrush for custom Hatch pattern

    Hi all,

    I am trying to draw a custom hatch pattern on some rectangles. I have a 16 color bitmap that contains my desired hatch pattern, drawn in Black and White (White is the background, Black is...
  4. Re: Why is it asking me 3 times before giving answer

    Each time you call 'Again()' is is going to ask the question. Instead, the first time you call it (the first line in the do/while, you should save the return value for the function such as:
    ...
  5. Replies
    1
    Views
    4,024

    Setting BrowsableAttribute at run time

    I have a PropertyGrid to display/edit my custom controls. There is one (for now) property that I want to selectively display (or not display) in the PropertyGrid based on the value of another...
  6. Re: How do I refresh PrintPreviewControl on demand?

    Call the InvalidatePreview method.
  7. Replies
    9
    Views
    785

    Re: I need help with the program.

    In your Dishwasher class:




    private int iGlasses, iMaxGlasses;
    private int iPlates, iMaxPlates;
    private int iBowls, iMaxBowls;

    // This is the new constructor
  8. Re: SerialStream problem with 8 bit characters

    The problem is apparently the whole "Encoding" thing. ASCII encoding only supports characters of 7 bits. 8 bit characters get discarded. Since the data I am reading in is 8 bit (binary) data, this...
  9. SerialStream problem with 8 bit characters

    Hi all,

    I am trying to read 8 bit characters from the serial port using a StreamReader. I have tried using 'System.Text.Encoding.ASCII' and 'System.Text.Encoding.Default' and both of them give me...
  10. Re: HELP! Serial Com Port Reader (.NET 1.1)

    Thanks for the reply anyway.

    Anybody else out there have any source code available for receiving data from a com port?
  11. Re: HELP! Serial Com Port Reader (.NET 1.1)

    Do you have some source code you would be willing to share?
  12. HELP! Serial Com Port Reader (.NET 1.1)

    Help Gurus!

    I have tried and tried, but I just can't seem to find out how to do this:

    I am trying to read information coming in on a serial port. I am able to open the port, and use a...
  13. Re: Listening socket in Windows Service

    Well, I have resolved this issue (in another thread):

    http://www.codeguru.com/forum/showthread.php?t=418148&highlight=windows+service)

    I will therefore mark this one as resolved.
  14. Re: HELP! Listener works, but not as Service

    Well, I finally figured out what the problem was. Windows Firewall was blocking access to the port. I enabled the port thru the Firewall configuration and all is well. I don't know why I wasn't...
  15. Re: HELP! Listener works, but not as Service

    I did some further testing, and found that even after I call the Demand() method, the IsUnrestricted() method returns false. So, I guess I still am not getting the access that I am wanting.
  16. Re: HELP! Listener works, but not as Service

    ARRGGHH :mad: :mad: - Nothing WORKS!

    I tried the user account, with the same results.
    I tried adding in the code you sent me for Permissions, same results.

    Why is this so darned HARD!

    I...
  17. Re: HELP! Listener works, but not as Service

    Thanks for the reply.

    First of all, in the Windows Service, all this stuff is not in a Form object. They are just private members of the Service class.

    Secondly, I do not seem to be getting...
  18. [RESOLVED] HELP! Listener works, but not as Service

    Somebody please enlighten me!

    I am trying to write a port listener Windows Service. I have the code working just fine as long as I run it as a normal Windows Form app. But when I try to...
  19. Re: Listening socket in Windows Service

    Oh, by the way, the 'ClientConnect' item passed to the 'BeginAccept' method is defined as:


    ClientConnect = new AsyncCallback(OnClientConnect);

    Thanks again for any help!
  20. [RESOLVED] Listening socket in Windows Service

    Hi all,

    I am trying to write a Windows Service that listens on a particular port for clients to connect, and then receives data from any connected clients.

    I have searched various forums and...
  21. Replies
    3
    Views
    6,438

    Re: ContextMenu in ComboBox Dropdown list

    No such luck.

    There is no 'IndexFromPoint' for a ComboBox, and it doesn't appear that the MouseDown method is even invoked when clicking inside the DropDownList area of the ComboBox.

    I guess I...
  22. Replies
    3
    Views
    6,438

    ContextMenu in ComboBox Dropdown list

    Does anyone know of a way to add a ContextMenu that will present when right-clicking over one of the items in a ComboBox's DropDownList?

    I have a ComboBox that displays a list of selected...
  23. Replies
    10
    Views
    1,820

    Re: [RESOLVED] Ignore mouse click event

    Thanks, MadHatter. I have implemented your changes.

    By the way, the addition of the StructLayout attribute resolved the compiler warning issue. (Good thing, 'cause I'm not using 2.0)

    Great...
  24. Replies
    10
    Views
    1,820

    Re: Ignore mouse click event

    Thanks and kudos to thelinuxduck for the last piece of the puzzle (the second link provided)!

    Here is my final solution:



    private struct NMHDR
    {
    public IntPtr...
  25. Replies
    10
    Views
    1,820

    Re: Ignore mouse click event

    And, by the way, MadHatter, I give up on what your signature means, please clarify.
Results 1 to 25 of 77
Page 1 of 4 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center