Type: Posts; User: Chuck Bruce
Search took 0.03 seconds.
October 28th, 2013, 09:04 AM
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...
October 25th, 2013, 09:53 AM
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...
October 25th, 2013, 08:42 AM
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...
June 15th, 2012, 10:20 AM
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:
October 12th, 2009, 04:35 PM
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...
March 26th, 2008, 05:03 PM
Call the InvalidatePreview method.
February 8th, 2008, 11:45 AM
In your Dishwasher class:
private int iGlasses, iMaxGlasses;
private int iPlates, iMaxPlates;
private int iBowls, iMaxBowls;
// This is the new constructor
April 12th, 2007, 11:10 AM
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...
April 11th, 2007, 02:16 PM
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...
April 10th, 2007, 02:58 PM
Thanks for the reply anyway.
Anybody else out there have any source code available for receiving data from a com port?
April 10th, 2007, 02:14 PM
Do you have some source code you would be willing to share?
April 10th, 2007, 01:59 PM
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...
March 21st, 2007, 01:30 PM
Well, I have resolved this issue (in another thread):
I will therefore mark this one as resolved.
March 21st, 2007, 01:12 PM
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...
March 20th, 2007, 08:32 AM
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.
March 19th, 2007, 05:37 PM
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!
March 19th, 2007, 04:13 PM
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...
March 19th, 2007, 02:47 PM
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...
March 19th, 2007, 09:48 AM
Oh, by the way, the 'ClientConnect' item passed to the 'BeginAccept' method is defined as:
ClientConnect = new AsyncCallback(OnClientConnect);
Thanks again for any help!
March 19th, 2007, 09:45 AM
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...
September 7th, 2006, 12:24 PM
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...
September 7th, 2006, 09:56 AM
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...
August 31st, 2006, 10:56 AM
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)
August 31st, 2006, 10:18 AM
Thanks and kudos to thelinuxduck for the last piece of the puzzle (the second link provided)!
Here is my final solution:
private struct NMHDR
August 31st, 2006, 09:03 AM
And, by the way, MadHatter, I give up on what your signature means, please clarify.
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!