I'm facing the need to enter "ragged" data in a WinForms application. Some columns are required for some types of entry lines and are not permitted on other entry lines, and the combo box data in later columns needs to vary based on the earlier columns.
My question is: is there a better way to handle data that isn't quite as regular as ...
I'm writing a custom control derived from System.Windows.Forms.Control.
The control is using the Control.KeyDown event, to watch keystrokes: I should handle some keystrokes (for example <Ctrl>-K) as hotkeys, which cause me to launch a dialog box.
If I launch the dialog from my onKeyDown event handler, the dialog is displayed before I s...
Does anyone know why the KeyPress Event doesn't get fired when the user presses a down arrow? I have to look for it in the KeyDown event. I was just wondering if this was something that I was doing wrong or not?
...
Hello all
I am developing a WinForms app using .NET 2.0 and am trying to use SQLite as a DB solution. My main problem is that I have trouble seeing data from the DB in the WinForm when the data is in a non english language (in my case greek).
For db administration purposes I use the SQLite administrator which has no trouble at all retu...
I've come across the feature in Visual studio to auto-generate a subclass of a custom control using Add New Inherited User Control.
But I haven't found a clear description on how to e.g create a subclass of Button for instance. Apart from the actual way to do it, I'm also interested if VS provides helpful code-generation for this?
...
I have a winform app which render a few charts, based on the user selection. I want to simulate an ajax style loader such that when the user makes a selection, there will be an overlay on the form with an animation in the center. What are some of the options in accomplishing this? I was thinking of loading a panel with the animation (gif...
When the application is run, the DataGridView is bound to a DataTable. Later I add more columns to the DataTable programmatically and it is reflected in the underlying data - i.e. the column Ordinals are as they should be. However this is not reflected in the DataGridView. Instead columns are appended onto the originally generated set.
...
I'm working on an application that gets content from feeds in C#. This content should then be displayed on the form.
My question is what control should I use to hold this data? Should I be creating a new label (dynamically) for each item? Someone suggested to me that I should use a RichTextBox but this content shouldn't be editable.
If...
Can both WPF and Windows forms controls be used within one application? How difficult or practical an idea is this?
...
I have a client that wants to use Google Chrome for an internal web app we've developed(I don't blame him, I really enjoy using chrome!)
The problem is we have a win forms app that the users can launch from the browser, deployed using click once. I've known for a while that chrome doesn't support click once, but I figured by now there ...
I have a user control that has:
a) a buttons panel at the top (it always has to be visible)
b) a panel with controls that are dynamically added and re-sized at run-time. The controls can be many, so the panel has to be scrollable.
This user control will be hosted in a form, with the following requirements:
a) The initial size of the for...
I have an ingragistics ultraCombo that I set to a specific datasource. I want to pre-select one of those values so the user doesn't have to choose it (most of the time it will be the pre-selected value). However, when I set the ultraCombo to that value it modifies the dropdown list to contain only that single value!
I've tried using...
How can I intersect two (.NET) GraphicsPath objects?
...
We're about to embark on development of a new product. Our current product is a conventional client-server winform app written using VB.NET.
Is WPF ready for a business application?
From what I've seen, it seems like it's harder to develop a user interface with WPF than it is with Winforms. But I suppose speed comes with experience. ...
I've got a Checkedlistbox, which is 3 rows high, and large enough to display about 5 elements.
As long as I've got less than 15 elements, everything runs fine.
However, if I add a sixteenth element, the checkedlistbox displays an horizontal scrollbar which takes 2 item rows, which means all the Items are now on only one row.
Worse, if ...
I am creating a WinForm App(.net3.5) where I display some Client Details. My issue is that we have a directions field that correlates to an Address. To save room I would like to have the directions hidden until the user "wishes" to see them. My intended method was to have an "accordion" like presentation for the directions.
I would im...
I have a Winforms app that I am trying to make full screen (somewhat like what VS does in full screen mode).
Currently I am setting FormBorderStyle to None and WindowState to maximized which gives me a little more space, but it doesn't cover over the taskbar if it is visible.
What do I need to do to use that space as well?
For bonus p...
I have been binding textboxes in a winform with C# to a dataset. Whenever the data doesn't validate with what the database except it silently forces the focus to remain on the textbox. How can I catch the validation error and tell the user about it (and free the focus)? The BindingSource event OnDataError isn't fired.
...
Hi
I am pretty sure this is possible just not sure what is the term for it and how to do it. Basically if you right click on any file and go to properties then summary , you can add comments etc. to a file.
What i want to know is how would you do this problematically from c#. Also once you have added comments , how can you at a latte...
I need your help for using this method:
for (int i =0; i<dt.count; i++)
{
process...
sleep(3000);
}
int sleeptime=0;
private void timer2_Tick(object sender, EventArgs e)
{
for (int i = 0; i < mylist.Items.Count;)
{
listBox1.Items.Add(mylist.Items[i].Name.ToString() + "starting...");
sleeptime = int.P...