|
I know what you said,but the picture is saved in another project,so that the property was null.
|
|
|
|
|
I am using AT command CNMI to enable forward incoming message to computer. But how can I receive incoming message? I need an example in C#
|
|
|
|
|
AT commands for read SMS
AT+CMGL="ALL" Get the total SMSs.
AT+CMGL="REC UNREAD" Get Un-read SMS
AT+CMGL="REC READ" Get Read SMS
AT+CMGR=3 Get 3 position SMS.
Actually These commands are used to read the SMS , After Landing on your Phone/Modem. But if you want to get a alert in your application while SMS landing on your Phone/Modem, u have to write a handlers. on port receive data , and check for the specific indication of SMS Landing."
phone/modem will give a indication when SMS lands on your phone/modem.
Ex:
SM: CNMI : 3
+CMTI:”SM”,3
Rajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|
|
Thank you Rajesh.
There is a event handler named 'DataReceived' of SerialPort object. But I don't know what will be the parameter and how to handle the parameter to receive the message.
Could you please send a sample 'DataReceived' function?
|
|
|
|
|
|
I have a simple windows form app in C# using VS2005. I have a pointer in a pictureBox which I move round the form in response to the arrow keys on the keyboard (using the KeyDown handler). The problem is I have some read-only textBoxes and when I press the arrow keys I end up with a cursor moving along the text in my textBox. How do I stop this. Also the response to the keypresses is very slow at times - I'm not sure if it is related to the textBox issue. Can anyone suggest a solution please.
|
|
|
|
|
You will need to override the ProcessCMDKey method. This way:
protected override bool ProcessCmdKey(ref Message msg, Keys keyData) {
if (this.ActiveControl.Name == "textBox2" &&
(keyData == Keys.Up || keyData == Keys.Left ||
keyData == Keys.Right || keyData == Keys.Down)) {
return true;
}
else {
return base.ProcessCmdKey(ref msg, keyData);
}
}
|
|
|
|
|
Thanks for the reply. I pasted it into my form and changed the name of the textBox, but I get a NullReferenceException in the if statement. I'm not sure why!
I have added "e.Handled = true;" to my KeyDown event handler and that stops the cursor moving about and the slow response, but I still have the following problem:-
After I have opened the form, the first arrow key press seems to do nothing, the second selects all the text in one of my textBoxes and the third and subsequent presses move my pointer. How do I make all the arrow key presses just move the pointer?
|
|
|
|
|
Richard W Allen wrote: I have added "e.Handled = true;" to my KeyDown event handler
Oh yes...that alone is enough.
What are you expecting when arrow key is pressed? Focus should get to the next control instead of cursor moving through the text?
जय हिंद
|
|
|
|
|
Thanks. Its good to know I did something right.
d@nish wrote: What are you expecting when arrow key is pressed? Focus should get to the next control instead of cursor moving through the text?
I don't want to change the focus or move the cursor, I just want the arrow keys to move the pictureBox (pointer). First time and every time.
|
|
|
|
|
In Setup phase, I have a radio button page which have option read from text file.
For Ex: A Language choices with radio button in which language option is read from text file.
Please let's me know, How to customize radio button page.
Thanks so much.
|
|
|
|
|
Hi everybody,
I am developping application on Mobile Devices, using Compact FW. And I need to produce a unique string to ensure the licance managemant, preventing our application being copied and run in other mobie devices without licance password.
So I how can I get unique ID in Mobile devices ?
Or how can I get network adapter card MAC Address ? Since all device I am working on have their own embedded network card.
|
|
|
|
|
I don't know how to generate the Unique ID from MAC address in Mobile Device.
but every mobile device have it's IMEI (International Mobile
Equipment Identity) no has unique ID. U can use that.
Rajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|
|
Thank you for your help.
And how can I get this IMEI number then?
|
|
|
|
|
to get IMEI No
See here
Rajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|
|
sorry to message here.. actually i m n very much urgent to solve on problem..
i have one question in WPF, and i have posted there.. it seems peoples going there s very rare.. so i m requesting u people to please see my question and help me
|
|
|
|
|
You only posted it 18 minutes ago. You barely even waited.
You shouldn't cross post like that, it's considered rude and will put people off helping you.
Simon
|
|
|
|
|
yes mr Simon..
i accept wat u r telling..
but, did u see the previous post.. it was answered after one and half hour,,
as i m in urgent i told like that..
|
|
|
|
|
Hema Bairavan wrote: the previous post.. it was answered after one and half hour, as i m in urgent i told like that..
One and a half hours is pretty fast considering you are getting help for free. If you want an instant response Microsoft have a support helpline that you can phone and pay for support.
Simon
|
|
|
|
|
Hema Bairavan wrote: as i m in urgent i told like that..
Discussion forums count on the voluntary time of experts helping out peers out of their own time and effort. If you would need a timely response along with service guarantees, I would recommend you should dial up the service provider/vendor of the product and get started from thereon.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
You are aware that people help out here for free aren't you? Please read this[^] article for the etiquette in the forums.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hmmm. Please don't do this. You didn't even allow 2 minutes before posting the question in a different forum. Never, ever, do this again.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I know that there are two .net extended generics libraries: PowerCollections and C5
I want to use one of them.
but I do not know which one is better to use, from the viewpoint of powerfulness and reliability.
I hope someone who has already experience in using them can give some suggestions and hints.
thanks.
|
|
|
|
|
Personally I've only ever used PowerCollections, and it's been perfectly reliable.
They aren't mutually exclusive, you can use both in one project.
My advice would be only use them when you have a requirement for something specifically more complex than the inbuilt collections, don't just use them for the sake of it.
For example - We identified the need for a complex dictionary containing items indexed in two ways. We looked at the available options and considered writing it ourselves. After review, the PowerCollections MultiDictionary fitted our requirements so we used that. We don't just use PowerCollections for everything though.
Simon
|
|
|
|
|
Hi,
I'm running visual studio 2005 C#, I need to auto-resize a datagrid when I maximize the windows form. How can I do this, can anyone help.
Thanks
Mbulelo
|
|
|
|