I'm working on an application in which a list view is used to select what set of data to display. When the user clicks a list item, the main view updates with the data associated with the selected item, and the ListView control loses focus. Upon losing focus, the control stops highlighting the selected item even though I've explicitly se...
Hello.
I'm making a winform .NET app. It must show a graphic in bars format. I'm using a picturebox because it's the only way I know how to do it (if someone knows a better way, please tell me).
I'm adding dynamically the lines (the bars of the graphic) with this code:
int currentX = this.lineAmmount * (lineWidth + lineMargin);
pictur...
I'm trying to build a TableLayoutPanel on a WinForm and want it to behave exactly like a plain old HTML table.
One requirement is that this table needs to be built programmatically. This is what I have so far:
foreach (var RowLinq in ResultLinq)
{
RichTextBox RT = new RichTextBox();
RT.BorderStyle = BorderStyle.None;
RT....
Hi all,
I am having a gridview that will have 2 rows with some data as follows
101 111111111 1111111111009270754A094101// My first row data
9000002 1000000020222222236000000000000000000000012000000000000000000000000000000000000000//My 2nd row data
I will add some values such that it should be inserted between these...
Hi,
I use PostPaint event of Chart control to embellish my chart. Along with other stuff I draw custom labels. For drawing text I use the same font as axes has, the default one:
Graphics g = e.ChartGraphics.Graphics;
SizeF textSize = g.MeasureString(label, chart.ChartAreas[0].AxisX.LabelStyle.Font);
g.DrawString(label, chart.ChartAr...
I have a winform with 2 WebBrowser control. Is there a way for one page to communicate with the other directly?
For example in HTML and frames, one page can access window.parent.frames[1].document for example.
...
Hi Stack-O
I have a RichTextBox created programmatically with the following code:
RichTextBox RT = new RichTextBox();
RT.Name = "asdf";
RT.Text = "blah";
TableLayoutPanel.Controls.Add(RT,0,0);
Now let's say I want to modify the text of RT, and it's name is "asdf", Visual Studio won't allow me to write asdf.Text = "haha" because asdf...
We have a Japanese user reporting that a form size is truncated (smaller size, not all controls are shown) on his Japanese machine.
In the windows form .designer.cs file, we have these settings:
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
Moreove...
When a WinForm element is disabled, it sort of grays out. Is it possible to disable an element, but adjust the disabled style so it still looks enabled (not grayed out)?
...
I have a UserControl that does some cool video capture stuff. Now I slapped that control on a form - and it starts working right away, even in design time! That's very gratifying and all to see it working, but it's kind of annoying at design time, and it slows me down. I know that the UserControl is effectively in run-time when it's b...
How can I aggregate the CurrentProgress properties of multiple (dynamic amount) of WebBrowsers together so that a ProgressBar will look accurate?
...
Hi, everybody.
I have some problems during MDI application development using Windows Forms.
Imagine small test application with 3 forms: Form1, Form2 and Form3.
Form1 is an MdiContainer (with attached menuStrip element with single botton - for test purposes).
Form2 contains only single button. Form2 openes by the click on Form1 menuStr...
Stack-O,
I have a TableLayoutPanel with 50 rows and 6 columns. That's all well and good, but whenever I move or resize my WinForm, it takes about 15 seconds for the TableLayoutPanel to repaint. How can I speed this up?
...
I'm using a number of ObjectListView controls on a form in my current project. Today I migrated the project from Visual Studio 2008 to Visual Studio 2010. Now when the form is displayed all the OLV controls look as if they are disabled yet they are not. I have no problem scrolling the lists, or selecting items in the list. In addition, t...
How can I obtain actual instances of the underlying objects returned as string representations by HtmlElement's GetAttribute() method?
I'm asking this because not all types of HTML attributes are returned as their visual string representation by GetAttribute(), but in some cases, as class names. The few cases where I've found this to ha...
I need to develop a forms application with a DB backend. In future this may be linked to ASP.NET page. I was thinking of doing this as an MVC and reuse later.
So, What kind of MVC frameworks do you use?
I am interested in building forms quickly and any frameworks that link/bind control to database fields.
...
It must
Support .Net 4.0 Client Profile (designers in separate assembly)
Serialize layout to custom stream
Allow maximizing of floating window in caption doubleclick
Cost not too mush (200US$ is optimal). Also do not need a bundle of 1000 and 1 control.
I've already reviewed
DockPanel Suite
1 and 3 are violated. Also seems buggy (...
I have a TreeView with Checkboxes and want to add spaces between the checkboxes and text of a TreeViewNode. How can I do that?
Example
From:
-A
-[]b
-[]c
To
-A
-[] b
-[] c
...
I have a picture in jpg format and size 765X368.
I need to use this picture for button and pictureBox on my form.
When I use for pictureBox I use Sizemode = StretchImage and I see it excellent, but when I use it for my button, it's very big and bad!!!
How I can make smaller this picture (automatic) when I load it to my button?
...
In a Winform application,I want to use a single backgroundworker (or may be one for each form) to do different tasks on different events. For eg: Search, Loading Data in grid, opening new forms, sending emails, File transfer etc.
How can i manage all this in backgroundWorker_DoWork() and backgroundWorker_RunWorkerCompleted() events?
...