Here is my ultimate goal... to take this xml file..
<?xml version="1.0"?>
<Songs>
<Song>
<Name>Star Spangled Banner</Name>
<Artist>Francis Scott Key</Artist>
<Genre>Patriotic</Genre>
</Song>
<Song>
<Name>Blankity Blank Blank</Name>
<Artist>Something Something</Artist>
<Genre>Here here</...
I am using this function to close existing form and open a new form.
If there is no exixting form, it throws error.
Error :
Target : System.Object MarshaledInvoke(System.Windows.Forms.Control, System.Delegate, System.Object[], Boolean)
Message : Invoke or BeginInvoke cannot be called on a control until the window handle has been c...
Hello everyone
I have added an EventHandler for the Click-event to a picturebox but on runtime this handler is never called (the debugger shows me that it is added to the control directly but when I click on the picturebox nothing happens).
I assume it has something to do with my inheritance. I have a usercontrol called AbstractPage (i...
Hi,
I'm using a DataGridView in a WinForms project with the AutoSizeRowsMode set to "AllCells". I would like to increase the space between rows, but setting the DividerHeight in the RowTemplate has no effect. Does anyone know how to increase the space between rows when the AutoSizeRowsMode is a value other than "None"?
Thanks!
...
I'm modifying a windows form to allow data to be loaded in the background while the UI remains responsive. The data takes noticeable time to both retrieve and bind. Ideally, I would do both in the background, but there is some ambiguity about what kind of UI updates I should be doing in the background (as in outside the main thread). ...
Whenever I want to modify a winform from another thread, I need to use
->Invoke(delegate, params)
so that the modification occurs in the winform's own thread.
For every function that needs to modify the gui, I need another delegate function.
Is there some scheme which allows me to limit the number of delegate functions needed? I have...
I have a VB.NET (2005) application designed by my boss that uses a over 100 input and display controls (textboxes, comboxes, etc.), many with labels associated. My boss asked me to set the tab order, and then trap keypress so the user can use enter to navigate controls. I have 2 apps like this to work on.
For the tab order, I could not ...
Edit: In addition to the bounty, we're willing to pay $250 to have this bug fixed in the Firefox/Gecko codebase. Here is a simple test project (Visual Studio 2008 C#) that reproduces the problem.
Edit #2 we're willing to pay $600 to have this bug fixed. See above for sample project that reproduces the problem.
We have a Firefox (Gecko)...
I am actually finding that chkContactType.Items is empty when I step through the code. I even added a Watch to chkContactType.Items.Count and it is never anything but 0. I am severly confused now as it obviously isn't as my Insert method works fine which uses these same boxes and inserts the Value Member for each item....
I have som...
Are there any winforms source code editor controls available with color coding ? pref. open source
I seem to recall having come across something like that previously but can't seem to recall it ?
...
Hi everyone,
What is the best method [pattern] to close a newly opened Windows form in C#/.NET if there is a trappable error in the CTOR/_Load event ?
i.e.,
bool loadError;
MyForm_Load(...) {
try {
} catch (SomeException ex) {
// Alert the user
MessageBox.Show("There was a critical error. The form will close. Please try ...
I need to create a Gold bar for my windows form similar to what is shown when asked to install Active X controll. Is there one available?
Thanks
...
Hey! I want to display dots and functions in my dotnet app. Can you recommend a good free plotting control for WinForms?
...
I made a custom control that is basically a multiline TextBox that allows input, and some other controls on the side that report some information. Now, I wanted to allow the user of my control to change the font in the TextBox, and thought something along the lines of: "Well, the user shouldn't be able to change the font of other control...
I'm working on an application, and I have a screen that in my mind, looks a lot like the Wireless Network List in Windows Vista. For those who are unaware, its basically a listview, but in each row, instead of a line of text, there's a large 'panel' that contains all sorts of useful information. Does anyone know if that's an actual UI ...
I have a control I built with several input controls on it, some text boxes, a combo box and a list box among other things. One text box, a combo box, a list box and a couple of command buttons are anchored so that they resize with the form. The combo box is anchored to the left, top and right, the listbox is anchored on all four sides a...
Some Windows native applications have a question mark icon on the title bar. It's usually at the right edge, just near the close button. How can I do this in a C# WinForms application? I'd like a solution that works in Windows XP onward.
...
Hi
I am creating Windows Application.
I have created the Report using the Report Viewer.
The report is generated but the reportviewers refresh button is not working.
I have also included the following code for refresh:
private void reportViewer1_ReportRefresh(object sender, CancelEventArgs e)
{
reportViewer1.Refr...
Thats it really..
I am using VS2008 Express.
All the samples say just to set the PasswordChar, but nothing gets masked.
I also tried setting the "UseSystemPasswordChar" = true.. no luck..
// Set to no text.
textBox1.Text = "";
// The password character is an asterisk.
textBox1.PasswordChar = '*';
// The control will al...
This is a C# WinForm question. I have a MDI child form, when the form is opened, it will generate many tables to display in a DataGridView. The tables can be big and I use DataBinding to connect the tables to the DataGridView. When I close the form, I notice that the memory taken by the form is reclaimed timely.
I use the normal way of ...