Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
T

thepersonof

@thepersonof
About
Posts
110
Topics
58
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • event question
    T thepersonof

    hi I have an event defined in a base class. I'd like to raise this directly from a derived class, but the compiler won't let me do this, so instead I created a method RaiseMyEvent(...) to raise the event in the base class. Can I raise the event a simpler way? (otherwise I'd need to create a RaiseEventX function for each event..) thanks!

    C# question

  • .NET arbitrary precision arithmetic library
    T thepersonof

    any ideas?

    C# csharp question

  • .NET arbitrary precision arithmetic library
    T thepersonof

    hey does anyone know where I can find one? its just really for changing the base of and handling large integers... preferably under an MIT/BSD style licence... thx!

    C# csharp question

  • CIL - parsing the call instruction
    T thepersonof

    i love you

    .NET (Core and Framework) json tutorial

  • CIL - parsing the call instruction
    T thepersonof

    hi there we are handling some CIL and need to parse the call instruction. we are following the specification ( http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-335.pdf p.375) in our case we need to know how to convert a methodref (0x0A) metadata token into a Reflection.MethodInfo type... would be nice... we were just hoping that system.reflection would contain method to do this... :)

    .NET (Core and Framework) json tutorial

  • coding guidelines question
    T thepersonof

    hey I have a property: int MyProperty{ get{return myProperty;} } When we ran FXCop it threw up: Info : "Do not use names that require case sensitivity for uniqueness. Components must be fully usable from both case-sensitive and case-insensitive languages. Since case-insensitive languages cannot distinguish between two names within the same context that differ only by case, components must avoid this situation." So what should I rename myProperty? cheers

    C# question

  • treeview doubleclick
    T thepersonof

    thank you

    C# question

  • treeview doubleclick
    T thepersonof

    hi at the moment i'm handling the doubleclick event. how can i check whether a leaf node was doubleclicked or whether the user just double clicked whitespace? thanks

    C# question

  • Editing statistics in Word 2003
    T thepersonof

    hey How can I edit the document statistics such as the revision number and the editing time in Word 2003? thanks

    IT & Infrastructure question

  • Inheriting from the tabcontrol
    T thepersonof

    Thank you. I can't manage to make the method you suggest work, does anyone have any other suggestions? thanks

    C# question

  • Inheriting from the tabcontrol
    T thepersonof

    Hi I have I a class that inherits from TabConrol called MyControl. I have a class that inherits from TabPage called MyTabPage, as below: (heavily simplified) class MyTabControl:TabControl { protected override void OnKeyDown(System.Windows.Forms.KeyEventArgs ke) { (this.SelectedTab as MyTabPage).PanelContained.KDown(ke); base.OnKeyDown(ke); } } class MyTabPage : TabPage { private MyPanel panelContained; public MyPanel PanelContained{ get { return panelContained; } set { panelContained = value; } } } How can I override SelectedTab to return a MyTabPage? If I add a MyTabPage and change the panelcontained property, this is null again when I convet it back from SelectedTab. Seeing as it inherits from TabControl is there a nice way to make it so that I can convert it back into a MyTabPage without losing the added property? cheeers

    C# question

  • Quick generics q
    T thepersonof

    It's rather simple: #1: this.X = (T)xValue; where this.X and xValue is float and T is double or float. #2: Math.Sqrt( X*X+Y*Y); where X,Y are of type T which is either double or float (and impleements iconvertable). thank you!

    C# help question

  • Quick generics q
    T thepersonof

    Hey I am just starting with generics: How can I convert a float to type T (which is either a float or a double and is iconvertible)? I get the error: Cannot convert type 'float' to 'T' Problem 2... The error: Operator '*' cannot be applied to operands of type 'T' and 'T' when I multiply two numbers What can I do about this? Does float inherit from some class that defines basic mathematical operations? All help is greatly appreciated

    C# help question

  • Opening file
    T thepersonof

    Thank you!!

    C# question

  • Opening file
    T thepersonof

    Hi How can I have Windows open a file using the default program? eg. ".txt" files open with notepad, etc. Thanks (The function's at the back of my head somewhere, but I just can't find it... )

    C# question

  • Simple event q
    T thepersonof

    thanks

    C# help question

  • Simple event q
    T thepersonof

    hi What event is fired when the exit ("X") button of a form is clicked (but before the form closes)? thank you for your help

    C# help question

  • Generics Problem
    T thepersonof

    Problem 1... I now have the same problem, but the other way round. How can I convert a float to type T (which is either a float or a double and is iconvertible)? I get the error: Cannot convert type 'float' to 'T' Problem 2... The error: Operator '*' cannot be applied to operands of type 'T' and 'T' when I multiply two numbers What can I do about this? Does float inherit from some class that defines basic mathematical operations? All help is greatly appreciated.. I feel the end is in sight!! thank you

    C# help question

  • Generics Problem
    T thepersonof

    thank you very much

    C# help question

  • Generics Problem
    T thepersonof

    Hi I have a generic class: myclass where I put T as either a float or a double. However whenever I compile I get the error: Cannot convert type 'T' to 'float' I know that any of the types I use can be converted to a float. How can I tell the compiler this? thank you

    C# help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups