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. 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...
  2. 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...
  3. 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)?
    ...
  4. Replies
    5
    Views
    3,597

    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...
  5. 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...
  6. 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...
  7. 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...
  8. 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)...
  9. Replies
    0
    Views
    722

    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. ...
  10. 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...
  11. 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...
  12. Replies
    2
    Views
    1,445

    Re: problem with setting Top & Left of a form

    That solved my problem.
    Thank you, BigEd!
  13. 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...
  14. Replies
    2
    Views
    1,445

    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...
  15. Replies
    2
    Views
    2,419

    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...
  16. Replies
    2
    Views
    2,419

    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...
  17. 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...
  18. Replies
    1
    Views
    307

    Re: Delete Please.

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

    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...
  20. Replies
    2
    Views
    1,258

    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...
  21. Replies
    2
    Views
    3,062

    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...
  22. 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"...
  23. Replies
    1
    Views
    3,765

    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"...
  24. Replies
    1
    Views
    3,765

    Pre-setting the ComboBox selection in XAML

    Colleagues,

    I would like to pre-set the ComboBox in XAML. For example, there are 3 options: “4800”, “9600”, “19200”. I know that the text of the pre-selected item is “9600”. Which properties of...
  25. Binding ComboBox to XML data. Having a problem.

    Folks,

    I was able to bind my ComboBox to an XML file, but there’s a “small cosmetic” problem. The data in the XML file looks like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <Options>
    ...
Results 1 to 25 of 107
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