vbCrLf wierdness

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul

    vbCrLf wierdness

    Been a long time since I've played with this, just got .Net version of
    Visual Basic. Having annoyance with a real simple thing. I'm adding a
    tooltip to a control like:

    Me.ToolTip1.Set ToolTip(Me.SubN ame,"This is a two-line" & vbCrLf & _
    "tooltip.")

    If I ctrl-F5 from the code menu, it compiles and runs OK (breaks the
    tooltip into two lines). If I go to the form design window, I get the
    error:

    "The variable 'vbCrLf' is either undeclared or was never assigned."

    Didn't think I needed to declare a system constant. When I go back to
    the code view, VB has ever so kindly deleted the tooltip from the
    control.

    This has got to be something real stupid on my part, but I'm blocked.

    p
  • Rick Rothstein

    #2
    Re: vbCrLf wierdness

    Almost everybody in this newsgroup is using VB6 or lower. While you may get
    a stray answer to VB.NET questions here, you should ask them in newsgroups
    devoted exclusively to .NET programming. Look for newsgroups with either the
    word "dotnet" or "vsnet" in their name.

    For the microsoft news server, try these newsgroups...

    microsoft.publi c.dotnet.genera l
    microsoft.publi c.dotnet.langua ges.vb
    microsoft.publi c.vsnet.general

    There are some others, but these should get you started.

    Rick - MVP



    "Paul" <[email protected] > wrote in message
    news:fc7df0dc.0 403251348.6be7f [email protected] gle.com...[color=blue]
    > Been a long time since I've played with this, just got .Net version of
    > Visual Basic. Having annoyance with a real simple thing. I'm adding a
    > tooltip to a control like:
    >
    > Me.ToolTip1.Set ToolTip(Me.SubN ame,"This is a two-line" & vbCrLf & _
    > "tooltip.")
    >
    > If I ctrl-F5 from the code menu, it compiles and runs OK (breaks the
    > tooltip into two lines). If I go to the form design window, I get the
    > error:
    >
    > "The variable 'vbCrLf' is either undeclared or was never assigned."
    >
    > Didn't think I needed to declare a system constant. When I go back to
    > the code view, VB has ever so kindly deleted the tooltip from the
    > control.
    >
    > This has got to be something real stupid on my part, but I'm blocked.
    >
    > p[/color]


    Comment

    Working...