Click here to Skip to main content
15,919,178 members
Home / Discussions / C#
   

C#

 
GeneralRe: problems with importing Outlook contacts Pin
Stephan Wright13-Jul-04 22:38
Stephan Wright13-Jul-04 22:38 
GeneralRe: problems with importing Outlook contacts Pin
Heath Stewart14-Jul-04 3:13
protectorHeath Stewart14-Jul-04 3:13 
GeneralSNTP Class Pin
don7cry12-Jul-04 21:46
don7cry12-Jul-04 21:46 
GeneralRe: SNTP Class Pin
Heath Stewart13-Jul-04 5:13
protectorHeath Stewart13-Jul-04 5:13 
GeneralCreate Undo functionnality. Pin
HAHAHA_NEXT12-Jul-04 19:56
HAHAHA_NEXT12-Jul-04 19:56 
GeneralRe: Create Undo functionnality. Pin
Roman Rodov13-Jul-04 1:25
Roman Rodov13-Jul-04 1:25 
GeneralWindow Message Pin
sachinkalse12-Jul-04 19:15
sachinkalse12-Jul-04 19:15 
GeneralRe: Window Message Pin
Heath Stewart13-Jul-04 5:22
protectorHeath Stewart13-Jul-04 5:22 
A windows message is not "set" - it is sent. For controls that support it (not every control does), you can set the WS_HSCROLL (0x00100000) and WS_VSCROLL (0x00200000) window styles by overriding the CreateParams property:
protected override System.Windows.Forms.CreateParams CreaeParams
{
  get
  {
    System.Windows.Forms.CreateParams cp = base.CreateParams;
    cp.Style |= WS_HSCROLL | WS_VSCROLL;
    return cp;
  }
}
const int WS_HSCROLL = 0x00100000;
const int WS_VSCROLL = 0x00200000;
Most controls that support scrollbars in the Windows Forms library already have properties that control these.

Again, not every control supports them. As for the Windows Common Controls, see the Windows Controls[^] documentation and reference in the MSDN Library.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Window Message Pin
sachinkalse13-Jul-04 16:16
sachinkalse13-Jul-04 16:16 
GeneralRe: Window Message Pin
Heath Stewart14-Jul-04 3:01
protectorHeath Stewart14-Jul-04 3:01 
QuestionRegistering classes with a class factory? Pin
Scythen12-Jul-04 18:01
Scythen12-Jul-04 18:01 
AnswerRe: Registering classes with a class factory? Pin
Heath Stewart13-Jul-04 5:46
protectorHeath Stewart13-Jul-04 5:46 
GeneralSecurity Access Error Pin
dbetting12-Jul-04 16:48
dbetting12-Jul-04 16:48 
GeneralRe: Security Access Error Pin
Nick Parker12-Jul-04 17:22
protectorNick Parker12-Jul-04 17:22 
Generalcode for adding Pin
stevemasters2212-Jul-04 13:58
stevemasters2212-Jul-04 13:58 
GeneralRe: code for adding Pin
KevinMac12-Jul-04 17:01
KevinMac12-Jul-04 17:01 
GeneralRe: code for adding Pin
stevemasters2212-Jul-04 17:27
stevemasters2212-Jul-04 17:27 
GeneralRe: code for adding Pin
Nick Parker12-Jul-04 17:50
protectorNick Parker12-Jul-04 17:50 
GeneralRe: code for adding Pin
stevemasters2212-Jul-04 20:54
stevemasters2212-Jul-04 20:54 
GeneralRe: code for adding Pin
Nick Parker13-Jul-04 7:10
protectorNick Parker13-Jul-04 7:10 
GeneralEventHandler problem Pin
Jae Sammy12-Jul-04 13:33
Jae Sammy12-Jul-04 13:33 
GeneralRe: EventHandler problem Pin
Nick Parker12-Jul-04 14:21
protectorNick Parker12-Jul-04 14:21 
GeneralRe: EventHandler problem Pin
Jae Sammy12-Jul-04 18:19
Jae Sammy12-Jul-04 18:19 
GeneralRe: EventHandler problem Pin
Jae Sammy13-Jul-04 5:39
Jae Sammy13-Jul-04 5:39 
GeneralRe: EventHandler problem Pin
Nick Parker13-Jul-04 7:16
protectorNick Parker13-Jul-04 7:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.