Questions tagged [windows-controls]

39 questions
0
votes
1 answer

What is name of this control?

What is this control in picture in C# .Net? As I remember It was used in Windows XP environment however I don't know the name of this control.
VSB
  • 9,825
  • 16
  • 72
  • 145
0
votes
1 answer

SetScrollRange Function

I've read about SetScrollRange but still didn't get what the range (min, max) is in scrollbar. I've set the rich edit control's vertical scroll bar range to (0, 100) SetScrollRange(hwndRichEditControl, SB_VERT, 0, 100, TRUE); Now, If I try…
Jack
  • 3
  • 2
0
votes
0 answers

How do you process the WM_COMPAREITEM message for a Combo Box?

I primarily come from a .NET background, but there is one small task that I have to accomplish for a Windows Control, specifically a ComboBox. I understand that the CBS_SORT message is needed for the ComboBox to sort items alphabetically. This works…
C. Tewalt
  • 2,271
  • 2
  • 30
  • 49
0
votes
1 answer

Switch focus to a different tab in a pivot control in c#

Is it possible to switch focus between tabs with code in a Pivot control in a c# uwp app? I tried using Pivot.SelectedIndex = 1; but that does not do the trick. Is it not possible or am I just doing it wrong?
user5597379
0
votes
3 answers

Find position of mouse relative to control, rather than screen

I have a Picture Box called BGImage. I hope that when the user clicks on this I can capture the position of the mouse relative to BGImage. I've tried using MousePosition, only to find it gives the mouse location on the screen, not on the…
08robertsj
  • 344
  • 3
  • 5
  • 17
0
votes
1 answer

Getting ON_NOTIFY_RANGE to work with CSliderCtrl

I have an array of CSliderCtrl's in my windows form that I need to receive notifications from. I am using the ON_NOTIFY_RANGE declaration to map the slider updates to the appropriate handler. My problem is that the only event that gives me a…
Ian
  • 4,169
  • 3
  • 37
  • 62
0
votes
1 answer

Win Phone System.Windows.Controls.Control not found

I'm developing a universal windows 8.1 app, though I'm primarily working on the windows phone version. System.Controls.control should work for windows phone, but whenever I add System.Windows.Controls.dll to my Win Phone 8.1 references, my project…
0
votes
1 answer

How to get text from a windows control's textbox? and how do I know it's a textbox?

I've used spy++ to find the right handle of the wanted windows control, which belongs to a standalone application which isn't managed. Note that the spy++ "property inspector" mentions that this window doesn't have any child (or parent)…
Bar
  • 57
  • 1
  • 2
  • 9
-2
votes
1 answer

How to override button properies in C#(font, height, width, backcolor)

How to Override my controls using C#? Need to set button property like Font(Name => Segoe UI, style => Regular, size => 10), height => 50px, width => 250px, back color => green by default. How to use override method for respected button…
1 2
3