Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: kender_a

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Does it make sense top new-up pens and brushes in OnPaint() every time it's called?

    Folks,

    I need to make a fairly simple WinForms custom control. It will have about hundred or so graphics shapes (lines, circles). Little to no animation. At the moment of writing, I don't...
  2. Re: Implicit Conversion Operators and Value Types

    My resume for this thread.

    The original post had this hypothesis:


    The hypothesis withstood the peer review.

    P.S. This question was also mirrored here.
  3. Implicit Conversion Operators and Value Types

    Folks,

    Iíve come across this blog article: Implicit Conversion Operators are Bad. The article discourages the use of implicit conversion with reference types. In the beginning, the article has...
  4. Re: Should a type for working with fractions be a class or a struct?

    Thank you for the insight. I went ahead and created a struct and ran into the following problem.

    I can't have an explicit parameterless constructor. I can't have an instance field initializer...
  5. Should a type for working with fractions be a class or a struct?

    Folks,

    I’m making a C# type for working with fractions, and trying to follow best practices. My question is: should a type like this be a class (reference type) or a struct (value type)?
    ...
  6. Replies
    5
    Views
    3,610

    declaring a const object in C#

    Folks,

    I used to be an enthusiastic C++ writer. Currently, I’m going up the learning curve of .NET and C#.

    From what I’m reading on the web, only the C# built-in types may be declared as...
  7. Grid control like in VS2008 properties window

    Folks,

    Properties window in visual studio is built around a nice grid control (or tree-grid control even). Does Microsoft provide a control like that to developers? Iíd like to use it on my own...
  8. Re: Opaque controls on a completely transparent form

    Hey Bill,

    Actually, I was able to find the article from the GUID in the original version of the link. :D

    The article, however, deals with custom controls. It suggests to call the protected...
  9. Re: Opaque controls on a completely transparent form

    That was illuminating. Thanks.

    One thing that makes this problem a little more interesting is that one of the controls is a picture with irregular outline. The image itself is drawn with only a...
  10. Opaque controls on a completely transparent form

    Folks,

    As everyone have noticed, the Form class has the Opacity property. It sets the opacity of the form and all of the controls. But is it possible to have opaque controls (e.g. picture boxes)...
  11. Replies
    0
    Views
    724

    Swapping control into a different parent

    Colleagues,

    What I'm trying to achieve is kind of an undocking behavior, where a control can undock from one form and float in a different form. My code is based on a working reference design. ...
  12. How does WinForms label control handle focus? (a newbie question, perhaps)

    Folks,

    There is a panel which contains 2 components: a label and a TreeView. The hierarchy, obviously, looks like this:


    panel1 // handles Enter event
    - label1
    - treeView1

    I need...
  13. Adding an event handler (a newbie question, perhaps)

    Is there a difference between the following 2 lines of code?

    m_ctrPanel.Leave += this.OnLeave;
    and

    m_ctrPanel.Leave += new System.EventHandler(this.OnLeave);
    Obviously, they serve the same...
  14. Replies
    2
    Views
    1,450

    Re: problem with setting Top & Left of a form

    That solved my problem.
    Thank you, BigEd!
  15. Re: Can't figure out how to structure my loops

    Sometimes recursion helps answer questions like yours. What you're describing sounds like a tree-like structure (by the way, posting a diagram wouldn't hurt, if you can make one). Get a text book...
  16. Replies
    2
    Views
    1,450

    problem with setting Top & Left of a form

    Colleagues,

    I’m doing some recreational programming. I'm trying to display a semi-transparent form (overlay) over a control. (The purpose of the overlay is to show that a control can be a target...
  17. Replies
    2
    Views
    2,425

    Re: SafeArrayTypeMismatchException

    Attributes in my struct weren't correct. I've figure that out with some help from the community.
    http://stackoverflow.com/questions/4542894/ptrtostructure-generates-safearraytypemismatchexception...
  18. Replies
    2
    Views
    2,425

    SafeArrayTypeMismatchException

    Folks,

    Please help me chase out a SafeArrayTypeMismatchException that I keep getting. I need to pass a struct to unmanaged DLL. One of the struct members is a variable-length array. Unmanaged...
  19. View Post

    In plain C, I would do this:

    void GetArray(
    mytype* pBuff // [out] Pointer to the buffer in which array is returned to the calling code.
    int iBuffLen); // [in] Length of the buffer...
  20. Replies
    1
    Views
    307

    Re: Delete Please.

    You've posted how you've resolved it. Now everyone is curious what the problem actually was... :)
  21. Replies
    2
    Views
    1,262

    Re: newbie WinForms DataBinding question

    That's what I'm looking for. I know the name of the object (of my own class) and the property. How can I set-up the binding using Visual Studio designer tools?

    P.S. I know how I would set up...
  22. Replies
    2
    Views
    1,262

    newbie WinForms DataBinding question

    Folks,

    Iím doing my first project with WinForms, and Iím trying to get the DataBinding working. Thereís no database in my project, but Iíd like to bind some of the TextBoxes to runtime object...
  23. Replies
    2
    Views
    3,074

    Advanced ComboBox in WinForms

    Colleagues,

    Is there a standard (and free) control which is like a ComboBox, only better? ;) Some of the potential features could be:

    * being able to control the font for each of the items...
  24. An issue with the file name SerialPortSettings.xml

    Colleagues,

    In XAML Iím trying to declare XmlDataProvider objects to bind controls to XML files.

    <XmlDataProvider x:Key="SerialPortOptions" Source="Settings/SerialPortOptions.xml"...
  25. Replies
    1
    Views
    3,775

    Re: Pre-setting the ComboBox selection in XAML

    Resolved. Assigning SelectedValue instead of SelectedItem worked.

    The working XAML looks like this:

    <ComboBox Name="cboBaudRate"
    Grid.Column="1" Grid.Row="1"...
Results 1 to 25 of 109
Page 1 of 5 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center