I am working on a .net project, (first ever for me) and I would like to do something like the AJAX.AutoCompleteExtender that I used with my WEB projects.
What should I use? is there something ready to use, Or I should go and make my own using the textbox, or combo box or something like that.
The app I am working on, is a .net application made for Windows Mobile. (Pocket PC)
thanks
Check out this sample for creating an Auto-Complete TextBox using WinForms:
Creating WinForms AutoComplete TextBox using C#
That should at least get you pointed in the right direction (using Events to listen for keypresses, querying your datasource, and drawing the results to screen). You might need to slightly modify things for WinCE but it shouldn't be too difficult.
Related
I'm switching from Windows Forms to WPF, but WPF's GUI is really ugly. It looks like Windows 95 or something like that.
Example:
Left is a new WPF project
Right is a new Windows Forms project
Both only have a button and textbox added to the project, no other changes.
As you can see, WPF doesn't have the "native Windows GUI". I know that I can use themes, but I just want the native Windows GUI. Isn't there any setting to do this without themes? I've found this but I didn't change anything in the project except for the button and the textbox and it still doesn't look native.
See this workaround. there's some button styles there to make the buttons look more similar to the native ones. Other than that, see here the official statement from Microsoft that this difference is actually by design. They made intentional changes to the themes to make them more lightweight by removing gradients and such.
I currently have a program in .NET 3.5, written in Visual Studio C# using Windows Forms. I plan on rewriting this program from the ground up, its a very small and simple program, so its not that big of a feat.
With the new version of the program, I would like to give users the ability to add/remove tabs from a tabControl, as well as drag and drop them to re-arrange them in the order they like. I know they can not do this with Windows Form. Would I be able to do this if I create the program using WPF instead?
I also want to be able to load an webpage in the program, which would be AJAX based:
http://www.twitch.tv/chat/embed?channel=8wayrun&popout_chat=true
Would I be able to do all this with WPF, even though I cant do it in WF?
This project can help you: http://fabtab.codeplex.com
I'm trying to click a button on a windows application from other application. Basically, I want to click app B's button from app A's code.
I can use winapi findWindow to get a handler. The problem is that I have no idea the name of the button on the app B. Is this possible to list all the names or ids of an application?
I'm using c# to make it happen.
Since you're looking at suggestions (it's a pretty generic question really, it might or might not work depending on what other app/window is, is it e.g. browser or a 3rd party app etc., does it support automation)
Take a look at this closely related answer (it might be a duplicate but you're kind of 'looking for' still so maybe note).
Accessing Elements from Other Processes
Also this one on how to 'access' other app's 'inputs'
Pinvoke SetFocus to a particular control
I have not tested this. But it looks like a intressting libary. Maybe there is some function you can use. It is called White. This is just a sample:
Application application = Application.Launch("foo.exe");
Window window = application.GetWindow("bar", InitializeOption.NoCache);
Button button = window.Get<Button>("save");
button.Click();
You can use tool such as Spy++ (included in any Visual Studio except Express editions) to find name and class of that button and then use these information as parameters of FindWindow().
Successfully using the AJAX Control Toolkit AutoComplete extender, I'm looking for a Windows Forms 2.0 control that behaves similar to it:
Since I want to use the control to enter multiple e-mail receivers, my primary requirement is to have multiple, independent items to auto-complete.
I.e. this cannot be done by the standard auto complete feature of a TextBox control which only supports auto-completing one string.
In other words, I'm looking for something similar than Outlook's e-mail text box (but not as advanced, just the auto-complete part, no underlining required):
Even after searching Google (and Bing) for quite a long time I manage to have no luck in finding such a control.
My question:
Is there some example out there on how to build such a control, or even a finished control to use?
Since the application should be very slim, I do not want to use 3rd party libraries like DevExpress or Telerik or Infragistics.
Update 2014-12-24:
The commercial DevExpress library now has a Token Edit Control that might just be the control I was looking for:
You might take a look at the IAutoComplete interface. That will let you create a class that you can use instead of the standard auto-complete for an edit box. In that class you would handle what part of the string you are auto-completing on and the source of where the data is coming from.
http://msdn.microsoft.com/en-us/library/bb776292(v=VS.85).aspx
Hi
I have a form that uses checkbox with the appearance set to button and it works well and looks good on Win7 but on XP it doesn't, you cannot tell if they are up or down...
so can I make the form look as it does on W7 regardless of which OS its running on?
I have tried this.EnableVisualStyles = true; and setting it to false makes the form look crap in Win 7...
cheers
This is not possible. EnableVisualStyle only enables the OS-specific rendering (that is, non "classic" rendering). The buttons are always rendered OS-specific.
If you want OS-independent rendering, you have to use a control libary like Infragistics or Nevron. But I don't think this is a good idea anyway. Your application should look like it is integrated in the os theme in my opinion.