Skip to main content
Filter by
Sorted by
Tagged with
117 votes
5 answers
86k views

For a long time now, I have been stuck with Windows Forms development (started with VB6, and has continued through to C# .NET 4.5), and I have pretty much hit the limit of what Windows Forms can do, ...
Matthew Layton's user avatar
8 votes
2 answers
17k views

I'm following this tutorial on winforms, and so far the tutorial is coding the form without using the toolbox. I believe it'll introduce the toolbox in more depth shortly. Following the tutorial, I'...
HowDoICSharply's user avatar
31 votes
3 answers
15k views

On a control I am using multiple attribute properties: [Browsable(false)] [Bindable(false)] [EditorBrowsable(EditorBrowsableState.Never)] [DesignerSerializationVisibility(...
Thomas's user avatar
  • 727
3 votes
2 answers
763 views

I've simply added a control to my form and now I can't even see it on the form. But it is still there. How can I find it?
user avatar
6 votes
1 answer
2k views

I wrote User Control (yay!). But I want it to behave as a container. But wait! I know about [Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof(IDesigner))] ...
Thaven's user avatar
  • 1,905
107 votes
10 answers
33k views

I engaged a problem with inherited Controls in Windows Forms and need some advice on it. I do use a base class for items in a List (selfmade GUI list made of a panel) and some inherited controls that ...
Oliver Friedrich's user avatar
40 votes
3 answers
17k views

I created a generic base class for a WinForm UserControl: public partial class BaseUserControl<T> : UserControl { public virtual void MyMethod<T>() { // some base stuff ...
Filini's user avatar
  • 2,129
6 votes
8 answers
10k views

I have recently heard that the alpha version of .NET Core (.NET Core 3.0) supports Windows Forms and WPF. But the Visual Studio Designer (and Visual Studio) doesn't support the .NET Core version of ...
user avatar
2 votes
1 answer
3k views

Using Visual Studio (any version will do), is it possible for controls added programmatically (rather than via the Design view) to then be shown when switching back to the Design view? I've tried ...
maxp's user avatar
  • 25.2k
2 votes
3 answers
3k views

I want to display something like the following :- Each row is about a process (information like PID, Parent etc.). User can check the checkbox and click Launch button to get some dynamic details about ...
AvinashK's user avatar
  • 3,423
5 votes
1 answer
2k views

I want to make a custom property for a windows form browsable during design-time but none of my efforts have panned out to success. The obvious solution would seem to be to set the browsable attribute ...
ChP's user avatar
  • 485
2 votes
1 answer
2k views

I'm getting some annoying errors from Visual Studio Designer when trying to open one of my forms (Could not load type x from assembly y, even though assembly y clearly contains type x; the project ...
Jimmy's user avatar
  • 5,261
1 vote
1 answer
598 views

there! I am creating a Notepad-Like program (much more advanced) and there is something bothering me... Notepad++ & Notepad have the Status Bar located just under the RichTextBox/TextBox border. ...
Momoro's user avatar
  • 615
-1 votes
1 answer
1k views

I have been asked to work on a piece of software. I am an intern developer and there are no other developers at this company. I was given a folder of C# source code that includes other folders as well ...
mpAppProg's user avatar
38 votes
5 answers
114k views

I just started to write reporting software in new version of visual studio named visual studio 2017 RC but just noticed that core reportviewing tools is missing from both windows forms and WPF ...
Omar Sharif's user avatar
17 votes
4 answers
87k views

I want to get a DataTable from DataGridView of the Grid values. In other words DataTable same as DataGridView Values
Mobin's user avatar
  • 4,910
9 votes
2 answers
18k views

Within the Visual Studio Designer, under the properties window you are able to select the ForeColor, BackColor etc using color picker. When you want to pick a color, a color picker comes up with the ...
Kharenis's user avatar
  • 181
6 votes
4 answers
3k views

I have a custom DataGridView, let's say as such: public MyGridView : DataGridView { public MyGridView() { BackgroundColor = Color.Red; } } Now, when I use this control in a ...
Rotem's user avatar
  • 22k
6 votes
1 answer
5k views

I want to know if there exists a way to set a control's Text property from a resource file in design time: Or this process can only be performed programatically?
InfZero's user avatar
  • 3,065
1 vote
1 answer
1k views

When I add a binding source to my windows form, is there a quick way to populate the form with all the properties of the bound object? A drag and drop Field List, similar to that found in many report ...
Kirsten's user avatar
  • 18.8k
9 votes
5 answers
13k views

My question is not how to debug during design time. I actually want to debug through the events available in designer. I know that the form has load and other type of events. Is there any events in ...
Kira's user avatar
  • 1,443
6 votes
1 answer
2k views

Short description: I have a UserControl with a DataGridView on it. I want to expose the DataGridView Columns collection to the designer, so I can change the columns on my User Control at ...
Harald Coppoolse's user avatar
5 votes
2 answers
8k views

This is probably a very simple question, but for some reason, even the right way to web search for the answer eludes me... I'm trying to create a user control that consists of a few labels and ...
user avatar
5 votes
1 answer
372 views

In C# (and Visual Basic) you can add several non-UI components (those that don't inherit from System.Windows.Forms.Control) directly from the form designer. Examples of those components are System....
lornova's user avatar
  • 7,034
1 vote
1 answer
444 views

I was finally able to create a Xml file with some coding (with lots of help here from some people). I can store the file but the next process is reading it back. This gave me an error: "...
ElectricRay81's user avatar
1 vote
1 answer
1k views

I currently have a chart on my C# Windows Form Application (in Visual Studio 2013) that gradually draws a line onto it using a timer. I have tried to set the minimum and maximum values for the x- and ...
Josh Macleod's user avatar
38 votes
6 answers
19k views

I'm using Visual C# Express to write Windows Form applications, and call me old school, but I don't like the designer. It is a nuisance and pollutes my project with lots of unwanted files, as well as ...
I. J. Kennedy's user avatar
35 votes
5 answers
7k views

I have a custom user control with a textbox on it and I'd like to expose the baseline (of the text in the textbox) snapline outside of the custom control. I know that you create a designer (inherited ...
Mike's user avatar
  • 1,465
26 votes
5 answers
100k views

I have these groupboxes: I want to run some code according to checked true state of a radio button like: string chk = radiobutton.nme; // Name of radio button whose checked is true switch(chk) { ...
Amit Bisht's user avatar
  • 5,196
21 votes
2 answers
35k views

I want to use a Web Browser to access a website that uses JavaScript on load. I understand that Web Browser is a wrapper of the current installed version of Internet Explorer. However, testing the ...
Ryanas's user avatar
  • 1,827
15 votes
11 answers
6k views

I would like to hear some opinions on hand coding your GUIs as one typically do when using Java or Qt with C++, vs using a gui-designer tool? Examples of GUI designer tools would be MFC GUI-designer, ...
Erik Engheim's user avatar
  • 8,542
10 votes
1 answer
12k views

I have a few Button controls in a FlowLayoutPanel, and I want to set them precisely at middle bottom of Form. In the image below I set the Button precisely at middle by setting the FlowLayoutPanel ...
user avatar
10 votes
5 answers
46k views

I have a tab control in a windows form and I want to be able to click on a tab and in the body area of the tab I want it to display another form as an embedded component. Is this possible? If so, can ...
MBU's user avatar
  • 5,098
7 votes
7 answers
12k views

With several forms of mine, I occasionally run into the following issue: I edit the form using the designer (Visual Studio 2008, Windows Forms, .NET 2.0, VB.NET) to add components, only to find out ...
Sören Kuklau's user avatar
6 votes
1 answer
2k views

In one of my projects I'm using an abstract UserControl. To be able to design this control in Visual Studio I'm using the code proposed in this answer. Now I want to use this with another abstract ...
Bill Tür stands with Ukraine's user avatar
5 votes
2 answers
3k views

I have these classes: class Foo<T1, T2> : Form where T1, T2 : EventArgs class MiddleGoo : Foo<X,Y> class Goo : MiddleGoo X,Y are just simple classes derived from EventArgs. I see ...
Plondrein's user avatar
4 votes
1 answer
7k views

In VS 2022 I create a new winform (.net 6.0) project. I put one textbox on the form. In the properties window, at the top, I'm used to seeing an item "ApplicationSettings" where I can bind ...
David Alan McQuinn's user avatar
4 votes
2 answers
2k views

I have a class library with a custom control in it: using System.ComponentModel; using System.Windows.Forms; namespace ClassLibrary1 { public sealed class CustomLabel : Label { [...
rory.ap's user avatar
  • 35.7k
2 votes
1 answer
1k views

As we all know Forms created with Form.cs file I have property of type Form example : public Form TargetForm {get;set;} i don't need to use Activiator.CreateInstance() to create Form I just need to ...
deveton's user avatar
  • 361
2 votes
1 answer
2k views

I am trying to customize the existing Smart Tag content for a TableLayoutPanel Windows Forms control for use in the Windows Forms designer (I implemented a designer that leverages the WinForms ...
Jazimov's user avatar
  • 13.4k
2 votes
1 answer
1k views

Say I have a particular type that I want to make available to the Windows Forms designer... public class Style { public CustomBrush Brush { get; set; } } And CustomBrush is implemented like so... ...
Matthew Layton's user avatar
1 vote
2 answers
5k views

Is there a way to set the a default value for the attribute DesignerSerializationVisibility for all the properties of a given class? In practice, a way to switch the default behavior of black-listing ...
TesX's user avatar
  • 933
0 votes
2 answers
921 views

I want to create a dotted lines that is used as input for typing text on it instead using a text box. For example: Instead of text box: I want to make something like this: and to be able to type on ...
Labinot Aziri's user avatar
0 votes
2 answers
334 views

So I'm attempting to get the userinputs when someone presses hotkeys, also outside the form (in this case SHIFT+A). Now since I wanted to add tabs to my forms application I decided to go with ...
FredTheNoob's user avatar
50 votes
16 answers
55k views

I have a question related to the error on the title. Im working with c# and Visual Studio 2010. I have a form declared as "public class FormularioGeneral : Form", which is the base for the rest of ...
Kitinz's user avatar
  • 1,552
40 votes
2 answers
82k views

I'm using the Visual Studio 2013 form designer to edit a form. The size of the form in the designer window is too big so I want to zoom out. In applications like Photoshop or Blend I could (among ...
dumbledad's user avatar
  • 17.7k
38 votes
2 answers
20k views

I have a Visual Studio 2010 Windows Forms app which includes a Form base class that other classes will inherit. The base class' constructor takes a parameter that the child classes will pass to the ...
Jed's user avatar
  • 10.9k
21 votes
6 answers
9k views

My workshop has recently switched to Subversion from SourceSafe, freeing us from automatic locks. This led to concurrent editing of the Forms, which is wonderful. But when multiple developers commit ...
Shalom Craimer's user avatar
21 votes
1 answer
12k views

Is there any free tool to style my C# Windows Forms, to make them look like Windows 7 Windows. **EDIT** In the designer mode, I have this : But when I run I get this : I don't know why I get that. (...
Farmer's user avatar
  • 11k
19 votes
3 answers
41k views

I'm learning how to design a Windows Forms Application in Visual Studio 2017. The tutorial asks me to create a new project using the File -> New -> Project option and selecting 'Windows Forms ...
Robert Young's user avatar

1
2 3 4 5