Questions tagged [windows-controls]

39 questions
1
vote
2 answers

TreeView Control will leak normal ImageList but ListView control doesn't?

I was using task manager to watch my dynamically created controls and found each time I'd create a TreeView with an ImageList, the GDI objects count would increase by 4 each time I destroyed the tree and created again. However, a ListView never had…
user3161924
  • 1,849
  • 18
  • 33
1
vote
0 answers

AutoScale Factor is not updating properly when we switch the scaling

Issue: Edge of the control is clipped off when swtich scaling. Windows OS:10 Im using Usercontrol which is inherited from Control in DpiAware Enabled application, I need to scale the control according to current scaling when AutoScaleMode.Font set…
Magesh Maggi
  • 269
  • 2
  • 10
1
vote
1 answer

Rich Edit control: Prevent immediate repainting/updating?

I'm trying to replace some text in a range in a rich edit control. The two line way to do it is by sending a EM_EXSETSEL followed by a EM_REPLACESEL. However, this causes an annoying flickering when the text is briefly selected, before being…
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699
1
vote
2 answers

control method of worksheet is not available

I've encountered an odd problem in proggramming add-in for excel; i wanna add controls in excel, i used this code inspiring https://msdn.microsoft.com/en-us/library/cc442817.aspx private void button_Click(object sender, RibbonControlEventArgs…
Technovation
  • 397
  • 2
  • 12
1
vote
1 answer

Folder Browser Dialog Component not showing folders list in windows forms

I have a C# library containing form in which i am using Folder Browser Dialog Component to get the folder path. Form is shown during installation of my application using Custom Installer. When click on browse button to show folder browser dialog.…
1
vote
2 answers

Win32 Edit Control Caret Placement Offset

I gave an English explanation of my problem below but it is a visual issue so if you don't want to read it all just look at the picture at the bottom). I'm working on building a reverse polish notation calculator for my class and I just completed…
1
vote
3 answers

Wpf Event in XAML cannot get the right focus on button

I try to make the button move when I press an arrow key on the keyboard. But what I get is that I always need to press the button with mouse to get the right focus first, and then I can move it with the left arrow key, otherwise not. However, as…
Pengda Wu
  • 11
  • 1
  • 2
1
vote
0 answers

Setting ControlID to be used for AutoIT

I am trying to do some automated functional testing for a windows app and I just got my hands on AutoIT. Looks like most (if not all) standard windows applications have a Control ID set. Unfortunately, the Control ID field is blank when i mouse…
1
vote
1 answer

How do I change the style of a tab control after it has been created?

I have a Windows form (not a WPF form) that contains a tab control from CommCtrl.h. According to the documentation, I should be able to change the "style" to TCS_BUTTONS after the control has been created. Unfortunately, I can't find any examples on…
Jason 'Bug' Fenter
  • 1,616
  • 1
  • 16
  • 27
1
vote
1 answer

Cursor within bounds of a control

public void TapeMeasure(object sender, EventArgs e) { if (TrussManager.Truss != null) { Point containerPoint = trussEditor.PointToClient(Cursor.Position); if…
jth41
  • 3,808
  • 9
  • 59
  • 109
1
vote
1 answer

WM_REFLECT_NOTIFY vs WM_NOTIFY

The documentation for WM_NOTIFY is easy enough to find, however I'm finding a fair amount of sample code and articles that refer to WM_REFLECT_NOTIFY, for which I can't find any documentation. What is WM_REFLECT_NOTIFY, where can I find the…
Justin
  • 84,773
  • 49
  • 224
  • 367
0
votes
0 answers

Why the superclass'es OnPaint() method is called on pressing button?

I'm trying to implement the OnPaint() method in the subclass of the CButton MFC class. class CImageButton : public CButton public: using CButton::CButton; protected: afx_msg void OnPaint(); …
Serge Roussak
  • 1,731
  • 1
  • 14
  • 28
0
votes
0 answers

Need to maintained a resized value of datagridview column after closing form /open it again

Need to set a resized value by user of datagridview column such that after closing form on which datagridview control present & open it again so the resized value of column should be the same as set while closing the form. code i…
0
votes
1 answer

"no records available" text disappears when new window pops up

I am using Telerik WinForms UI controls, Version - "2016.2.503.40" (Telerik.WinControls). Facing a weird issue with GridView control version - "2016.2.503.40" (Telerik.WinControls.GridView) When data or records are not available on the grid I am…
user2147315
  • 23
  • 1
  • 8
0
votes
0 answers

Windows form Button appearance is getting changed while running application

I am working on a Windows form Application, came up with some weird behavior. The appearance of all the buttons in the form are getting changed when running the application using Visual Studio. For example : Button style and Appearance at Design…
user2147315
  • 23
  • 1
  • 8