5 Replies - 470 Views - Last Post: 15 November 2009 - 06:24 PM Rate Topic: -----

#1 l_mill152  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 37
  • Joined: 13-September 09

Text showing up at top of a form

Posted 15 November 2009 - 01:59 PM

I don't know why but text that should display in a text box, ALSO appears at the top of the form, where the title would be. Here are pictures of what I mean. The first picture is before the button to display the text is clicked. The title at the top is "Surrogates (20009)". The second picture is after the button is clicked and as you can see the text shows up in both the textbox and at the top.
Attached ImageAttached Image

How do I fix this?

Is This A Good Question/Topic? 0
  • +

Replies To: Text showing up at top of a form

#2 CharlieMay  Icon User is offline

  • This space intentionally left blank
  • member icon

Reputation: 1605
  • View blog
  • Posts: 5,162
  • Joined: 25-September 09

Re: Text showing up at top of a form

Posted 15 November 2009 - 02:27 PM

You'll have to show us some code so we can determine where the problem lies. But just off the top of my head, look for any line that starts with Me.Text or Inside a With Form type With...End With look for a line starting with .Text =
Was This Post Helpful? 0
  • +
  • -

#3 l_mill152  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 37
  • Joined: 13-September 09

Re: Text showing up at top of a form

Posted 15 November 2009 - 02:50 PM

View PostCharlieMay, on 15 Nov, 2009 - 01:27 PM, said:

You'll have to show us some code so we can determine where the problem lies. But just off the top of my head, look for any line that starts with Me.Text or Inside a With Form type With...End With look for a line starting with .Text =



I do have this:
TextBoxreview.Text = Text.ToString


But without it, the text doesn't show up in the text box
Was This Post Helpful? 0
  • +
  • -

#4 deery5000  Icon User is offline

  • D.I.C Addict

Reputation: 78
  • View blog
  • Posts: 966
  • Joined: 09-May 09

Re: Text showing up at top of a form

Posted 15 November 2009 - 03:22 PM

he mate you need to show us more code.
use the properties to set the name of the form

add a break point to the function for button click and use f10 to step over and see what the code is doing

TextBoxreview.Text = Text.ToString
what is text? a variable ?

Cant help if you dont present code.

Kevin
Was This Post Helpful? 0
  • +
  • -

#5 l_mill152  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 37
  • Joined: 13-September 09

Re: Text showing up at top of a form

Posted 15 November 2009 - 04:23 PM

As I was typing the code in here, I actually figured out where I messed up :) Thanks!
Was This Post Helpful? 0
  • +
  • -

#6 CharlieMay  Icon User is offline

  • This space intentionally left blank
  • member icon

Reputation: 1605
  • View blog
  • Posts: 5,162
  • Joined: 25-September 09

Re: Text showing up at top of a form

Posted 15 November 2009 - 06:24 PM

Glad you got it worked out. :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1