|
Hello!
I searched in the google for the question but I haven't found a sufficient solution yet. So if know how to make a label or a textbox transparent, would you please show me how to do it?
Regards.
J.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
It all depends on what you mean by transparency. In WinForms 'transparent' usually means your control is painted with the background color. This is probably not what you want.
Real Transparency is achieved through a technique called alpha-blending, and is available in GDI+, which is currently not implemented in Windows CE. SO you'll have to wait for Windows Phone 7 and Silverlight on the phone to get some operating system support for this (and your mileage may vary).
Note that you can still achieve transparency on Windows CE by painting the control yourself, and implementing your own Alpha-Blending routine. I've stumbled on a little library that may or may not be helpful:http://www.topshareware.com/WMGL-(Windows-Mobile-Graphics-Library)-download-72671.htm[^]
|
|
|
|
|
Windows mobile c++
I think I can do that :
<br />
int xPixel = GetDeviceCaps(hdc,HORZRES);<br />
int yPixel = GetDeviceCaps(hdc,VERTRES);<br />
short xInch = GetDeviceCaps(hdc,LOGPIXELSX);<br />
short yInch = GetDeviceCaps(hdc,LOGPIXELSY);<br />
double x = (doulbe(xPixel)) / (double(xInch));<br />
double y = (doulbe(yPixel)) / (double(yInch));<br />
double z = sqrt(x * x + y * y);<br />
but get the size not correct!
what can i do?
someone helps me?
thanks~~~
modified on Tuesday, April 20, 2010 4:51 AM
|
|
|
|
|
Eh, what's wrong with HORSIZE and VERTSIZE? You'll have to convert millimeters to inches, but I'm sure you can do that
|
|
|
|
|
my phone is moto q8,screen size is 2.6 Inch.
1. 320pixel*240pixel
2. dpi is 131,that means 131 of pixels per logical inch .
3. width is 2.44 inch,height is 1.83 inch
4. screen size is 3.05 inch
but not 2.6 inch!
what worng?
anybody help me?
thanks~~~
modified on Tuesday, April 20, 2010 8:44 PM
|
|
|
|
|
hi,Michel,I had try HORZSIZE and VERTSIZE,
but the return is 64 and 60,and other phone's return also 64 and 60.
the wanted return are 51 and 39~~~
I don't know why the return is not correct,
help me~~~
|
|
|
|
|
You're probably out of luck. The implementation of GetDeviceCaps is left to the manufacturer. Most of them don't bother, and just leave the default values in the system. Go complain to Motorola
|
|
|
|
|
Every Handset has a xml profile file.. I think this is the best way to get any handset detail form it's profile. Try How to get mobile information using VBScript[^]; although it's a VBScript but i hope this may help you.
Thanks
Md. Marufuzzaman
I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.
|
|
|
|
|
You can use the following code.
nScreenWidth = ::GetSystemMetrics(SM_CXSCREEN);
nScreenHeight = ::GetSystemMetrics(SM_CYSCREEN);
|
|
|
|
|
Hi all,
i m working on sending SMS application by AT Commands,
here Nokia,Sony,LG,Samsung mobile working ok.
now i want to connect blackberry here,but its not able to sebd sms by AT commands in case of blackberry.
please tell me ,
is black berry not supported AT commands for Send SMS.
thanks.
|
|
|
|
|
How can I use more than one culture in vb.net pocket pc application?
I am using a combo box for the user to select the language and want to change the application language (lable and buttons text) according to the selected language.
The default language is English. If user selecte any other lanugage from the drop down list like (arabic,french) then it should the whole application to that language.
Where I can download the arabic fonts for the pocket pc application?
Any idea how I can do this?
Thanks In advance
|
|
|
|
|
you have to add multiple resource file for different -different language
Pavan Pareta
|
|
|
|
|
If I add different resource files for different languages then I need to add lots of line to set the controls text at run time.
Can't we use culture method to change the language of the application with single line of code?
I read about this on internet and saw different codes for vb.net windows application but when I tried to apply this on pocket pc application it did not work for me.
Thanks In Advance
Regards,
Mohammed Ejaz
|
|
|
|
|
Changing the culture through My.Application.Culture will not magically redraw everything on your screen. It only takes effect for future resource retrieval. Best thing you can do is save the setting, exit your application and re-load it.
If my memory serves me right, you should be able to use normal truetype fonts on the device, so if you have a Windows Arabic font, you can just put in on the device. (only problem may be size, Windows CE uses cut-down versions of the fonts)
Not certain how right-to-left writing will be handled, though.
|
|
|
|
|
Can a wireless node still buffer packets when it's receiver is turned off?
Hii ..
As per my knowledge ... Normally the AP will buffer if the stations are in power save mode, by checking the mib details stored in AP.
So if the receiver is turned off, the AP mib information doesn't conatin the details about that particular station.
So it won't buffer the packets for that station.This is my answer...If this is correct or not.....???
Thanking you
Krish
|
|
|
|
|
Or it may depend on vendor to vendor?
|
|
|
|
|
|
Hello everyone,
I would write a small application for my PDA (HTC Pro 2 win with 6-5) to capture the GPS data.
I will use to develop vb.net ide for handhelds with that because I made some little program. I come to the question: how do I capture the GPS data (longitude and latitudinbe and from these calculate all the info
I need)?
thanks to all and exceuse for my english..
Mr_Rox
|
|
|
|
|
typically, you read the data in a particular format from a serial port, or saved data from a gps plugged in as a usb device/file-system - this shows a good start to the vb/serial approach - there's also plenty of stuff here on cp and on the web. To a lot it depends on the capabilities of the device you are using
http://msdn.microsoft.com/en-us/magazine/cc301690.aspx[^]
'g'
|
|
|
|
|
Thanks for your link...
Mr_Rox
|
|
|
|
|
I am working on a pocket pc application by using vb.net 2005.
I have 2 questions about the datagrid and datatable.
1. What I want is that when the datagrid is populated then application should check the datagrid first cell value and if it is null then it should change the backcolor of that row to Red.
2. I am creating a datatable on form load event and the adding rows by executing the sql statement by using datareader. Now I want to add a tablestyle to that datagrid and want to set the width of the datagrid columns.
Simple is that how I can set a datagrid table style while setting the datasource to datatable?
Thanks In advance
|
|
|
|
|
Hello,
I would like to know that How I can place an etry into Windows Mobile Phone's Calendar with coding. Is there an example how to do it?
Regards.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
Hi JUNEYT,
See this msdn Reference
MSDN[^]
It's help for you
Pavan Pareta
|
|
|
|
|
I'm trying to create an installer using WISE Install System 9.02. I have no custom script created. Using WISE's GUI, I added all the required files to the installer. At install time however, all the files do not get installed correctly. Does anyone have any advise on this, or can anyone recommend a different installer utility?
|
|
|
|
|
Hi All
I've been Googling a solution to the problem I've been having, but can't seem to find anyone with the exact same problem.
I have a windows executable (standalone exe) that can be fed parameters and it performs certain functions. I do not have the source for this exe, and I recently tried running it on a windows mobile device. This, however, gives me an error message: "invalid win32 application", which I is understandable that it wasn't created for a mobile device.
I've been trying to access this executable from within another mobile application that I have developed, but keeps giving similar errors to the above.
Is there a way for me to build any mobile application, or use a specific method to access/run/use windows executables on a mobile device?
Thanks for the help and comments in advance!
|
|
|
|