Hi guys i want to ask you something. i have created a project in visual basic 2010 with a combobox. I have added some values in it but when i 'run' it (with F5) everyone can type his own text in the combobox.. i just want the user who will be using this program, to have to choose one value from the list and cant write something else. Is it an option at properties of combobox or i must write a code? Please help, Thanks.
You can change the DropDownStyle property from DropDown to DropDownList. This changes your ComboBox (=dropdownlist combined with a text field) to function as a pure dropdownlist.
Related
One of the columns in my Table actually has a value which is picks from a field from dataset and a textbox (for example =Fields!Total.Value/ReportItems!Textbox80.Value). The Total Field comes from a dataset in my report however I am struggling to find the Textbox80 . Is there any way I can search for this Textbox from Report builder UI. I tried seeing in Properties view as well but Could not find a way. I looked at below link also for help but it talks about BIDS which I cant see in Report builder
This seems to be a potential duplicate of How do I find a specific textbox within a SSRS 2008 R2 Report
The answers show that there is no specific way to do this with the report builder UI without selecting each report item and manually checking the properties menu.
The textbox can easily be seen if you are viewing the report in Visual studio (using the properties drop down box at the top of the screen)
The textbox can also be found if you edit the .rdl file in a text editor, which can then allow you to attempt to locate the textbox
I am trying to show a simple dialog before uninstall in NSIS. It consists of several predefined radio buttons (reasons for uninstalling), none of them checked initially. Uninstallation cannot continue until a user selects one of the radio buttons.
As a bonus, ideally I would like to have a custom reason text field too (toggle-able via last radio button). As well as 2 more text fields for custom text and email.
Then I need to take selected value(s) (checked radio button) as well as text fields data and either append it to my predefined URL to which I make a GET request using InetC or similar plugin before uninstaller exits; or laternatively construct a POST request to a predefined URL using InetC or similar plugin. I cannot figure out how to create such a dialog page. Any help would be appreciated.
What I am looking for:
First, you should get familiar with nsDialogs to create the interface according to your needs. Since nsDialogs is a function, you would then can call it as a custom page.
You can use my tool Visual & Installer (www.visual-installer.com) for Visual Studio 2005 - 2015 to fast write the NSIS code.
(If you are "writing" the installer - I assume you have some experiences with nsDialogs).
Also there are some other tools like NSIS Dialog Designer (http://forums.winamp.com/showthread.php?t=329801) which can help you and generate lot of code for you.
This tool is GUI based - designer similar to Visual Studio designer - but remember: the result is still the scripts!
Guys I'm a student who knows simple stuff about Visual Basic Studio 2012 and who's working on creating an application for a course project. :)
I'm using ASP.Net Empty Website under Visual C#
If that makes sense. xD
Anyways, I have 4 important yet simple questions:
Q1: how do I apply Password Custom Vlaidation? For example 8 characters min in both the password and the password confirm text feild?
Q2: How do I apply "required" validation to a group of radio buttons, check boxes and a drop down list?
Q3: In a form, how do I get a list of radio buttons appear as options for once a customer picks a hair style category, however if she picks a make up categorty from the same drop down list, a whole different options appear? I hope it's clear lol
Q4: Is there a "range" tool in Visual Basic 2012 and how do I use it?
I appreciate every answer and so much thanks in advance. :D
For ASP.NET
Ans1:
Use RegularExpressionValidator instead of CustomValidator
Ans2:
Use RequiredFieldValidator with all the controls. And in the last use single ValidationSummary Control to display message. Here is link for you Understanding ASP.NET Validation Techniques
Ans3:
Use RadioButtonList control for options.
On SelectedIndexChange event of DropdownList control populate the RadioButtonList with relevant options.
Ans4:
Link in Ans2 will give you the RangeValidator control example.
I assume you are working in Winform.
And Since I am a C# developer I am posting my code in C#. you can use Telerik Code Converter to convert it to VB.NET
Ans1:
char[] charArray = s.ToCharArray();
int passwordCharacters = charArray.Length;
if (passwordCharacters < 8)
{
//Your code
}
Ans2:
Use ErrorProvider Control
Ans3:
There is no data bound RadioButtonList control in Winform. You will have to do it manually.
Ans4:
I don't think so there is any ASP.NET like Range Validator Control in VB.NET
I have created a List in SharepointUI, then made some layout changes in InfoPath. I then created a WSP file and imported the List into a new Project in Visual Studio 2010.
For a mumber of fields I do not want to display in the New Entry form I have set the ContentType FieldRefs for the field to have the property ShowInNewForm="FALSE" in the Schema.xml.
However, when I Deploy the Project and Add a New Item to the List the said fields are displayed. I am expecting these fields not to be visibile in the NewForm? Any ideas why this is not working?
Thanks
I think you problem here is that you customized the forms with InfoPath which I think does not apply normal forms rules like ShowInNewForm = "FALSE".
You can control the visibility of the controls from InfoPath as you want.
I need to create a from which uses the same ListBox as the one from Collection Editor of Visual Studio (The ListBox under the Members label). Please, explain exactly which WinForms control is this and which of its properties are set?
You can see the control I am asking about under the Members: label of every collection editor form in design time of Visual Studio.
Thank you.
Hopefully this can get you started. There's other (probably better...) samples out there, but this is a basic starter which can help you get the concept:
http://msdn.microsoft.com/en-us/library/9zky1t4k%28VS.90%29.aspx
Quote:
This example shows how to create a
control named ContactCollectionEditor
that implements a custom collection
editor. The example shows how to
specify the exact type of the object
that a page developer can add to the
control's collection property when
using a custom collection editor. You
associate a collection editor with a
collection property (or the type of
the property) by applying the
EditorAttribute to the collection
property of the control.