|
If I use an ImageList as my source for a PictureBox I can use JPG and PNG files.
If I load the images into Resources, I can still use the JPG files, but the PNG images are not visible.
Unfortunately, I need PNG format for the transparency.
|
|
|
|
|
I regularly use PNG files as resources, with no problems whatever. Admittedly I rarely use PictureBox , as I find it an unsatisfactory control on many fronts. However, on those occasions that I have used it I have had no problems so long as the image type is one supported by the .Net Framework.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Thanks.
Experimenting converting the same image to JPG (so I lose my transparency) I can see my problem. From an ImageList it was made to fit the PictureBox size. From Resources it is not, and what was visible on screen was a tiny, transparent!!, corner of the image.
I will have to experiment with formatting the image to be the correct size.
|
|
|
|
|
The PictureBox has a SizeMode property. Set it to StretchImage to ensure that the image fills the PictureBox . Have a play with the other settings, to get familiar with how it works.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Or throw it out of the window, and paint stuff yourself, then you know all the time what is going on.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Absotively!!
That's what I do. I really cannot remember the last time I used a PictureBox. But then I can't remember the last time I watered the plants or mowed the cat eithter.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Henry Minute wrote: I can't remember the last time I watered the plants or mowed the cat eithter.
Don't worry, once mowed properly a cat doesn't need seconds.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
|
Yeah I'm not too sure about that one. I always use PNG as I have found that it has the highest quality and smallest file size. But I have noticed a few problems when using PNG's with the PictureBox, I'm not sure what causes these problems, but all I know is that when I select "Auto-size" I don't have any problems with the PictureBox.
|
|
|
|
|
It turns out the problem was with SizeMode. Using an ImageList seems to automatically use Zoom. Taking the image from Resources doesn't, and all I could see was the top left (transparent) corner of my image!!
|
|
|
|
|
I noticed that for async calls, when unhandled exception is occured, JIT debugger is not showing typical dialog box with stack trace/continue/quit buttons. Instead the standard error report dialog box with Send Report/Don't Send buttons. Is there any way to make unhandled exceptions in async calls like begininvoke/begin* to show JIT debugging dialog box?
Thx
|
|
|
|
|
You need to catch ThreadException IIRC.
xacc.ideIronScheme - 1.0 beta 3 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
well, since the question is how to _make_ c# catch itself all unhandled exceptions from within async operations, then I don't really want to catch ThreadException, unless I missed some point.
|
|
|
|
|
Hi,
I am using DateTimePicker Control to display Date in to Custom Format like 2009/07/13 (YYYY:MM:DD)
But the date is not changing according to user selection. Is there any other controls in .net 2003?
Thanks,
Subbu
|
|
|
|
|
|
Hi,
You have probably made simple mistake in the format string.
The following will output e.g. 2009/07/13. Note that you have to enable custom formatting via the Format property.
dateTimePicker1.Format = DateTimePickerFormat.Custom;
dateTimePicker1.CustomFormat = "yyyy/MM/dd";
Alan.
|
|
|
|
|
Thanks a Lot. Now it works well.
|
|
|
|
|
Hi,
I am working on a project involving communication using GPRS. We have a GPRS enabled modem that sends data to server at regular intervals. All I have to do is develop a service that reads the data sent from GPRS enabled modem and save into database.
I request any one who has experience in these type of projects to guide me in three things.
1.How to establish connection between Modem and Server
2.How to read data received by the server
3.How to close the connection
Thanks in advance
|
|
|
|
|
Your question is way too broad for a specific answer; in general terms the answer is this:
1) figure out how the device is sending data (read the documentation)
2) code your service accordingly
I'm doing the same thing right now - here's what I encountered. Our devices are configurable; we chose UDP sockets as our preferred communication method so we programmed the devices with the required commands and then used this[^] in a service on the server to read incoming data. The other option was to use TCP/IP in which case we would've used this[^] and this[^] on the server to receive data from the devices. All of those classes have methods for opening and closing connections (if applicable) and reading data. We ruled out comms via SMS on a cost basis.
Hope that helps.
Jim
|
|
|
|
|
hi,
is there away to change the controlbox color
thanks
Have Fun
Never forget it
|
|
|
|
|
What is 'the controlbox'?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
the bar containg the name of the app, the icon, maximize, etc...
Have Fun
Never forget it
|
|
|
|
|
Take a look at this[^], just one hit from googling for custom borders on windows forms
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Thanls
Have Fun
Never forget it
|
|
|
|
|
No, there isn't. It's always painted using the system colors.
|
|
|
|