Click here to Skip to main content
15,886,067 members
Home / Discussions / C#
   

C#

 
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;
}
}
}
GeneralRe: .NET Rebar Control Error Pin
Heath Stewart12-Jan-04 1:36
protectorHeath Stewart12-Jan-04 1:36 
GeneralRe: .NET Rebar Control Error Pin
David M. Kean12-Jan-04 10:49
David M. Kean12-Jan-04 10:49 
GeneralMix Events Pin
Heroz11-Jan-04 12:35
Heroz11-Jan-04 12:35 
GeneralRe: Mix Events Pin
Colin Angus Mackay11-Jan-04 14:05
Colin Angus Mackay11-Jan-04 14:05 
QuestionHow to simulate map c++ collection in c# Pin
Rostrox11-Jan-04 11:49
Rostrox11-Jan-04 11:49 
AnswerRe: How to simulate map c++ collection in c# Pin
Heath Stewart11-Jan-04 11:54
protectorHeath Stewart11-Jan-04 11:54 
GeneralRe: How to simulate map c++ collection in c# Pin
Rostrox11-Jan-04 12:13
Rostrox11-Jan-04 12:13 
GeneralRe: How to simulate map c++ collection in c# Pin
Heath Stewart11-Jan-04 12:22
protectorHeath Stewart11-Jan-04 12:22 
Questionstartup parameters? Pin
Leon Radley11-Jan-04 10:35
Leon Radley11-Jan-04 10:35 
AnswerRe: startup parameters? Pin
Colin Angus Mackay11-Jan-04 10:57
Colin Angus Mackay11-Jan-04 10:57 
AnswerRe: startup parameters? Pin
Heath Stewart11-Jan-04 11:32
protectorHeath Stewart11-Jan-04 11:32 
GeneralRe: startup parameters? Pin
Nick Parker11-Jan-04 11:38
protectorNick Parker11-Jan-04 11:38 
GeneralRe: startup parameters? Pin
Heath Stewart11-Jan-04 11:42
protectorHeath Stewart11-Jan-04 11:42 
QuestionRegEx Guru? Pin
Rocky Moore11-Jan-04 10:13
Rocky Moore11-Jan-04 10:13 
AnswerRe: RegEx Guru? Pin
Heath Stewart11-Jan-04 11:35
protectorHeath Stewart11-Jan-04 11:35 
AnswerRe: RegEx Guru? Pin
Rocky Moore11-Jan-04 16:47
Rocky Moore11-Jan-04 16:47 
GeneralCoding search and replace on content of file Pin
cgcrute11-Jan-04 5:59
cgcrute11-Jan-04 5:59 

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.