|
AFAIK there's no other option than handle the keypress. However, the shotcut key (O in this case) shouldn't fire the button click unless the focus is on the button. If focus is somewhere else, only Alt+O fires the click.
|
|
|
|
|
The problem is the click button event is fired even the focus is in another control unless the control is a textbox. For example if the focus is in a radiobutton and i click in key "o" the click event is fired.
|
|
|
|
|
This was a bit surprise for me also but it seems that way. Many of the controls don't behave like this (combo box, listbox, listview etc) but radio button does. Also it doesn't matter which button has the focus. Still plain O will fire the click.
Since thise controls behave like that, I'm not certain that handling keypress will actually help. I think the only option may be to use KeyPreview and handle mnemonic characters centralized on the form.
|
|
|
|
|
I am not sure if this is possible at all, but lets say I have a listview with one item in it and I also have a textbox on the same form. Is there any way programmatic way make is so that the visible text in the listview item (listview1.item[0].text) is bound to the the text of a textbox? So, if I type a name into the textbox, it automatically updates the listview? Or, do I need to update the listview every time the text in the textbox changes? Someone told me how to do it with databindings and a listbox, but I need to use a listview.
|
|
|
|
|
Try something like this:
textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text",
this.listView1.Items[0],
"Text",
true));
|
|
|
|
|
helu... can we jus load a windows theme .msstyle and skin our windows form ... is there any support like that....thans...
|
|
|
|
|
That depends on what you mean by "skinning". If you mean change the appearance of forms, other than their colors, no, Windows has no native support for that.
You'd have to use a third party skinning control in your apps forms and supply whatever graphic object are required to get the effect you want.
|
|
|
|
|
Hi All,
Good Moning,
I have read the article from "http://www.codeproject.com/KB/miscctrl/GMapNET.aspx"
I am trying to use GMap.dll in my windows application project,to display locations in google map.
I am able to get the lat and longs for perticular address by using GMap.dll,and able to store those lat and longitutes into database, however I am not able to display those lat and longs in to Map.
Can anyone please guide me how to display lat and longitute in Map view?
I am using the below code to get lat and longs:
MainMap.GetLatLngFromGeocoder("2334 Fuller way, Tucker, GA - 30084").ToString();
and I try to display the reusultant lat and logs as below:
MainMap.CurrentPosition = new PointLatLng(33.853907, 84.205594);
MainMap.ReloadMap();
Thanks,
Sreehari.G
|
|
|
|
|
If you would have asked the question in the article's forum it would have been better.
The word "politics" describes the process so well: "Poli" in Latin meaning "many" and "tics" meaning "bloodsucking creatures."
जय हिंद
|
|
|
|
|
Hello, my friends!
Got one problem. I need one control for my product:
Something that will allow visual linking between two tables.
For example class diagram in Visual Studio:
http://www.cyberforum.ru/attachment.php?attachmentid=1979&thumb=1&d=1233315904
or(it would be much more better) in MS Access:
http://www.cyberforum.ru/attachment.php?attachmentid=1978&thumb=1&d=1233315904
I believe, that somebody has already created such control!
I will be very thankful to everybody, who'll answer me
P.S. Sorry for my terrible English
|
|
|
|
|
Try out Flowchart.Net[^]. May be that is something you need.
The word "politics" describes the process so well: "Poli" in Latin meaning "many" and "tics" meaning "bloodsucking creatures."
जय हिंद
|
|
|
|
|
Thanx, but Flowchart.net is too big and good for me))) And there are no source files for it.
|
|
|
|
|
So you are looking for code? If yes then you are at wrong site. Search google.
The word "politics" describes the process so well: "Poli" in Latin meaning "many" and "tics" meaning "bloodsucking creatures."
जय हिंद
|
|
|
|
|
Google doesn't help. And, as far as I know, this site's purpose is to share CODE between participants. Why do you think i'm at a wrong site?
|
|
|
|
|
No, the purpose of the site is to help people write their own code. Not just hand over stuff like a swap meet.
And Google DOES help, if you know how to do research. For example, start by looking to see if any of this stuff[^] will fit your needs.
|
|
|
|
|
Skiv22 wrote: And, as far as I know, this site's purpose is to share CODE between participants.
Partially, yes. So, I want to invite you to SHARE your solution and code as soon as it works, so that others may learn and benefit from it. You're not going to get any money for that, only peer recognition, a few 1-votes and a good, warm feeling inside. Because you helped the community
CP is not the place to order code. We're no take-away chinese, and there ain't no such thing as a free lunch, unless you're a Wall-street-idiot
Back to the point; The component you want is available in the articles on CodeProject. It's not entirely what you want, but close enough. Search for "UML" and the likes
Skiv22 wrote: this site's purpose is to share CODE between participants
There is a site that is built around that idea solely. It's called Google Code[^].
I are troll
|
|
|
|
|
Thanx a lot! I'll investigate those things and if succeed, put here some of my solutions.
And I'm not "a Wall-street-idiot". I'm "Lazy-Guy-From-Ukraine-Who-Wants-To-Jump-Over-His-Head"
|
|
|
|
|
Have you used Flowchart.Net?
I need a charting package which should be quite rich in features. Some of the requirements are:
- the ability to create a tree/network diagram
- user can select items in diagram and the items can be wired so that clicking executes my custom code
- user can draw connectors between items and again I need to execute some code in this situation
- items that are shown may be arranged on a timeline (a bit like Gantt-chart)
- items may be arranged on swimlanes
- drag and drop can be used both on timeline and swimlanes
In your opinion do you think Flowchart.Net would be up to these requirements?
Thanks in advance,
Mika
|
|
|
|
|
Hi,
I have a strange kind of problem. I never faced it nither heard about it.
All controls are disappeared from Design mode.
Form.Designer.cs is having complete code of control initialization but there is no control in design mode...
I tried to add new controls with same name, it says control already exist.
What is the possible reason of this?
I want to regenerate those old controls kindly help.
saif
|
|
|
|
|
Do you have any ActiveX control or any user contorl on the Form ?
If so this[^]and this[^]may help
Be careful, there is no Undo Button(Ctrl+Z) in life.
|
|
|
|
|
AoA
Thanks in advance for help.
I have made user controls of all default windows controls e.g. buttons, text box etc. So i make some skinning capability in it and some functionality enhancements.
So now i have a problem. I have an application developed earlier which usage all default windows controls. I want that i place a single component on each form and it replaces the default controls with my controls run time. Mostly i used paint in my controls. All my work is in C# and VS2005.
Please some body help me. And thanks in advance.
|
|
|
|
|
That is quite a large undertaking. One in which it would be easier if you just rewrote the application.
Basically, you have to go through the controls on the form and wire up new Paint event handlers from every control type. You'd have to supply painting code for every control your app uses, CheckBox's, TextBox's, Button's, ...
|
|
|
|
|
AoA
Thanks a lot. It helps me to understand how to implement my situation. I will check it, if it would be done.
In market there are many skinning frameworks e.g. SkinCrafter. we put a control on the form and supply it a skin, and all forms from that application is skinned automatically. Can you guide me of that process. Or suggest me of any tutorial or book which helps me to do so.
Thanks for previous answer and thanks helping me in further in advance.
|
|
|
|
|
NazarHussain wrote: Can you guide me of that process.
I just told you how it worked. You go enumerate the form's Controls collection, check the type of control and, depending on the type, use AddHandler to wire up it's Paint event to your own custom paint code.
NazarHussain wrote: Or suggest me of any tutorial or book which helps me to do so.
I don't of any skinning tutorials, at least none that show you how to write your own component. Using a third party component, I've seen.
Though, see what you can gleen from this[^]. It's not a good article because it doesn't explain anything about the code or concepts. But, if you can read the code, you might get something out of it.
|
|
|
|
|
Thanks it was a good tutorial. As i done some good thing in this concern i will post it on codeproject.
Thanks again.
|
|
|
|