Auto-populating new panel on button click - visual-studio-2010

and thank you for viewing my thread. I have a project I am creating in Visual Studio 2010 with C#. It is basically a Word minutes template. I have a form that the user fills out, which then goes to the word document. I have gotten stuck with a problem. I will try my best to explain. I have a section where the user keeps entering data on a subject. I need to be able to have the form continuously populate the same panel until the user clicks the check box which moves the user to the next question. Right now, I have the panels on top of each other and have them hide until the user checks the checkmark and moves on. My problem is that I have no idea how many possible panels will be needed. The user could have only 5, or the user could have up to 100 if needed. Is there an easier way to have the form populate panels automatically? I will attach a screenshot below. Thanks for all the help!

Related

Buttons in a view in Dynamics 365

I am new with Dynamics 365 and are not sure of how I can achieve this.
I am looking into having some buttons in a view.
Maybe a view isn't the best way of doing it, but what I want to do is to have a list of records connected to the logged in user (similar to a view)
But on each row/record I want to have multiple buttons. These buttons can be like 'Complete' (Changes status on task and updates the view) , 'Send email'(Starts a workflow) and so on.
What are some of the ways of doing this? Either with Javascript/C#/plugin or something else.
You cannot add buttons in views/subgrids directly.
That’s when we add ribbon/command bar buttons using Ribbon workbench usually.
Create a Workflow Short Cut Ribbon Button (No Code Solution!)
Update:
There is a PowerApps Components Framework (PCF - preview) coming out soon, then we can build custom grid control with the layout/buttons we want.
This can be achieved with RibbonWorkbench. My answer does not differ much with #arun vinoth answer but just added few explanation lines.
https://ribbonworkbench.uservoice.com/knowledgebase/articles/132235-create-a-workflow-short-cut-ribbon-button-no-code
If you look at view below where I have selected number of contact and then I have a Button at top "Nominieren" which is shown and clicking on it will perform whatever action is needed.
There will be java-script on click of button, from Java script you could call Action or workflow or perform operation in Java script itself.
Link for Adding new Button : https://community.dynamics.com/crm/b/crmtipsfromadeveloper/archive/2017/07/26/know-how-add-a-ribbon-button-using-ribbon-workbench
Now when you look at image below I have no contact selected and it does not show button on Ribbon.
It might be possible. I haven't tried this but you can write JavaScript for a view column now (since CRM 2016).
If you go to a view you can double click on a view column to view its properties. There are two properties you might be interested in:
Web Resource
Function
Here's a link to an MS page that explains how to use these options to add an icon. It might be possible to create a clickable button which uses CRM's WebApi to perform some actions: Docs # Microsoft

Display of object class in page frame for visual foxpro 6

I've bundle of control save in .vcx file but I need to activate it to display it when i switch to different activepage in pageframe.
Could anyone guide me how to code and which kinds of event should i make on page frame switch, click or whatelse UIENABLEEVENT.
Thanks.
First, you might want to click on Help -> Tour for site etiquette and start voting / checking your answers so people know what worked or not that help you and others with similar issues.
Now, back to you question... If you have a form with a pageframe, make sure you have the "Properties" sheet open, it helps to ensure which object you are actually working with until you get more familiar with the IDE.
Once you click on the pageframe control, if you right-click and then select "Edit", that will bring you to the individual PAGE level of the pageframe. Once the PAGE is the basis of the focus you can put any control on it from either the toolbar, or if your project is open and you expand your .VCX class library, you can grab any control and put in on the page.
If you have multiple pages, once you click on the alternate pages, you will see that the first page (or whatever page) is no longer visible and the new page is available for you.
The actual handling of the pages on the pageframe for clicking / focus is automatically handled for you unless you want to do something extra.

where is the specific button on design mode?

how can i find the specific button on design mode where i have several buttons ie: hundered of buttons so that they all like spaghetti and one button may be under another button or a groupbox (i might be playing with the visibilities ) and i want to see my button number 83 on the design. how can i see him? where is he hiding? :) i use visual studio as an IDE. thanks.
MessageBox.Show(" where is the specific button? i know that he is somewhere on the form but cant distinguish it on the design since its somewhere under something i cant find it");
Use Document Outline (View - Other Windows - Document Outline)
Just pick the button from the tree and voila.
PS: this works for other types of designers (WPF/Silverlight, ASP.NET)
You can access it via the Properties Window. There is a drop-down that will list all of the items in your form in design mode.
Then use the drop-down. The drop-down will list all of the items on your form so you will scroll through the list to find Button number 83.
Images were pulled from MS Visual Studio: The properties Window which contains an explanation of the window.
Have you tried using the properties window?

A library that allows to add footnotes to a web page

I would like to add in my web app ability to add comments to a specific word in the page. Something like the LaTex footnotes.
The UI I had in mind is, each word would be highlighted when the mouse hovers over it (or that the space after it is being highlighted), and when the user clicks, a textbox to enter the comment pops up near the place the comment would appear. After the user entered the comment a little number would appear after this word in the web page, and other users would be able to click on this number and reveal the comment.
The architecture I had in mind is, a client side javascript program that would handle the view. The model and the controller would be on the server. They would save the document in some textile-like format (say, StackOverflow's question's format), and would only verify permissions (ie users would only be allowed to add [1] (user-name) ... to the document body
).
That's the architecture and UI I had in mind, but I'm open to new suggestions.
Is there any similar component availible?
I have been developing one with similar features. I use jQuery as the main framework and build on it.
1.select text to add some footnote to it.
2.click on the bubble to show dialog for enter your comments.
3.text with comments highlighted. Mouse hover over to bring up the dialog window with comments
entered earlier, hover out to close dialog window.
(pics here)
It is not perfect now and I am trying to make it a plugin(javascript code) with JSP(maybe. it's coldfusion now.)
The best thing I found so is the digress plugin for wordpress which allows paragraph-based comments.

Programmatically docking a User Control at Run Time

I need to dock a WinForms user control at run time but I'm encountering an issue.
In my main form, I have a menu strip at the top of it. I want to programmatically add a UserControl docked to the left of the main window and below the menu strip.
When I add my User control at runtime and then set its Dock property to DockStyle.Left, it does not appear below the menustrip but instead it takes up the entire left side of the form. This causes the menustrip to be pushed to the right and does not look attractive.
I need to do this at runtime because the project requires the ability to customize which user control can appear on the left side of the main form for each user.
Any help in finding an answer would be greatly appreciated.
A quick and dirty way to do it would be to add a Panel beneath the MenuStrip (docked Left or Full), then add the UserControl to the Panel.
Edit: What's happening is that the order in which controls are added to a container determine how they will appear on the form. Since you're doing this programmatically at some point after the form has been created, the UserControl is the last Control added to the Form, so it's going to affect those items already on the form. If you have a Panel on the Form that makes things appear as you want them too, adding the UserControl to the Panel will only affect those items inside the Panel and not on the rest of the Form.
Add an Panel which docks below the toolstrip, and add the User Control to that container.
Edit: Already answered.

Resources