Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
277 views

Visual Studio update. Opened a solution in Windows Form VB and there are no controls in my toolbox

I updated the VS studio application and when I tried to start a new solution for a visual basic windows form design the controls were missing from my toolbox. It says at the bottom "There are no ...
Auryora's user avatar
0 votes
3 answers
2k views

Unable to copy-paste Winforms controls from a form in a vb.net project to a form in a c# project

for a big refactoring project of about 140 forms I've been trying to copy and paste these controls through the designer. I'm using VS 2022 but I've also tried with 2019. The origin project is in .NET4....
Wauter's user avatar
  • 19
1 vote
1 answer
207 views

Why do I see this error when trying to open the control designer in visual studio and how do I fix it?

Why do I see this error when trying to open the control designer in visual studio 2019 and how do I fix it? (Winforms) The error switches sometimes when I try to open the designer: I tried ...
D.Man's user avatar
  • 311
0 votes
1 answer
882 views

Controls size issues of C# windows form, looks different on compile time and different in Run Time

I have some weird problem, I am setting controls location according to requirement as well as adding new controls, but when I build project and run it, It looks totally different, all controls ...
Pankaj Belwal's user avatar
-1 votes
1 answer
426 views

WinForms: adding a control with c#

I'm new to c#, and I do know how to dynamically add controls, but I don't know how to set that control as this.[control_name]. Note that here, this is the Form. This can be done statically with ...
Krokodil's user avatar
  • 1,480
0 votes
1 answer
59 views

Why does VS2017 keep losing my derived controls?

In my app namespace = DRT, I'm creating control classes (e.g., button, textbox) that derive fron their corresponding Windows control classes, e.g., internal abstract class DRT_Button_Abstract : ...
VA systems engineer's user avatar
-3 votes
1 answer
61 views

Is the Microsoft walkthrough "Inheriting from a Windows Forms Control" a valid procedure?

Updated I'm somewhat new to Visual Studio and C#. I've come across a number of S.O posts where the answer refers to deriving (through inheritance) from a Microsoft base class and extending it. I've ...
VA systems engineer's user avatar
0 votes
1 answer
161 views

Dynamically add control from base .NET

There is a way to add controls to WinForm from code. It is rather simple, for example: Button ^btn = gcnew Button; btn->Size.Width = 70; btn->Size.Height = 30; btn->Text = "test button"; ...
Prain's user avatar
  • 95
1 vote
1 answer
884 views

WinForms: How do I keep a panel from scrolling with the window content?

I have a navigation panel on the left hand side of my program and I'd like it to always stay where it is when scrolling the window content. Is there a way to do that? I've thought about trying to do ...
tryingtotryhard's user avatar
0 votes
2 answers
4k views

Multiple Controls onto a single control c# winforms

Is there any way to make a Control like a Panel, and inserting several other components like a Label in it? I've made a custom control, and added some controls from the toolbox into it's [Designer], ...
Dirk V's user avatar
  • 1,469
0 votes
1 answer
341 views

How to add an extended control to the toolbox, when the control is in the same project?

I have extended DataGridView. I want to add the new control to the toolbox without adding a reference to a different assembly (using the right-click option "Choose Items"). The control is in the same ...
Michael Haddad's user avatar
-1 votes
1 answer
173 views

why are new controls showing up in my form AND panel

i have a form with a few controls on it, i have a panel with different controls on, That panel is above the form controls. i have added new controls to the form and when i place the panel back over ...
Juan's user avatar
  • 118
0 votes
1 answer
56 views

PFGrid Databinding

Does anyone have experience with PFGrid? There are just a handful of mentions on stackoverflow, none of which address binding. The company website's forum link is broken. The DataSource property in ...
EntityDev's user avatar
0 votes
1 answer
391 views

Visual Studio WinForm Render Mode

Does anyone know is there any opportunity to set render mode for WinForms ? I mean setting software rendering mode for specific window or whole application, I am looking the same like describing here ...
user1722669's user avatar
1 vote
0 answers
167 views

How can I create PDF or Word Preview on Visual Studio?

I'm making a Help Screen and I want to add a PDF/Word Preview control to it. I used Adobe PDF Reader control but it shows many other functions that I don't need. I just want a control that view only.
Nhieu's user avatar
  • 11

15 30 50 per page