If a user enters invalid text in a DataGridView's cell I want to prevent the user from leaving that cell and display an error icon in that cell with an error message in a tooltip. It seems that normally the error icon won't appear until the cell is no longer in edit mode. I found an example of how to get the error icon to appear while ...
I need to know which row is right-clicked on for the contextMenuStrip in a datagridview. Winforms, c#.
...
I have a WinForms combobox to which I bind a list of anonymous objects (printer descriptions and locations).
The goal here is a to select a default printer (which matches printer location).
But within a foreach loop below, I am having trouble accessing the anonymous object's properties.
I know of a work-around (I tried a private nes...
So, I have a User Control which is just a TextBox with special formatting rules (there are reasons why I'm not just using a MaskedTextBox...y'know...the sensible solution).
Anyhow, when the user inputs invalid data, they can't click off using the mouse because the TextBox_Validating event cancels like it should and the control can't los...
I am trying to allow my users to print the current page they are on in our WinForm program. First I take a screenshot of the app and save it to disk. Then I kick off a PrintPreviewDialog and load it in there.
That all works, except for the fact that it goes off the page! I can't figure out how to change or allow the user to change th...
I want to make a winform application that tells you whenever you open it all the changes that have been made since last opening, and maybe record a log of it, such as:
File/folder creations
File/folder renamings
File/folder exclusions
I've figured i have to do four tasks:
Save the folder state (tree) in a
reloadable format
Load thi...
How do you sync scroll two winforms webrowser controls?
Meaning when you scroll one up and down, the other scrolls to the same spot in the underlying document?
...
using c# winforms vs2008
Howdy,
ive got a textbox on a form with a method being called from the textBox1_Leave event. The mehtod takes the contents of the textbox in question and populates other textboxes based on the contents.
My problem is that is the user has focus on the text box then clicks the button to close the form (calling th...
Hi everyone,
Don't be frightened by the length of the post, it should be pretty straightforward. I'm just trying to be very speciffic, because lots of people have misunderstood me when I explained the problem before.
I looked around for a solution to this, but I didn't quite find what I'm looking for.
.
I'm trying to set the transpa...
I have a window having multiple tabs. Each tab having different grids. I want to save all changes on any tab on any grid in bulk. I mean I have one save button which will save all changes in any grid on any tab.
I think DataTables will work fine here.
Can you suggest me that it is good to use DataTables to ADD/Edit data and save data i...
I have bind Fname and ID to my checkedListBox. I see in the checkedListBox only the Frame. I want to pick some items in the checkedListBox (some Frame).
When I press the button - I want to see the list that I picked (the list of ID that I pick).
I was filling checkedListBox like this:
SQL = "select distinct TrapName,substr(TrapNum,1,...
I'm kind of writing a little game engine -- purely to understand how these work from the inside. I currently don't want to mess with OpenGL or DirectX, so I stick to drawing on a control with GDI+ and all that WinForms stuff.
Obviously, I need to handle input. More specifically, keyboard events. This, however, poses a problem:
protecte...
Hi,
I am new in Creating Wizards for Windows Forms Application in C# .Net. So i don't have any idea in wizard creation. Please give me some ideas about creating Multiple wizard.
Regards, ravi
...
Hi All,
In my window application i created a Combobox.
My requirement is like, if i add a long string to combobox and when i will expend that combobox, in the list view that string should come completely.
...
can any expert help me out to solve a problem of burning a dvd using c#.net as a front end??
i need to select files from the listview in winform and then on button click i need to burn those multiple files in the dvd..
the concept is to select the multiple files from listview then on button click it should make a folder in some desired d...
On C# winforms project, I have a small table, a filter box, an Add button and a Done button grouped together, and they all fit together within 250x250 pixels. I only need to show these elements to the user when they press a button. I figured this could be done using a pop up modal screen or by making room on the main screen until the u...
I'm following mcdave's advice from http://stackoverflow.com/questions/2191637 and using SubclassWindpow to host a CIPAddressCtrl in a winforms app. My constructor looks like this:
IPAddressBox::IPAddressBox(void)
{
// I have tried it with and without this part
INITCOMMONCONTROLSEX icc;
icc.dwICC = ICC_INTERNET_CLASSES;
...
I am currently working on a program that uses a fairly complex structure of nested winform controls which changes dynamically as a user makes certain selections. To go into more detail about the specific layout of the controls would be to extensive for this question.
When ever a selection is made, a lot of updates are made to the underl...
Hi,
I'm populating a ComboBox in C# from an instance of a class.
How to get the selected item by retrieving the reference to the corresponding object ?
I already used SelectedValue, SelectedItem, SelectedIndex but they all return the string representation of my object..
Thanks
[EDIT]
A piece of code, to show what I'm trying to do :
...
My code keeps throwing a DBConcurrencyException ("Concurrency violation: the DeleteCommand affected 0 of the expected 1 records.) when I make a second update to the data table.
The problem actually happens on a table that is linked to a parent table. The two tables, CashReceipts and CashReceiptsApplyTo are displayed on the same winform,...