So, one of my favorite things about iOS/ObjC in general is the "popover" control.
I am building an app in C# WinForms that would benefit greatly from this type of control- anyone have any ideas on how I might be able to emulate this type of look?
For reference, here's an example screenshot of what I'm talking about http://i.imgur.com/IzbbzrA.png
Thanks for any ideas!
You can create a simple popup control by following the articles linked below
Simple Popup Control
I don't think such a control exists in .Net. What I would do from this point if I were you is try to making one using a customized windows form on top of it. Play with the Mouse Hover events of the control and make the form appear for a short time. Make it without borders. With a little imagination you can have your own version of the PopOver.
Related
I am doing my first steps programming a little toolbox in C#.
I want to choose the program to run via a menustrip.
How can I switch all visible textboxes, buttons etc. on the same form? I don't want to open a new form. Do I have to show/hide every element "by hand" or is there a better solution?
I hope you get my problem.
Thanks in advance.
Yes totally understood.
You need a way to navigate between different fragments within your application.
Since these are your first steps and not a legacy app, why aren't you starting with WPF which is the successor of Winforms ? (newer better)
See how can you achieve such functionally in WPF
https://learn.microsoft.com/en-us/dotnet/desktop/wpf/app-development/navigation-overview?view=netframeworkdesktop-4.8
Although the terms are similar and also apply in winforms.
What you want to do is to create all the buttons etc as part of a UserControl. You can then add your custom UserControl to the form. This should allow you to switch the user control for some other control, or change the visibility for the whole user control.
This can also allow you to place multiple user controls side by side or in some other layout.
I have a web browser control embedded in a tabPage in my application. How do I drag it out of my desktop app, that is an option to dock/undock or unpin it.
Edit: After reading a bit, I think I should do this with DragDrop events. I saw several examples to drag and drop within an application or between applications, but I am wondering if it is possible to drag the control outside my application to another screen. Should I record the screen coordinates to do this?
Edit: So far I have tried to capture MouseUp/MouseDown events with a simple button control but that only helps with moving the control within the form.
When I was reading DragDrop documentation in MSDN, it says 'AllowDrop' needs to be set to the target. But my target is not limited to a form it can also be a desktop screen. It makes me think I am totally on the wrong route. I am not pasting any code because I believe I am looking for an approach or some suggestion to do this. I am a novice so if this is not clear, please ask me further questions.
Hoping to hear from someone.
Thanks!
If anyone is interested, this codeproject link helped me get started:
http://www.codeproject.com/Articles/15418/PullApartTabPage-Docking-and-Undocking-Your-TabPag
i googled a lot and found out some info about the band object from which we can make the ad-in for the task bar, can i get some more tutorials from scratch & some sample programmes.
is there any other alternative way is there to place a control over the windows task bar apart from band objects?
Thanks in advance
If you want to place a textbox in the taskbar like the Google Desktop search bar, then you're not actually trying to place the control over the taskbar, you want to place it within the taskbar.
The proper solution here is a Desk Band. You can find an MSDN article explaining those here. I'm not really sure why you say that you want to avoid band objects. That's the right way to do this.
There's even a sample implementation in C# available on Code Project: Extending Explorer with Band Objects using .NET and Windows Forms
To make a window overlap the Taskbar you can set it's TopMost property to true. But then you will have to control the positioning yourself, and it will also overlap anything else beneath it, but it is a solution at least :)
I would like to setup Feedback link on every windows form, so that user can send suggestion about design, functionality etc.. using C# (.NET 3.5) but I could not find solution.
Any help or suggestion will be appreciated.
On every form? You could create a "FeedbackLink" UserControl, and place that whereever you like. I wouldn't recommend trying to do it as a clever blanket-thing, because you can never assume the place you want the feedback hyperlink won't be used by something else.
My suggestion would actually be to add it to the "Help" menu on your main form, and possibly in some kind of (very intrusive) pop-up dialog. Maybe do it the way Visual Studio tackles it - by putting an icon in the systray with a bubble that pops up for the user to click on?
Example image (might take a second or two to appear):
Example http://www.freeimagehosting.net/uploads/b7939d58ae.png
I am trying to create a panel which will have a set of "buttons" on it.
These buttons should have the following behaviour:
Appear similar to a tag (with
rounded edges)
Contain a red
cross to remove the filter/tag from
the panel, similar to the way internet
explorer tabs have an embedded cross to close the individual tab.
allow the user to click
on the tag and respond like a normal
button (as long as the click is not
in the red cross)
Number 1 is no problem, this is just appearance, however, regarding numbers 2 and 3, I am not sure if there is already code out there do to something similar...and I dont really want to reinvent the wheel if I can avoid it!
My question is: Does anyone know if there is something out there in infragistics which will do this simply, or will I need to write this myself by subclassing winform buttons?
Thanks in advance!
Is this new development or maintenance of an existing project?
If it is maintenance, you have a somewhat tougher time ahead. You'll implement a UserControl, probably segmented into two buttons. Use docking to get the behavior as correct as possible. The far right button would contain your cross image; the left (which would need to auto-expand as you resize the control) would contain your primary button behavior. Play with the visual styles until you get them right (EG, removing borders, etc).
If this is new development, and you haven't gotten too far into it, you might consider using Windows Presentation Framework (WPF) instead of WinForms. It will be easier to build the control and get it to look exactly how you want it. WPF includes an extremely powerful control compositing system which allows you to layer multiple controls on top of each other and have them work exactly as you'd expect, and it carries the added advantage of allowing full visual control out-of-the-box.
Either way, this is more work than dropping in an external component ... I've used Infragistics for years, and I can't think of anything they have which is comparable. The closest, but only if you're building an MDI application and these controls are for window navigation, is the Tabbed MDI window management tools -- and there, only the tabs (which replace window title bars) have this behavior.
I don't think that infragistics can do something like this. The UltraButton control can't.
Implementing a own control wouldn't be that hard.
your probably going to have to make a costume control for this type of work.