|
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
|
|
|
|
|
Hi
There is Property call Dock in datagridview. Set the Dock Property to Fill.
|
|
|
|
|
If you don't want to fill in whole container, use the Anchor property.
!alien!
|
|
|
|
|
Hi,
I want to implement the Exist() method for ObservableCollection, which is already available in the List collection.
Can anyone please guide me to implement the exact method implementation of the same?
Regards,
- K (http://kunal2383.blogspot.com)
|
|
|
|
|
For simple types you could always use this as an extension method:
public static bool Exists<T>(this ObservableCollection<T> collection, T value)
{
var list = (from p in collection
where p.ToString() == value.ToString()
select true).FirstOrDefault();
return list;
} This isn't guaranteed to work with complex types due to its reliance on the ToString operations.
"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
|
|
|
|
|
This is quite ok. But I need to pass a delegate there like:
collection.Exists(delegate(Person p) { return p.Id.ToLower().Equals(data.Id.ToLower()); })
Any idea?
Regards,
- K (http://kunal2383.blogspot.com)
|
|
|
|
|
Use reflector to take a look at how Exists is implemented on List .
It uses a method called FindIndex, which you can also look at.
It's pretty simple. It checks some preconditions and throws various argument exceptions, but the main part of the code is just a for loop calling the passed in predicate on each item.
public bool Exists(Predicate<T> match)
{
return (this.FindIndex(match) != -1);
}
public int FindIndex(Predicate<T> match)
{
return this.FindIndex(0, this._size, match);
}
public int FindIndex(int startIndex, Predicate<T> match)
{
return this.FindIndex(startIndex, this._size - startIndex, match);
}
public int FindIndex(int startIndex, int count, Predicate<T> match)
{
if (startIndex > this._size)
{
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_Index);
}
if ((count < 0) || (startIndex > (this._size - count)))
{
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
}
if (match == null)
{
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.match);
}
int num = startIndex + count;
for (int i = startIndex; i < num; i++)
{
if (match(this._items[i]))
{
return i;
}
}
return -1;
}
Simon
|
|
|
|
|
Thanks ... this resolved my problem...
Regards,
- K (http://kunal2383.blogspot.com)
|
|
|
|
|
Hi all
I’m having 2 problems in C# now.
1. I have a MDIParent form which loads the login form in the form_load event. From there I if the user login successfully, I want to enable all menu items on the menu bar. If the login is fail, I want to disable some menu items there too. This means I want to enable/disable a MdiParent’s element from a child form, please help me how to do that.
2. From question 1, when I want to open a form from the menu, I create an object then just show it like this.
frmCustomer frmCus=new frmCustomer();
frmCus.MdiParent=this;
frmCus.Show();
But the problem is while a Customer form is opening, when the Customer menu is clicked, it creates another Customer form for me. Is there any way to check weather the form is shown or not before showing it?
|
|
|
|