Click here to Skip to main content
15,907,492 members
Home / Discussions / C#
   

C#

 
GeneralShould I change C++ to C# Pin
TWS_Dave11-Jan-04 22:27
TWS_Dave11-Jan-04 22:27 
GeneralRe: Should I change C++ to C# Pin
Mazdak11-Jan-04 22:39
Mazdak11-Jan-04 22:39 
GeneralRe: Should I change C++ to C# Pin
Michael P Butler11-Jan-04 23:12
Michael P Butler11-Jan-04 23:12 
GeneralRe: Should I change C++ to C# Pin
Heath Stewart12-Jan-04 2:53
protectorHeath Stewart12-Jan-04 2:53 
GeneralRe: Should I change C++ to C# Pin
Rocky Moore12-Jan-04 10:55
Rocky Moore12-Jan-04 10:55 
GeneralRe: Should I change C++ to C# Pin
TWS_Dave13-Jan-04 23:16
TWS_Dave13-Jan-04 23:16 
GeneralRe: Should I change C++ to C# Pin
Giles14-Jan-04 11:23
Giles14-Jan-04 11:23 
GeneralFolder Browser Dialog Pin
Itanium11-Jan-04 20:46
Itanium11-Jan-04 20:46 
GeneralRe: Folder Browser Dialog Pin
aneye11-Jan-04 21:55
aneye11-Jan-04 21:55 
GeneralRe: Folder Browser Dialog Pin
Heath Stewart12-Jan-04 2:10
protectorHeath Stewart12-Jan-04 2:10 
GeneralPaging - Performance - Scalability Pin
Mohamad Al Husseiny11-Jan-04 20:04
Mohamad Al Husseiny11-Jan-04 20:04 
GeneralRe: Paging - Performance - Scalability Pin
Heath Stewart12-Jan-04 2:26
protectorHeath Stewart12-Jan-04 2:26 
GeneralRe: Paging - Performance - Scalability Pin
Mohamad Al Husseiny12-Jan-04 21:53
Mohamad Al Husseiny12-Jan-04 21:53 
GeneralRe: Paging - Performance - Scalability Pin
Guillermo Rivero12-Jan-04 6:47
Guillermo Rivero12-Jan-04 6:47 
GeneralFileSystemObject in VB returns the wrong value when used from .NET Pin
RickardB11-Jan-04 16:46
RickardB11-Jan-04 16:46 
GeneralRe: FileSystemObject in VB returns the wrong value when used from .NET Pin
Heath Stewart12-Jan-04 1:52
protectorHeath Stewart12-Jan-04 1:52 
GeneralRe: FileSystemObject in VB returns the wrong value when used from .NET Pin
RickardB12-Jan-04 13:41
RickardB12-Jan-04 13:41 
GeneralRe: FileSystemObject in VB returns the wrong value when used from .NET Pin
RickardB12-Jan-04 17:26
RickardB12-Jan-04 17:26 
GeneralRe: FileSystemObject in VB returns the wrong value when used from .NET Pin
RickardB12-Jan-04 20:47
RickardB12-Jan-04 20:47 
GeneralRe: FileSystemObject in VB returns the wrong value when used from .NET Pin
RickardB14-Jan-04 0:00
RickardB14-Jan-04 0:00 
GeneralRe: FileSystemObject in VB returns the wrong value when used from .NET Pin
Heath Stewart14-Jan-04 3:31
protectorHeath Stewart14-Jan-04 3:31 
GeneralRe: FileSystemObject in VB returns the wrong value when used from .NET Pin
Rocky Moore12-Jan-04 11:02
Rocky Moore12-Jan-04 11:02 
GeneralRe: FileSystemObject in VB returns the wrong value when used from .NET Pin
RickardB12-Jan-04 13:37
RickardB12-Jan-04 13:37 
GeneralRe: FileSystemObject in VB returns the wrong value when used from .NET Pin
RickardB14-Jan-04 0:01
RickardB14-Jan-04 0:01 
General.NET Rebar Control Error Pin
David M. Kean11-Jan-04 15:54
David M. Kean11-Jan-04 15:54 
I have created my own Rebar Control and I am having issues on Windows 2000 machines.

When creating the handle it throws an Win32Exception with the error "Invalid window class name". It works fine on Windows XP machines.

The following is my CreateHandle method and CreateParams property. Any ideas?

protected override void CreateHandle()
{
if (!RecreatingHandle)
{
// Initialize Cool Bar Common Control
INITCOMMONCONTROLSEX initCommonControls = new INITCOMMONCONTROLSEX(); // I set Size field in constructor
initCommonControls.Flags = InitCommonClasses.COOL_CLASSES | InitCommonClasses.BAR_CLASSES;
SafeInterop.InitCommonControlsEx(initCommonControls);
}

base.CreateHandle(); // <-- Exception thrown here
}

protected override CreateParams CreateParams
{
[SecurityPermission(SecurityAction.LinkDemand, Flags=SecurityPermissionFlag.UnmanagedCode)]
get
{
CreateParams createParams = base.CreateParams;
createParams.ClassName = Interop.REBARCLASSNAME;

createParams.Style |= (int)(CommonControlStyles.NORESIZE | CommonControlStyles.NODIVIDER | CommonControlStyles.NOPARENTALIGN);

if (_Borders)
{
createParams.Style |= (int)RebarStyles.BANDBORDERS;
createParams.Style |= (int)(RebarStyles.VARHEIGHT | RebarStyles.AUTOSIZE);

return createParams;
}
}
}

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.