Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I have a PDF with radiogroup field and I want to select programmatically a radio within that radiogroup.
Ayone can help please.
Thanks
In Java: http://itextpdf.com/examples/iia.php?id=122
In C#: http://kuujinbo.info/iTextInAction2Ed/index.aspx?ch=Chapter06&ex=FillDataSheet
It's as simple as this:
form.SetField(key, value);
Where key is the name of your radio field, and value one of the possible values of your radio group. If you don't know which values are possible, take a look at the following example:
Java: http://itextpdf.com/examples/iia.php?id=121
C#: http://kuujinbo.info/iTextInAction2Ed/index.aspx?ch=Chapter06&ex=FormInformation
string[] states = form.GetAppearanceStates(key);
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
In a GDI+ application on Visual Studio, I want to change the item names of the colors property, which is an array. Right now, I can see them as [0] & [1], which makes it difficult for me to see what they represent. I would prefer to set personalized names for them.
Also, if possible, I would like to disable the ... button on the right of the colorsproperty, where I can add, remove and change the colors.
This is all shown in the picture below.
This is an array, it is named like this. If you want to have names, you could use a tupple or a pair or a dictionnary in your object as a property. In the current state, it is impossible.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I am creating a derived class of TextBox for numeric data entry. I would like to add 2 buttons at the right side, like the X button in some TextBox controls to increment or decrement the value.
How can I do it?
What you are looking for is a Numeric Updown. See this question for how to implement your own
Where is the WPF Numeric UpDown control?
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I need some control which can change data row or can add new data row in a DataGridView.
You knwo we have two ways: one using the same row of the gridview and second to have some gridcontrol which when we click in the row of the grid expands the control to set data and save t to the grid. And in new data the same. Like in Telerik but using a free control.
Second case it is what I am looking for.
Could you please tell me the best control to do this?
If i understood you correctly, this is what you are looking for.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am making a WindowsFormsApplication in C# and I want to make a list that looks like that:
# Item Edit Delete
1 Item1 [E] [X]
2 Item2 [E] [X]
3 Item3 [E] [X]
and I want to make [E] and [X] to be clickable buttons. How to do that? I'm relatively new to this so please be gentle
Hugo is correct DataGridView will do it.
If you look at the Columns property you can define the column types, the default is for text but there is a button type too.
When the click event is triggered you can check the selected row/column properties to deduce which button was clicked.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm trying to code a listbox which you can select multiple items.
ContactResultsData.SelectedItem = ContactResultsData.Items[0];
This code is useful for selecting one item. But I want to multiselect. how can I do? thanks.
note: my selection mode of listbox already is multiselect .
Use collection SelectedItems to add items, remove items or do smth else with selection
ContactResultsData.SelectedItems.Add(ContactResultsData.Items[0]);
ContactResultsData.SelectedItems.Add(ContactResultsData.Items[1]);