I actually have two questions here. First one is exactly what the title says. Example: I want users to be able to add a setting into My.Settings from the application. I want them to be able to add an unlimited amount and I want the scope to be set to user and the type set to string. I don't want them to be able to change the scope or type, only the "Title" and "Value". What I need this for is so users can make a setting so if they type "sof" into the URL bar of a VB.net browser it will go to "stackoverflow.com" of course I want them to be able to change the shortcut and the site and add new ones. I also want them to be able to view a list of all of them and edit or delete the ones on the list.
Second question is how do I make the code search through all of my settings and see if any of them are titled what the person put into the URL bar and if there is get the value of it and navigate too it.
I know this is a lot to ask, and I am not asking for someone to do it for me, I am asking someone what procedure would I follow to do this. If there is already a tutorial or an answer to this please link me to it. If you have the time please answer.
Actually, not to make Douglas look bad, but you can easily do what you want with the user settings. See this My.Settings page from MS. What you will want is the "System.Collections.Specialized.StringCollection" setting type. The link I gave you shows you how to read, change, and save the data. It also shows you how to make a simple UI for the user to be able to change them, if you want.
As for the second part, also easy using LINQ. This is not exactly what you want but it is close and has a lot of good examples.
Related
I've written LabView code for a locking system.
The lock has a motion timer that relies on input from a numeric control. I've added a script file reader that needs to be able to change that timer value. Using a selector, I can switch between values, but I'd like it to update the value in the control, rather than override it, so that I can see it on the screen.
How can this be accomplished?
This is currently how I switch between the scripted version and the direct numeric input from the control:
So how can I get the script value to update the control box or is that not possible...?
Do you mean something like this? I created a little vi to demonstrate how the control is updated.
In most cases "property nodes" are the way to go. Every control has a lot of different options to chose from and usually if you look through the properties you will find what you're looking for :)
A little hint:
If you want to add "code" to your question so that other users can test it, you can create a .png file. To do this, you need to select the parts of the vi that you want to share, and click on "Edit > Create VI Snippet from Selection". Then you save that generated .png and upload it here as a picture. Then others can drag&drop it into their block diagram.
Important: Check the .png before uploading and make sure that you're not accidentally posting sensitive data of your company.
I really like how IntelliJ displays the information of the type of parameters that you are required to fill in as you are writing the code. The problem is that this info sometimes disappears if u click somewhere to check something etc. I never quite know how to get it to display that information again in same fashion. So I always spend some time to fiddle around until it displays that info again in the same fashion. I know you can hold down on ctrl and hover over the method name to bring up parameters information but its not quite the same and it then does not highlight on what parameter you are currently on. IntelliJ also brings up required parameters type of information when you are starting to go wrong. It brings up this big separate box and you can get very clear view of what needs to be done. I've taken a screenshot of the type of information that I'm on about. Both of them are on the same pic.
Please check it out.
My question: is there a way to bring this information up via keystrokes or mouse input at will? I've tried to google for an answer but I haven't had any joy. Please advise as I'm sure someone else might like this information too.
Thank you.
PS. I know that a good code does not usually have that many parameters but in my case there is not much that can be done.
Default shortcut for that is CTRL-P when cursor is inside the brackets.
Is there a way to customize the style for the issue displayed from search?
The specific features I am looking for:
To be able to choose whatever fields to display and the order. The popup windows
from "Visibility Setting" does not seem to work completely for this purpose.
To break down issues into groups with headings, such as priorities, milestone, etc
(again, from user choice).
Here is the sample screen from fogbugz:
Anyway to do the same? That is the simple useful feature I assume must be already supported.
I have search the doc, but could not find an answer.
Thanks.
What you request is clear, but unfortunately, it's not possible.
This is a part of the iTunes smart playlist creation window; for my application I need to create something very similar to this:
The changes I'll be making would be the column that says artist would be integers (but still a pop up button), same with the second column. The third column would be text input like in the picture. I would like to keep the functionality of the "+" and "-" buttons but I don't have much use for the "..." button. Is there any easy way to recreate this? I need the user to be able to add as many or few fields as necessary.
Thanks in advance!
If you don't need to support 10.4, take a look at NSPredicateEditor. It should allow you to easily recreate iTunes' interface with the changes you describe. http://nvie.com/posts/nspredicateeditor-tutorial/ may be useful to help you get started.
I am trying to get a spellchecker to check spelling in a text field as the user types. I am well aware that browsers such as firefox have this feature for textfields (but this requires a user to manually enable it in the right click menu.
The ideal script Im looking for would accept an id as a parameter, since the id for the field I want to be checked cannot change.
Thanks
My suggestion would to look at a predictive text tool, similar to the tag-finder that SO uses where you have a dictionary, and as a term is typed, you do some kind of AJAX-y lookup to see if they're typing correctly.
Adding a new word would be similar to adding new tags on SO - if the predicted word is not picked, add it to your dictionary.
I'm sure there are others who have done a similar task, though - and this suggestion might be harder to implement than in sounds in my head.