Hi,
Having a problem with the dataGridView control being populated with Display members:
Code:
private string settingsFile = @"Data\IntelliSched.xml";
private void loadDataFromXML()
{
dataSetXML.ReadXml(settingsFile);
}
DataSet contents:
Table -> zone
id
name
----
Table -> postcode
name
code
zone
active
----
Pic...
I have a windows form with a DropDownList with a fixed number of items. How do I make the DropDownList increment to the next item when I press Enter and when it reaches the end of the items, return to the first item.
...
I'm trying to display a paragraph in a tooltip when I hover a certain picture box. The problem is, the tooltip takes that paragraph, and spans it on one line, all across my screen. How can I make it so that it takes a smaller, more readable area?
or, maybe you have another technique to achieve the same thing, but without the tooltip func...
This is a winform question in .net.
In a MDI form, if I open several children forms, for some forms, if they are not activated (if you overlap them with the activate one, they are not up to front. Only the activate form is up to front.), clicking them don't bring them to front. This is even true if I click controls on them, such as a te...
Using Winforms 2.0
I have a text box with a custom autocompletecollection source and the mode is suggest.
How do I know when the user selects a suggestion?
Thanks
...
I have a gridview control having 4 columns. one of the column is of type linkcolumn. user has to enters data for each column.
How can we edit link column cell. if i click on this cell nothing happen.i set its readonly to false also.
...
How do I turn on/off the WS_CLIPCHILDREN window style in a Windows Forms parent control?
I would like to display some text on top of the child control after it has painted. In my parent control, this is what I have:
class Parent : public Control {
void Parent::OnPaint(PaintEventArgs ^e){
Control::OnPaint(e);
// par...
Hi,
I'm looking for a 2 sided winform Tree control. something like what you see in the math books. meaning that the tree can go both right and left in the control.
Something like http://www.math.bas.bg/~nkirov/2010/NETB201/slides/ch06/pic3.jpg
Thanks
Avi
...
Hi,
I was wondering if it is possible to catch key events for auto-complete list. For example instead of Enter key press for auto-complete use lets say Tab key. Also is it possible to change the colors and add background image for the auto-complete pop-up list? Currently I have my own implementation which is a separate window(form) with...
I want to create dynamic tabPages in TabControl. In each tabPage I create dataGridView and i want to fill the entire space of each tabPage with this dataGrid. Here is code, where i do this:
private void tabControlMutants_SelectedIndexChanged(object sender, EventArgs e)
{
DataGridView dgw = new DataGridView();
D...
I'm trying to load page and then remove some elements in it. While doing that I encountered strange behavior. When I do
webBrowser1.Document.Body.InnerHtml = webBrowser1.Document.Body.InnerHtml;
It turns off some JavaScript code, for example for Google.com it turns off auto completion. Why is that? I suppose it has something to do wit...
Hi everyone,
I'm copying ListViewItems from one ListView to another, sth. like:
foreach (ListViewItem item in usersListView.SelectedItems) {
selectedUsersListView.Items.Add((ListViewItem)item.Clone());
}
If I want to use ListView.ItemCollection.Contains() to determine if an item was already copied I always get false:
foreach (Li...
I have several controls on my form and on changed event the logic entity properties are changed. Is it possible not to implement changed event for every control,but do it in one place and update my logic entity when user is making changes on the form?
...
After a user submits a form, how do you detect that the form has been posted/submitted and the browser has navigated to the logged in page?
...
I have a WinForm app that has an image displayed in a PictureBox that has the added functionality of allowing a user to draw a rectangle on the image by clicking and dragging.
The Location, Height and Width of the rectangle are saved to disk.
When the image is viewed again I would like to automatically redraw that rectangle in the sam...
I'm using .NET 2.0 Windows Forms and want to add "drawing" components such as lines, rectangles, etc.. I've done this before in MS Access, but I can't seem to find similar things in teh Visual Studio 2005 IDE. Where do I need to look to find these elements?
...
My application uses multiple windows
I want to hide one specific window in case the application loses focus (when the Active Window is not the application window) source
I am handling the Deactivate event of my main form.
private void MainForm_Deactivate(object sender, EventArgs e)
{
Console.WriteLine("deactivate");
...
I am optimizing the startup of a WinForms app. One issue I identified is the loading of the splash screen form. It takes about half a second to a second.
I know that multi-threading is a no-no on UI pieces, however, seeing how the splash screen is a fairly autonomous piece of the application, is it possible to somehow mitigate its p...
VB.NET 2.0 Framework
I developed a control that implements IExtenderProvider in order to attach to controls and display a form for translating of the text of that control. This works great on regular controls on the form but the IExtenderProvider is not attaching to controls on UserControls by default.
Is it possible to modify the Use...
I think we're all aware of what "your company's line-of-business software" looks like.
Are there any resources, rules of advice, or general tricks to visually taming applications like this? Our business's domain is pretty complex, as most are, and our customers demand a great amount of flexibility. Tracking a boatload of fields on e...